Class AbstractXMLViewNodeRepresentation

    • Field Detail

      • isSystem

        protected boolean isSystem
    • Constructor Detail

      • AbstractXMLViewNodeRepresentation

        protected AbstractXMLViewNodeRepresentation​(javax.jcr.Node node)
        AbstractXMLViewNodeRepresentation.
        Parameters:
        node -
    • Method Detail

      • getContentLenght

        public long getContentLenght()
                              throws javax.jcr.RepositoryException
        Specified by:
        getContentLenght in interface NodeRepresentation
        Returns:
        the content length or -1 if content length unknown
        Throws:
        javax.jcr.RepositoryException
      • getMediaType

        public String getMediaType()
                            throws javax.jcr.RepositoryException
        Specified by:
        getMediaType in interface NodeRepresentation
        Returns:
        Mimetype for this representation.
        Throws:
        javax.jcr.RepositoryException
      • getLastModified

        public long getLastModified()
                             throws javax.jcr.RepositoryException
        Description copied from interface: NodeRepresentation
        Get date of last modified if available.
        Specified by:
        getLastModified in interface NodeRepresentation
        Returns:
        the date of last modified.
        Throws:
        javax.jcr.RepositoryException
      • getProperty

        public org.exoplatform.common.util.HierarchicalProperty getProperty​(String name)
                                                                     throws javax.jcr.RepositoryException
        Specified by:
        getProperty in interface NodeRepresentation
        Parameters:
        name - the name of properties.
        Returns:
        the property with specified name. Note that there can be multiple same name properties, in this case any one will be returned.
        Throws:
        javax.jcr.RepositoryException
      • getProperties

        public Collection<org.exoplatform.common.util.HierarchicalProperty> getProperties​(String name)
                                                                                   throws javax.jcr.RepositoryException
        Specified by:
        getProperties in interface NodeRepresentation
        Parameters:
        name - the name of properties.
        Returns:
        the properties with specified name.
        Throws:
        javax.jcr.RepositoryException
      • getPropertyNames

        public Collection<String> getPropertyNames()
                                            throws javax.jcr.RepositoryException
        Specified by:
        getPropertyNames in interface NodeRepresentation
        Returns:
        the collection of node properties name.
        Throws:
        javax.jcr.RepositoryException
      • getNode

        public javax.jcr.Node getNode()
        Specified by:
        getNode in interface NodeRepresentation
        Returns:
        the underlying node.
      • addProperties

        public void addProperties​(Collection<org.exoplatform.common.util.HierarchicalProperty> properties)
                           throws javax.jcr.UnsupportedRepositoryOperationException
        Description copied from interface: NodeRepresentation
        adds multivalued property.
        Specified by:
        addProperties in interface NodeRepresentation
        Parameters:
        properties - .
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException
      • addProperty

        public void addProperty​(org.exoplatform.common.util.HierarchicalProperty property)
                         throws javax.jcr.UnsupportedRepositoryOperationException
        adds single property.
        Specified by:
        addProperty in interface NodeRepresentation
        Parameters:
        property - .
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException
      • removeProperty

        public void removeProperty​(String name)
                            throws javax.jcr.UnsupportedRepositoryOperationException
        removes property.
        Specified by:
        removeProperty in interface NodeRepresentation
        Parameters:
        name - .
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException