@Component public class DefaultPathLockManager extends Object implements PathLockManager
PathLockManager.AcquiredLock| Constructor and Description |
|---|
DefaultPathLockManager() |
| Modifier and Type | Method and Description |
|---|---|
PathLockManager.AcquiredLock |
lockForDelete(String path)
Locks the necessary resources affected in order to safely delete a resource
at the given path.
|
PathLockManager.AcquiredLock |
lockForRead(String path)
Locks the necessary resources affected in order to safely view a resource
at the given path.
|
PathLockManager.AcquiredLock |
lockForWrite(String path,
FedoraSession session,
NodeService nodeService)
Locks the necessary resources affected in order to safely write to a resource
at the given path.
|
public DefaultPathLockManager()
public PathLockManager.AcquiredLock lockForRead(String path)
PathLockManagerlockForRead in interface PathLockManagerpath - the path to a resource to be viewedpublic PathLockManager.AcquiredLock lockForWrite(String path, FedoraSession session, NodeService nodeService)
PathLockManagerlockForWrite in interface PathLockManagerpath - the path to a resource to be created (may involve implicitly created
resources at parent paths)session - the current sessionnodeService - the repository NodeService implementationpublic PathLockManager.AcquiredLock lockForDelete(String path)
PathLockManagerlockForDelete in interface PathLockManagerpath - the path to a resource to be deleted (may imply the deletion of
all descendant resources)Copyright © 2013–2017 DuraSpace, Inc.. All rights reserved.