Class GenericResource
java.lang.Object
org.exoplatform.services.jcr.webdav.resource.GenericResource
- All Implemented Interfaces:
Resource, PropertyConstants
- Direct Known Subclasses:
CollectionResource, FileResource, VersionHistoryResource, VersionResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final URIResource identifier.protected final WebDavNamespaceContextNamespace context.Properties which are set by JCR.protected final intResource type.Fields inherited from interface 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, WRITEFields inherited from interface Resource
COLLECTION, FILE, NULL, VERSION, VERSION_HISTORY, VERSIONED_COLLECTION, VERSIONED_FILE -
Constructor Summary
ConstructorsConstructorDescriptionGenericResource(int type, URI identifier, WebDavNamespaceContext namespaceContext) -
Method Summary
Modifier and TypeMethodDescriptiondecodeValue(String value) final URIfinal WebDavNamespaceContextSet<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly) final intgetType()static org.exoplatform.common.util.HierarchicalPropertylockDiscovery(String token, String lockOwner, String timeOut) Returns the information about lock.protected org.exoplatform.common.util.HierarchicalPropertyThe information about supported locks.protected org.exoplatform.common.util.HierarchicalPropertyThe information about supported methods.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Resource
getProperty, isCollection
-
Field Details
-
identifier
Resource identifier. -
type
protected final int typeResource type. -
namespaceContext
Namespace context. -
PRESET_PROP
-
-
Constructor Details
-
GenericResource
- Parameters:
type- resource typeidentifier- resource identifiernamespaceContext- namespace context
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin interfaceResource- Returns:
- resource identifier
-
getType
-
getProperties
public Set<org.exoplatform.common.util.HierarchicalProperty> getProperties(boolean namesOnly) throws javax.jcr.RepositoryException - Specified by:
getPropertiesin interfaceResource- Parameters:
namesOnly- - if true "empty" properties will be returned (w/o values inside)- Returns:
- all properties belonging to this resource
- Throws:
javax.jcr.RepositoryException-RepositoryException
-
getNamespaceContext
- Specified by:
getNamespaceContextin interfaceResource- Returns:
- namespace context for this resource
-
lockDiscovery
-
supportedLock
protected org.exoplatform.common.util.HierarchicalProperty supportedLock()The information about supported locks.- Returns:
- information about supported locks
-
supportedMethodSet
protected org.exoplatform.common.util.HierarchicalProperty supportedMethodSet()The information about supported methods.- Returns:
- information about supported methods
-
decodeValue
-