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, mPropertyObjects
mDescriptor, mItem, mMutableItem, mRepository
mAcl, 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, unsecuredSetCreationSecurity
checkPropertyAccess, equals, getContextMemberships, getItemDescriptor, getItemDisplayName, getPropertyAccessControlList, getPropertySecuredObject, getPropertyValue, getRepository, getRepositoryId, hasAccess, hashCode, hasPropertyAccess, isRemoved, isTransient, toString
getRepositoryItem, getSecuredObjectDescriptor, invalidate, logError, logError, logError, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwner
checkAccess, checkRuntimeAccess, getAccessControlList, getOwner, getSecurityContext, setSecurityContext, unsecuredGetSecuredContainers
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContextMemberships, getItemDescriptor, getPropertyValue, getRepository, getRepositoryId, isTransient
getItemDisplayName
getPropertyAccessControlList, getPropertySecuredObject, hasAccess, hasPropertyAccess
getAccessControlList, getOwner, getSecurityContext, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwner
public GenericSecuredMutableContentItem(GenericSecuredMutableContentRepository pRepository, MutableRepositoryItem pItem) throws RepositoryException
RepositoryException
public GenericSecuredMutableContentItem(GenericSecuredMutableRepository pRepository, ContentRepositoryItem pItem) throws RepositoryException
RepositoryException
public java.lang.String[] getContentKeys()
getContentKeys
in interface ContentRepositoryItem
public java.io.InputStream getContentByKey(java.lang.String pKey) throws RepositoryException
getContentByKey
in interface ContentRepositoryItem
RepositoryException
- if there was an error fetching the contentpublic long getContentLastModified(java.lang.String pKey) throws RepositoryException
getContentLastModified
in interface ContentRepositoryItem
RepositoryException
- if there was an error determining
when the content was last modified.public long getContentLength(java.lang.String pKey) throws RepositoryException
getContentLength
in interface ContentRepositoryItem
RepositoryException
- 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 FolderItem
public 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 FolderItem
ContentRepository.getFolderByPath
,
ContentRepository.getFoldersByPath
public java.lang.String[] getAncestorFolderIds()
getAncestorFolderIds
in interface FolderItem
ContentRepository.getFolder
,
ContentRepository.getFolders