Class 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 Detail

      • PlainOcflObjectSessionFactory

        public PlainOcflObjectSessionFactory​(edu.wisc.library.ocfl.api.MutableOcflRepository ocflRepo,
                                             Path stagingRoot,
                                             String defaultVersionMessage,
                                             String defaultVersionUserName,
                                             String defaultVersionUserAddress)
        Parameters:
        ocflRepo - the OCFL client
        stagingRoot - the root staging directory
        defaultVersionMessage - OCFL version message
        defaultVersionUserName - OCFL version user
        defaultVersionUserAddress - OCFL version user address
    • Method Detail

      • newSession

        public org.fcrepo.storage.ocfl.OcflObjectSession newSession​(String ocflObjectId)
        Specified by:
        newSession in interface org.fcrepo.storage.ocfl.OcflObjectSessionFactory
      • close

        public void close()
        Specified by:
        close in interface org.fcrepo.storage.ocfl.OcflObjectSessionFactory