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 PersistentStorageSessiongetReadOnlySession()Retrieve a read-only PersistentStorageSession.PersistentStorageSessiongetSession(Transaction transaction)Retrieve a PersistentStorageSession.PersistentStorageSessionremoveSession(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:PersistentStorageSessionManagerRetrieve a PersistentStorageSession.- Specified by:
getSessionin interfacePersistentStorageSessionManager- Parameters:
transaction- the externally generated transaction.- Returns:
- the PersistentStorageSession instance.
-
getReadOnlySession
public PersistentStorageSession getReadOnlySession()
Description copied from interface:PersistentStorageSessionManagerRetrieve a read-only PersistentStorageSession. Clients should expect invocation on storage modifying methods to throw exception.- Specified by:
getReadOnlySessionin interfacePersistentStorageSessionManager- Returns:
- the PersistentStorageSession instance.
-
removeSession
public PersistentStorageSession removeSession(String sessionId)
Description copied from interface:PersistentStorageSessionManagerRemoves the indicated session. If the session does not exist, null is returned.- Specified by:
removeSessionin interfacePersistentStorageSessionManager- Parameters:
sessionId- the id of the session to remove- Returns:
- the session, if it exists
-
-