Class LogbookParameterHelper
java.lang.Object
fr.gouv.vitam.logbook.common.parameters.LogbookParameterHelper
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 Summary
Modifier and TypeMethodDescriptionstatic Set<LogbookParameterName>Get a new Empty LogbookLifeCycleObjectGroupParameters object.newLogbookLifeCycleObjectGroupParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetail, String outcomeDetailMessage, GUID objectIdentifier) Get a new LogbookLifeCycleObjectGroupParameters objectGet a new Empty LogbookLifeCycleUnitParameters object.newLogbookLifeCycleUnitParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetail, String outcomeDetailMessage, GUID objectIdentifier) Get a new LogbookLifeCycleUnitParameters objectstatic LogbookOperationParametersGet a new Empty LogbookOperationParameters object.static LogbookOperationParametersnewLogbookOperationParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetailMessage, GUID eventIdentifierRequest) Get a new LogbookOperationParameters objectstatic LogbookOperationParametersnewLogbookOperationParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String subtask, String appendedDetailMessage, GUID eventIdentifierRequest) Get a new LogbookOperationParameters object for subtask 
- 
Method Details
- 
newLogbookOperationParameters
Get a new Empty LogbookOperationParameters object.
Use in internal assignment. Not recommended in general usage.- Returns:
 - the LogbookOperationParameters
 
 - 
newLogbookLifeCycleUnitParameters
Get a new Empty LogbookLifeCycleUnitParameters object.
Use in internal assignment. Not recommended in general usage.- Returns:
 - the LogbookLifeCycleUnitParameters
 
 - 
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, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetailMessage, GUID eventIdentifierRequest) Get a new LogbookOperationParameters object- Parameters:
 eventIdentifier- the event id of LogbookOperationParameters to createeventType- the event type of LogbookOperationParameters to createeventIdentifierProcess- the event id process of LogbookOperationParameters to createeventTypeProcess- the event type process of LogbookOperationParameters to createoutcome- the outcome of LogbookOperationParameters to createoutcomeDetailMessage- the outcome detail message of of LogbookOperationParameters to createeventIdentifierRequest- the event id request of LogbookOperationParameters to create- Returns:
 - the LogbookOperationParameters
 - Throws:
 IllegalArgumentException- if any parameter is null or empty
 - 
newLogbookOperationParameters
public static LogbookOperationParameters newLogbookOperationParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String subtask, String appendedDetailMessage, GUID eventIdentifierRequest) Get a new LogbookOperationParameters object for subtask- Parameters:
 eventIdentifier- the event id of LogbookOperationParameters to createeventType- the event type of LogbookOperationParameters to createeventIdentifierProcess- the event id process of LogbookOperationParameters to createeventTypeProcess- the event type process of LogbookOperationParameters to createoutcome- the outcome of LogbookOperationParameters to createsubtask- may be nullappendedDetailMessage- may be null, the detail messageeventIdentifierRequest- the event id request of LogbookOperationParameters to create- Returns:
 - the LogbookOperationParameters
 - Throws:
 IllegalArgumentException- if any parameter is null or empty
 - 
newLogbookLifeCycleUnitParameters
public static LogbookLifeCycleUnitParameters newLogbookLifeCycleUnitParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetail, String outcomeDetailMessage, GUID objectIdentifier) Get a new LogbookLifeCycleUnitParameters object- Parameters:
 eventIdentifier- the event id of LogbookLifeCycleUnitParameters to createeventType- the event type of LogbookLifeCycleUnitParameters to createeventIdentifierProcess- the event id process of LogbookLifeCycleUnitParameters to createeventTypeProcess- the event type process of LogbookLifeCycleUnitParameters to createoutcome- the outcome of LogbookLifeCycleUnitParameters to createoutcomeDetail- the outcome detail of LogbookLifeCycleUnitParameters to createoutcomeDetailMessage- the outcome detail message of LogbookLifeCycleUnitParameters to createobjectIdentifier- the object id of LogbookLifeCycleUnitParameters to create- Returns:
 - the LogbookLifeCycleUnitParameters
 - Throws:
 IllegalArgumentException- if any parameter is null or empty
 - 
newLogbookLifeCycleObjectGroupParameters
public static LogbookLifeCycleObjectGroupParameters newLogbookLifeCycleObjectGroupParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetail, String outcomeDetailMessage, GUID objectIdentifier) Get a new LogbookLifeCycleObjectGroupParameters object- Parameters:
 eventIdentifier- the event id of LogbookLifeCycleObjectGroupParameters to createeventType- the event type of LogbookLifeCycleObjectGroupParameters to createeventIdentifierProcess- the event id process of LogbookLifeCycleObjectGroupParameters to createeventTypeProcess- the event type process of LogbookLifeCycleObjectGroupParameters to createoutcome- the outcome of LogbookLifeCycleObjectGroupParameters to createoutcomeDetail- the outcome detail of LogbookLifeCycleObjectGroupParameters to createoutcomeDetailMessage- the outcome detail message of LogbookLifeCycleObjectGroupParameters to createobjectIdentifier- the object id of LogbookLifeCycleObjectGroupParameters to create- Returns:
 - the LogbookLifeCycleObjectGroupParameters
 - Throws:
 IllegalArgumentException- if any parameter is null or empty
 - 
getDefaultLifeCycleMandatory
- Returns:
 - the default Mandatory fields set for LifeCycle
 
 
 -