public class ArchivaDavResource extends Object implements org.apache.jackrabbit.webdav.DavResource
Modifier and Type | Field and Description |
---|---|
private List<AuditListener> |
auditListeners |
static String |
COMPLIANCE_CLASS |
private org.apache.jackrabbit.webdav.DavResourceFactory |
factory |
private FileLockManager |
fileLockManager |
static String |
HIDDEN_PATH_PREFIX |
private File |
localResource |
private ArchivaDavResourceLocator |
locator |
private org.apache.jackrabbit.webdav.lock.LockManager |
lockManager |
private org.slf4j.Logger |
log |
private String |
logicalResource |
private MimeTypes |
mimeTypes |
private String |
principal |
private org.apache.jackrabbit.webdav.property.DavPropertySet |
properties |
private String |
remoteAddr |
private ManagedRepository |
repository |
private ArchivaTaskScheduler |
scheduler |
private org.apache.jackrabbit.webdav.DavSession |
session |
Constructor and Description |
---|
ArchivaDavResource(String localResource,
String logicalResource,
ManagedRepository repository,
org.apache.jackrabbit.webdav.DavSession session,
ArchivaDavResourceLocator locator,
org.apache.jackrabbit.webdav.DavResourceFactory factory,
MimeTypes mimeTypes,
List<AuditListener> auditListeners,
RepositoryArchivaTaskScheduler scheduler,
FileLockManager fileLockManager) |
ArchivaDavResource(String localResource,
String logicalResource,
ManagedRepository repository,
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,
FileLockManager fileLockManager) |
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) |
private ArchivaDavResource |
checkDavResourceIsArchivaDavResource(org.apache.jackrabbit.webdav.DavResource resource) |
void |
copy(org.apache.jackrabbit.webdav.DavResource destination,
boolean shallow) |
boolean |
exists() |
org.apache.jackrabbit.webdav.DavResource |
getCollection() |
String |
getComplianceClass() |
String |
getDisplayName() |
org.apache.jackrabbit.webdav.DavResourceFactory |
getFactory() |
String |
getHref() |
File |
getLocalResource() |
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) |
private void |
queueRepositoryTask(File localFile) |
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) |
private void |
triggerAuditEvent(org.apache.jackrabbit.webdav.DavResource member,
String action) |
private void |
triggerAuditEvent(String remoteIP,
String repositoryId,
String resource,
String action) |
void |
unlock(String lockToken) |
public static final String HIDDEN_PATH_PREFIX
private final ArchivaDavResourceLocator locator
private final org.apache.jackrabbit.webdav.DavResourceFactory factory
private final File localResource
private final String logicalResource
private org.apache.jackrabbit.webdav.property.DavPropertySet properties
private org.apache.jackrabbit.webdav.lock.LockManager lockManager
private final org.apache.jackrabbit.webdav.DavSession session
private String remoteAddr
private final ManagedRepository repository
private List<AuditListener> auditListeners
public static final String COMPLIANCE_CLASS
private final ArchivaTaskScheduler scheduler
private final FileLockManager fileLockManager
private org.slf4j.Logger log
public ArchivaDavResource(String localResource, String logicalResource, ManagedRepository repository, org.apache.jackrabbit.webdav.DavSession session, ArchivaDavResourceLocator locator, org.apache.jackrabbit.webdav.DavResourceFactory factory, MimeTypes mimeTypes, List<AuditListener> auditListeners, RepositoryArchivaTaskScheduler scheduler, FileLockManager fileLockManager)
public ArchivaDavResource(String localResource, String logicalResource, ManagedRepository repository, 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, FileLockManager fileLockManager)
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 File getLocalResource()
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 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
private void triggerAuditEvent(org.apache.jackrabbit.webdav.DavResource member, String action) throws org.apache.jackrabbit.webdav.DavException
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()
private ArchivaDavResource checkDavResourceIsArchivaDavResource(org.apache.jackrabbit.webdav.DavResource resource) throws org.apache.jackrabbit.webdav.DavException
org.apache.jackrabbit.webdav.DavException
private void triggerAuditEvent(String remoteIP, String repositoryId, String resource, String action)
private void queueRepositoryTask(File localFile)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.