Class ArchiveUnitUpdateUtils


  • public class ArchiveUnitUpdateUtils
    extends java.lang.Object
    ArchiveUnitUpdateUtils in order to deal with common update operations for units
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void commitLifecycle​(java.lang.String processId, java.lang.String archiveUnitId, LogbookLifeCyclesClient logbookLifeCycleClient)
      Method used to commit lifecycle
      java.lang.String getDiffMessageFor​(com.fasterxml.jackson.databind.JsonNode diff, java.lang.String unitId)
      Common method to get the diff message
      void logLifecycle​(WorkerParameters params, java.lang.String auGuid, StatusCode code, java.lang.String evDetData, LogbookLifeCyclesClient logbookLifeCycleClient)
      Method used to log lifecycles unit
      boolean updateCategoryRules​(com.fasterxml.jackson.databind.node.ArrayNode rulesForCategory, java.util.List<com.fasterxml.jackson.databind.JsonNode> listRulesByType, UpdateMultiQuery query, java.lang.String key)
      Method used to get update query for an archive unit
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArchiveUnitUpdateUtils

        public ArchiveUnitUpdateUtils()
    • Method Detail

      • updateCategoryRules

        public boolean updateCategoryRules​(com.fasterxml.jackson.databind.node.ArrayNode rulesForCategory,
                                           java.util.List<com.fasterxml.jackson.databind.JsonNode> listRulesByType,
                                           UpdateMultiQuery query,
                                           java.lang.String key)
                                    throws ProcessingException
        Method used to get update query for an archive unit
        Parameters:
        rulesForCategory -
        listRulesByType -
        query -
        key -
        Returns:
        Throws:
        ProcessingException
      • logLifecycle

        public void logLifecycle​(WorkerParameters params,
                                 java.lang.String auGuid,
                                 StatusCode code,
                                 java.lang.String evDetData,
                                 LogbookLifeCyclesClient logbookLifeCycleClient)
        Method used to log lifecycles unit
        Parameters:
        params -
        auGuid -
        code -
        evDetData -
        logbookLifeCycleClient -
      • commitLifecycle

        public void commitLifecycle​(java.lang.String processId,
                                    java.lang.String archiveUnitId,
                                    LogbookLifeCyclesClient logbookLifeCycleClient)
        Method used to commit lifecycle
        Parameters:
        processId -
        archiveUnitId -
        logbookLifeCycleClient -