Package org.fcrepo.kernel.api.services
Interface Service<T>
public interface Service<T>
- Since:
- Feb 21, 2014
- Author:
- bbpennel, barmintor
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexists(Transaction transaction, String path) Test whether T exists at the given path in the repositoryfind(Transaction transaction, String path) Retrieve an existing T instance by transaction and pathfindOrCreate(Transaction transaction, String path) Retrieve a T instance by transaction and path
-
Method Details
-
exists
Test whether T exists at the given path in the repository- Parameters:
transaction- the transactionpath- the path- Returns:
- whether T exists at the given path
-
find
Retrieve an existing T instance by transaction and path- Parameters:
transaction- the transactionpath- the path to the node- Returns:
- retrieved T
-
findOrCreate
Retrieve a T instance by transaction and path- Parameters:
transaction- the transactionpath- the path to the node- Returns:
- retrieved T
-