Class PlainOcflObjectSessionFactory
- java.lang.Object
-
- org.fcrepo.migration.handlers.ocfl.PlainOcflObjectSessionFactory
-
- All Implemented Interfaces:
org.fcrepo.storage.ocfl.OcflObjectSessionFactory
public class PlainOcflObjectSessionFactory extends Object implements org.fcrepo.storage.ocfl.OcflObjectSessionFactory
Factory for PlainOcflObjectSessions- Author:
- pwinckles
-
-
Constructor Summary
Constructors Constructor Description PlainOcflObjectSessionFactory(edu.wisc.library.ocfl.api.MutableOcflRepository ocflRepo, Path stagingRoot, String defaultVersionMessage, String defaultVersionUserName, String defaultVersionUserAddress, boolean disableChecksumValidation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.fcrepo.storage.ocfl.OcflObjectSessionnewSession(String ocflObjectId)voiduseUnsafeWrite(boolean useUnsafeWrite)
-
-
-
Constructor Detail
-
PlainOcflObjectSessionFactory
public PlainOcflObjectSessionFactory(edu.wisc.library.ocfl.api.MutableOcflRepository ocflRepo, Path stagingRoot, String defaultVersionMessage, String defaultVersionUserName, String defaultVersionUserAddress, boolean disableChecksumValidation)
- Parameters:
ocflRepo- the OCFL clientstagingRoot- the root staging directorydefaultVersionMessage- OCFL version messagedefaultVersionUserName- OCFL version userdefaultVersionUserAddress- OCFL version user addressdisableChecksumValidation- whether to verify fedora3 checksums or not
-
-
Method Detail
-
newSession
public org.fcrepo.storage.ocfl.OcflObjectSession newSession(String ocflObjectId)
- Specified by:
newSessionin interfaceorg.fcrepo.storage.ocfl.OcflObjectSessionFactory
-
close
public void close()
- Specified by:
closein interfaceorg.fcrepo.storage.ocfl.OcflObjectSessionFactory
-
useUnsafeWrite
public void useUnsafeWrite(boolean useUnsafeWrite)
- Specified by:
useUnsafeWritein interfaceorg.fcrepo.storage.ocfl.OcflObjectSessionFactory
-
-