@Path(value="/v1/api") public class WebApplicationResource extends ApplicationStatusResource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTRACT_NAME |
static String |
IHM_RECETTE
field of VitamResponseError
|
STATUS_URL, TENANTS_URL
Constructor and Description |
---|
WebApplicationResource(WebApplicationConfig webApplicationConfigonfig)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
downloadObjectAsStream(String operationId,
javax.ws.rs.container.AsyncResponse asyncResponse,
String xTenantId) |
void |
downloadObjectAsStreamForBrowser(String operationId,
javax.ws.rs.container.AsyncResponse asyncResponse,
Integer tenantId)
This method exist only to download a file with a browser
|
javax.ws.rs.core.Response |
findAccessContract(javax.servlet.http.HttpServletRequest request,
String select)
Query to get Access contracts
|
javax.ws.rs.core.Response |
getAndExecuteTestRequest(javax.servlet.http.HttpServletRequest request,
String sessionId,
com.fasterxml.jackson.databind.JsonNode criteria) |
javax.ws.rs.core.Response |
getLogbookMessages()
Retrieve all the messages for logbook
|
javax.ws.rs.core.Response |
getLogbookResult(javax.servlet.http.HttpServletRequest request,
String sessionId,
String options)
this method is used to request logbook with the Vitam DSL
|
javax.ws.rs.core.Response |
getLogbookResultByBrowser(javax.servlet.http.HttpServletRequest request,
String xhttpOverride,
String sessionId,
String options)
Post used because Angular not support Get with body
|
javax.ws.rs.core.Response |
getLogbookResultById(String operationId,
String xTenantId) |
javax.ws.rs.core.Response |
getLogbookStatistics(String operationId)
Generates the logbook operation statistics file (cvs format) relative to the operation parameter
|
javax.ws.rs.core.Response |
getSecureMode()
Return authentication mode
|
javax.ws.rs.core.Response |
login(javax.servlet.http.HttpServletRequest httpRequest,
com.fasterxml.jackson.databind.JsonNode object) |
javax.ws.rs.core.Response |
traceability(String xTenantId) |
javax.ws.rs.core.Response |
traceabilityLFC(String xTenantId)
launch the traceabiity for lifecycles
|
javax.ws.rs.core.Response |
traceabilityStorage(String xTenantId)
launch the traceabiity for storage
|
getServerTenants, status
public static final String IHM_RECETTE
public static final String DEFAULT_CONTRACT_NAME
public WebApplicationResource(WebApplicationConfig webApplicationConfigonfig)
webApplicationConfigonfig
- configuration@GET @Path(value="/messages/logbook") @Produces(value="application/json") public javax.ws.rs.core.Response getLogbookMessages()
@POST @Path(value="login") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response login(@Context javax.servlet.http.HttpServletRequest httpRequest, com.fasterxml.jackson.databind.JsonNode object)
object
- user credentials@GET @Path(value="/stat/{id_op}") @Produces(value="text/plain") public javax.ws.rs.core.Response getLogbookStatistics(@PathParam(value="id_op") String operationId)
operationId
- logbook oeration id@GET @Path(value="/securemode") @Produces(value="application/json") public javax.ws.rs.core.Response getSecureMode()
@POST @Path(value="/operations/traceability") @Produces(value="application/json") public javax.ws.rs.core.Response traceability(@HeaderParam(value="X-Tenant-Id") String xTenantId) throws LogbookClientServerException
xTenantId
- the tenant idLogbookClientServerException
- if logbook internal resources exception occurred@POST @Path(value="/lifecycles/traceability") @Produces(value="application/json") public javax.ws.rs.core.Response traceabilityLFC(@HeaderParam(value="X-Tenant-Id") String xTenantId) throws LogbookClientServerException
xTenantId
- the tenant idLogbookClientServerException
- if logbook internal resources exception occurred@POST @Path(value="/storages/traceability") @Produces(value="application/json") public javax.ws.rs.core.Response traceabilityStorage(@HeaderParam(value="X-Tenant-Id") String xTenantId)
xTenantId
- the tenant idLogbookClientServerException
- if logbook internal resources exception occurred@POST @Path(value="/logbooks") @Produces(value="application/json") public javax.ws.rs.core.Response getLogbookResultByBrowser(@Context javax.servlet.http.HttpServletRequest request, @HeaderParam(value="X-Http-Method-Override") String xhttpOverride, @CookieParam(value="JSESSIONID") String sessionId, String options)
request
- xhttpOverride
- the use of http override POST methodsessionId
- the id of sessionoptions
- the option for creating query to find logbook@GET @Path(value="/logbooks") @Produces(value="application/json") public javax.ws.rs.core.Response getLogbookResult(@Context javax.servlet.http.HttpServletRequest request, @CookieParam(value="JSESSIONID") String sessionId, String options)
request
- request httpsessionId
- using for paginationoptions
- JSON object representing the Vitam DSL query@GET @Path(value="/logbooks/{idOperation}") @Produces(value="application/json") public javax.ws.rs.core.Response getLogbookResultById(@PathParam(value="idOperation") String operationId, @HeaderParam(value="X-Tenant-Id") String xTenantId)
operationId
- id of operationxTenantId
- the tenant id@GET @Path(value="/logbooks/{idOperation}") @Produces(value="application/octet-stream") public void downloadObjectAsStream(@PathParam(value="idOperation") String operationId, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam(value="X-Tenant-Id") String xTenantId)
operationId
- the operation idasyncResponse
- the asynchronized responsexTenantId
- the tenant id@GET @Path(value="/logbooks/{idOperation}/content") @Produces(value="application/octet-stream") public void downloadObjectAsStreamForBrowser(@PathParam(value="idOperation") String operationId, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam(value="X-Tenant-Id") Integer tenantId)
operationId
- the operation idasyncResponse
- the asynchronized responsetenantId
- the working tenant@POST @Path(value="/accesscontracts") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findAccessContract(@Context javax.servlet.http.HttpServletRequest request, String select)
request
- HTTP requestselect
- the query to find access contracts@POST @Path(value="/dslQueryTest") @Produces(value="application/json") public javax.ws.rs.core.Response getAndExecuteTestRequest(@Context javax.servlet.http.HttpServletRequest request, @CookieParam(value="JSESSIONID") String sessionId, com.fasterxml.jackson.databind.JsonNode criteria)
request
- request httpsessionId
- json session id from shirocriteria
- criteria search for unitsCopyright © 2018 Vitam. All rights reserved.