Package org.fcrepo.persistence.ocfl.impl
Class OcflPersistentStorageSession
- java.lang.Object
-
- org.fcrepo.persistence.ocfl.impl.OcflPersistentStorageSession
-
- All Implemented Interfaces:
org.fcrepo.persistence.api.PersistentStorageSession
public class OcflPersistentStorageSession extends Object implements org.fcrepo.persistence.api.PersistentStorageSession
OCFL Persistent Storage class.- Since:
- 2019-09-20
- Author:
- whikloj
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOcflPersistentStorageSession(org.fcrepo.kernel.api.Transaction tx, FedoraToOcflObjectIndex fedoraOcflIndex, org.fcrepo.storage.ocfl.OcflObjectSessionFactory objectSessionFactory, ReindexService reindexService)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()InputStreamgetBinaryContent(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version)InputStreamgetBinaryRange(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version, long start, long end)org.fcrepo.kernel.api.models.ResourceHeadersgetHeaders(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version)StringgetId()org.fcrepo.kernel.api.RdfStreamgetTriples(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version)List<Instant>listVersions(org.fcrepo.kernel.api.identifiers.FedoraId fedoraIdentifier)voidpersist(org.fcrepo.kernel.api.operations.ResourceOperation operation)voidprepare()voidrollback()StringtoString()
-
-
-
Constructor Detail
-
OcflPersistentStorageSession
protected OcflPersistentStorageSession(org.fcrepo.kernel.api.Transaction tx, FedoraToOcflObjectIndex fedoraOcflIndex, org.fcrepo.storage.ocfl.OcflObjectSessionFactory objectSessionFactory, ReindexService reindexService)
Constructor- Parameters:
tx- the transaction.fedoraOcflIndex- the indexobjectSessionFactory- the session factory
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.fcrepo.persistence.api.PersistentStorageSession
-
persist
public void persist(org.fcrepo.kernel.api.operations.ResourceOperation operation) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
persistin interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
getHeaders
public org.fcrepo.kernel.api.models.ResourceHeaders getHeaders(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
getHeadersin interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
getTriples
public org.fcrepo.kernel.api.RdfStream getTriples(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
getTriplesin interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
listVersions
public List<Instant> listVersions(org.fcrepo.kernel.api.identifiers.FedoraId fedoraIdentifier) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
listVersionsin interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
getBinaryContent
public InputStream getBinaryContent(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
getBinaryContentin interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
getBinaryRange
public InputStream getBinaryRange(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version, long start, long end) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
getBinaryRangein interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
prepare
public void prepare()
- Specified by:
preparein interfaceorg.fcrepo.persistence.api.PersistentStorageSession
-
commit
public void commit() throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
commitin interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
rollback
public void rollback() throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
- Specified by:
rollbackin interfaceorg.fcrepo.persistence.api.PersistentStorageSession- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException
-
-