Package org.fcrepo.kernel.api.services
Interface Service<T>
-
public interface Service<T>
- Since:
- Feb 21, 2014
- Author:
- bbpennel, barmintor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists(Transaction transaction, String path)Test whether T exists at the given path in the repositoryTfind(Transaction transaction, String path)Retrieve an existing T instance by transaction and pathTfindOrCreate(Transaction transaction, String path)Retrieve a T instance by transaction and path
-
-
-
Method Detail
-
exists
boolean exists(Transaction transaction, String path)
Test whether T exists at the given path in the repository- Parameters:
path- the pathtransaction- the transaction- Returns:
- whether T exists at the given path
-
find
T find(Transaction transaction, String path)
Retrieve an existing T instance by transaction and path- Parameters:
path- the path to the nodetransaction- the transaction- Returns:
- retrieved T
-
findOrCreate
T findOrCreate(Transaction transaction, String path)
Retrieve a T instance by transaction and path- Parameters:
transaction- the transactionpath- the path to the node- Returns:
- retrieved T
-
-