@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)
PathLockManager
lockForRead
in interface PathLockManager
path
- the path to a resource to be viewedpublic PathLockManager.AcquiredLock lockForWrite(String path, FedoraSession session, NodeService nodeService)
PathLockManager
lockForWrite
in interface PathLockManager
path
- 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)
PathLockManager
lockForDelete
in interface PathLockManager
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.