public abstract class AbstractXMLViewNodeRepresentation extends Object implements NodeRepresentation
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isSystem |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXMLViewNodeRepresentation(javax.jcr.Node node)
AbstractXMLViewNodeRepresentation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(Collection<org.exoplatform.common.util.HierarchicalProperty> properties)
adds multivalued property.
|
void |
addProperty(org.exoplatform.common.util.HierarchicalProperty property)
adds single property.
|
String |
getContentEncoding() |
long |
getContentLenght() |
InputStream |
getInputStream() |
long |
getLastModified()
Get date of last modified if available.
|
String |
getMediaType() |
javax.jcr.Node |
getNode() |
Collection<org.exoplatform.common.util.HierarchicalProperty> |
getProperties(String name) |
org.exoplatform.common.util.HierarchicalProperty |
getProperty(String name) |
Collection<String> |
getPropertyNames() |
void |
removeProperty(String name)
removes property.
|
protected AbstractXMLViewNodeRepresentation(javax.jcr.Node node)
node - public String getContentEncoding()
getContentEncoding in interface NodeRepresentationpublic long getContentLenght()
throws javax.jcr.RepositoryException
getContentLenght in interface NodeRepresentationjavax.jcr.RepositoryExceptionpublic String getMediaType() throws javax.jcr.RepositoryException
getMediaType in interface NodeRepresentationjavax.jcr.RepositoryExceptionpublic long getLastModified()
throws javax.jcr.RepositoryException
NodeRepresentationgetLastModified in interface NodeRepresentationjavax.jcr.RepositoryExceptionpublic org.exoplatform.common.util.HierarchicalProperty getProperty(String name) throws javax.jcr.RepositoryException
getProperty in interface NodeRepresentationname - the name of properties.javax.jcr.RepositoryExceptionpublic Collection<org.exoplatform.common.util.HierarchicalProperty> getProperties(String name) throws javax.jcr.RepositoryException
getProperties in interface NodeRepresentationname - the name of properties.javax.jcr.RepositoryExceptionpublic Collection<String> getPropertyNames() throws javax.jcr.RepositoryException
getPropertyNames in interface NodeRepresentationjavax.jcr.RepositoryExceptionpublic InputStream getInputStream() throws IOException, javax.jcr.RepositoryException
getInputStream in interface NodeRepresentationIOExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Node getNode()
getNode in interface NodeRepresentationpublic void addProperties(Collection<org.exoplatform.common.util.HierarchicalProperty> properties) throws javax.jcr.UnsupportedRepositoryOperationException
NodeRepresentationaddProperties in interface NodeRepresentationproperties - .javax.jcr.UnsupportedRepositoryOperationExceptionpublic void addProperty(org.exoplatform.common.util.HierarchicalProperty property)
throws javax.jcr.UnsupportedRepositoryOperationException
addProperty in interface NodeRepresentationproperty - .javax.jcr.UnsupportedRepositoryOperationExceptionpublic void removeProperty(String name) throws javax.jcr.UnsupportedRepositoryOperationException
removeProperty in interface NodeRepresentationname - .javax.jcr.UnsupportedRepositoryOperationExceptionCopyright © 2017 eXo Platform SAS. All Rights Reserved.