public class NtFileNodeRepresentation extends Object implements NodeRepresentation
| Constructor and Description |
|---|
NtFileNodeRepresentation(javax.jcr.Node node,
NodeRepresentation content) |
| 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.
|
public NtFileNodeRepresentation(javax.jcr.Node node,
NodeRepresentation content)
throws javax.jcr.RepositoryException
node - content - javax.jcr.RepositoryExceptionpublic 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 javax.jcr.Node getNode()
getNode in interface NodeRepresentationpublic 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 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 © 2018 eXo Platform SAS. All Rights Reserved.