Package fr.gouv.vitam.ihmdemo.appserver
Class WebApplicationResource
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
-
- fr.gouv.vitam.ihmdemo.appserver.WebApplicationResource
-
@Path("/v1/api") @ApplicationPath("webresources") public class WebApplicationResource extends ApplicationStatusResource
Web Application Resource class
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
X_CHUNK_OFFSET
X_CHUNK_OFFSETstatic java.lang.String
X_SIZE_TOTAL
X_SIZE_TOTAL-
Fields inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
STATUS_URL, TENANTS_URL
-
-
Constructor Summary
Constructors Constructor Description WebApplicationResource(java.util.Set<java.lang.String> permissions, WebApplicationConfig webApplicationConfig)
ConstructorWebApplicationResource(java.util.Set<java.lang.String> permissions, WebApplicationConfig webApplicationConfig, IngestExternalClientFactory ingestExternalClientFactory, AdminExternalClientFactory adminExternalClientFactory, UserInterfaceTransactionManager userInterfaceTransactionManager, DslQueryHelper dslQueryHelper, PaginationHelper paginationHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
cancelProcess(javax.servlet.http.HttpServletRequest request, java.lang.String id)
javax.ws.rs.core.Response
checkOperationTraceability(javax.servlet.http.HttpServletRequest request, java.lang.String operationCriteria)
Starts a TRACEABILITY check processjavax.ws.rs.core.Response
checkRefFormat(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
check the referential formatvoid
checkRefRule(javax.servlet.http.HttpServletRequest request, java.io.InputStream input, javax.ws.rs.container.AsyncResponse asyncResponse)
check the referential rulesjavax.ws.rs.core.Response
checkUploadOperation(java.lang.String operationId, javax.servlet.http.HttpServletRequest request, java.lang.String action)
Check if the upload operation is donejavax.ws.rs.core.Response
computedInheritedRules(javax.servlet.http.HttpServletRequest request, java.lang.String Query)
Compute inherated rules from basketjavax.ws.rs.core.Response
createArchiveUnitProfileMetadata(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Create archive unit profiles metadatajavax.ws.rs.core.Response
createDIPForExport(javax.servlet.http.HttpServletRequest request, DipRequest criteria)
Send a queryDSL request in order to select some units and create a matching DIPjavax.ws.rs.core.Response
createProfilesMetadata(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Create profiles metadatajavax.ws.rs.core.Response
createTransferSIP(javax.servlet.http.HttpServletRequest request, TransferRequest criteria)
javax.ws.rs.core.Response
deleteComputedInheritedRules(javax.servlet.http.HttpServletRequest request, java.lang.String Query)
Delete Compute inherated rules from basketjavax.ws.rs.core.Response
downloadBatchReport(javax.servlet.http.HttpServletRequest request, java.lang.String id)
javax.ws.rs.core.Response
downloadCsvReferential(javax.servlet.http.HttpServletRequest request, java.lang.String id, java.lang.String type)
javax.ws.rs.core.Response
downloadDistributionReport(javax.servlet.http.HttpServletRequest request, java.lang.String id)
void
downloadProfileFile(javax.servlet.http.HttpServletRequest request, java.lang.String profileMetadataId, javax.ws.rs.container.AsyncResponse asyncResponse)
javax.ws.rs.core.Response
downloadRulesReport(javax.servlet.http.HttpServletRequest request, java.lang.String id)
void
downloadTraceabilityFile(javax.servlet.http.HttpServletRequest request, java.lang.String operationId, java.lang.String contractId, java.lang.String tenantIdParam, javax.ws.rs.container.AsyncResponse asyncResponse)
Download the Traceability Operation filejavax.ws.rs.core.Response
exportProbativeValue(javax.servlet.http.HttpServletRequest request, java.lang.String criteria)
- Send a queryDSL request in order to generate an probative valuejavax.ws.rs.core.Response
extractTimeStampInformation(java.lang.String timestamp)
Extract information from timestampjavax.ws.rs.core.Response
findAccessContract(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Query to Access contracts by idjavax.ws.rs.core.Response
findAccessContracts(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get Access contractsjavax.ws.rs.core.Response
findArchiveUnitProfileByID(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Query to Access archive unit profile by idjavax.ws.rs.core.Response
findArchiveUnitProfiles(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get archive unit profilesjavax.ws.rs.core.Response
findContext(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Get contextsjavax.ws.rs.core.Response
findContextByID(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Get context by idjavax.ws.rs.core.Response
findContractsById(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Gets contracts by namejavax.ws.rs.core.Response
findIngestContracts(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Gets contractsjavax.ws.rs.core.Response
findManagementContract(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Query to Management contracts by idjavax.ws.rs.core.Response
findManagementContracts(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get Management contractsjavax.ws.rs.core.Response
findOntologies(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to find all ontologies matching given criteriajavax.ws.rs.core.Response
findOntologyById(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Query to get Ontology by identifierjavax.ws.rs.core.Response
findProfileByID(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Query to Access contracts by idjavax.ws.rs.core.Response
findProfiles(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get profilesjavax.ws.rs.core.Response
findServiceAgencies(javax.servlet.http.HttpServletRequest request, java.lang.String select)
Find Service Agencies by DSLjavax.ws.rs.core.Response
findServiceAgencyById(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Query to Service Agency by identifierjavax.ws.rs.core.Response
getAccessionRegister(javax.servlet.http.HttpServletRequest request, java.lang.String sessionId, java.lang.String options)
Get the action registers filtered with option queryjavax.ws.rs.core.Response
getAccessionRegisterDetail(javax.servlet.http.HttpServletRequest request, java.lang.String originatingAgency, java.lang.String sessionId, java.lang.String options)
Get the detail of an accessionregister matching options queryjavax.ws.rs.core.Response
getAccessionRegisterSymbolic(javax.servlet.http.HttpServletRequest request, java.lang.String sessionId, java.lang.String options)
Get the last accession register symbolicjavax.ws.rs.core.Response
getAdminTenant()
Return admin tenantjavax.ws.rs.core.Response
getArchiveObjectGroup(javax.servlet.http.HttpServletRequest request, java.lang.String objectGroupId)
Retrieve an ObjectGroup as Json data based on the provided ObjectGroup idjavax.ws.rs.core.Response
getArchiveSearchResult(javax.servlet.http.HttpServletRequest request, java.lang.String sessionId, java.lang.String criteria)
javax.ws.rs.core.Response
getArchiveUnitDetails(javax.servlet.http.HttpServletRequest request, java.lang.String unitId)
javax.ws.rs.core.Response
getArchiveUnitDetailsWithInheritance(javax.servlet.http.HttpServletRequest request, java.lang.String unitId)
void
getDIPAsInputStreamAsync(javax.servlet.http.HttpServletRequest request, java.lang.String id, javax.ws.rs.container.AsyncResponse asyncResponse)
Send a DIP id request in order to download the matching DIPjavax.ws.rs.core.Response
getFileFormats(javax.servlet.http.HttpServletRequest request, java.lang.String sessionId, java.lang.String options)
javax.ws.rs.core.Response
getFileRules(javax.servlet.http.HttpServletRequest request, java.lang.String sessionId, java.lang.String options)
javax.ws.rs.core.Response
getFormatById(javax.servlet.http.HttpServletRequest request, java.lang.String formatId, java.lang.String options)
javax.ws.rs.core.Response
getLogbookMessages()
Retrieve all the messages for logbookjavax.ws.rs.core.Response
getLogbookResult(javax.servlet.http.HttpServletRequest request, java.lang.String sessionId, java.lang.String options)
javax.ws.rs.core.Response
getLogbookResultById(javax.servlet.http.HttpServletRequest request, java.lang.String operationId, java.lang.String options)
javax.ws.rs.core.Response
getLogbookResultLast(javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode query)
void
getObjectAsInputStreamAsync(java.lang.String unitId, java.lang.String usage, java.lang.String filename, java.lang.Integer tenantId, java.lang.String contractId, javax.ws.rs.container.AsyncResponse asyncResponse)
Retrieve an Object data as an input stream.void
getObjectFromStorageAsInputStreamAsync(javax.servlet.http.HttpServletRequest request, java.lang.String objectId, java.lang.String type, javax.ws.rs.container.AsyncResponse asyncResponse)
Retrieve an Object data stored by ingest operation as an input stream.javax.ws.rs.core.Response
getObjectGroupLifeCycleById(javax.servlet.http.HttpServletRequest request, java.lang.String objectGroupLifeCycleId)
returns the object group life cycle based on its idjavax.ws.rs.core.Response
getObjectsSearchResult(javax.servlet.http.HttpServletRequest request, java.lang.String sessionId, java.lang.String criteria)
javax.ws.rs.core.Response
getPermissions(javax.servlet.http.HttpServletRequest httpRequest)
javax.ws.rs.core.Response
getRuleById(javax.servlet.http.HttpServletRequest request, java.lang.String ruleId, java.lang.String options)
javax.ws.rs.core.Response
getSecureMode()
Return authentication modevoid
getTransferSIPAsInputStreamAsync(javax.servlet.http.HttpServletRequest request, java.lang.String id, javax.ws.rs.container.AsyncResponse asyncResponse)
javax.ws.rs.core.Response
getUnitLifeCycleById(javax.servlet.http.HttpServletRequest request, java.lang.String unitLifeCycleId)
returns the unit life cycle based on its idjavax.ws.rs.core.Response
getUnitTree(javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode dslQuery)
This resource returns all paths relative to a unitjavax.ws.rs.core.Response
getWorkflowDefinitions(javax.servlet.http.HttpServletRequest request)
javax.ws.rs.core.Response
importOntologies(boolean forceUpdate, javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Import the ontologies json filejavax.ws.rs.core.Response
importProfileFile(javax.servlet.http.HttpServletRequest request, java.io.InputStream input, java.lang.String id)
Upload profile xsd or rngjavax.ws.rs.core.Response
ingest(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, byte[] stream)
upload : API Endpoint that can Handle chunk mode.javax.ws.rs.core.Response
launchAudit(javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode auditOption)
javax.ws.rs.core.Response
launchEvidanceAudit(javax.servlet.http.HttpServletRequest request, java.lang.String criteria)
Send a queryDSL request in order to select some units and create a matching DIPjavax.ws.rs.core.Response
listOperationsDetails(javax.servlet.http.HttpServletRequest request, ProcessQuery query)
Get the workflow operations list for step by step ingestjavax.ws.rs.core.Response
login(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletRequest httpRequest, com.fasterxml.jackson.databind.JsonNode object)
javax.ws.rs.core.Response
massiveArchiveUnitUpdate(javax.servlet.http.HttpServletRequest request, java.lang.String updateSet)
Masive archive units updatejavax.ws.rs.core.Response
startEliminationAction(javax.servlet.http.HttpServletRequest request, java.lang.String updateSet)
Start elimination actionjavax.ws.rs.core.Response
startEliminationAnalysis(javax.servlet.http.HttpServletRequest request, java.lang.String updateSet)
Start elimination analysisjavax.ws.rs.core.Response
updateAccessContracts(javax.servlet.http.HttpServletRequest request, java.lang.String contractId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update Access contractsjavax.ws.rs.core.Response
updateArchiveUnitDetails(javax.servlet.http.HttpServletRequest request, java.lang.String unitId, java.lang.String updateSet)
Update Archive Unitsjavax.ws.rs.core.Response
updateArchiveUnitProfile(javax.servlet.http.HttpServletRequest request, java.lang.String archiveUnitprofileId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update the detail of the archive unit profilejavax.ws.rs.core.Response
updateContexts(javax.servlet.http.HttpServletRequest request, java.lang.String contextId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update contextjavax.ws.rs.core.Response
updateIngestContracts(javax.servlet.http.HttpServletRequest request, java.lang.String contractId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Upload Access contractsjavax.ws.rs.core.Response
updateManagementContracts(javax.servlet.http.HttpServletRequest request, java.lang.String contractId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update Management contractsjavax.ws.rs.core.Response
updateProfile(javax.servlet.http.HttpServletRequest request, java.lang.String profileMetadataId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update the detail of the profilejavax.ws.rs.core.Response
updateWorkFlowStatus(javax.servlet.http.HttpServletRequest request, java.lang.String id)
Update the status of an operation.javax.ws.rs.core.Response
uploadAccessContracts(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload Access contractsjavax.ws.rs.core.Response
uploadContext(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
upload contextjavax.ws.rs.core.Response
uploadManagementContracts(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload Management contractsjavax.ws.rs.core.Response
uploadRefContracts(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload contractsjavax.ws.rs.core.Response
uploadRefFormat(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload the referential format in the basejavax.ws.rs.core.Response
uploadRefRule(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload the referential rules in the basejavax.ws.rs.core.Response
uploadServiceAgencies(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload Service Agencies-
Methods inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
getServerTenants, status
-
-
-
-
Field Detail
-
X_SIZE_TOTAL
public static final java.lang.String X_SIZE_TOTAL
X_SIZE_TOTAL- See Also:
- Constant Field Values
-
X_CHUNK_OFFSET
public static final java.lang.String X_CHUNK_OFFSET
X_CHUNK_OFFSET- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebApplicationResource
public WebApplicationResource(java.util.Set<java.lang.String> permissions, WebApplicationConfig webApplicationConfig)
Constructor- Parameters:
permissions
-webApplicationConfig
- the web server ihm-demo configuration
-
WebApplicationResource
public WebApplicationResource(java.util.Set<java.lang.String> permissions, WebApplicationConfig webApplicationConfig, IngestExternalClientFactory ingestExternalClientFactory, AdminExternalClientFactory adminExternalClientFactory, UserInterfaceTransactionManager userInterfaceTransactionManager, DslQueryHelper dslQueryHelper, PaginationHelper paginationHelper)
-
-
Method Detail
-
getLogbookMessages
@GET @Path("/messages/logbook") @Produces("application/json") @RequiresPermissions("messages:logbook:read") public javax.ws.rs.core.Response getLogbookMessages()
Retrieve all the messages for logbook- Returns:
- Response
-
getArchiveSearchResult
@POST @Path("/archivesearch/units") @Produces("application/json") @RequiresPermissions("archivesearch:units:read") public javax.ws.rs.core.Response getArchiveSearchResult(@Context javax.servlet.http.HttpServletRequest request, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String criteria)
- Parameters:
request
- needed for the request: X-TENANT-ID (mandatory), X-LIMIT/X-OFFSET (not mandatory)sessionId
- json session id from shirocriteria
- criteria search for units- Returns:
- Reponse
-
getArchiveUnitDetails
@GET @Path("/archivesearch/unit/{id}") @Produces("application/json") @RequiresPermissions("archivesearch:units:read") public javax.ws.rs.core.Response getArchiveUnitDetails(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String unitId)
- Parameters:
request
- needed for the request: X-TENANT-ID (mandatory), X-LIMIT/X-OFFSET (not mandatory)unitId
- archive unit id- Returns:
- archive unit details
-
getArchiveUnitDetailsWithInheritance
@GET @Path("/archivesearch/unitsWithInheritedRules/{id}") @Produces("application/json") @RequiresPermissions("archivesearch:units:read") public javax.ws.rs.core.Response getArchiveUnitDetailsWithInheritance(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String unitId)
- Parameters:
request
- needed for the request: X-TENANT-ID (mandatory), X-LIMIT/X-OFFSET (not mandatory)unitId
- archive unit id- Returns:
- archive unit details
-
getLogbookResult
@POST @Path("/logbook/operations") @Produces("application/json") @RequiresPermissions("logbook:operations:read") public javax.ws.rs.core.Response getLogbookResult(@Context javax.servlet.http.HttpServletRequest request, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String options)
- Parameters:
request
- the http requestsessionId
- json session id from shirooptions
- the queries for searching- Returns:
- Response
-
getLogbookResultLast
@POST @Path("/logbook/operations/last") @Produces("application/json") @RequiresPermissions("logbook:operations:read") public javax.ws.rs.core.Response getLogbookResultLast(@Context javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode query)
-
getLogbookResultById
@POST @Path("/logbook/operations/{idOperation}") @Produces("application/json") @RequiresPermissions("logbook:operations:read") public javax.ws.rs.core.Response getLogbookResultById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("idOperation") java.lang.String operationId, java.lang.String options)
- Parameters:
request
- needed for the request: X-TENANT-ID (mandatory), X-LIMIT/X-OFFSET (not mandatory)operationId
- id of operationoptions
- the queries for searching- Returns:
- Response
-
ingest
@Path("ingest/upload") @POST @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("ingest:create") public javax.ws.rs.core.Response ingest(@Context javax.servlet.http.HttpServletResponse response, @Context javax.servlet.http.HttpServletRequest request, byte[] stream)
upload : API Endpoint that can Handle chunk mode. Chunks information are given in header (Fast catch of these header are present in the code)
The front should give some information- Flow-Chunk-Number => The index of the current chunk
- Flow-Chunk-Size => The configured maximal size of a chunk
- Flow-Current-Chunk-Size => The size of the current chunk
- Flow-Total-Size => The total size of the file (All chunks)
- Flow-Identifier => The identifier of the flow
- Flow-Filename => The file name
- Flow-Relative-Path => (?)The relative path (or the file name only)
- Flow-Total-Chunks => The number of chunks
- Parameters:
request
- the http servlet requestresponse
- the http servlet responsestream
- data input stream for the current chunk- Returns:
- Response
-
checkUploadOperation
@Path("check/{id_op}") @GET @Produces("application/octet-stream") @RequiresPermissions("check:read") public javax.ws.rs.core.Response checkUploadOperation(@PathParam("id_op") java.lang.String operationId, @Context javax.servlet.http.HttpServletRequest request, @QueryParam("action") java.lang.String action) throws VitamClientException, IngestExternalException
Check if the upload operation is done- Parameters:
operationId
-- Returns:
- the Response
- Throws:
VitamClientException
IngestExternalException
-
startEliminationAnalysis
@POST @Path("/elimination/analysis") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("elimination:analysis") public javax.ws.rs.core.Response startEliminationAnalysis(@Context javax.servlet.http.HttpServletRequest request, java.lang.String updateSet)
Start elimination analysis- Parameters:
request
- HTTP requestupdateSet
- contains updated field- Returns:
- archive unit details
-
startEliminationAction
@POST @Path("/elimination/action") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("elimination:action") public javax.ws.rs.core.Response startEliminationAction(@Context javax.servlet.http.HttpServletRequest request, java.lang.String updateSet)
Start elimination action- Parameters:
request
- HTTP requestupdateSet
- contains updated field- Returns:
- archive unit details
-
massiveArchiveUnitUpdate
@POST @Path("/archiveupdate/units") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("archiveupdate:units:update") public javax.ws.rs.core.Response massiveArchiveUnitUpdate(@Context javax.servlet.http.HttpServletRequest request, java.lang.String updateSet)
Masive archive units update- Parameters:
request
- HTTP requestupdateSet
- contains updated field- Returns:
- archive unit details
-
updateArchiveUnitDetails
@POST @Path("/archiveupdate/units/{id}") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("archiveupdate:units:update") public javax.ws.rs.core.Response updateArchiveUnitDetails(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String unitId, java.lang.String updateSet)
Update Archive Units- Parameters:
request
- HTTP requestupdateSet
- contains updated fieldunitId
- archive unit id- Returns:
- archive unit details
-
getFileFormats
@POST @Path("/admin/formats") @Produces("application/json") @RequiresPermissions("admin:formats:read") public javax.ws.rs.core.Response getFileFormats(@Context javax.servlet.http.HttpServletRequest request, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String options)
- Parameters:
request
- HTTP requestsessionId
- json session id from shirooptions
- the queries for searching- Returns:
- Response
-
getFormatById
@POST @Path("/admin/formats/{idFormat:.+}") @Produces("application/json") @RequiresPermissions("admin:formats:read") public javax.ws.rs.core.Response getFormatById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("idFormat") java.lang.String formatId, java.lang.String options)
- Parameters:
request
- HTTP requestformatId
- id of formatoptions
- the queries for searching- Returns:
- Response
-
checkRefFormat
@POST @Path("/format/check") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("format:check") public javax.ws.rs.core.Response checkRefFormat(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
check the referential format- Parameters:
request
- HTTP requestinput
- the format file xml- Returns:
- If the formet is valid, return ok. If not, return the list of errors
-
uploadRefFormat
@POST @Path("/format/upload") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("format:create") public javax.ws.rs.core.Response uploadRefFormat(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload the referential format in the base- Parameters:
request
- HTTP requestinput
- the format file xml- Returns:
- Response
-
getArchiveObjectGroup
@GET @Path("/archiveunit/objects/{idOG}") @Produces("application/json") @RequiresPermissions("archiveunit:objects:read") public javax.ws.rs.core.Response getArchiveObjectGroup(@Context javax.servlet.http.HttpServletRequest request, @PathParam("idOG") java.lang.String objectGroupId)
Retrieve an ObjectGroup as Json data based on the provided ObjectGroup id- Parameters:
request
- HTTP requestobjectGroupId
- the object group Id- Returns:
- a response containing a json with informations about usages and versions for an object group
-
getObjectAsInputStreamAsync
@GET @Path("/archiveunit/objects/download/{unitId}") @Produces("application/octet-stream") @RequiresPermissions("archiveunit:objects:read") public void getObjectAsInputStreamAsync(@PathParam("unitId") java.lang.String unitId, @QueryParam("usage") java.lang.String usage, @QueryParam("filename") java.lang.String filename, @QueryParam("tenantId") java.lang.Integer tenantId, @QueryParam("contractId") java.lang.String contractId, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
Retrieve an Object data as an input stream. Download by access.- Parameters:
unitId
- the unit Idusage
- additional mandatory parameters usagefilename
- additional mandatory parameters filenametenantId
- the tenant idcontractId
- the contract idasyncResponse
- will return the inputstream
-
getObjectFromStorageAsInputStreamAsync
@GET @Path("/ingests/{idObject}/{type}") @Produces("application/octet-stream") @RequiresPermissions("ingests:read") public void getObjectFromStorageAsInputStreamAsync(@Context javax.servlet.http.HttpServletRequest request, @PathParam("idObject") java.lang.String objectId, @PathParam("type") java.lang.String type, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
Retrieve an Object data stored by ingest operation as an input stream. Download by ingests.- Parameters:
request
- HTTP requestobjectId
- the object id to gettype
- of collectionasyncResponse
- request asynchronized response
-
getFileRules
@POST @Path("/admin/rules") @Produces("application/json") @RequiresPermissions("admin:rules:read") public javax.ws.rs.core.Response getFileRules(@Context javax.servlet.http.HttpServletRequest request, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String options)
- Parameters:
request
- HTTP requestsessionId
- json session id from shirooptions
- the queries for searching- Returns:
- Response
-
getRuleById
@POST @Path("/admin/rules/{id_rule}") @Produces("application/json") @RequiresPermissions("admin:rules:read") public javax.ws.rs.core.Response getRuleById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id_rule") java.lang.String ruleId, java.lang.String options)
- Parameters:
request
- HTTP requestruleId
- id of ruleoptions
- the queries for searching- Returns:
- Response
-
downloadRulesReport
@GET @Path("/rules/report/download/{id}") @Produces("application/octet-stream") public javax.ws.rs.core.Response downloadRulesReport(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
-
downloadDistributionReport
@GET @Path("/report/distribution/download/{id}") @Produces("application/octet-stream") public javax.ws.rs.core.Response downloadDistributionReport(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
-
downloadBatchReport
@GET @Path("/report/batchreport/download/{id}") @Produces("application/octet-stream") public javax.ws.rs.core.Response downloadBatchReport(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
-
downloadCsvReferential
@GET @Path("/referential/download/{id}/{type}") @Produces("application/octet-stream") public javax.ws.rs.core.Response downloadCsvReferential(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id, @PathParam("type") java.lang.String type)
-
checkRefRule
@POST @Path("/rules/check") @Consumes("application/octet-stream") @Produces("application/octet-stream") @RequiresPermissions("rules:create") public void checkRefRule(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
check the referential rules- Parameters:
request
- HTTP requestinput
- the rules file csv
-
uploadRefRule
@POST @Path("/rules/upload") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("rules:create") public javax.ws.rs.core.Response uploadRefRule(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload the referential rules in the base- Parameters:
request
- HTTP requestinput
- the format file CSV- Returns:
- Response
-
getAccessionRegister
@POST @Path("/admin/accession-register") @Produces("application/json") @RequiresPermissions("admin:accession-register:read") public javax.ws.rs.core.Response getAccessionRegister(@Context javax.servlet.http.HttpServletRequest request, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String options)
Get the action registers filtered with option query- Parameters:
request
- HTTP requestsessionId
- json session id from shirooptions
- the queries for searching- Returns:
- Response
-
getAccessionRegisterSymbolic
@POST @Path("/admin/accession-register/symbolic") @Produces("application/json") @RequiresPermissions("admin:accessionregisterssymbolic:read") public javax.ws.rs.core.Response getAccessionRegisterSymbolic(@Context javax.servlet.http.HttpServletRequest request, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String options)
Get the last accession register symbolic- Parameters:
request
- HTTP requestoptions
- query criteria- Returns:
- accession register symbolic
-
getAccessionRegisterDetail
@POST @Path("/admin/accession-register/{originatingAgency}/accession-register-detail") @Produces("application/json") @RequiresPermissions("admin:accession-register:read") public javax.ws.rs.core.Response getAccessionRegisterDetail(@Context javax.servlet.http.HttpServletRequest request, @PathParam("originatingAgency") java.lang.String originatingAgency, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String options)
Get the detail of an accessionregister matching options query- Parameters:
request
- HTTP requestoriginatingAgency
- of accession response to getoptions
- query criteria- Returns:
- accession register details
-
getUnitTree
@POST @Path("/archiveunit/tree") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("archiveunit:tree:read") public javax.ws.rs.core.Response getUnitTree(@Context javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode dslQuery)
This resource returns all paths relative to a unit- Parameters:
request
- HTTP requestdslQuery
- the dsl query- Returns:
- all paths relative to a unit
-
login
@POST @Path("login") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response login(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletRequest httpRequest, com.fasterxml.jackson.databind.JsonNode object)
- Parameters:
request
- HTTP requestobject
- user credentials- Returns:
- Response OK if login success
-
getPermissions
@GET @Path("permissions") @Produces("application/json") public javax.ws.rs.core.Response getPermissions(@Context javax.servlet.http.HttpServletRequest httpRequest)
- Returns:
- List of permissions
-
getUnitLifeCycleById
@GET @Path("/logbookunitlifecycles/{id_lc}") @Produces("application/json") @RequiresPermissions("logbookunitlifecycles:read") public javax.ws.rs.core.Response getUnitLifeCycleById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id_lc") java.lang.String unitLifeCycleId)
returns the unit life cycle based on its id- Parameters:
request
- HTTP requestunitLifeCycleId
- the unit id (== unit life cycle id)- Returns:
- the unit life cycle
-
getObjectGroupLifeCycleById
@GET @Path("/logbookobjectslifecycles/{id_lc}") @Produces("application/json") @RequiresPermissions("logbookobjectslifecycles:read") public javax.ws.rs.core.Response getObjectGroupLifeCycleById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id_lc") java.lang.String objectGroupLifeCycleId)
returns the object group life cycle based on its id- Parameters:
request
- HTTP requestobjectGroupLifeCycleId
- the object group id (== object group life cycle id)- Returns:
- the object group life cycle
-
listOperationsDetails
@POST @Path("/operations") @Produces("application/json") @RequiresPermissions("operations:read") public javax.ws.rs.core.Response listOperationsDetails(@Context javax.servlet.http.HttpServletRequest request, ProcessQuery query)
Get the workflow operations list for step by step ingest- Parameters:
request
- HTTP requestquery
- the query- Returns:
- the operations list
-
updateWorkFlowStatus
@Path("operations/{id}") @PUT @Produces("application/octet-stream") @RequiresPermissions("operations:update") public javax.ws.rs.core.Response updateWorkFlowStatus(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Update the status of an operation.- Parameters:
request
- HTTP requestid
- operation identifier- Returns:
- http response
-
cancelProcess
@DELETE @Path("/operations/{id}") @RequiresPermissions("operations:delete") public javax.ws.rs.core.Response cancelProcess(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
-
uploadRefContracts
@POST @Path("/contracts") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("contracts:create") public javax.ws.rs.core.Response uploadRefContracts(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload contracts- Parameters:
request
- HTTP requestinput
- the format file CSV- Returns:
- Response
-
findIngestContracts
@POST @Path("/contracts") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("contracts:read") public javax.ws.rs.core.Response findIngestContracts(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Gets contracts- Parameters:
request
- HTTP requestselect
- the query- Returns:
- Response
-
findContractsById
@GET @Path("/contracts/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("contracts:read") public javax.ws.rs.core.Response findContractsById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Gets contracts by name- Parameters:
request
- HTTP requestid
- if of the contract- Returns:
- Response
-
updateIngestContracts
@POST @Path("/contracts/{id}") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("contracts:update") public javax.ws.rs.core.Response updateIngestContracts(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String contractId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Upload Access contracts- Parameters:
request
- HTTP requestcontractId
- the id of ingest contract- Returns:
- Response
-
uploadAccessContracts
@POST @Path("/accesscontracts") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("accesscontracts:create") public javax.ws.rs.core.Response uploadAccessContracts(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload Access contracts- Parameters:
request
- HTTP requestinput
- the format file CSV- Returns:
- Response
-
findAccessContracts
@POST @Path("/accesscontracts") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("accesscontracts:read") public javax.ws.rs.core.Response findAccessContracts(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get Access contracts- Parameters:
request
- HTTP requestselect
- the query to find access contracts- Returns:
- Response
-
findAccessContract
@GET @Path("/accesscontracts/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("accesscontracts:read") public javax.ws.rs.core.Response findAccessContract(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Query to Access contracts by id- Parameters:
request
- HTTP requestid
- of the requested access contract- Returns:
- Response
-
updateAccessContracts
@POST @Path("/accesscontracts/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("accesscontracts:update") public javax.ws.rs.core.Response updateAccessContracts(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String contractId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update Access contracts- Parameters:
request
- HTTP requestcontractId
- the id of access contract- Returns:
- Response
-
uploadManagementContracts
@POST @Path("/managementcontracts") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("managementcontracts:create") public javax.ws.rs.core.Response uploadManagementContracts(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload Management contracts- Parameters:
request
- HTTP requestinput
- the format file CSV- Returns:
- Response
-
findManagementContracts
@POST @Path("/managementcontracts") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("managementcontracts:read") public javax.ws.rs.core.Response findManagementContracts(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get Management contracts- Parameters:
request
- HTTP requestselect
- the query to find Management contracts- Returns:
- Response
-
findManagementContract
@GET @Path("/managementcontracts/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("managementcontracts:read") public javax.ws.rs.core.Response findManagementContract(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Query to Management contracts by id- Parameters:
request
- HTTP requestid
- of the requested management contract- Returns:
- Response
-
updateManagementContracts
@POST @Path("/managementcontracts/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("managementcontracts:update") public javax.ws.rs.core.Response updateManagementContracts(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String contractId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update Management contracts- Parameters:
request
- HTTP requestcontractId
- the id of management contract- Returns:
- Response
-
updateContexts
@POST @Path("/contexts/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("contexts:update") public javax.ws.rs.core.Response updateContexts(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String contextId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update context- Parameters:
request
- HTTP requestcontextId
- the id of context- Returns:
- Response
-
uploadContext
@POST @Path("/contexts") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("contexts:create") public javax.ws.rs.core.Response uploadContext(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
upload context- Parameters:
request
- HTTP requestinput
- the file json- Returns:
- Response
-
findContext
@POST @Path("/contexts") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("contexts:read") public javax.ws.rs.core.Response findContext(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Get contexts- Parameters:
request
- HTTP requestselect
-- Returns:
- Response
-
findContextByID
@GET @Path("/contexts/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("contexts:read") public javax.ws.rs.core.Response findContextByID(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Get context by id- Parameters:
request
- HTTP requestid
-- Returns:
- Response
-
createProfilesMetadata
@POST @Path("/profiles") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("profiles:create") public javax.ws.rs.core.Response createProfilesMetadata(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input) throws java.io.IOException
Create profiles metadata- Parameters:
request
- HTTP requestinput
- the format file CSV- Returns:
- Response
- Throws:
java.io.IOException
-
importProfileFile
@PUT @Path("/profiles/{id}") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("profiles:create") public javax.ws.rs.core.Response importProfileFile(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input, @PathParam("id") java.lang.String id)
Upload profile xsd or rng- Parameters:
request
- HTTP requestinput
- the format file CSV- Returns:
- Response
-
updateProfile
@PUT @Path("/profiles/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("profiles:update") public javax.ws.rs.core.Response updateProfile(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String profileMetadataId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update the detail of the profile- Parameters:
request
- HTTP requestprofileMetadataId
-updateOptions
-- Returns:
- Response
-
downloadProfileFile
@GET @Path("/profiles/{id}") @Produces("application/octet-stream") @RequiresPermissions("profiles:read") public void downloadProfileFile(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String profileMetadataId, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
-
findProfiles
@POST @Path("/profiles") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("profiles:read") public javax.ws.rs.core.Response findProfiles(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get profiles- Parameters:
request
- HTTP requestselect
- the query to find access contracts- Returns:
- Response
-
findProfileByID
@GET @Path("/profiles/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("profiles:read") public javax.ws.rs.core.Response findProfileByID(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Query to Access contracts by id- Parameters:
request
- HTTP requestid
- of the requested access contract- Returns:
- Response
-
checkOperationTraceability
@POST @Path("/traceability/check") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("traceability:check:create") public javax.ws.rs.core.Response checkOperationTraceability(@Context javax.servlet.http.HttpServletRequest request, java.lang.String operationCriteria)
Starts a TRACEABILITY check process- Parameters:
request
- HTTP requestoperationCriteria
- a DSLQuery to find the TRACEABILITY operation to verify- Returns:
- TRACEABILITY check process : the logbookOperation created during this process
-
downloadTraceabilityFile
@GET @Path("/traceability/{idOperation}/content") @Produces("application/octet-stream") @RequiresPermissions("traceability:content:read") public void downloadTraceabilityFile(@Context javax.servlet.http.HttpServletRequest request, @PathParam("idOperation") java.lang.String operationId, @QueryParam("contractId") java.lang.String contractId, @QueryParam("tenantId") java.lang.String tenantIdParam, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
Download the Traceability Operation file- Parameters:
request
- HTTP requestoperationId
- the TRACEABILITY operation identifiercontractId
- the contractIdtenantIdParam
- theTenantIdasyncResponse
- the async response
-
extractTimeStampInformation
@POST @Path("/traceability/extractTimestamp") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("logbook:operations:read") public javax.ws.rs.core.Response extractTimeStampInformation(java.lang.String timestamp)
Extract information from timestamp- Parameters:
timestamp
- the timestamp to be transformed- Returns:
- Response
-
getWorkflowDefinitions
@GET @Path("/workflows") @Produces("application/json") public javax.ws.rs.core.Response getWorkflowDefinitions(@Context javax.servlet.http.HttpServletRequest request)
-
launchAudit
@POST @Path("/audits") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("admin:audit") public javax.ws.rs.core.Response launchAudit(@Context javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode auditOption)
-
uploadServiceAgencies
@POST @Path("/agencies") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("agencies:create") public javax.ws.rs.core.Response uploadServiceAgencies(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input)
Upload Service Agencies- Parameters:
request
- HTTP requestinput
- the Service Agency file CSV- Returns:
- Response
-
findServiceAgencies
@POST @Path("/agencies") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("agencies:read") public javax.ws.rs.core.Response findServiceAgencies(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Find Service Agencies by DSL- Parameters:
request
- HTTP requestselect
- the query to find Service Agency- Returns:
- Response
-
findServiceAgencyById
@GET @Path("/agencies/{id:.+}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("agencies:read") public javax.ws.rs.core.Response findServiceAgencyById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Query to Service Agency by identifier- Parameters:
request
- HTTP requestid
- of the requested Service Agency- Returns:
- Response
-
createArchiveUnitProfileMetadata
@POST @Path("/archiveunitprofiles") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("archiveunitprofiles:create") public javax.ws.rs.core.Response createArchiveUnitProfileMetadata(@Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input) throws java.io.IOException
Create archive unit profiles metadata- Parameters:
request
- HTTP requestinput
- the format file CSV- Returns:
- Response
- Throws:
java.io.IOException
-
updateArchiveUnitProfile
@PUT @Path("/archiveunitprofiles/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("archiveunitprofiles:update") public javax.ws.rs.core.Response updateArchiveUnitProfile(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String archiveUnitprofileId, com.fasterxml.jackson.databind.JsonNode updateOptions)
Update the detail of the archive unit profile- Parameters:
request
- HTTP requestarchiveUnitprofileId
-updateOptions
-- Returns:
- Response
-
findArchiveUnitProfiles
@POST @Path("/archiveunitprofiles") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("archiveunitprofiles:read") public javax.ws.rs.core.Response findArchiveUnitProfiles(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to get archive unit profiles- Parameters:
request
- HTTP requestselect
- the query to find archive unit profiles- Returns:
- Response
-
findArchiveUnitProfileByID
@GET @Path("/archiveunitprofiles/{id}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("archiveunitprofiles:read") public javax.ws.rs.core.Response findArchiveUnitProfileByID(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Query to Access archive unit profile by id- Parameters:
request
- HTTP requestid
- of the requested archive unit profile- Returns:
- Response
-
importOntologies
@POST @Path("/ontologies") @Consumes("application/octet-stream") @Produces("application/json") @RequiresPermissions("ontologies:create") public javax.ws.rs.core.Response importOntologies(@HeaderParam("Force-Update") boolean forceUpdate, @Context javax.servlet.http.HttpServletRequest request, java.io.InputStream input) throws java.io.IOException
Import the ontologies json file- Parameters:
request
- HTTP requestinput
- a json file- Returns:
- Response
- Throws:
java.io.IOException
-
findOntologies
@POST @Path("/ontologies") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("ontologies:read") public javax.ws.rs.core.Response findOntologies(@Context javax.servlet.http.HttpServletRequest request, java.lang.String select)
Query to find all ontologies matching given criteria- Parameters:
request
- HTTP request contextselect
- given criteria in order to select ontologies- Returns:
- Response
-
findOntologyById
@GET @Path("/ontologies/{id:.+}") @Consumes("application/json") @Produces("application/json") @RequiresPermissions("ontologies:read") public javax.ws.rs.core.Response findOntologyById(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id)
Query to get Ontology by identifier- Parameters:
request
- HTTP requestid
- of the requested Service Agency- Returns:
- Response
-
launchEvidanceAudit
@POST @Path("/archiveunit/evidenceaudit") @RequiresPermissions("evidenceaudit:check") public javax.ws.rs.core.Response launchEvidanceAudit(@Context javax.servlet.http.HttpServletRequest request, java.lang.String criteria)
Send a queryDSL request in order to select some units and create a matching DIP- Parameters:
request
- HTTP requestcriteria
- queryDSL for criteria
-
exportProbativeValue
@POST @Path("/archiveunit/probativevalueexport") @RequiresPermissions("probativevalue:check") public javax.ws.rs.core.Response exportProbativeValue(@Context javax.servlet.http.HttpServletRequest request, java.lang.String criteria)
- Send a queryDSL request in order to generate an probative value- Parameters:
request
- HTTP requestcriteria
- queryDSL for criteria
-
createDIPForExport
@POST @Path("/archiveunit/dipexport") @Produces("application/json") @RequiresPermissions("dipexportv2:create") public javax.ws.rs.core.Response createDIPForExport(@Context javax.servlet.http.HttpServletRequest request, DipRequest criteria)
Send a queryDSL request in order to select some units and create a matching DIP- Parameters:
request
- HTTP requestcriteria
- queryDSL for criteria
-
createTransferSIP
@POST @Path("/archiveunit/transfers") @Produces("application/json") @RequiresPermissions("transfers:create") public javax.ws.rs.core.Response createTransferSIP(@Context javax.servlet.http.HttpServletRequest request, TransferRequest criteria)
-
getDIPAsInputStreamAsync
@GET @Path("/archiveunit/dipexport/{id}") @Produces("application/octet-stream") @RequiresPermissions("dipexport:read") public void getDIPAsInputStreamAsync(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
Send a DIP id request in order to download the matching DIP- Parameters:
request
- HTTP requestasyncResponse
- request asynchronized response
-
getTransferSIPAsInputStreamAsync
@GET @Path("/archiveunit/transfers/{id}") @Produces("application/octet-stream") @RequiresPermissions("transfers:read") public void getTransferSIPAsInputStreamAsync(@Context javax.servlet.http.HttpServletRequest request, @PathParam("id") java.lang.String id, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
-
computedInheritedRules
@POST @Path("/archiveunit/computedinheritedrules") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("archiveupdate:units:update") public javax.ws.rs.core.Response computedInheritedRules(@Context javax.servlet.http.HttpServletRequest request, java.lang.String Query)
Compute inherated rules from basket- Parameters:
request
- HTTP requestQuery
- contains updated field- Returns:
- archive unit details
-
deleteComputedInheritedRules
@POST @Path("/archiveunit/deletecomputedinheritedrules") @Produces("application/json") @Consumes("application/json") @RequiresPermissions("archiveupdate:units:update") public javax.ws.rs.core.Response deleteComputedInheritedRules(@Context javax.servlet.http.HttpServletRequest request, java.lang.String Query)
Delete Compute inherated rules from basket- Parameters:
request
- HTTP requestQuery
- contains updated field- Returns:
- archive unit details
-
getSecureMode
@GET @Path("/securemode") @Produces("application/json") public javax.ws.rs.core.Response getSecureMode()
Return authentication mode- Returns:
- liste of authentication mode
-
getAdminTenant
@GET @Path("/admintenant") @Produces("application/json") public javax.ws.rs.core.Response getAdminTenant()
Return admin tenant- Returns:
- admin tenant number
-
getObjectsSearchResult
@POST @Path("/objectssearch/objects") @Produces("application/json") @RequiresPermissions("objects:read") public javax.ws.rs.core.Response getObjectsSearchResult(@Context javax.servlet.http.HttpServletRequest request, @CookieParam("JSESSIONID") java.lang.String sessionId, java.lang.String criteria)
- Parameters:
request
- needed for the request: X-TENANT-ID (mandatory), X-LIMIT/X-OFFSET (not mandatory)sessionId
- json session id from shirocriteria
- criteria search for units- Returns:
- Reponse
-
-