public abstract class GenericResource extends Object implements Resource
| Modifier and Type | Field and Description |
|---|---|
protected URI |
identifier
Resource identifier.
|
protected WebDavNamespaceContext |
namespaceContext
Namespace context.
|
protected static Set<QName> |
PRESET_PROP
Properties which are set by JCR.
|
protected int |
type
Resource type.
|
COLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILECHILDCOUNT, 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 and Description |
|---|
GenericResource(int type,
URI identifier,
WebDavNamespaceContext namespaceContext) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getIdentifier() |
WebDavNamespaceContext |
getNamespaceContext() |
Set<org.exoplatform.common.util.HierarchicalProperty> |
getProperties(boolean namesOnly) |
int |
getType() |
static org.exoplatform.common.util.HierarchicalProperty |
lockDiscovery(String token,
String lockOwner,
String timeOut)
Returns the information about lock.
|
protected org.exoplatform.common.util.HierarchicalProperty |
supportedLock()
The information about supported locks.
|
protected org.exoplatform.common.util.HierarchicalProperty |
supportedMethodSet()
The information about supported methods.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, isCollectionprotected final URI identifier
protected final int type
protected final WebDavNamespaceContext namespaceContext
public GenericResource(int type,
URI identifier,
WebDavNamespaceContext namespaceContext)
type - resource typeidentifier - resource identifiernamespaceContext - namespace contextpublic final URI getIdentifier()
getIdentifier in interface Resourcepublic final int getType()
public Set<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly) throws javax.jcr.RepositoryException
getProperties in interface ResourcenamesOnly - - if true "empty" properties will be returned (w/o values
inside)javax.jcr.RepositoryException - RepositoryExceptionpublic final WebDavNamespaceContext getNamespaceContext()
getNamespaceContext in interface Resourcepublic static org.exoplatform.common.util.HierarchicalProperty lockDiscovery(String token, String lockOwner, String timeOut)
token - lock tokenlockOwner - lockownertimeOut - lock timeoutprotected org.exoplatform.common.util.HierarchicalProperty supportedLock()
protected org.exoplatform.common.util.HierarchicalProperty supportedMethodSet()
Copyright © 2016 eXo Platform SAS. All Rights Reserved.