|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The public interface for a Document.
This is the base interface for Document objects.
Documents are a specialized type of Content which are generally controlled by a Document Management System (DMS). The Document interface contains explicit attributes common to most types of documents and DMS's. Additionally, the Document interface has a method to retrieve the raw bytes of the actualy document itself (e.g. the images data of a GIF, the text of an HTML document). Documents inherit the identifier and mimeType attribute from the Content interface. Also, all other implicit attributes (i.e. metadata) about the document will be available.
The reference implementation document management system included in the PersonalizationServer does not support creation or modification of Documents via the EJB interfaces. However, other implementations might.
Attribute: description
Attribute: size
Attribute: modifiedBy
Attribute: modifiedDate
Attribute: creationDate
Attribute: version
Attribute: author
Attribute: lockedBy
Attribute: comments
Attribute: name
When constructing queries for Documents, the above property/attribute names will compare against the explicit attributes on the Document interface. For example, to find document whose size is less than 1024 bytes, you could use a query string like "size < 1024".
DocumentManager
,
ExpressionHelper
Field Summary |
Fields inherited from interface com.bea.p13n.property.ConfigurableEntity |
RESERVED_PROPERTY_SET |
Method Summary | |
String |
getAuthor()
Deprecated. Get the identifier of the invididual who created the document. |
String |
getComments()
Deprecated. Get any text comments about the document. |
byte[] |
getContent()
Deprecated. Return the bytes of the document's content. |
byte[] |
getContentBlock(long start,
long size)
Deprecated. Get a block of the bytes of the document's content. |
Timestamp |
getCreationDate()
Deprecated. Get the time/date of when the document was created. |
String |
getDescription()
Deprecated. Get the text description of the document. |
DocumentValue |
getDocumentByValue()
Deprecated. No longer needed - use Document object instead. |
String |
getLockedBy()
Deprecated. Get the identifier of the individual who has a lock on the document. |
String |
getModifiedBy()
Deprecated. Get the identifier of the individual who last modified the document. |
Timestamp |
getModifiedDate()
Deprecated. Get time and date of when the document was last modified. |
String |
getName()
Deprecated. Get the name of the document. |
long |
getSize()
Deprecated. Get the size of the document in bytes. |
long |
getVersion()
Deprecated. Get the version number of the document. |
void |
setAuthor(String author)
Deprecated. Set the author of the document. |
void |
setComments(String comments)
Deprecated. Set the comments about the document. |
void |
setCreationDate(Timestamp creationDate)
Deprecated. Set the time/date of when the document was created. |
void |
setDescription(String description)
Deprecated. Set the document description. |
void |
setDocumentByValue(DocumentValue value)
Deprecated. Not implemented. |
void |
setLockedBy(String lockedBy)
Deprecated. Set the who has a lock on the document. |
void |
setModifiedBy(String modifiedBy)
Deprecated. Set the identifier of the individual who last modified the document. |
void |
setModifiedDate(Timestamp modifiedDate)
Deprecated. Set the time/date of when the document was last modified. |
void |
setName(String name)
Deprecated. Set the name of the document. |
void |
setSize(long size)
Deprecated. Set the size of the document. |
void |
setVersion(long version)
Deprecated. Set the version number. |
Methods inherited from interface com.bea.p13n.content.Content |
getContentByValue, getIdentifier, getMimeType, setContentByValue, setMimeType |
Methods inherited from interface com.bea.p13n.property.ConfigurableEntity |
getJndiName, getPkString, getProperty, getPropertyAsString, getPropertyNoDefault, getUniqueId, removeProperty, setProperty |
Method Detail |
public String getAuthor() throws RemoteException
RemoteException
- thrown on an error.public String getComments() throws RemoteException
RemoteException
- thrown on an error.public byte[] getContent() throws RemoteException
This currently doesn't support files larger than 2^31 bytes.
RemoteException
- thrown on an error.public byte[] getContentBlock(long start, long size) throws RemoteException
This currently just calls getContent() and returns a subarray. However, this will support retrieving large files when large files are supported.
start
- the starting index in the byte array.size
- the number of bytes to retrieve.
RemoteException
- thrown on an error.public Timestamp getCreationDate() throws RemoteException
RemoteException
- thrown on an error.public String getDescription() throws RemoteException
RemoteException
- thrown on an error.public DocumentValue getDocumentByValue() throws RemoteException
RemoteException
- thrown on an error.public String getLockedBy() throws RemoteException
RemoteException
- thrown on an error.public String getModifiedBy() throws RemoteException
RemoteException
- thrown on an error.public Timestamp getModifiedDate() throws RemoteException
RemoteException
- thrown on an error.public String getName() throws RemoteException
In general, this should correspond to the original filename of the document, but is not guarenteed to. Additionally, the document's mimeType is not guarenteed to correspond to any extension on the filename.
This value should be used when prompting a user to save the file.
RemoteException
- thrown on an error.public long getSize() throws RemoteException
For now, since the document content itself is represented a byte array, the size returned should not be larger than Integer.MAX_VALUE. However, in the future, larger documents will be supported.
RemoteException
- thrown on an error.public long getVersion() throws RemoteException
RemoteException
- thrown on an error.public void setAuthor(String author) throws RemoteException
RemoteException
- thrown on an error.public void setComments(String comments) throws RemoteException
RemoteException
- thrown on an error.public void setCreationDate(Timestamp creationDate) throws RemoteException
RemoteException
- thrown on an error.public void setDescription(String description) throws RemoteException
description
- description to be added
RemoteException
- thrown on an error.public void setDocumentByValue(DocumentValue value) throws RemoteException
RemoteException
- thrown on an error.public void setLockedBy(String lockedBy) throws RemoteException
RemoteException
- thrown on an error.public void setModifiedBy(String modifiedBy) throws RemoteException
RemoteException
- thrown on an error.public void setModifiedDate(Timestamp modifiedDate) throws RemoteException
RemoteException
- thrown on an error.public void setName(String name) throws RemoteException
RemoteException
- thrown on an error.public void setSize(long size) throws RemoteException
RemoteException
- thrown on an error.public void setVersion(long version) throws RemoteException
RemoteException
- thrown on an error.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |