public class GenericSecuredMutableContentItem extends GenericSecuredMutableRepositoryItem implements ContentRepositoryItem
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
ITEM_RIGHTS, ITEM_RIGHTS_MAP, mPolicy, mPropertyObjectsmDescriptor, mItem, mMutableItem, mRepositorymAcl, mOwner, mSecurityContext| Constructor and Description |
|---|
GenericSecuredMutableContentItem(GenericSecuredMutableContentRepository pRepository,
MutableRepositoryItem pItem)
Wraps a repository item with a secured repository item.
|
GenericSecuredMutableContentItem(GenericSecuredMutableRepository pRepository,
ContentRepositoryItem pItem)
Wraps a repository item with a secured repository item.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAncestorFolderIds()
Returns an array of ids for all folders which are parents
of this item.
|
java.lang.String[] |
getAncestorFolderPaths()
Returns an array of paths for all folders which are parents
of this item.
|
java.io.InputStream |
getContentByKey(java.lang.String pKey)
Returns an InputStream to the named content piece
|
java.lang.String[] |
getContentKeys()
Returns an array of available content
|
long |
getContentLastModified(java.lang.String pKey)
Returns the time when the content was last modified.
|
long |
getContentLength(java.lang.String pKey)
Returns the size in bytes of the particular rendition.
|
java.lang.String |
getItemPath()
Return the path of this item, represented as a "relative path"
from a "document root."
|
getOriginalItemDescriptor, setAccessControlList, setOwner, setPropertyAccessControlList, setPropertyValue, unsecuredSetCreationSecuritycheckPropertyAccess, equals, getContextMemberships, getItemDescriptor, getItemDisplayName, getPropertyAccessControlList, getPropertySecuredObject, getPropertyValue, getRepository, getRepositoryId, hasAccess, hashCode, hasPropertyAccess, isRemoved, isTransient, toStringgetRepositoryItem, getSecuredObjectDescriptor, invalidate, logError, logError, logError, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwnercheckAccess, checkRuntimeAccess, getAccessControlList, getOwner, getSecurityContext, setSecurityContext, unsecuredGetSecuredContainersclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContextMemberships, getItemDescriptor, getPropertyValue, getRepository, getRepositoryId, isTransientgetItemDisplayNamegetPropertyAccessControlList, getPropertySecuredObject, hasAccess, hasPropertyAccessgetAccessControlList, getOwner, getSecurityContext, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwnerpublic GenericSecuredMutableContentItem(GenericSecuredMutableContentRepository pRepository, MutableRepositoryItem pItem) throws RepositoryException
RepositoryExceptionpublic GenericSecuredMutableContentItem(GenericSecuredMutableRepository pRepository, ContentRepositoryItem pItem) throws RepositoryException
RepositoryExceptionpublic java.lang.String[] getContentKeys()
getContentKeys in interface ContentRepositoryItempublic java.io.InputStream getContentByKey(java.lang.String pKey)
throws RepositoryException
getContentByKey in interface ContentRepositoryItemRepositoryException - if there was an error fetching the contentpublic long getContentLastModified(java.lang.String pKey)
throws RepositoryException
getContentLastModified in interface ContentRepositoryItemRepositoryException - if there was an error determining
when the content was last modified.public long getContentLength(java.lang.String pKey)
throws RepositoryException
getContentLength in interface ContentRepositoryItemRepositoryException - if the key does not correspond to a valid
key, or if there was a system error trying to access this content (such
as the repository became unavailable).public java.lang.String getItemPath()
getItemPath in interface FolderItempublic java.lang.String[] getAncestorFolderPaths()
itemPath
property value "/foo/bar/somepage.html" then this method would return
{"/", "/foo", "/foo/bar"}. With a these paths one can fetch the content
via the ContentRepository.getFolderByPath methods. getAncestorFolderPaths in interface FolderItemContentRepository.getFolderByPath,
ContentRepository.getFoldersByPathpublic java.lang.String[] getAncestorFolderIds()
getAncestorFolderIds in interface FolderItemContentRepository.getFolder,
ContentRepository.getFolders