Interface Persister

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean handle​(org.fcrepo.kernel.api.operations.ResourceOperation operation)
      The method returns true if the operation can be persisted by this persister.
      void persist​(OcflPersistentStorageSession session, org.fcrepo.kernel.api.operations.ResourceOperation operation)
      The persistence handling for the given operation.
    • Method Detail

      • handle

        boolean handle​(org.fcrepo.kernel.api.operations.ResourceOperation operation)
        The method returns true if the operation can be persisted by this persister.
        Parameters:
        operation - the operation to persist
        Returns:
        true or false
      • persist

        void persist​(OcflPersistentStorageSession session,
                     org.fcrepo.kernel.api.operations.ResourceOperation operation)
              throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
        The persistence handling for the given operation.
        Parameters:
        session - The persistent storage session
        operation - The operation and associated data need to perform the operation.
        Throws:
        org.fcrepo.persistence.api.exceptions.PersistentStorageException - on failure