|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.p13n.content.adapter.NodeDocument
A Document implementation backed by a content Node.
This is really only designed to be used by the pz_compat_taglib.jar versions of the pz: tags in conjunction with the 7.0 ContentManager adapter to 8.1 content management.
| Field Summary |
| Fields inherited from interface com.bea.p13n.property.ConfigurableEntity |
RESERVED_PROPERTY_SET |
| Constructor Summary | |
NodeDocument(Node node)
Constructor. |
|
| Method Summary | |
String |
getAuthor()
Get the author of the document. |
String |
getComments()
Get the document comments. |
byte[] |
getContent()
Return the bytes of the document's content. |
byte[] |
getContentBlock(long start,
long length)
Get a block of the bytes of the document's content. |
ContentValue |
getContentByValue()
Deprecated. No longer needed - Use Content object instead. |
Timestamp |
getCreationDate()
Get the date the document was created. |
String |
getDescription()
Get the description. |
DocumentValue |
getDocumentByValue()
Deprecated. No longer needed - use Document object instead. |
String |
getIdentifier()
Get the identifier for the content object. |
String |
getJndiName()
Retrieve the jndi name for an entity. |
String |
getLockedBy()
Get the locker of the document. |
String |
getMimeType()
Get the mime type of the content object. |
String |
getModifiedBy()
Get last modifier of the document. |
Timestamp |
getModifiedDate()
Get the date the document was last modified. |
String |
getName()
Get the document name. |
String |
getPkString()
Retrieve the pk string for an entity. |
Object |
getProperty(String propertySet,
String propertyName)
Retrieves a property value. |
String |
getPropertyAsString(String propertySet,
String propertyName)
Retrieves a property value as a string. |
Object |
getPropertyNoDefault(String propertySet,
String name)
Retrieves a property value without using a default value. |
long |
getSize()
Get the size of the document. |
long |
getUniqueId()
Retrieve the unique identifier generated for this ConfigurableEntity. |
long |
getVersion()
Get the document version number. |
Object |
removeProperty(String propertySet,
String propertyName)
Remove the property associated with the named key in the specified property set. |
void |
setAuthor(String author)
This method does nothing |
void |
setComments(String s)
This method does nothing |
void |
setContentByValue(ContentValue val)
Deprecated. Not implemented. |
void |
setCreationDate(Timestamp date)
This method does nothing |
void |
setDescription(String s)
This method does nothing |
void |
setDocumentByValue(DocumentValue val)
Deprecated. Not implemented. |
void |
setLockedBy(String s)
This method does nothing |
void |
setMimeType(String mimeType)
Set the mime type of the document object. |
void |
setModifiedBy(String s)
This method does nothing |
void |
setModifiedDate(Timestamp d)
This method does nothing |
void |
setName(String s)
This method does nothing |
void |
setProperty(String propertySet,
String propertyName,
Object value)
Associate the specified value with the named key in the specified property set. |
void |
setSize(long size)
This method does nothing |
void |
setVersion(long ver)
This method does nothing |
static Timestamp |
toTimestamp(Calendar c)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NodeDocument(Node node)
| Method Detail |
public String getAuthor()
throws RemoteException
getAuthor in interface DocumentRemoteException - thrown on an error.
public String getComments()
throws RemoteException
getComments in interface DocumentRemoteException - thrown on an error.
public byte[] getContent()
throws RemoteException
DocumentThis currently doesn't support files larger than 2^31 bytes.
getContent in interface DocumentRemoteException - thrown on an error.
public byte[] getContentBlock(long start,
long length)
throws RemoteException
DocumentThis currently just calls getContent() and returns a subarray. However, this will support retrieving large files when large files are supported.
getContentBlock in interface Documentstart - the starting index in the byte array.length - the number of bytes to retrieve.
RemoteException - thrown on an error.
public ContentValue getContentByValue()
throws RemoteException
getContentByValue in interface ContentRemoteException - thrown on a communication error.
public Timestamp getCreationDate()
throws RemoteException
getCreationDate in interface DocumentRemoteException - thrown on an error.
public String getDescription()
throws RemoteException
getDescription in interface DocumentRemoteException - thrown on an error.
public DocumentValue getDocumentByValue()
throws RemoteException
getDocumentByValue in interface DocumentRemoteException - thrown on an error.
public String getIdentifier()
throws RemoteException
getIdentifier in interface ContentRemoteException - thrown on a communication error.public String getJndiName()
getJndiName in interface ConfigurableEntity
public String getLockedBy()
throws RemoteException
getLockedBy in interface DocumentRemoteException - thrown on an error.
public String getMimeType()
throws RemoteException
getMimeType in interface ContentRemoteException - thrown on a communication error.
public String getModifiedBy()
throws RemoteException
getModifiedBy in interface DocumentRemoteException - thrown on an error.
public Timestamp getModifiedDate()
throws RemoteException
getModifiedDate in interface DocumentRemoteException - thrown on an error.
public String getName()
throws RemoteException
getName in interface DocumentRemoteException - thrown on an error.
public String getPkString()
throws RemoteException
getPkString in interface ConfigurableEntityRemoteException
public Object getProperty(String propertySet,
String propertyName)
throws RemoteException
This is the driving get method. All other getters should call this one.
getProperty in interface ConfigurableEntitypropertySet - The name of the property set to look inpropertyName - The name of the property to retrieve.
RemoteException
public String getPropertyAsString(String propertySet,
String propertyName)
throws RemoteException
getPropertyAsString in interface ConfigurableEntitypropertySet - The name of the property set to look inpropertyName - The name of the property to retrieve.
RemoteException
public Object getPropertyNoDefault(String propertySet,
String name)
throws RemoteException
This is the driving get method. All other getters should call this one.
getPropertyNoDefault in interface ConfigurableEntitypropertySet - The name of the property setname - The name of the property to retrieve.
RemoteException
public long getSize()
throws RemoteException
getSize in interface DocumentRemoteException - thrown on an error.public long getUniqueId()
getUniqueId in interface ConfigurableEntity
public long getVersion()
throws RemoteException
getVersion in interface DocumentRemoteException - thrown on an error.
public Object removeProperty(String propertySet,
String propertyName)
This method does nothing.
removeProperty in interface ConfigurableEntitypropertySet - The name of the property set.propertyName - The name of the property to remove.
public void setAuthor(String author)
setAuthor in interface Documentpublic void setComments(String s)
setComments in interface Documentpublic void setContentByValue(ContentValue val)
setContentByValue in interface Contentpublic void setCreationDate(Timestamp date)
setCreationDate in interface Documentpublic void setDescription(String s)
setDescription in interface Documents - description to be addedpublic void setDocumentByValue(DocumentValue val)
setDocumentByValue in interface Documentpublic void setLockedBy(String s)
setLockedBy in interface Documentpublic void setMimeType(String mimeType)
setMimeType in interface ContentmimeType - mimeType to be addedpublic void setModifiedBy(String s)
setModifiedBy in interface Documentpublic void setModifiedDate(Timestamp d)
setModifiedDate in interface Documentpublic void setName(String s)
setName in interface Document
public void setProperty(String propertySet,
String propertyName,
Object value)
This method does nothing.
setProperty in interface ConfigurableEntitypropertySet - The name of the property set.propertyName - The name of the property to assignvalue - The value to associate with the property namepublic void setSize(long size)
setSize in interface Documentpublic void setVersion(long ver)
setVersion in interface Documentpublic static Timestamp toTimestamp(Calendar c)
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||