Package org.fcrepo.persistence.ocfl.impl
Class OcflPersistentSessionManager
- java.lang.Object
-
- org.fcrepo.persistence.ocfl.impl.OcflPersistentSessionManager
-
- All Implemented Interfaces:
PersistentStorageSessionManager
@Component public class OcflPersistentSessionManager extends Object implements PersistentStorageSessionManager
OCFL implementation of PersistentStorageSessionManager- Since:
- 2019-09-20
- Author:
- whikloj, dbernstein
-
-
Constructor Summary
Constructors Constructor Description OcflPersistentSessionManager()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistentStorageSession
getReadOnlySession()
Retrieve a read-only PersistentStorageSession.PersistentStorageSession
getSession(Transaction transaction)
Retrieve a PersistentStorageSession.PersistentStorageSession
removeSession(String sessionId)
Removes the indicated session.
-
-
-
Constructor Detail
-
OcflPersistentSessionManager
@Autowired public OcflPersistentSessionManager()
Default constructor
-
-
Method Detail
-
getSession
public PersistentStorageSession getSession(Transaction transaction)
Description copied from interface:PersistentStorageSessionManager
Retrieve a PersistentStorageSession.- Specified by:
getSession
in interfacePersistentStorageSessionManager
- Parameters:
transaction
- the externally generated transaction.- Returns:
- the PersistentStorageSession instance.
-
getReadOnlySession
public PersistentStorageSession getReadOnlySession()
Description copied from interface:PersistentStorageSessionManager
Retrieve a read-only PersistentStorageSession. Clients should expect invocation on storage modifying methods to throw exception.- Specified by:
getReadOnlySession
in interfacePersistentStorageSessionManager
- Returns:
- the PersistentStorageSession instance.
-
removeSession
public PersistentStorageSession removeSession(String sessionId)
Description copied from interface:PersistentStorageSessionManager
Removes the indicated session. If the session does not exist, null is returned.- Specified by:
removeSession
in interfacePersistentStorageSessionManager
- Parameters:
sessionId
- the id of the session to remove- Returns:
- the session, if it exists
-
-