|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContentEntry
This interface represents a basic content entry. Each ContentEntry instance can only be contained in one ContentContainer and the implementation SHALL create a new ContentEntry for equal entries placed in multiple ContentContainer instances.
| Method Summary | |
|---|---|
boolean |
deleteEntry()
Deletes this ContentEntry. |
long |
getContentSize()
Gets the size of the content associated with this ContentEntry.. |
Date |
getCreationDate()
Gets the creation date of the content associated with this ContentEntry. |
ContentContainer |
getEntryParent()
Returns the ContentContainer this ContentEntry belongs to. |
org.ocap.storage.ExtendedFileAccessPermissions |
getExtendedFileAccessPermissions()
Gets the file permissions of this ContentEntry, or null if unknown. |
String |
getID()
Returns the ID of this ContentEntry. |
String |
getParentID()
Returns the ID of ContentContainer this ContentEntry belongs to. |
MetadataNode |
getRootMetadataNode()
Gets the metadata for this ContentEntry. |
ContentServerNetModule |
getServer()
Gets the server where this ContentEntry is located. |
boolean |
isLocal()
Returns true if this content entry is on the local device, false if it is hosted by another device on the network. |
| Method Detail |
|---|
String getID()
ContentServerNetModule getServer()
boolean deleteEntry()
throws IOException
SecurityException - if the calling application does not have write
ExtendedFileAccessPermission for this entry.
IOException - if the entry is not local.
ContentContainer getEntryParent()
throws IOException
ContentContainer this ContentEntry belongs to.
This method SHALL return null if this ContentEntry represents a
root container.
If it is determined that this ContentEntry has a parent container,
but the implementation does not have sufficient local cached
information to construct the ContentContainer, this method SHALL
throw an IOException.
IOException - if the implementation does not have sufficient local
cached information to construct the parent ContentContainerString getParentID()
ContentContainer this ContentEntry belongs to.
This method SHALL return "-1" if this ContentEntry represents a root
container. This method SHALL return null if the parent ID is unknown.
getID(),
getEntryParent()long getContentSize()
Date getCreationDate()
org.ocap.storage.ExtendedFileAccessPermissions getExtendedFileAccessPermissions()
MetadataNode getRootMetadataNode()
boolean isLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||