25 |
|
|
26 |
import gzz.media.Enfilade1D; |
import gzz.media.Enfilade1D; |
27 |
import gzz.mediaserver.*; |
import gzz.mediaserver.*; |
28 |
|
import gzz.media.*; |
29 |
import gzz.media.impl.*; |
import gzz.media.impl.*; |
30 |
|
import java.io.IOException; |
31 |
import java.util.*; |
import java.util.*; |
32 |
|
|
33 |
/** A representation of an email stored in Storm, as Xanalogical text. |
/** A representation of an email stored in Storm, as Xanalogical text. |
42 |
protected Enfilade1D date; |
protected Enfilade1D date; |
43 |
protected Enfilade1D body; |
protected Enfilade1D body; |
44 |
|
|
45 |
public DefaultEmailInStorm(Mediaserver ms, Mediaserver.Id msid) { |
public DefaultEmailInStorm(Mediaserver ms, Mediaserver.Id msid) throws IOException { |
46 |
Enfilade1D.Maker maker = new Enfilade1DImpl.Enfilade1DImplMaker(); |
Enfilade1D.Maker maker = new Enfilade1DImpl.Enfilade1DImplMaker(); |
47 |
Mediaserver.Id bodyId = getBodyId(ms, msid); |
Mediaserver.Id bodyId = getBodyId(ms, msid); |
48 |
if(bodyId != null) { |
if(bodyId != null) { |
49 |
PermanentTextScroll pts = new PermanentTextScroll(ms, bodyId); |
ScrollBlock block = ScrollBlockManager.getScrollBlock(ms, bodyId); |
50 |
body = maker.makeEnfilade(pts.getCurrent()); |
body = maker.makeEnfilade(block.getCurrent()); |
51 |
} else { |
} else { |
52 |
body = maker.makeEnfilade(); |
body = maker.makeEnfilade(); |
53 |
} |
} |