Package org.fcrepo.kernel.api.services
Interface MembershipService
-
public interface MembershipService
Service used to manage membership properties of resources- Author:
- bbpennel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommitTransaction(String txId)Commit any pending membership changes.RdfStreamgetMembership(String txId, FedoraId fedoraId)Return an RdfStream of membership relations of which the provided resource is the subject.voidpopulateMembershipHistory(String txId, FedoraId containerId)Regenerate the membership history for specified Direct or Indirect container.voidreset()Truncates the membership index.voidresourceCreated(String txId, FedoraId fedoraId)Update membership properties based on the creation of the specified resourcevoidresourceDeleted(String txId, FedoraId fedoraId)Update membership properties based on the deletion of the specified resourcevoidresourceModified(String txId, FedoraId fedoraId)Update membership properties based on the modification of the specified resourcevoidrollbackTransaction(String txId)Rollback any pending membership changes.
-
-
-
Method Detail
-
getMembership
RdfStream getMembership(String txId, FedoraId fedoraId)
Return an RdfStream of membership relations of which the provided resource is the subject.- Parameters:
txId- transaction idfedoraId- the resource to get membership relations for.- Returns:
- RdfStream of membership relations.
-
resourceCreated
void resourceCreated(String txId, FedoraId fedoraId)
Update membership properties based on the creation of the specified resource- Parameters:
txId- transaction idfedoraId- ID of the object created
-
resourceModified
void resourceModified(String txId, FedoraId fedoraId)
Update membership properties based on the modification of the specified resource- Parameters:
txId- transaction idfedoraId- ID of the object modified
-
resourceDeleted
void resourceDeleted(String txId, FedoraId fedoraId)
Update membership properties based on the deletion of the specified resource- Parameters:
txId- transaction idfedoraId- ID of the object deleted
-
populateMembershipHistory
void populateMembershipHistory(String txId, FedoraId containerId)
Regenerate the membership history for specified Direct or Indirect container.- Parameters:
txId- transaction idcontainerId- ID of the container
-
commitTransaction
void commitTransaction(String txId)
Commit any pending membership changes.- Parameters:
txId- the transaction id.
-
rollbackTransaction
void rollbackTransaction(String txId)
Rollback any pending membership changes.- Parameters:
txId- the transaction id.
-
reset
void reset()
Truncates the membership index. This should only be called when rebuilding the index.
-
-