|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EbiDocContent defines the notion of a Document's Content.
The Document Content is associated with a specific Document by
the document's ID and is characterized by its MIME type, size,
and the actual content bytes.
The Document Content is actually the published
version of the Document. A Document may have several existing
versions yet none published at the moment. If a version is
published, then Document Content has the knowledge of which
version from the version list it came from (see getVersionID
).
Field Summary | |
static String |
EL_DOC_CONTENT
The element type of "Document Content". |
Fields inherited from interface com.sssw.cm.api.EbiCmElement |
OP_COPY,
OP_MOVE,
OP_REMOVE,
OP_UPDATE |
Method Summary | |
byte[] |
getData()
Gets the actual Content data. |
InputStream |
getDataAsStream()
Gets the content data as a stream. |
String |
getDocumentID()
Gets the ID of the Document whose Content is represented by this EbiDocContent. |
String |
getEncoding()
Gets the ENCODING of the Content. |
String |
getMimeType()
Gets the MIME type of the Content. |
String |
getRepositoryID()
Gets the ID of the repository where this content object resides. |
int |
getSize()
Gets the size of the data |
String |
getUUID()
Gets the UUID of the Content. |
int |
getVersionID()
Gets the ID of the version of the Document that was published and is represented by this EbiDocContent. |
void |
setData(byte[] data)
Set the data bytes. |
void |
setData(InputStream is)
Sets the data from an input stream. |
void |
setDocumentID(String docID)
Set the document ID. |
void |
setEncoding(String encoding)
Set the encoding, for the version 5.2, encoding will be set to application server's default encoding no matter what encoding user chooses |
void |
setLastModified(Timestamp modDateTime)
Set the last modified date/time. |
void |
setMimeType(String mimeType)
Set the mime type. |
void |
setSize(int size)
Set the data size. |
void |
setUUID()
Set/generate the UUID of the content. |
void |
setUUID(String uuid)
Set the UUID of the content. |
void |
setVersionID(int versionID)
Set the version ID. |
Methods implemented from interface com.sssw.cm.api.EbiCmElement |
fromXML,
toXML,
validateOperation |
Methods implemented from interface com.sssw.fw.api.EbiFrameworkElement |
getElementUUID,
getLastModified,
getLastModifiedBy,
isEqualTo,
isReadOnly,
resetReadOnly,
setLastModified,
setLastModifiedBy,
setReadOnly |
Methods implemented from interface com.sssw.fw.api.EbiElement |
getType |
Field Detail |
public static final String EL_DOC_CONTENT
EbiElement.getType()
Method Detail |
public String getDocumentID()
public String getUUID()
public String getMimeType()
public String getEncoding()
public byte[] getData()
public InputStream getDataAsStream() throws EboUnrecoverableSystemException
public int getSize()
public int getVersionID()
public void setDocumentID(String docID)
docID
- the document IDpublic void setUUID()
public String getRepositoryID()
public void setUUID(String uuid)
uuid
- the UUID of the contentpublic void setMimeType(String mimeType)
mimeType
- the MIME typepublic void setEncoding(String encoding)
encoding
- the ENCODINGpublic void setData(byte[] data)
data
- the data bytespublic void setData(InputStream is) throws EboUnrecoverableSystemException
is
- the data input streampublic void setSize(int size)
size
- the data sizepublic void setVersionID(int versionID)
versionID
- the version IDpublic void setLastModified(Timestamp modDateTime)
modDateTime
- the last modified date/time
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |