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 booleanhandle(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 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 sessionoperation- The operation and associated data need to perform the operation.- Throws:
org.fcrepo.persistence.api.exceptions.PersistentStorageException- on failure
-
-