public class CollectionResource extends GenericResource
| Modifier and Type | Field and Description |
|---|---|
protected static Set<String> |
COLLECTION_SKIP
Properties skipped for collections.
|
protected javax.jcr.Node |
node
node.
|
identifier, namespaceContext, PRESET_PROP, typeCOLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILECHILDCOUNT, CREATION_PATTERN, CREATIONDATE, DAV_ALLPROP, DAV_ALLPROP_INCLUDE, DISPLAYNAME, EXCLUSIVE, GETCONTENTLANGUAGE, GETCONTENTLENGTH, GETCONTENTTYPE, GETLASTMODIFIED, HASCHILDREN, IS_READ_ONLY, ISCOLLECTION, ISFOLDER, ISROOT, ISVERSIONED, JCR_CONTENT, JCR_DATA, LOCKDISCOVERY, LOCKSCOPE, LOCKTYPE, MODIFICATION_PATTERN, ORDERING_TYPE, OWNER, PARENTNAME, RESOURCETYPE, SUPPORTEDLOCK, SUPPORTEDMETHODSET, WRITE| Modifier | Constructor and Description |
|---|---|
protected |
CollectionResource(int type,
URI identifier,
javax.jcr.Node node,
WebDavNamespaceContext namespaceContext) |
|
CollectionResource(URI identifier,
javax.jcr.Node node,
WebDavNamespaceContext namespaceContext) |
| Modifier and Type | Method and Description |
|---|---|
protected URI |
childURI(String childName) |
InputStream |
getContentAsStream(String rootHref)
make a xml representation of the collection and serialize it to stream.
|
Set<org.exoplatform.common.util.HierarchicalProperty> |
getProperties(boolean namesOnly) |
org.exoplatform.common.util.HierarchicalProperty |
getProperty(QName name) |
List<Resource> |
getResources() |
boolean |
isCollection() |
getIdentifier, getNamespaceContext, getType, lockDiscovery, supportedLock, supportedMethodSetprotected static final Set<String> COLLECTION_SKIP
protected final javax.jcr.Node node
public CollectionResource(URI identifier, javax.jcr.Node node, WebDavNamespaceContext namespaceContext) throws IllegalResourceTypeException, javax.jcr.RepositoryException
identifier - resource identifiernode - nodenamespaceContext - namespace contextIllegalResourceTypeException - IllegalResourceTypeExceptionjavax.jcr.RepositoryException - RepositoryExceptionprotected CollectionResource(int type,
URI identifier,
javax.jcr.Node node,
WebDavNamespaceContext namespaceContext)
throws IllegalResourceTypeException,
javax.jcr.RepositoryException
type - resource typeidentifier - resource identifiernode - nodenamespaceContext - namespace contextIllegalResourceTypeException - IllegalResourceTypeExceptionjavax.jcr.RepositoryException - RepositoryExceptionpublic Set<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
getProperties in interface ResourcegetProperties in class GenericResourcenamesOnly - - if true "empty" properties will be returned (w/o values
inside)javax.jcr.RepositoryException - RepositoryExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.AccessDeniedExceptionpublic org.exoplatform.common.util.HierarchicalProperty getProperty(QName name) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
name - property namejavax.jcr.PathNotFoundException - PathNotFoundExceptionjavax.jcr.AccessDeniedException - AccessDeniedExceptionjavax.jcr.RepositoryException - RepositoryExceptionpublic boolean isCollection()
public List<Resource> getResources() throws javax.jcr.RepositoryException, IllegalResourceTypeException
javax.jcr.RepositoryException - RepositoryExceptionIllegalResourceTypeException - IllegalResourceTypeExceptionprotected final URI childURI(String childName)
childName - child namepublic InputStream getContentAsStream(String rootHref) throws IOException
rootHref - root HRefIOException - IOExceptionCopyright © 2016 eXo Platform SAS. All Rights Reserved.