Class LogbookParameterHelper
- java.lang.Object
-
- fr.gouv.vitam.logbook.common.parameters.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<LogbookParameterName>
getDefaultLifeCycleMandatory()
static LogbookLifeCycleObjectGroupParameters
newLogbookLifeCycleObjectGroupParameters()
Get a new Empty LogbookLifeCycleObjectGroupParameters object.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 objectstatic LogbookLifeCycleUnitParameters
newLogbookLifeCycleUnitParameters()
Get a new Empty LogbookLifeCycleUnitParameters object.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 objectstatic LogbookOperationParameters
newLogbookOperationParameters()
Get a new Empty LogbookOperationParameters object.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 objectstatic 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
-
-
-
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 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:
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 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:
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 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:
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 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:
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
-
-