public interface LogbookOperationsClient extends BasicClient
STATUS_URL
Modifier and Type | Method and Description |
---|---|
void |
bulkCreate(String eventIdProc,
Iterable<LogbookOperationParameters> queue)
Bulk Create
To be used ONLY once at top level of process startup (where eventIdentifierProcess is set for the first time). |
void |
bulkUpdate(String eventIdProc,
Iterable<LogbookOperationParameters> queue)
Bulk Update
To be used everywhere except very first time (when eventIdentifierProcess already used once) |
LifecycleTraceabilityStatus |
checkLifecycleTraceabilityWorkflowStatus(String processId)
Check life cycle traceability status (unit / got)
|
javax.ws.rs.core.Response |
checkLogbookCoherence()
checkLogbookCoherence
|
void |
commitCreateDelegate(String eventIdProc)
Finalize logbook entry using delegation
To be used ONLY once at top level of process startup (where eventIdentifierProcess is set for the first time). |
void |
commitUpdateDelegate(String eventIdProc)
Finalize logbook entry using delegation
To be used everywhere except very first time (when eventIdentifierProcess already used once) |
void |
create(LogbookOperationParameters parameters)
Create logbook entry
To be used ONLY once at top level of process startup (where eventIdentifierProcess is set for the first time). |
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). |
com.fasterxml.jackson.databind.JsonNode |
reindex(IndexParameters indexParam)
Reindex a collection with parameters
|
com.fasterxml.jackson.databind.JsonNode |
selectOperation(com.fasterxml.jackson.databind.JsonNode select) |
com.fasterxml.jackson.databind.JsonNode |
selectOperationById(String id) |
com.fasterxml.jackson.databind.JsonNode |
switchIndexes(SwitchIndexParameters switchIndexParam)
Switch indexes
|
RequestResponseOK |
traceability()
Call traceability logbook operation
|
void |
traceabilityAudit(int tenant,
AuditLogbookOptions options) |
RequestResponseOK |
traceabilityLfcObjectGroup()
Starts Object Group logbook lifecycle traceability
|
RequestResponseOK |
traceabilityLfcUnit()
Starts Unit logbook lifecycle traceability
|
void |
update(LogbookOperationParameters parameters)
Update logbook entry
To be used everywhere except very first time (when eventIdentifierProcess already used once) |
void |
updateDelegate(LogbookOperationParameters parameters)
Update logbook entry using delegation
To be used everywhere except very first time (when eventIdentifierProcess already used once) |
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
void create(LogbookOperationParameters parameters) throws LogbookClientBadRequestException, LogbookClientAlreadyExistsException, LogbookClientServerException
parameters
- the entry parametersLogbookClientBadRequestException
- if the argument is incorrectLogbookClientAlreadyExistsException
- if the element already existsLogbookClientServerException
- if the Server got an internal errorIllegalArgumentException
- if some mandatories parameters are empty or nullLogbookClientException
- if client received an error from servervoid update(LogbookOperationParameters parameters) throws LogbookClientBadRequestException, LogbookClientNotFoundException, LogbookClientServerException
parameters
- the entry parametersLogbookClientBadRequestException
- if the argument is incorrectLogbookClientNotFoundException
- if the element was not created beforeLogbookClientServerException
- if the Server got an internal errorIllegalArgumentException
- if some mandatories parameters are empty or nullcom.fasterxml.jackson.databind.JsonNode selectOperation(com.fasterxml.jackson.databind.JsonNode select) throws LogbookClientException, InvalidParseOperationException
select
- LogbookClientException
InvalidParseOperationException
com.fasterxml.jackson.databind.JsonNode selectOperationById(String id) throws LogbookClientException, InvalidParseOperationException
id
- identifierLogbookClientException
- LogbookClientExceptionInvalidParseOperationException
- InvalidParseOperationExceptionvoid 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 nullvoid 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 nullvoid bulkCreate(String eventIdProc, Iterable<LogbookOperationParameters> queue) throws LogbookClientBadRequestException, LogbookClientAlreadyExistsException, LogbookClientServerException
eventIdProc
- event Process Identifierqueue
- queue of LogbookOperationParameters to createLogbookClientBadRequestException
- if the argument is incorrectLogbookClientAlreadyExistsException
- if the element already existsLogbookClientServerException
- if the Server got an internal errorIllegalArgumentException
- if some mandatories parameters are empty or nullvoid bulkUpdate(String eventIdProc, Iterable<LogbookOperationParameters> queue) throws LogbookClientNotFoundException, LogbookClientBadRequestException, LogbookClientServerException
eventIdProc
- event Process Identifierqueue
- queue of LogbookOperationParameters to updateLogbookClientBadRequestException
- if the argument is incorrectLogbookClientNotFoundException
- if the element was not created beforeLogbookClientServerException
- if the Server got an internal errorIllegalArgumentException
- if some mandatories parameters are empty or nullvoid commitCreateDelegate(String eventIdProc) throws LogbookClientBadRequestException, LogbookClientAlreadyExistsException, LogbookClientServerException
eventIdProc
- event Process IdentifierLogbookClientBadRequestException
- if the argument is incorrectLogbookClientAlreadyExistsException
- if the element already existsLogbookClientServerException
- if the Server got an internal errorIllegalArgumentException
- if some mandatories parameters are empty or nullvoid commitUpdateDelegate(String eventIdProc) throws LogbookClientBadRequestException, LogbookClientNotFoundException, LogbookClientServerException
eventIdProc
- event Process IdentifierLogbookClientBadRequestException
- if the argument is incorrectLogbookClientNotFoundException
- if the element was not created beforeLogbookClientServerException
- if the Server got an internal errorIllegalArgumentException
- if some mandatories parameters are empty or nullRequestResponseOK traceability() throws LogbookClientServerException, InvalidParseOperationException
LogbookClientServerException
InvalidParseOperationException
RequestResponseOK traceabilityLfcUnit() throws LogbookClientServerException, InvalidParseOperationException
LogbookClientServerException
InvalidParseOperationException
RequestResponseOK traceabilityLfcObjectGroup() throws LogbookClientServerException, InvalidParseOperationException
LogbookClientServerException
InvalidParseOperationException
LifecycleTraceabilityStatus checkLifecycleTraceabilityWorkflowStatus(String processId) throws LogbookClientServerException, InvalidParseOperationException
processId
- the process idLogbookClientServerException
InvalidParseOperationException
com.fasterxml.jackson.databind.JsonNode reindex(IndexParameters indexParam) throws InvalidParseOperationException, LogbookClientServerException
indexParam
- reindexation parametersLogbookClientServerException
InvalidParseOperationException
com.fasterxml.jackson.databind.JsonNode switchIndexes(SwitchIndexParameters switchIndexParam) throws InvalidParseOperationException, LogbookClientServerException
switchIndexParam
- switch index parametersLogbookClientServerException
InvalidParseOperationException
void traceabilityAudit(int tenant, AuditLogbookOptions options) throws LogbookClientServerException
LogbookClientServerException
javax.ws.rs.core.Response checkLogbookCoherence() throws VitamException
VitamException
Copyright © 2018 Vitam. All rights reserved.