Class CollectionResource

    • Field Detail

      • COLLECTION_SKIP

        protected static final Set<String> COLLECTION_SKIP
        Properties skipped for collections.
      • node

        protected final javax.jcr.Node node
        node.
    • Method Detail

      • getProperties

        public Set<org.exoplatform.common.util.HierarchicalProperty> getProperties​(boolean namesOnly)
                                                                            throws javax.jcr.PathNotFoundException,
                                                                                   javax.jcr.AccessDeniedException,
                                                                                   javax.jcr.RepositoryException
        Specified by:
        getProperties in interface Resource
        Overrides:
        getProperties in class GenericResource
        Parameters:
        namesOnly - - if true "empty" properties will be returned (w/o values inside)
        Returns:
        all properties belonging to this resource
        Throws:
        javax.jcr.RepositoryException - RepositoryException
        javax.jcr.PathNotFoundException
        javax.jcr.AccessDeniedException
      • getProperty

        public org.exoplatform.common.util.HierarchicalProperty getProperty​(QName name)
                                                                     throws javax.jcr.PathNotFoundException,
                                                                            javax.jcr.AccessDeniedException,
                                                                            javax.jcr.RepositoryException
        Parameters:
        name - property name
        Returns:
        property by its name
        Throws:
        javax.jcr.PathNotFoundException - PathNotFoundException
        javax.jcr.AccessDeniedException - AccessDeniedException
        javax.jcr.RepositoryException - RepositoryException
      • isCollection

        public boolean isCollection()
        Returns:
        true if this is collection-able resource - i.e. this resource may contain other resources
      • childURI

        protected final URI childURI​(String childName)
        Parameters:
        childName - child name
        Returns:
        child URI
      • getContentAsStream

        public InputStream getContentAsStream​(String rootHref)
                                       throws IOException
        make a xml representation of the collection and serialize it to stream.
        Parameters:
        rootHref - root HRef
        Returns:
        content wrapped into stream
        Throws:
        IOException - IOException