public class UserInterfaceTransactionManager extends Object
| Constructor and Description |
|---|
UserInterfaceTransactionManager() |
| Modifier and Type | Method and Description |
|---|---|
static RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
checkTraceabilityOperation(com.fasterxml.jackson.databind.JsonNode query,
VitamContext context)
Starts a Verification process based on a given DSLQuery
|
static boolean |
downloadDIP(javax.ws.rs.container.AsyncResponse asyncResponse,
String dipId,
VitamContext context) |
static RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
exportDIP(com.fasterxml.jackson.databind.JsonNode query,
VitamContext context)
generate a DIP to be exported
|
static com.fasterxml.jackson.databind.JsonNode |
extractInformationFromTimestamp(String timestamp)
Extract information from timestamp
|
static RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
findAccessionRegisterDetail(String id,
String options,
VitamContext context) |
static RequestResponse<AccessionRegisterSummaryModel> |
findAccessionRegisterSummary(String options,
VitamContext context) |
static String |
getAppSessionId()
Returns session id for the authenticated user.
|
static RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
getArchiveUnitDetails(com.fasterxml.jackson.databind.JsonNode preparedDslQuery,
String unitId,
VitamContext context)
Gets archive unit details
|
static String |
getContractId(javax.servlet.http.HttpServletRequest request) |
static boolean |
getObjectAsInputStream(javax.ws.rs.container.AsyncResponse asyncResponse,
String unitId,
String usage,
int version,
String filename,
VitamContext context)
Retrieve an Object data as an input stream
|
static String |
getPersonalCertificate(javax.servlet.http.HttpServletRequest request) |
static Integer |
getTenantId(javax.servlet.http.HttpServletRequest request) |
static VitamContext |
getVitamContext(javax.servlet.http.HttpServletRequest request) |
static VitamContext |
getVitamContext(Integer tenantId,
String contractId,
javax.servlet.http.HttpServletRequest request) |
static VitamContext |
getVitamContext(Integer tenantId,
String contractId,
String personalCert) |
static RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
searchUnits(com.fasterxml.jackson.databind.JsonNode parameters,
VitamContext context)
Gets search units result
|
static RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectObjectbyId(com.fasterxml.jackson.databind.JsonNode preparedDslQuery,
String objectId,
VitamContext context)
Retrieve an ObjectGroup as Json data based on the provided ObjectGroup id
|
static RequestResponse<LogbookLifecycle> |
selectObjectGroupLifeCycleById(String objectGroupLifeCycleId,
VitamContext context) |
static RequestResponse<LogbookOperation> |
selectOperation(com.fasterxml.jackson.databind.JsonNode query,
VitamContext context) |
static RequestResponse<LogbookOperation> |
selectOperationbyId(String operationId,
VitamContext context) |
static RequestResponse<LogbookLifecycle> |
selectUnitLifeCycleById(String unitLifeCycleId,
VitamContext context) |
static RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
updateUnits(com.fasterxml.jackson.databind.JsonNode parameters,
String unitId,
VitamContext context)
Update units result
|
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> searchUnits(com.fasterxml.jackson.databind.JsonNode parameters, VitamContext context) throws VitamClientException
parameters - search criteria as DSL querycontext - VitamcontextVitamClientException - access client exceptionpublic static RequestResponse<com.fasterxml.jackson.databind.JsonNode> getArchiveUnitDetails(com.fasterxml.jackson.databind.JsonNode preparedDslQuery, String unitId, VitamContext context) throws VitamClientException
preparedDslQuery - search criteria as DSL queryunitId - archive unit id to findcontext - VitamcontextVitamClientException - access client exceptionpublic static RequestResponse<com.fasterxml.jackson.databind.JsonNode> updateUnits(com.fasterxml.jackson.databind.JsonNode parameters, String unitId, VitamContext context) throws VitamClientException
parameters - search criteria as DSL queryunitId - unitIdentifiercontext - VitamcontextVitamClientExceptionpublic static RequestResponse<com.fasterxml.jackson.databind.JsonNode> selectObjectbyId(com.fasterxml.jackson.databind.JsonNode preparedDslQuery, String objectId, VitamContext context) throws VitamClientException
preparedDslQuery - the query to be executedobjectId - the Id of the ObjectGroupcontext - VitamcontextVitamClientException - if the client encountered an exceptionpublic static boolean getObjectAsInputStream(javax.ws.rs.container.AsyncResponse asyncResponse,
String unitId,
String usage,
int version,
String filename,
VitamContext context)
throws UnsupportedEncodingException,
VitamClientException
asyncResponse - the asynchronous response to be usedunitId - the Id of the ObjectGroupusage - the requested usageversion - the requested version of the usagefilename - the name od the filecontext - VitamcontextUnsupportedEncodingException - if unsupported encoding error for input file contentVitamClientException - if the client encountered an exceptionpublic static RequestResponse<LogbookLifecycle> selectUnitLifeCycleById(String unitLifeCycleId, VitamContext context) throws VitamClientException
unitLifeCycleId - the unit lifecycle id to selectcontext - VitamcontextInvalidParseOperationException - if json data not well-formedLogbookClientException - if the request with illegal parameterAccessUnauthorizedExceptionVitamClientExceptionpublic static RequestResponse<LogbookOperation> selectOperation(com.fasterxml.jackson.databind.JsonNode query, VitamContext context) throws VitamClientException
query - the select querycontext - VitamcontextVitamClientException - access client exceptionpublic static RequestResponse<LogbookOperation> selectOperationbyId(String operationId, VitamContext context) throws VitamClientException
operationId - the operation idcontext - VitamcontextVitamClientExceptionpublic static RequestResponse<LogbookLifecycle> selectObjectGroupLifeCycleById(String objectGroupLifeCycleId, VitamContext context) throws VitamClientException
objectGroupLifeCycleId - the object lifecycle id to select* @param context Vitamcontext httpVitamClientException - if the request with illegal parameterpublic static RequestResponse<AccessionRegisterSummaryModel> findAccessionRegisterSummary(String options, VitamContext context) throws VitamClientException, InvalidParseOperationException, InvalidCreateOperationException
options - for creating querycontext - VitamcontextVitamClientException - if the request with illegal parameterInvalidParseOperationException - if json data not well-formedInvalidCreateOperationException - if error when create querypublic static RequestResponse<com.fasterxml.jackson.databind.JsonNode> findAccessionRegisterDetail(String id, String options, VitamContext context) throws InvalidParseOperationException, AccessExternalClientServerException, AccessExternalClientNotFoundException, InvalidCreateOperationException, AccessUnauthorizedException
id - the id of accession registeroptions - for creating querycontext - VitamcontextInvalidParseOperationException - if json data not well-formedAccessExternalClientServerException - if access internal server errorAccessExternalClientNotFoundException - if access external resource not foundInvalidCreateOperationException - if error when create queryAccessUnauthorizedExceptionpublic static RequestResponse<com.fasterxml.jackson.databind.JsonNode> checkTraceabilityOperation(com.fasterxml.jackson.databind.JsonNode query, VitamContext context) throws AccessExternalClientServerException, InvalidParseOperationException, AccessUnauthorizedException
query - DSLQuery to executecontext - VitamcontextAccessExternalClientServerExceptionInvalidParseOperationExceptionAccessUnauthorizedExceptionpublic static com.fasterxml.jackson.databind.JsonNode extractInformationFromTimestamp(String timestamp) throws BadRequestException
timestamp - the timestamp to be used for extractionBadRequestException - if the timestamp cant be extractedpublic static RequestResponse<com.fasterxml.jackson.databind.JsonNode> exportDIP(com.fasterxml.jackson.databind.JsonNode query, VitamContext context) throws InvalidParseOperationException, VitamClientException
query - search criteria as DSL querycontext - VitamContextInvalidParseOperationException - unable to parse queryVitamClientException - access client exceptionpublic static boolean downloadDIP(javax.ws.rs.container.AsyncResponse asyncResponse,
String dipId,
VitamContext context)
throws UnsupportedEncodingException,
VitamClientException
asyncResponse - AsyncResponsedipId - dip idcontext - vitam contextUnsupportedEncodingExceptionVitamClientExceptionpublic static VitamContext getVitamContext(javax.servlet.http.HttpServletRequest request)
public static VitamContext getVitamContext(Integer tenantId, String contractId, String personalCert)
public static VitamContext getVitamContext(Integer tenantId, String contractId, javax.servlet.http.HttpServletRequest request)
public static String getPersonalCertificate(javax.servlet.http.HttpServletRequest request)
public static String getContractId(javax.servlet.http.HttpServletRequest request)
public static Integer getTenantId(javax.servlet.http.HttpServletRequest request)
public static String getAppSessionId()
The application may track each logged user by a unique session id. This session id is passed to vitam and is persisted "as is" in Vitam logbook operations. In case of audit / legal dispute, the application session id can be used for correlation with application user login logs / db.
Copyright © 2018 Vitam. All rights reserved.