public class DeltaVResourceImpl extends DavResourceImpl implements DeltaVResource
DeltaVResourceImpl encapsulates the functionality common to all
DeltaV compliant resources.| Modifier and Type | Field and Description |
|---|---|
protected SupportedReportSetProperty |
supportedReports |
COMPLIANCE_CLASSES, METHODS, properties, propsInitializedMETHODS, METHODS_INCL_MKWORKSPACEJCR_AUTOCREATED, JCR_BASEVERSION, JCR_CHILD, JCR_CHILDNODEDEFINITION, JCR_CONTENT, JCR_CREATED, JCR_DATA, JCR_DEFAULTPRIMARYTYPE, JCR_DEFAULTVALUES, JCR_ENCODING, JCR_FROZENMIXINTYPES, JCR_FROZENNODE, JCR_FROZENPRIMARYTYPE, JCR_FROZENUUID, JCR_HASORDERABLECHILDNODES, JCR_ISCHECKEDOUT, JCR_ISMIXIN, JCR_LANGUAGE, JCR_LASTMODIFIED, JCR_LOCKISDEEP, JCR_LOCKOWNER, JCR_MANDATORY, JCR_MERGEFAILED, JCR_MIMETYPE, JCR_MIXINTYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODETYPENAME, JCR_ONPARENTVERSION, JCR_PATH, JCR_PREDECESSORS, JCR_PRIMARYITEMNAME, JCR_PRIMARYTYPE, JCR_PROPERTYDEFINITION, JCR_PROTECTED, JCR_REQUIREDPRIMARYTYPES, JCR_REQUIREDTYPE, JCR_ROOTVERSION, JCR_SAMENAMESIBLINGS, JCR_SCORE, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_SYSTEM, JCR_UUID, JCR_VALUECONSTRAINTS, JCR_VERSIONABLEUUID, JCR_VERSIONHISTORY, JCR_VERSIONLABELS, JCR_VERSIONSTORAGE, MIX_LOCKABLE, MIX_REFERENCEABLE, MIX_SHAREABLE, MIX_VERSIONABLE, NT_BASE, NT_CHILDNODEDEFINITION, NT_FILE, NT_FOLDER, NT_FROZENNODE, NT_HIERARCHYNODE, NT_LINKEDFILE, NT_NODETYPE, NT_PROPERTYDEFINITION, NT_QUERY, NT_RESOURCE, NT_UNSTRUCTURED, NT_VERSION, NT_VERSIONEDCHILD, NT_VERSIONHISTORY, NT_VERSIONLABELS| Constructor and Description |
|---|
DeltaVResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
boolean isCollection) |
DeltaVResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
javax.jcr.Item item) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWorkspace(DavResource workspace)
The JCR api does not provide methods to create new workspaces.
|
protected DavResource |
createResourceFromLocator(DavResourceLocator loc)
Create a new
DavResource from the given locator. |
String |
getComplianceClass()
Returns a comma separated list of all compliance classes the given
resource is fulfilling.
|
protected HrefProperty |
getHrefProperty(DavPropertyName name,
javax.jcr.Node[] values,
boolean isProtected,
boolean isCollection)
Returns a
HrefProperty with the
specified property name and values. |
protected DavResourceLocator |
getLocatorFromNode(javax.jcr.Node repositoryNode)
Build a new
DavResourceLocator from the given repository node. |
protected DavResourceLocator |
getLocatorFromNodePath(String nodePath)
Build a
DavResourceLocator from the given nodePath path. |
OptionsResponse |
getOptionResponse(OptionsInfo optionsInfo)
Retrieves the information requested in the OPTIONS request body and
returns the corresponding values.
|
DavResource[] |
getReferenceResources(DavPropertyName hrefPropertyName)
Return an array of
DavResource objects that are referenced
by the property with the specified name. |
Report |
getReport(ReportInfo reportInfo)
Runs the report specified by the given
ReportInfo. |
protected void |
initProperties()
Fill the property set for this resource.
|
protected void |
initSupportedReports()
Initialize the supported reports field
|
addLockManager, addMember, alterProperties, bind, copy, exists, getCollection, getDisplayName, getExportContext, getFactory, getHref, getImportContext, getLocator, getLock, getLocks, getMembers, getModificationTime, getNode, getParentElements, getProperties, getProperty, getPropertyExportContext, getPropertyImportContext, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, rebind, refreshLock, removeMember, removeProperty, setProperty, spool, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLockManager, addMember, alterProperties, copy, exists, getCollection, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getMembers, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, removeMember, removeProperty, setProperty, spool, unlockprotected SupportedReportSetProperty supportedReports
public DeltaVResourceImpl(DavResourceLocator locator, DavResourceFactory factory, DavSession session, ResourceConfig config, javax.jcr.Item item) throws DavException
DavExceptionpublic DeltaVResourceImpl(DavResourceLocator locator, DavResourceFactory factory, DavSession session, ResourceConfig config, boolean isCollection) throws DavException
DavExceptionpublic String getComplianceClass()
DavResourcegetComplianceClass in interface DavResourcegetComplianceClass in class DavResourceImplDavResource.getComplianceClass()public OptionsResponse getOptionResponse(OptionsInfo optionsInfo)
DeltaVResourcegetOptionResponse in interface DeltaVResourceoptionsInfo - nullDeltaVResource.getOptionResponse(org.apache.jackrabbit.webdav.version.OptionsInfo)public Report getReport(ReportInfo reportInfo) throws DavException
DeltaVResourceReportInfo.getReport in interface DeltaVResourcereportInfo - DavExceptionDeltaVResource.getReport(org.apache.jackrabbit.webdav.version.report.ReportInfo)public void addWorkspace(DavResource workspace) throws DavException
addWorkspace on this resource will always fail.addWorkspace in interface DeltaVResourceworkspace - DavException - Always throws.DeltaVResource.addWorkspace(org.apache.jackrabbit.webdav.DavResource)public DavResource[] getReferenceResources(DavPropertyName hrefPropertyName) throws DavException
DavResource objects that are referenced
by the property with the specified name.getReferenceResources in interface DeltaVResourcehrefPropertyName - DavResourcesDavExceptionDeltaVResource.getReferenceResources(org.apache.jackrabbit.webdav.property.DavPropertyName)protected DavResourceLocator getLocatorFromNodePath(String nodePath)
DavResourceLocator from the given nodePath path.nodePath - DavResourceLocatorDavLocatorFactory.createResourceLocator(String, String, String)protected DavResourceLocator getLocatorFromNode(javax.jcr.Node repositoryNode)
DavResourceLocator from the given repository node.repositoryNode - getLocatorFromNodePath(String)protected DavResource createResourceFromLocator(DavResourceLocator loc) throws DavException
DavResource from the given locator.loc - DavResourceDavExceptionprotected HrefProperty getHrefProperty(DavPropertyName name, javax.jcr.Node[] values, boolean isProtected, boolean isCollection)
HrefProperty with the
specified property name and values. Each node present in the specified
array is referenced in the resulting property.name - values - isProtected - protected void initSupportedReports()
protected void initProperties()
initProperties in class DavResourceImplCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.