Package org.fcrepo.persistence.ocfl.api
Interface Persister
-
- All Known Implementing Classes:
CreateVersionPersister
,UpdateNonRdfSourceHeadersPersister
public interface Persister
- Since:
- 6.0.0
- Author:
- dbernstein
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handle(ResourceOperation operation)
The method returns true if the operation can be persisted by this persister.void
persist(OcflPersistentStorageSession session, ResourceOperation operation)
The persistence handling for the given operation.
-
-
-
Method Detail
-
handle
boolean handle(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, ResourceOperation operation) throws 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:
PersistentStorageException
- on failure
-
-