Interface MembershipService


  • public interface MembershipService
    Service used to manage membership properties of resources
    Author:
    bbpennel
    • 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 id
        fedoraId - 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 id
        fedoraId - 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 id
        fedoraId - 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 id
        fedoraId - 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 id
        containerId - 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.