public class LogbookParametersFactory extends Object
// 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);
| Modifier and Type | Method and Description |
|---|---|
static Set<LogbookParameterName> |
getDefaultLifeCycleMandatory() |
static Set<LogbookParameterName> |
getDefaultOperationMandatory() |
static LogbookLifeCycleObjectGroupParameters |
newLogbookLifeCycleObjectGroupParameters()
Get a new Empty LogbookLifeCycleObjectGroupParameters object.
|
static LogbookLifeCycleObjectGroupParameters |
newLogbookLifeCycleObjectGroupParameters(GUID eventIdentifier,
String eventType,
GUID eventIdentifierProcess,
LogbookTypeProcess eventTypeProcess,
StatusCode outcome,
String outcomeDetail,
String outcomeDetailMessage,
GUID objectIdentifier)
Get a new LogbookLifeCycleObjectGroupParameters object
|
static LogbookLifeCycleUnitParameters |
newLogbookLifeCycleUnitParameters()
Get a new Empty LogbookLifeCycleUnitParameters object.
|
static LogbookLifeCycleUnitParameters |
newLogbookLifeCycleUnitParameters(GUID eventIdentifier,
String eventType,
GUID eventIdentifierProcess,
LogbookTypeProcess eventTypeProcess,
StatusCode outcome,
String outcomeDetail,
String outcomeDetailMessage,
GUID objectIdentifier)
Get a new LogbookLifeCycleUnitParameters object
|
static LogbookOperationParameters |
newLogbookOperationParameters()
Get a new Empty LogbookOperationParameters object.
|
static LogbookOperationParameters |
newLogbookOperationParameters(GUID eventIdentifier,
String eventType,
GUID eventIdentifierProcess,
LogbookTypeProcess eventTypeProcess,
StatusCode outcome,
String outcomeDetailMessage,
GUID eventIdentifierRequest)
Get a new LogbookOperationParameters object
|
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
|
public static LogbookOperationParameters newLogbookOperationParameters()
public static LogbookLifeCycleUnitParameters newLogbookLifeCycleUnitParameters()
public static LogbookLifeCycleObjectGroupParameters newLogbookLifeCycleObjectGroupParameters()
public static LogbookOperationParameters newLogbookOperationParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetailMessage, GUID eventIdentifierRequest)
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 createIllegalArgumentException - if any parameter is null or emptypublic static LogbookOperationParameters newLogbookOperationParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String subtask, String appendedDetailMessage, GUID eventIdentifierRequest)
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 createIllegalArgumentException - if any parameter is null or emptypublic static LogbookLifeCycleUnitParameters newLogbookLifeCycleUnitParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetail, String outcomeDetailMessage, GUID objectIdentifier)
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 createIllegalArgumentException - if any parameter is null or emptypublic static LogbookLifeCycleObjectGroupParameters newLogbookLifeCycleObjectGroupParameters(GUID eventIdentifier, String eventType, GUID eventIdentifierProcess, LogbookTypeProcess eventTypeProcess, StatusCode outcome, String outcomeDetail, String outcomeDetailMessage, GUID objectIdentifier)
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 createIllegalArgumentException - if any parameter is null or emptypublic static Set<LogbookParameterName> getDefaultOperationMandatory()
public static Set<LogbookParameterName> getDefaultLifeCycleMandatory()
Copyright © 2018 Vitam. All rights reserved.