Interface MembershipService


public interface MembershipService
Service used to manage membership properties of resources
Author:
bbpennel
  • Method Details

    • getMembership

      RdfStream getMembership(Transaction transaction, FedoraId fedoraId)
      Return an RdfStream of membership relations of which the provided resource is the subject.
      Parameters:
      transaction - transaction
      fedoraId - the resource to get membership relations for.
      Returns:
      RdfStream of membership relations.
    • resourceCreated

      void resourceCreated(Transaction transaction, FedoraId fedoraId)
      Update membership properties based on the creation of the specified resource
      Parameters:
      transaction - transaction
      fedoraId - ID of the object created
    • resourceModified

      void resourceModified(Transaction transaction, FedoraId fedoraId)
      Update membership properties based on the modification of the specified resource
      Parameters:
      transaction - transaction
      fedoraId - ID of the object modified
    • resourceDeleted

      void resourceDeleted(Transaction transaction, FedoraId fedoraId)
      Update membership properties based on the deletion of the specified resource
      Parameters:
      transaction - transaction
      fedoraId - ID of the object deleted
    • populateMembershipHistory

      void populateMembershipHistory(Transaction transaction, FedoraId containerId)
      Regenerate the membership history for specified Direct or Indirect container.
      Parameters:
      transaction - transaction
      containerId - ID of the container
    • getLastUpdatedTimestamp

      Get the timestamp of the most recent member added or removed, or null if none.
      Parameters:
      transaction - transaction or null if none
      fedoraId - the resource id
      Returns:
      the timestamp or null
    • commitTransaction

      void commitTransaction(Transaction transaction)
      Commit any pending membership changes.
      Parameters:
      transaction - the transaction
    • rollbackTransaction

      void rollbackTransaction(Transaction transaction)
      Rollback any pending membership changes.
      Parameters:
      transaction - the transaction
    • clearAllTransactions

      Clear all transactions in the membership index.
    • reset

      void reset()
      Truncates the membership index. This should only be called when rebuilding the index.