public interface PathLockManager
Modifier and Type | Interface and Description |
---|---|
static interface |
PathLockManager.AcquiredLock
An interface representing a lock (comparable to that defined in
java.util.concurrent.locks) that has been acquired.
|
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.
|
PathLockManager.AcquiredLock lockForRead(String path)
path
- the path to a resource to be viewedPathLockManager.AcquiredLock lockForWrite(String path, FedoraSession session, NodeService nodeService)
path
- the path to a resource to be created (may involve implicitly created
resources at parent paths)session
- the current sessionnodeService
- the repository NodeService implementationPathLockManager.AcquiredLock lockForDelete(String path)
path
- the path to a resource to be deleted (may imply the deletion of
all descendant resources)Copyright © 2013–2018 DuraSpace, Inc.. All rights reserved.