|
eXo JCR :: Component :: Webdav Service 1.15.4-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.webdav.resource.GenericResource
org.exoplatform.services.jcr.webdav.resource.FileResource
public class FileResource
Created by The eXo Platform SARL .
Resource containing JCR's nt:file/jcr:content underneath. Identified by
nt:file's URI jcr:content's jcr:data property contains file's payload
| Field Summary | |
|---|---|
protected static Set<String> |
CONTENT_SKIP
The list of properties which are skipped for jcr:content. |
protected static Set<String> |
FILE_SKIP
The list of properties which are skipped for nt:file. |
protected javax.jcr.Node |
node
Node. |
| Fields inherited from class org.exoplatform.services.jcr.webdav.resource.GenericResource |
|---|
identifier, namespaceContext, PRESET_PROP, type |
| Fields inherited from interface org.exoplatform.services.jcr.webdav.resource.Resource |
|---|
COLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILE |
| Fields inherited from interface org.exoplatform.services.jcr.webdav.util.PropertyConstants |
|---|
CHILDCOUNT, CREATION_PATTERN, CREATIONDATE, DAV_ALLPROP, DAV_ALLPROP_INCLUDE, DISPLAYNAME, EXCLUSIVE, GETCONTENTLANGUAGE, GETCONTENTLENGTH, GETCONTENTTYPE, GETLASTMODIFIED, HASCHILDREN, IS_READ_ONLY, ISCOLLECTION, ISFOLDER, ISROOT, ISVERSIONED, JCR_CONTENT, JCR_DATA, LOCKDISCOVERY, LOCKSCOPE, LOCKTYPE, MODIFICATION_PATTERN, ORDERING_TYPE, OWNER, PARENTNAME, RESOURCETYPE, SUPPORTEDLOCK, SUPPORTEDMETHODSET, WRITE |
| Constructor Summary | |
|---|---|
protected |
FileResource(int type,
URI identifier,
javax.jcr.Node node,
WebDavNamespaceContext namespaceContext)
|
|
FileResource(URI identifier,
javax.jcr.Node node,
WebDavNamespaceContext namespaceContext)
|
| Method Summary | |
|---|---|
protected javax.jcr.Node |
contentNode()
Returns the content node. |
protected javax.jcr.Property |
dataProperty()
Returns the data property. |
InputStream |
getContentAsStream()
Returns the content of node as stream. |
String |
getContentAsText()
Returns the content of node as text. |
Set<org.exoplatform.common.util.HierarchicalProperty> |
getProperties(boolean namesOnly)
|
org.exoplatform.common.util.HierarchicalProperty |
getProperty(QName name)
|
boolean |
isCollection()
|
boolean |
isTextContent()
if the content of node is text. |
| Methods inherited from class org.exoplatform.services.jcr.webdav.resource.GenericResource |
|---|
getIdentifier, getNamespaceContext, getType, lockDiscovery, supportedLock, supportedMethodSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Set<String> FILE_SKIP
protected static final Set<String> CONTENT_SKIP
protected final javax.jcr.Node node
| Constructor Detail |
|---|
public FileResource(URI identifier,
javax.jcr.Node node,
WebDavNamespaceContext namespaceContext)
throws IllegalResourceTypeException,
javax.jcr.RepositoryException
identifier - resource identifiernode - nodenamespaceContext - namespace context
IllegalResourceTypeException - IllegalResourceTypeException
javax.jcr.RepositoryException - RepositoryException
protected FileResource(int type,
URI identifier,
javax.jcr.Node node,
WebDavNamespaceContext namespaceContext)
throws IllegalResourceTypeException,
javax.jcr.RepositoryException
type - resource typeidentifier - resource identifiernode - nodenamespaceContext - namespace context
IllegalResourceTypeException - {@link IllegalResourceTypeException
javax.jcr.RepositoryException - RepositoryException| Method Detail |
|---|
public Set<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly)
throws javax.jcr.PathNotFoundException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
getProperties in interface ResourcegetProperties in class GenericResourcenamesOnly - - if true "empty" properties will be returned (w/o values
inside)
javax.jcr.RepositoryException - RepositoryException
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
public org.exoplatform.common.util.HierarchicalProperty getProperty(QName name)
throws javax.jcr.PathNotFoundException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
name - property name
javax.jcr.PathNotFoundException - PathNotFoundException
javax.jcr.AccessDeniedException - AccessDeniedException
javax.jcr.RepositoryException - RepositoryExceptionpublic boolean isCollection()
public String getContentAsText()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - RepositoryException
public InputStream getContentAsStream()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - RepositoryExceptionpublic boolean isTextContent()
protected javax.jcr.Node contentNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - RepositoryException
protected javax.jcr.Property dataProperty()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - RepositoryException
|
eXo JCR :: Component :: Webdav Service 1.15.4-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||