public class LogbookOperationsClientHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EV_DET_DATA_TYPE
event Detetail Data Type
|
Constructor and Description |
---|
LogbookOperationsClientHelper()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static String |
checkLogbookParameters(LogbookOperationParameters parameters)
Check validity of the input and add default date and ServerIdentity
|
void |
clear()
Clear the underlying data structures
|
static LogbookOperationParameters |
copy(LogbookOperationParameters source)
Create a copy in order to allow reuse on client side
|
void |
createDelegate(LogbookOperationParameters parameters)
Create logbook entry using delegation
To be used ONLY once at top level of process startup (where eventIdentifierProcess is set for the first time). |
Queue<LogbookOperationParameters> |
removeCreateDelegate(String key) |
Queue<LogbookOperationParameters> |
removeUpdateDelegate(String key) |
void |
updateDelegate(LogbookOperationParameters parameters)
Update logbook entry using delegation
To be used everywhere except very first time (when eventIdentifierProcess already used once) |
public static final String EV_DET_DATA_TYPE
public static final String checkLogbookParameters(LogbookOperationParameters parameters)
parameters
- to checkpublic static final LogbookOperationParameters copy(LogbookOperationParameters source)
source
- to copy and reusepublic void createDelegate(LogbookOperationParameters parameters) throws LogbookClientAlreadyExistsException
parameters
- the entry parameters (can be reused and modified after without impacting the one created)LogbookClientAlreadyExistsException
- if the element already existsIllegalArgumentException
- if some mandatories parameters are empty or nullpublic void updateDelegate(LogbookOperationParameters parameters) throws LogbookClientNotFoundException
parameters
- the entry parameters (can be reused and modified after without impacting the one updated)LogbookClientNotFoundException
- if the element does not yet exists (createDeletage not called before)IllegalArgumentException
- if some mandatories parameters are empty or nullpublic Queue<LogbookOperationParameters> removeCreateDelegate(String key)
key
- of element to removepublic Queue<LogbookOperationParameters> removeUpdateDelegate(String key)
key
- of element to removepublic void clear()
Copyright © 2018 Vitam. All rights reserved.