Interface Persister

All Known Implementing Classes:
CreateVersionPersister, OverwriteRdfTombstonePersister, UpdateNonRdfSourceHeadersPersister

public interface Persister
Since:
6.0.0
Author:
dbernstein
  • Method Summary

    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 Details

    • 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