Interface IndexActionRegisterService

  • All Known Implementing Classes:
    IndexActionRegisterServiceImpl

    public interface IndexActionRegisterService
    Registers changes made to an indexed repository that need to be fixed by indexing the relevant data.
    • Method Detail

      • addExcludedEntity

        void addExcludedEntity​(String entityFullName)
        Excludes an entity from being indexed.
        Parameters:
        entityFullName - fully qualified name of the entity to exclude
      • register

        void register​(EntityType entityType,
                      Object entityId)
        Log and create locks for an add/update/delete operation on a Repository
        Parameters:
        entityId - the ID of the entity, may be null to indicate change to entire repository
      • storeIndexActions

        void storeIndexActions​(String transactionId)
        Stores the index actions in the repository. Creates a ReindexActionJob to group them by. storeIndexActions uses a set as optimization to remove the double index actions before the index actions are stored in database.
        Parameters:
        transactionId - ID for the transaction the index actions were registered under
      • forgetIndexActions

        boolean forgetIndexActions​(String transactionId)
        Removes all index actions registered for a transaction.
        Parameters:
        transactionId - ID for the transaction the index actions were registered under
        Returns:
        boolean indicating if any work was present