Package org.fcrepo.persistence.ocfl.api
Interface Persister
- All Known Implementing Classes:
CreateVersionPersister,OverwriteRdfTombstonePersister,UpdateNonRdfSourceHeadersPersister
public interface Persister
- Since:
- 6.0.0
- Author:
- dbernstein
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(org.fcrepo.kernel.api.operations.ResourceOperation operation) The method returns true if the operation can be persisted by this persister.voidpersist(OcflPersistentStorageSession session, org.fcrepo.kernel.api.operations.ResourceOperation operation) The persistence handling for the given operation.
-
Method Details
-
handle
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 sessionoperation- The operation and associated data need to perform the operation.- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException- on failure
-