@Path(value="/v1/api") public class WebApplicationResource extends ApplicationStatusResource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTRACT_NAME |
STATUS_URL, TENANTS_URL
Constructor and Description |
---|
WebApplicationResource(WebApplicationConfig webApplicationConfigonfig)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteObject(String xTenantId,
String uid,
String dataType,
String offerId) |
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 |
getObjectAsInputStreamAsync(String xTenantId,
String uid,
String dataType)
Retrieve an Object data as an input stream.
|
javax.ws.rs.core.Response |
getSecureMode()
Return authentication mode
|
javax.ws.rs.core.Response |
launchAudit(String xTenantId,
String operationId)
Deprecated.
|
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 |
traceabilityLfcObjectGroup(String xTenantId)
launch the traceability for object group lifecycles
|
javax.ws.rs.core.Response |
traceabilityLfcUnit(String xTenantId)
launch the traceability for unit lifecycles
|
javax.ws.rs.core.Response |
traceabilityStorage(String xTenantId)
launch the traceabiity for storage
|
javax.ws.rs.core.Response |
updateLinksBetweenAU(javax.servlet.http.HttpServletRequest request,
String select)
Update link between 2 AU send in the select request
|
javax.ws.rs.core.Response |
uploadObject(String xTenantId,
String uid,
String dataType,
String offerId,
Long size,
InputStream input) |
getServerTenants, status
public static final String DEFAULT_CONTRACT_NAME
public WebApplicationResource(WebApplicationConfig webApplicationConfigonfig)
webApplicationConfigonfig
- configuration@POST @Path(value="/replaceObject/{dataType}/{offerId}/{uid}/{size}") @Consumes(value="application/octet-stream") @Produces(value="application/json") public javax.ws.rs.core.Response uploadObject(@HeaderParam(value="X-Tenant-Id") String xTenantId, @PathParam(value="uid") String uid, @PathParam(value="dataType") String dataType, @PathParam(value="offerId") String offerId, @PathParam(value="size") Long size, InputStream input)
xTenantId
- xtenantuid
- uiddataType
- data@DELETE @Path(value="/deleteObject/{dataType}/{offerId}/{uid}") @Produces(value="application/json") public javax.ws.rs.core.Response deleteObject(@HeaderParam(value="X-Tenant-Id") String xTenantId, @PathParam(value="uid") String uid, @PathParam(value="dataType") String dataType, @PathParam(value="offerId") String offerId)
xTenantId
- xtenantuid
- uiddataType
- data@POST @Path(value="/launchAudit/{operationId}") @Consumes(value="application/json") @Produces(value="application/json") @Deprecated public javax.ws.rs.core.Response launchAudit(@HeaderParam(value="X-Tenant-Id") String xTenantId, @PathParam(value="operationId") String operationId)
xTenantId
- xTenantIdoperationId
- operationId@GET @Path(value="/download/{dataType}/{uid}") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getObjectAsInputStreamAsync(@HeaderParam(value="X-Tenant-Id") String xTenantId, @PathParam(value="uid") String uid, @PathParam(value="dataType") String dataType)
@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/units/traceability") @Produces(value="application/json") public javax.ws.rs.core.Response traceabilityLfcUnit(@HeaderParam(value="X-Tenant-Id") String xTenantId) throws LogbookClientServerException
xTenantId
- the tenant idLogbookClientServerException
- if logbook internal resources exception occurred@POST @Path(value="/lifecycles/objectgroups/traceability") @Produces(value="application/json") public javax.ws.rs.core.Response traceabilityLfcObjectGroup(@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
- the requestxhttpOverride
- the use of http override POST methodsessionId
- the id of sessionoptions
- the option for creating query to find logbook@POST @Path(value="/updateLinks") @Produces(value="application/json") public javax.ws.rs.core.Response updateLinksBetweenAU(@Context javax.servlet.http.HttpServletRequest request, String select)
request
- the HTTP request and all its contextselect
- select query with the following structure: {parentId: 'id', childId: 'id', action: 'ADD/DELETE'}@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)
Copyright © 2018 Vitam. All rights reserved.