public class ArchivaDavResource extends Object implements org.apache.jackrabbit.webdav.DavResource
Modifier and Type | Field and Description |
---|---|
static String |
COMPLIANCE_CLASS |
static String |
HIDDEN_PATH_PREFIX |
Constructor and Description |
---|
ArchivaDavResource(StorageAsset localResource,
String logicalResource,
RepositoryStorage repositoryStorage,
org.apache.jackrabbit.webdav.DavSession session,
ArchivaDavResourceLocator locator,
org.apache.jackrabbit.webdav.DavResourceFactory factory,
MimeTypes mimeTypes,
List<AuditListener> auditListeners,
RepositoryArchivaTaskScheduler scheduler) |
ArchivaDavResource(StorageAsset localResource,
String logicalResource,
RepositoryStorage repositoryStorage,
String remoteAddr,
String principal,
org.apache.jackrabbit.webdav.DavSession session,
ArchivaDavResourceLocator locator,
org.apache.jackrabbit.webdav.DavResourceFactory factory,
MimeTypes mimeTypes,
List<AuditListener> auditListeners,
RepositoryArchivaTaskScheduler scheduler) |
Modifier and Type | Method and Description |
---|---|
void |
addLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockManager) |
void |
addMember(org.apache.jackrabbit.webdav.DavResource resource,
org.apache.jackrabbit.webdav.io.InputContext inputContext) |
org.apache.jackrabbit.webdav.MultiStatusResponse |
alterProperties(org.apache.jackrabbit.webdav.property.DavPropertySet setProperties,
org.apache.jackrabbit.webdav.property.DavPropertyNameSet removePropertyNames) |
org.apache.jackrabbit.webdav.MultiStatusResponse |
alterProperties(List changeList) |
void |
copy(org.apache.jackrabbit.webdav.DavResource destination,
boolean shallow) |
boolean |
exists() |
StorageAsset |
getAsset() |
org.apache.jackrabbit.webdav.DavResource |
getCollection() |
String |
getComplianceClass() |
String |
getDisplayName() |
org.apache.jackrabbit.webdav.DavResourceFactory |
getFactory() |
String |
getHref() |
org.apache.jackrabbit.webdav.DavResourceLocator |
getLocator() |
org.apache.jackrabbit.webdav.lock.ActiveLock |
getLock(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope) |
org.apache.jackrabbit.webdav.lock.ActiveLock[] |
getLocks() |
org.apache.jackrabbit.webdav.DavResourceIterator |
getMembers() |
long |
getModificationTime() |
org.apache.jackrabbit.webdav.property.DavPropertySet |
getProperties() |
org.apache.jackrabbit.webdav.property.DavProperty |
getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName name) |
org.apache.jackrabbit.webdav.property.DavPropertyName[] |
getPropertyNames() |
String |
getResourcePath() |
org.apache.jackrabbit.webdav.DavSession |
getSession() |
String |
getSupportedMethods() |
boolean |
hasLock(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope) |
protected org.apache.jackrabbit.webdav.property.DavPropertySet |
initProperties()
Fill the set of properties
|
boolean |
isCollection() |
boolean |
isLockable(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope) |
org.apache.jackrabbit.webdav.lock.ActiveLock |
lock(org.apache.jackrabbit.webdav.lock.LockInfo lockInfo) |
void |
move(org.apache.jackrabbit.webdav.DavResource destination) |
org.apache.jackrabbit.webdav.lock.ActiveLock |
refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo lockInfo,
String lockToken) |
void |
removeMember(org.apache.jackrabbit.webdav.DavResource member) |
void |
removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName) |
void |
setProperty(org.apache.jackrabbit.webdav.property.DavProperty property) |
void |
spool(org.apache.jackrabbit.webdav.io.OutputContext outputContext) |
void |
unlock(String lockToken) |
public static final String HIDDEN_PATH_PREFIX
public static final String COMPLIANCE_CLASS
public ArchivaDavResource(StorageAsset localResource, String logicalResource, RepositoryStorage repositoryStorage, org.apache.jackrabbit.webdav.DavSession session, ArchivaDavResourceLocator locator, org.apache.jackrabbit.webdav.DavResourceFactory factory, MimeTypes mimeTypes, List<AuditListener> auditListeners, RepositoryArchivaTaskScheduler scheduler) throws LayoutException
LayoutException
public ArchivaDavResource(StorageAsset localResource, String logicalResource, RepositoryStorage repositoryStorage, String remoteAddr, String principal, org.apache.jackrabbit.webdav.DavSession session, ArchivaDavResourceLocator locator, org.apache.jackrabbit.webdav.DavResourceFactory factory, MimeTypes mimeTypes, List<AuditListener> auditListeners, RepositoryArchivaTaskScheduler scheduler) throws LayoutException
LayoutException
public String getComplianceClass()
getComplianceClass
in interface org.apache.jackrabbit.webdav.DavResource
public String getSupportedMethods()
getSupportedMethods
in interface org.apache.jackrabbit.webdav.DavResource
public boolean exists()
exists
in interface org.apache.jackrabbit.webdav.DavResource
public boolean isCollection()
isCollection
in interface org.apache.jackrabbit.webdav.DavResource
public String getDisplayName()
getDisplayName
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.DavResourceLocator getLocator()
getLocator
in interface org.apache.jackrabbit.webdav.DavResource
public String getResourcePath()
getResourcePath
in interface org.apache.jackrabbit.webdav.DavResource
public String getHref()
getHref
in interface org.apache.jackrabbit.webdav.DavResource
public long getModificationTime()
getModificationTime
in interface org.apache.jackrabbit.webdav.DavResource
public void spool(org.apache.jackrabbit.webdav.io.OutputContext outputContext) throws IOException
spool
in interface org.apache.jackrabbit.webdav.DavResource
IOException
public org.apache.jackrabbit.webdav.property.DavPropertyName[] getPropertyNames()
getPropertyNames
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.property.DavProperty getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName name)
getProperty
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.property.DavPropertySet getProperties()
getProperties
in interface org.apache.jackrabbit.webdav.DavResource
public void setProperty(org.apache.jackrabbit.webdav.property.DavProperty property) throws org.apache.jackrabbit.webdav.DavException
setProperty
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public void removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName) throws org.apache.jackrabbit.webdav.DavException
removeProperty
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public org.apache.jackrabbit.webdav.MultiStatusResponse alterProperties(org.apache.jackrabbit.webdav.property.DavPropertySet setProperties, org.apache.jackrabbit.webdav.property.DavPropertyNameSet removePropertyNames) throws org.apache.jackrabbit.webdav.DavException
org.apache.jackrabbit.webdav.DavException
public org.apache.jackrabbit.webdav.MultiStatusResponse alterProperties(List changeList) throws org.apache.jackrabbit.webdav.DavException
alterProperties
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public org.apache.jackrabbit.webdav.DavResource getCollection()
getCollection
in interface org.apache.jackrabbit.webdav.DavResource
public void addMember(org.apache.jackrabbit.webdav.DavResource resource, org.apache.jackrabbit.webdav.io.InputContext inputContext) throws org.apache.jackrabbit.webdav.DavException
addMember
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public StorageAsset getAsset()
public org.apache.jackrabbit.webdav.DavResourceIterator getMembers()
getMembers
in interface org.apache.jackrabbit.webdav.DavResource
public void removeMember(org.apache.jackrabbit.webdav.DavResource member) throws org.apache.jackrabbit.webdav.DavException
removeMember
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public void move(org.apache.jackrabbit.webdav.DavResource destination) throws org.apache.jackrabbit.webdav.DavException
move
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public void copy(org.apache.jackrabbit.webdav.DavResource destination, boolean shallow) throws org.apache.jackrabbit.webdav.DavException
copy
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public boolean isLockable(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)
isLockable
in interface org.apache.jackrabbit.webdav.DavResource
public boolean hasLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)
hasLock
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.lock.ActiveLock getLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope)
getLock
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.lock.ActiveLock[] getLocks()
getLocks
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.lock.ActiveLock lock(org.apache.jackrabbit.webdav.lock.LockInfo lockInfo) throws org.apache.jackrabbit.webdav.DavException
lock
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public org.apache.jackrabbit.webdav.lock.ActiveLock refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo lockInfo, String lockToken) throws org.apache.jackrabbit.webdav.DavException
refreshLock
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public void unlock(String lockToken) throws org.apache.jackrabbit.webdav.DavException
unlock
in interface org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavException
public void addLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockManager)
addLockManager
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.DavResourceFactory getFactory()
getFactory
in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.DavSession getSession()
getSession
in interface org.apache.jackrabbit.webdav.DavResource
protected org.apache.jackrabbit.webdav.property.DavPropertySet initProperties()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.