Class LogbookParameterHelper


  • public class LogbookParameterHelper
    extends java.lang.Object
    Logbook parameters factory
    Factory to get LogbookParameters object
    Example:
         
          // Retrieves logbook operation parameters with standard required fields
          LogbookOperationParameters parameters = LogbookParametersFactory.getLogbookOperationParameters();
    
          // Retrieves logbook operation parameters with standard required fields and specifics required fields
          Set<LogbookParameterName> specificMandatoryFields = new HashSet<>()
          // add specific fields
          specificMandatoryFields.add(LogbookParameterName.objectIdentifier);
          specificMandatoryFields.add(LogbookParameterName.agentIdentifier);
    
          // Retrieves parameter object
          parameters = LogbookParametersFactory.getLogbookOperationParameters(specificMandatoryFields);
         
     
    • Method Detail

      • newLogbookOperationParameters

        public static LogbookOperationParameters newLogbookOperationParameters()
        Get a new Empty LogbookOperationParameters object.
        Use in internal assignment. Not recommended in general usage.
        Returns:
        the LogbookOperationParameters
      • newLogbookLifeCycleUnitParameters

        public static LogbookLifeCycleUnitParameters newLogbookLifeCycleUnitParameters()
        Get a new Empty LogbookLifeCycleUnitParameters object.
        Use in internal assignment. Not recommended in general usage.
        Returns:
        the LogbookLifeCycleUnitParameters
      • newLogbookLifeCycleObjectGroupParameters

        public static LogbookLifeCycleObjectGroupParameters newLogbookLifeCycleObjectGroupParameters()
        Get a new Empty LogbookLifeCycleObjectGroupParameters object.
        Use in internal assignment. Not recommended in general usage.
        Returns:
        the LogbookLifeCycleObjectGroupParameters
      • newLogbookOperationParameters

        public static LogbookOperationParameters newLogbookOperationParameters​(GUID eventIdentifier,
                                                                               java.lang.String eventType,
                                                                               GUID eventIdentifierProcess,
                                                                               LogbookTypeProcess eventTypeProcess,
                                                                               StatusCode outcome,
                                                                               java.lang.String outcomeDetailMessage,
                                                                               GUID eventIdentifierRequest)
        Get a new LogbookOperationParameters object
        Parameters:
        eventIdentifier - the event id of LogbookOperationParameters to create
        eventType - the event type of LogbookOperationParameters to create
        eventIdentifierProcess - the event id process of LogbookOperationParameters to create
        eventTypeProcess - the event type process of LogbookOperationParameters to create
        outcome - the outcome of LogbookOperationParameters to create
        outcomeDetailMessage - the outcome detail message of of LogbookOperationParameters to create
        eventIdentifierRequest - the event id request of LogbookOperationParameters to create
        Returns:
        the LogbookOperationParameters
        Throws:
        java.lang.IllegalArgumentException - if any parameter is null or empty
      • newLogbookOperationParameters

        public static LogbookOperationParameters newLogbookOperationParameters​(GUID eventIdentifier,
                                                                               java.lang.String eventType,
                                                                               GUID eventIdentifierProcess,
                                                                               LogbookTypeProcess eventTypeProcess,
                                                                               StatusCode outcome,
                                                                               java.lang.String subtask,
                                                                               java.lang.String appendedDetailMessage,
                                                                               GUID eventIdentifierRequest)
        Get a new LogbookOperationParameters object for subtask
        Parameters:
        eventIdentifier - the event id of LogbookOperationParameters to create
        eventType - the event type of LogbookOperationParameters to create
        eventIdentifierProcess - the event id process of LogbookOperationParameters to create
        eventTypeProcess - the event type process of LogbookOperationParameters to create
        outcome - the outcome of LogbookOperationParameters to create
        subtask - may be null
        appendedDetailMessage - may be null, the detail message
        eventIdentifierRequest - the event id request of LogbookOperationParameters to create
        Returns:
        the LogbookOperationParameters
        Throws:
        java.lang.IllegalArgumentException - if any parameter is null or empty
      • newLogbookLifeCycleUnitParameters

        public static LogbookLifeCycleUnitParameters newLogbookLifeCycleUnitParameters​(GUID eventIdentifier,
                                                                                       java.lang.String eventType,
                                                                                       GUID eventIdentifierProcess,
                                                                                       LogbookTypeProcess eventTypeProcess,
                                                                                       StatusCode outcome,
                                                                                       java.lang.String outcomeDetail,
                                                                                       java.lang.String outcomeDetailMessage,
                                                                                       GUID objectIdentifier)
        Get a new LogbookLifeCycleUnitParameters object
        Parameters:
        eventIdentifier - the event id of LogbookLifeCycleUnitParameters to create
        eventType - the event type of LogbookLifeCycleUnitParameters to create
        eventIdentifierProcess - the event id process of LogbookLifeCycleUnitParameters to create
        eventTypeProcess - the event type process of LogbookLifeCycleUnitParameters to create
        outcome - the outcome of LogbookLifeCycleUnitParameters to create
        outcomeDetail - the outcome detail of LogbookLifeCycleUnitParameters to create
        outcomeDetailMessage - the outcome detail message of LogbookLifeCycleUnitParameters to create
        objectIdentifier - the object id of LogbookLifeCycleUnitParameters to create
        Returns:
        the LogbookLifeCycleUnitParameters
        Throws:
        java.lang.IllegalArgumentException - if any parameter is null or empty
      • newLogbookLifeCycleObjectGroupParameters

        public static LogbookLifeCycleObjectGroupParameters newLogbookLifeCycleObjectGroupParameters​(GUID eventIdentifier,
                                                                                                     java.lang.String eventType,
                                                                                                     GUID eventIdentifierProcess,
                                                                                                     LogbookTypeProcess eventTypeProcess,
                                                                                                     StatusCode outcome,
                                                                                                     java.lang.String outcomeDetail,
                                                                                                     java.lang.String outcomeDetailMessage,
                                                                                                     GUID objectIdentifier)
        Get a new LogbookLifeCycleObjectGroupParameters object
        Parameters:
        eventIdentifier - the event id of LogbookLifeCycleObjectGroupParameters to create
        eventType - the event type of LogbookLifeCycleObjectGroupParameters to create
        eventIdentifierProcess - the event id process of LogbookLifeCycleObjectGroupParameters to create
        eventTypeProcess - the event type process of LogbookLifeCycleObjectGroupParameters to create
        outcome - the outcome of LogbookLifeCycleObjectGroupParameters to create
        outcomeDetail - the outcome detail of LogbookLifeCycleObjectGroupParameters to create
        outcomeDetailMessage - the outcome detail message of LogbookLifeCycleObjectGroupParameters to create
        objectIdentifier - the object id of LogbookLifeCycleObjectGroupParameters to create
        Returns:
        the LogbookLifeCycleObjectGroupParameters
        Throws:
        java.lang.IllegalArgumentException - if any parameter is null or empty
      • getDefaultLifeCycleMandatory

        public static java.util.Set<LogbookParameterName> getDefaultLifeCycleMandatory()
        Returns:
        the default Mandatory fields set for LifeCycle