Interface NodeRepresentation

All Known Implementing Classes:
AbstractXMLViewNodeRepresentation, DocumentViewNodeRepresentation, NtFileNodeRepresentation, NtResourceNodeRepresentation, SystemViewNodeRepresentation

public interface NodeRepresentation
Created by The eXo Platform SAS .
Version:
$Id: $
Author:
Gennady Azarenkov
  • Method Details

    • getMediaType

      String getMediaType() throws javax.jcr.RepositoryException
      Returns:
      Mimetype for this representation.
      Throws:
      javax.jcr.RepositoryException
    • getContentLenght

      long getContentLenght() throws javax.jcr.RepositoryException
      Returns:
      the content length or -1 if content length unknown
      Throws:
      javax.jcr.RepositoryException
    • getContentEncoding

      String getContentEncoding()
      Returns:
      the content encoding or null if it unknown.
    • getInputStream

      InputStream getInputStream() throws IOException, javax.jcr.RepositoryException
      Returns:
      the stream.
      Throws:
      IOException
      javax.jcr.RepositoryException
    • getPropertyNames

      Collection<String> getPropertyNames() throws javax.jcr.RepositoryException
      Returns:
      the collection of node properties name.
      Throws:
      javax.jcr.RepositoryException
    • getProperty

      org.exoplatform.common.util.HierarchicalProperty getProperty(String name) throws javax.jcr.RepositoryException
      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

      Collection<org.exoplatform.common.util.HierarchicalProperty> getProperties(String name) throws javax.jcr.RepositoryException
      Parameters:
      name - the name of properties.
      Returns:
      the properties with specified name.
      Throws:
      javax.jcr.RepositoryException
    • addProperty

      void addProperty(org.exoplatform.common.util.HierarchicalProperty property) throws javax.jcr.UnsupportedRepositoryOperationException
      adds single property.
      Parameters:
      property - .
      Throws:
      javax.jcr.UnsupportedRepositoryOperationException
    • addProperties

      void addProperties(Collection<org.exoplatform.common.util.HierarchicalProperty> properties) throws javax.jcr.UnsupportedRepositoryOperationException
      adds multivalued property.
      Parameters:
      properties - .
      Throws:
      javax.jcr.UnsupportedRepositoryOperationException
    • removeProperty

      void removeProperty(String name) throws javax.jcr.UnsupportedRepositoryOperationException
      removes property.
      Parameters:
      name - .
      Throws:
      javax.jcr.UnsupportedRepositoryOperationException
    • getLastModified

      long getLastModified() throws javax.jcr.RepositoryException
      Get date of last modified if available.
      Returns:
      the date of last modified.
      Throws:
      javax.jcr.RepositoryException
    • getNode

      javax.jcr.Node getNode()
      Returns:
      the underlying node.