public interface AVMLockingService
| Modifier and Type | Interface and Description |
|---|---|
static class |
AVMLockingService.LockState
Enumeration of the state of a lock's with respect to a specific user.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getLockData(String avmStore,
String path)
Get the data associated with a lock
|
String |
getLockOwner(String avmStore,
String path)
Get the current holder of a lock on AVM store path
|
AVMLockingService.LockState |
getLockState(String avmStore,
String path,
String lockOwner)
Get the state of a lock with respect to a given AVM store, path and user
|
boolean |
hasAccess(org.alfresco.service.cmr.repository.NodeRef webProject,
String avmPath,
String lockOwner)
Deprecated.
This will move into a WCMLockingService
|
boolean |
hasAccess(String webProject,
String avmPath,
String lockOwner)
Deprecated.
This will move into a WCMLockingService
|
void |
lock(String avmStore,
String path,
String lockOwner,
Map<String,String> lockData)
Creates a lock of the given type on a path within an AVM store.
|
boolean |
modifyLock(String avmStore,
String path,
String lockOwner,
String newAvmStore,
String newPath,
Map<String,String> lockData)
Modify a lock if it exists or do nothing if it doesn't.
|
void |
removeLock(String avmStore,
String path)
Remove a lock.
|
void |
removeLocks(String avmStore)
Remove all locks for a specific AVM store
|
void |
removeLocks(String avmStore,
Map<String,String> lockDataToMatch)
Remove all locks for a specific AVM store
that also optionally match a map of lock data entries.
|
void |
removeLocks(String avmStore,
String dirPath,
Map<String,String> lockDataToMatch)
Remove all locks for a specific AVM store that start with a given directory path
that also optionally match a map of lock data entries.
|
void lock(String avmStore, String path, String lockOwner, Map<String,String> lockData)
avmStore - the name of the AVM storepath - the relative path of the locklockOwner - the user taking the locklockData - additional data to append to the lockboolean modifyLock(String avmStore, String path, String lockOwner, String newAvmStore, String newPath, Map<String,String> lockData)
avmStore - the name of the AVM storepath - the relative path of the locklockOwner - the user taking the lock and who must also own the existing locknewAvmStore - the name of the new AVM storenewPath - the new relative path of the locklockData - the new additional data to append to the lockString getLockOwner(String avmStore, String path)
avmStore - the name of the AVM storepath - the relative path of the lockAVMLockingService.LockState getLockState(String avmStore, String path, String lockOwner)
avmStore - the name of the AVM storepath - the relative path of the locklockOwner - the user who might own the lockMap<String,String> getLockData(String avmStore, String path)
avmStore - the name of the AVM storepath - the relative path of the lockvoid removeLock(String avmStore, String path)
webProject - the name of the web projectpath - the relative path of the lockvoid removeLocks(String avmStore)
avmStore - the name of the AVM storevoid removeLocks(String avmStore, String dirPath, Map<String,String> lockDataToMatch)
avmStore - the name of the AVM storedirPath - optional - start with given directory path or null to match alllockDataToMatch - optional - lock data to match (note: all entries must match) or null/empty to match allvoid removeLocks(String avmStore, Map<String,String> lockDataToMatch)
avmStore - the name of the AVM storelockDataToMatch - optional - lock data to match (note: all entries must match) or null/empty to match allboolean hasAccess(String webProject, String avmPath, String lockOwner)
webProject - the name of the WCM projectpath - the relative path of the locklockOwner - the user to checkboolean hasAccess(org.alfresco.service.cmr.repository.NodeRef webProject,
String avmPath,
String lockOwner)
webProject - the name of the WCM projectpath - the relative path of the locklockOwner - the user to checkCopyright © 2005–2014 Alfresco Software. All rights reserved.