|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.simple.DavResourceImpl
public class DavResourceImpl
DavResourceImpl implements a DavResource.
| Field Summary | |
|---|---|
static String |
COMPLIANCE_CLASSES
|
static String |
METHODS
|
protected DavPropertySet |
properties
|
protected boolean |
propsInitialized
|
| Constructor Summary | |
|---|---|
DavResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config)
Deprecated. |
|
DavResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
boolean isCollection)
Create a new DavResource. |
|
DavResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
javax.jcr.Node node)
Create a new DavResource. |
|
| Method Summary | |
|---|---|
void |
addLockManager(LockManager lockMgr)
|
void |
addMember(DavResource member,
InputContext inputContext)
Adds a new member to this resource. |
MultiStatusResponse |
alterProperties(DavPropertySet setProperties,
DavPropertyNameSet removePropertyNames)
|
MultiStatusResponse |
alterProperties(List changeList)
|
void |
bind(DavResource collection,
DavResource newBinding)
|
void |
copy(DavResource destination,
boolean shallow)
|
boolean |
exists()
|
DavResource |
getCollection()
|
String |
getComplianceClass()
|
String |
getDisplayName()
Returns the the last segment of the resource path. |
protected ExportContext |
getExportContext(OutputContext outputCtx)
Returns a new ExportContext |
DavResourceFactory |
getFactory()
|
String |
getHref()
|
protected ImportContext |
getImportContext(InputContext inputCtx,
String systemId)
Returns a new ImportContext |
DavResourceLocator |
getLocator()
|
ActiveLock |
getLock(Type type,
Scope scope)
|
ActiveLock[] |
getLocks()
|
DavResourceIterator |
getMembers()
|
long |
getModificationTime()
|
protected javax.jcr.Node |
getNode()
Returns the node that is wrapped by this resource. |
Set |
getParentElements()
|
DavPropertySet |
getProperties()
|
DavProperty |
getProperty(DavPropertyName name)
|
protected PropertyExportContext |
getPropertyExportContext()
Returns a new PropertyExportContext. |
protected PropertyImportContext |
getPropertyImportContext(List changeList)
Returns a new PropertyImportContext. |
DavPropertyName[] |
getPropertyNames()
|
String |
getResourcePath()
|
DavSession |
getSession()
|
String |
getSupportedMethods()
|
boolean |
hasLock(Type type,
Scope scope)
|
protected void |
initProperties()
Fill the set of properties |
boolean |
isCollection()
|
boolean |
isLockable(Type type,
Scope scope)
|
ActiveLock |
lock(LockInfo lockInfo)
|
void |
move(DavResource destination)
|
void |
rebind(DavResource collection,
DavResource newBinding)
|
ActiveLock |
refreshLock(LockInfo lockInfo,
String lockToken)
|
void |
removeMember(DavResource member)
|
void |
removeProperty(DavPropertyName propertyName)
|
void |
setProperty(DavProperty property)
|
void |
spool(OutputContext outputContext)
If this resource exists and the specified context is not null
this implementation build a new ExportContext based on the specified
context and forwards the export to its IOManager. |
void |
unlock(String lockToken)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String METHODS
public static final String COMPLIANCE_CLASSES
protected DavPropertySet properties
protected boolean propsInitialized
| Constructor Detail |
|---|
public DavResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config)
throws DavException
DavResource.
locator - factory - session -
DavException
public DavResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
boolean isCollection)
throws DavException
DavResource.
locator - factory - session - config - isCollection -
DavException
public DavResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
javax.jcr.Node node)
throws DavException
DavResource.
locator - factory - session - config - node -
DavException| Method Detail |
|---|
public String getComplianceClass()
getComplianceClass in interface DavResourceDavResource.getComplianceClass()public String getSupportedMethods()
getSupportedMethods in interface DavResourceDavResource.getSupportedMethods()public boolean exists()
exists in interface DavResource)public boolean isCollection()
isCollection in interface DavResourceDavResource.isCollection()public DavResourceLocator getLocator()
getLocator in interface DavResourceDavResource.getLocator()public String getResourcePath()
getResourcePath in interface DavResourceDavResource.getResourcePath()public String getHref()
getHref in interface DavResourceDavResource.getHref()public String getDisplayName()
Note that this must not correspond to the name of the underlying repository item for two reasons:
getDisplayName in interface DavResourceDavResource.getDisplayName()public long getModificationTime()
getModificationTime in interface DavResourceDavResource.getModificationTime()
public void spool(OutputContext outputContext)
throws IOException
null
this implementation build a new ExportContext based on the specified
context and forwards the export to its IOManager. If the
IOManager.exportContent(ExportContext, DavResource) fails,
an IOException is thrown.
spool in interface DavResourceIOException - if the export fails.DavResource.spool(OutputContext),
ResourceConfig.getIOManager()public DavProperty getProperty(DavPropertyName name)
getProperty in interface DavResourceDavResource.getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName)public DavPropertySet getProperties()
getProperties in interface DavResourceDavResource.getProperties()public DavPropertyName[] getPropertyNames()
getPropertyNames in interface DavResourceDavResource.getPropertyNames()protected void initProperties()
public void setProperty(DavProperty property)
throws DavException
setProperty in interface DavResourceproperty -
DavExceptionDavResource.setProperty(org.apache.jackrabbit.webdav.property.DavProperty)
public void removeProperty(DavPropertyName propertyName)
throws DavException
removeProperty in interface DavResourcepropertyName -
DavExceptionDavResource.removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName)
public MultiStatusResponse alterProperties(DavPropertySet setProperties,
DavPropertyNameSet removePropertyNames)
throws DavException
alterProperties in interface DavResourceDavExceptionDavResource.alterProperties(DavPropertySet, DavPropertyNameSet)
public MultiStatusResponse alterProperties(List changeList)
throws DavException
alterProperties in interface DavResourceDavExceptionpublic DavResource getCollection()
getCollection in interface DavResourceDavResource.getCollection()public DavResourceIterator getMembers()
getMembers in interface DavResourceDavResource.getMembers()
public void addMember(DavResource member,
InputContext inputContext)
throws DavException
addMember in interface DavResourceDavExceptionDavResource.addMember(DavResource, org.apache.jackrabbit.webdav.io.InputContext)
public void removeMember(DavResource member)
throws DavException
removeMember in interface DavResourceDavExceptionDavResource.removeMember(DavResource)
public void move(DavResource destination)
throws DavException
move in interface DavResourceDavExceptionDavResource.move(DavResource)
public void copy(DavResource destination,
boolean shallow)
throws DavException
copy in interface DavResourceDavExceptionDavResource.copy(DavResource, boolean)
public boolean isLockable(Type type,
Scope scope)
isLockable in interface DavResourcetype - scope -
Type.WRITE and scope is Scope.EXCLUSIVEDavResource.isLockable(org.apache.jackrabbit.webdav.lock.Type, org.apache.jackrabbit.webdav.lock.Scope)
public boolean hasLock(Type type,
Scope scope)
hasLock in interface DavResourceDavResource.hasLock(org.apache.jackrabbit.webdav.lock.Type, org.apache.jackrabbit.webdav.lock.Scope)
public ActiveLock getLock(Type type,
Scope scope)
getLock in interface DavResourceDavResource.getLock(Type, Scope)public ActiveLock[] getLocks()
getLocks in interface DavResourceDavResource.getLocks()
public ActiveLock lock(LockInfo lockInfo)
throws DavException
lock in interface DavResourceDavExceptionDavResource.lock(LockInfo)
public ActiveLock refreshLock(LockInfo lockInfo,
String lockToken)
throws DavException
refreshLock in interface DavResourceDavExceptionDavResource.refreshLock(LockInfo, String)
public void unlock(String lockToken)
throws DavException
unlock in interface DavResourceDavExceptionDavResource.unlock(String)public void addLockManager(LockManager lockMgr)
addLockManager in interface DavResourceDavResource.addLockManager(org.apache.jackrabbit.webdav.lock.LockManager)public DavResourceFactory getFactory()
getFactory in interface DavResourceDavResource.getFactory()public DavSession getSession()
getSession in interface DavResourceDavResource.getSession()
public void bind(DavResource collection,
DavResource newBinding)
throws DavException
bind in interface BindableResourceDavExceptionBindableResource.rebind(DavResource, DavResource)
public void rebind(DavResource collection,
DavResource newBinding)
throws DavException
rebind in interface BindableResourceDavExceptionBindableResource.rebind(DavResource, DavResource)public Set getParentElements()
getParentElements in interface BindableResourceBindableResource.getParentElements()protected javax.jcr.Node getNode()
protected ImportContext getImportContext(InputContext inputCtx,
String systemId)
throws IOException
ImportContext
inputCtx - systemId -
ImportContext
IOException
protected ExportContext getExportContext(OutputContext outputCtx)
throws IOException
ExportContext
outputCtx -
ExportContext
IOExceptionprotected PropertyImportContext getPropertyImportContext(List changeList)
PropertyImportContext.
changeList -
PropertyImportContext.protected PropertyExportContext getPropertyExportContext()
PropertyExportContext.
PropertyExportContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||