|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.simple.DavResourceImpl
org.apache.jackrabbit.webdav.simple.DeltaVResourceImpl
public class DeltaVResourceImpl
The DeltaVResourceImpl encapsulates the functionality common to all
DeltaV compliant resources.
| Field Summary | |
|---|---|
protected SupportedReportSetProperty |
supportedReports
|
| Fields inherited from class org.apache.jackrabbit.webdav.simple.DavResourceImpl |
|---|
COMPLIANCE_CLASSES, METHODS, properties, propsInitialized |
| Fields inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource |
|---|
METHODS, METHODS_INCL_MKWORKSPACE |
| Constructor Summary | |
|---|---|
DeltaVResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
boolean isCollection)
|
|
DeltaVResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
javax.jcr.Item item)
|
|
| Method Summary | |
|---|---|
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()
|
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)
|
DavResource[] |
getReferenceResources(DavPropertyName hrefPropertyName)
Return an array of DavResource objects that are referenced
by the property with the specified name. |
Report |
getReport(ReportInfo reportInfo)
|
protected void |
initProperties()
Fill the property set for this resource. |
protected void |
initSupportedReports()
Initialize the supported reports field |
| Methods inherited from class org.apache.jackrabbit.webdav.simple.DavResourceImpl |
|---|
addLockManager, addMember, alterProperties, 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, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.webdav.DavResource |
|---|
addLockManager, addMember, alterProperties, 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, unlock |
| Field Detail |
|---|
protected SupportedReportSetProperty supportedReports
| Constructor Detail |
|---|
public DeltaVResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
javax.jcr.Item item)
throws DavException
DavException
public DeltaVResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
boolean isCollection)
throws DavException
DavException| Method Detail |
|---|
public String getComplianceClass()
getComplianceClass in interface DavResourcegetComplianceClass in class DavResourceImplDavResource.getComplianceClass()public OptionsResponse getOptionResponse(OptionsInfo optionsInfo)
getOptionResponse in interface DeltaVResourceoptionsInfo -
nullDeltaVResource.getOptionResponse(org.apache.jackrabbit.webdav.version.OptionsInfo)
public Report getReport(ReportInfo reportInfo)
throws DavException
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 -
DavResources
DavExceptionDeltaVResource.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 -
DavResource
DavException
protected 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 DavResourceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||