@Path(value="/storage/v1") public class StorageResource extends ApplicationStatusResource implements VitamAutoCloseable
STATUS_URL, TENANTS_URL
Constructor and Description |
---|
StorageResource(StorageConfiguration configuration,
StorageLogService service)
Constructor
|
StorageResource(String configurationFile)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
backupStorageLog(String xTenantId)
Backup storage log
|
javax.ws.rs.core.Response |
checkLogbook(javax.ws.rs.core.HttpHeaders headers,
String logbookId)
Check the existence of a logbook Note : this is NOT to be handled in item #72.
|
javax.ws.rs.core.Response |
checkObject(javax.ws.rs.core.HttpHeaders headers,
String objectId)
Check the existence of an object
|
javax.ws.rs.core.Response |
checkObjectGroup(javax.ws.rs.core.HttpHeaders headers,
String metadataId)
Check the existence of a Object Group metadata
|
javax.ws.rs.core.Response |
checkPostHeader(javax.ws.rs.core.HttpHeaders headers)
Search the header value for 'X-Http-Method-Override' and return an error response id it's value is not 'GET'
|
javax.ws.rs.core.Response |
checkUnit(javax.ws.rs.core.HttpHeaders headers,
String metadataId)
Check the existence of a unit metadata
|
void |
close() |
javax.ws.rs.core.Response |
creatAgencyfileFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String agencyfile,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createBackupFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String backupfile,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createContainer(javax.ws.rs.core.HttpHeaders headers)
Create a container
|
javax.ws.rs.core.Response |
createDIP(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String guid,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createLogbook(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String logbookId,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createlogbookreportFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String logbookreportfile,
ObjectDescription createObjectDescription)
Post a new ckeck logbook report file
|
javax.ws.rs.core.Response |
createManifestOrGetInformation(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String manifestId,
ObjectDescription createObjectDescription)
Post a new object manifest
|
javax.ws.rs.core.Response |
createObjectGroup(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String metadataId,
ObjectDescription createObjectDescription)
Post a new Object Group metadata
|
javax.ws.rs.core.Response |
createObjectOrGetInformation(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String objectId,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createOrUpdateBackupOperation(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String operationId,
ObjectDescription createObjectDescription)
Post a new backup operation
|
javax.ws.rs.core.Response |
createProfileOrGetInformation(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String profileFileName,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createReportOrGetInformation(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String reportId,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createRuleFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String ruleFile,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createStorageLog(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String storageLogname,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createStorageTraceability(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String storageLogname,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createUnitMetadata(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String metadataId,
ObjectDescription createObjectDescription)
Post a new unit metadata
|
javax.ws.rs.core.Response |
deleteContainer(javax.ws.rs.core.HttpHeaders headers)
Delete a container
|
javax.ws.rs.core.Response |
deleteLogbook(javax.ws.rs.core.HttpHeaders headers,
String logbookId)
Delete a logbook Note : this is NOT to be handled in item #72.
|
javax.ws.rs.core.Response |
deleteObject(javax.ws.rs.core.HttpHeaders headers,
String objectId)
Delete an object
|
javax.ws.rs.core.Response |
deleteObjectGroup(javax.ws.rs.core.HttpHeaders headers,
String metadataId)
Delete a Object Group metadata
|
javax.ws.rs.core.Response |
deleteUnit(javax.ws.rs.core.HttpHeaders headers,
String metadataId)
Delete a unit metadata
|
javax.ws.rs.core.Response |
downloadProfile(javax.ws.rs.core.HttpHeaders headers,
String profileFileName)
Get a report
|
javax.ws.rs.core.Response |
downloadStorageTraceability(javax.ws.rs.core.HttpHeaders headers,
String filename)
Get a storage traceability file
|
javax.ws.rs.core.Response |
getBackupFile(javax.ws.rs.core.HttpHeaders headers,
String backupfile)
Get colection data.
|
javax.ws.rs.core.Response |
getBackupOperation(javax.ws.rs.core.HttpHeaders headers,
String operationId)
Get a backup operation
|
javax.ws.rs.core.Response |
getInformation(javax.ws.rs.core.HttpHeaders headers,
String typeStr,
String objectId)
Get object metadata as json Note : this is NOT to be handled in item #72.
|
javax.ws.rs.core.Response |
getLogbook(javax.ws.rs.core.HttpHeaders headers,
String logbookId)
Get an object
|
javax.ws.rs.core.Response |
getlogbookreportFile(javax.ws.rs.core.HttpHeaders headers,
String logbookreportfile)
Get colection data.
|
javax.ws.rs.core.Response |
getLogbooks(javax.ws.rs.core.HttpHeaders headers)
Get a list of logbooks
|
javax.ws.rs.core.Response |
getLogbookStream(javax.ws.rs.core.HttpHeaders headers,
String objectId) |
javax.ws.rs.core.Response |
getManifest(javax.ws.rs.core.HttpHeaders headers,
String objectId)
getManifest stored by ingest operation
|
javax.ws.rs.core.Response |
getObject(javax.ws.rs.core.HttpHeaders headers,
String objectId)
Get an object data
|
javax.ws.rs.core.Response |
getObjectGroup(javax.ws.rs.core.HttpHeaders headers,
String metadataId)
Get a Object Group
|
javax.ws.rs.core.Response |
getObjectGroups(javax.ws.rs.core.HttpHeaders headers)
Get a list of Object Groups
|
javax.ws.rs.core.Response |
getOfferLogs(String strategyId,
DataCategory type,
OfferLogRequest offerLogRequest)
Get offer log from referent offer
|
javax.ws.rs.core.Response |
getReport(javax.ws.rs.core.HttpHeaders headers,
String objectId)
Get a report
|
javax.ws.rs.core.Response |
getStorageInformation(javax.ws.rs.core.HttpHeaders headers)
Get storage information for a specific tenant/strategy For example the usable space
|
javax.ws.rs.core.Response |
getUnit(javax.ws.rs.core.HttpHeaders headers,
String metadataId)
Get a unit
|
javax.ws.rs.core.Response |
getUnits(javax.ws.rs.core.HttpHeaders headers)
Get a list of units
|
javax.ws.rs.core.Response |
listObjects(boolean xcursor,
String xcursorId,
String strategyId,
DataCategory type)
Get list of object type
|
javax.ws.rs.core.Response |
readDIP(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String guid)
read a dip
|
javax.ws.rs.core.Response |
traceabilityStorageLogbook(String xTenantId)
Run storage logbook secure operation
|
javax.ws.rs.core.Response |
updateObjectGroupMetadata(javax.ws.rs.core.HttpHeaders headers,
String metadataId,
com.fasterxml.jackson.databind.JsonNode query)
Update a Object Group metadata
|
javax.ws.rs.core.Response |
updateUnitMetadata(javax.ws.rs.core.HttpHeaders headers,
String metadataId,
com.fasterxml.jackson.databind.JsonNode query)
Update a unit metadata
|
getServerTenants, status
public StorageResource(String configurationFile)
configurationFile
- public StorageResource(StorageConfiguration configuration, StorageLogService service)
configuration
- the storage configuration to be appliedservice
- the logbook service@GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getStorageInformation(@Context javax.ws.rs.core.HttpHeaders headers)
headers
- http headerspublic javax.ws.rs.core.Response checkPostHeader(javax.ws.rs.core.HttpHeaders headers)
headers
- the http headers to check@POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createContainer(@Context javax.ws.rs.core.HttpHeaders headers)
headers
- http header@DELETE @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response deleteContainer(@Context javax.ws.rs.core.HttpHeaders headers)
Note : this is NOT to be handled in item #72.
headers
- http header@Path(value="/{type:UNIT|OBJECT|OBJECTGROUP|LOGBOOK|REPORT|MANIFEST|PROFILE|STORAGELOG|STORAGETRACEABILITY|RULES|DIP|AGENCIES|BACKUP|BACKUP_OPERATION|CHECKLOGBOOKREPORTS}") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response listObjects(@HeaderParam(value="X-Cursor") boolean xcursor, @HeaderParam(value="X-Cursor-Id") String xcursorId, @HeaderParam(value="X-Strategy-Id") String strategyId, @PathParam(value="type") DataCategory type)
xcursor
- the X-CursorxcursorId
- the X-Cursor-Id if existsstrategyId
- the strategy to get offerstype
- the object type to list@Path(value="/{type:UNIT|OBJECT|OBJECTGROUP|LOGBOOK|REPORT|MANIFEST|PROFILE|STORAGELOG|STORAGETRACEABILITY|RULES|DIP|AGENCIES|BACKUP|BACKUP_OPERATION|CHECKLOGBOOKREPORTS}/logs") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getOfferLogs(@HeaderParam(value="X-Strategy-Id") String strategyId, @PathParam(value="type") DataCategory type, OfferLogRequest offerLogRequest)
strategyId
- the strategy to get offerstype
- the object type to listofferLogRequest
- offer log request params@Path(value="/info/{type}/{id_object}") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getInformation(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="type") String typeStr, @PathParam(value="id_object") String objectId)
headers
- http headerobjectId
- the id of the object@Path(value="/objects/{id_object}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getObject(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object") String objectId) throws IOException
headers
- http headerobjectId
- the id of the objectIOException
- throws an IO Exception@Path(value="/backup/{backupfile}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getBackupFile(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="backupfile") String backupfile) throws IOException
headers
- backupfile
- IOException
@Path(value="/objects/{id_object}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createObjectOrGetInformation(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object") String objectId, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerobjectId
- the id of the objectcreateObjectDescription
- the object description@Path(value="/backupoperations/{id_operation}") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createOrUpdateBackupOperation(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_operation") String operationId, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headeroperationId
- the id of the operationcreateObjectDescription
- the object description for storage@Path(value="/backupoperations/{id_operation}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getBackupOperation(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_operation") String operationId)
headers
- http headeroperationId
- the id of the operation@Path(value="/objects/{id_object}") @DELETE @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response deleteObject(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object") String objectId)
headers
- http headerobjectId
- the id of the object@Path(value="/objects/{id_object}") @HEAD @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response checkObject(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object") String objectId)
headers
- http headerobjectId
- the id of the object@Path(value="/logbooks") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getLogbooks(@Context javax.ws.rs.core.HttpHeaders headers)
Note : this is NOT to be handled in item #72.
headers
- http header@Path(value="/logbooks/{id_logbook}") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getLogbook(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_logbook") String logbookId)
Note : this is NOT to be handled in item #72.
headers
- http headerlogbookId
- the id of the logbook@Path(value="/logbooks/{id_logbook}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getLogbookStream(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_logbook") String objectId) throws IOException
headers
- http headerobjectId
- the id of the objectIOException
- exception@Path(value="/logbooks/{id_logbook}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createLogbook(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_logbook") String logbookId, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerlogbookId
- the id of the logbookIdcreateObjectDescription
- the workspace information about logbook to be created@Path(value="/logbooks/{id_logbook}") @DELETE @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response deleteLogbook(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_logbook") String logbookId)
headers
- http headerlogbookId
- the id of the logbook@Path(value="/logbooks/{id_logbook}") @HEAD @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response checkLogbook(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_logbook") String logbookId)
headers
- http headerlogbookId
- the id of the logbook@Path(value="/units") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getUnits(@Context javax.ws.rs.core.HttpHeaders headers)
Note : this is NOT to be handled in item #72.
headers
- http header@Path(value="/units/{id_md}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getUnit(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId)
headers
- http headerobjectId
- the id of the object@Path(value="/units/{id_md}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createUnitMetadata(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headermetadataId
- the id of the unit metadatacreateObjectDescription
- the workspace description of the unit to be created@Path(value="/units/{id_md}") @PUT @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response updateUnitMetadata(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId, com.fasterxml.jackson.databind.JsonNode query)
Note : this is NOT to be handled in item #72.
headers
- http headermetadataId
- the id of the unit metadataquery
- the query as a JsonNode@Path(value="/units/{id_md}") @DELETE @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response deleteUnit(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId)
headers
- http headermetadataId
- the id of the unit metadata@Path(value="/units/{id_md}") @HEAD @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response checkUnit(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId)
headers
- http headermetadataId
- the id of the unit metadata@Path(value="/objectgroups") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getObjectGroups(@Context javax.ws.rs.core.HttpHeaders headers)
Note : this is NOT to be handled in item #72.
headers
- http header@Path(value="/objectgroups/{id_md}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getObjectGroup(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId)
Note : this is NOT to be handled in item #72.
headers
- http headermetadataId
- the id of the Object Group metadata@Path(value="/objectgroups/{id_md}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createObjectGroup(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headermetadataId
- the id of the Object Group metadatacreateObjectDescription
- the workspace description of the unit to be created@Path(value="/objectgroups/{id_md}") @PUT @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response updateObjectGroupMetadata(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId, com.fasterxml.jackson.databind.JsonNode query)
Note : this is NOT to be handled in item #72.
headers
- http headermetadataId
- the id of the unit metadataquery
- the query as a JsonNode@Path(value="/objectgroups/{id_md}") @DELETE @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response deleteObjectGroup(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId)
Note : this is NOT to be handled in item #72.
headers
- http headermetadataId
- the id of the Object Group metadata@Path(value="/objectgroups/{id_md}") @HEAD @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response checkObjectGroup(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_md") String metadataId)
Note : this is NOT to be handled in item #72.
headers
- http headermetadataId
- the id of the Object Group metadata@Path(value="/reports/{id_report}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createReportOrGetInformation(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_report") String reportId, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerreportId
- the id of the objectcreateObjectDescription
- the object description@Path(value="/reports/{id_report}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getReport(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_report") String objectId) throws IOException
headers
- http headerobjectId
- the id of the objectIOException
- throws an IO Exception@Path(value="/manifests/{id_manifest}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createManifestOrGetInformation(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_manifest") String manifestId, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headermanifestId
- the id of the objectcreateObjectDescription
- the object description@Path(value="/manifests/{id_manifest}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getManifest(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_manifest") String objectId) throws IOException
headers
- objectId
- IOException
@POST @Path(value="/storage/backup") @Produces(value="application/json") public javax.ws.rs.core.Response backupStorageLog(@HeaderParam(value="X-Tenant-Id") String xTenantId)
xTenantId
- the tenant id@POST @Path(value="/storage/traceability") @Produces(value="application/json") public javax.ws.rs.core.Response traceabilityStorageLogbook(@HeaderParam(value="X-Tenant-Id") String xTenantId)
xTenantId
- the tenant id@Path(value="/storagelog/{storagelogname}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createStorageLog(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="storagelogname") String storageLogname, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerstorageLogname
- the id of the objectcreateObjectDescription
- the object description@Path(value="/storagetraceability/{storagetraceabilityname}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createStorageTraceability(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="storagetraceabilityname") String storageLogname, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerstoragetraceabilityname
- the id of the objectcreateObjectDescription
- the object description@Path(value="/storagetraceability/{storagetraceability_name}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response downloadStorageTraceability(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="storagetraceability_name") String filename)
headers
- http headerfilename
- the id of the objectIOException
- throws an IO Exception@Path(value="/backup/{backupfile}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createBackupFile(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="backupfile") String backupfile, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerbackupfile
- the id of the objectcreateObjectDescription
- the object description@Path(value="/rules/{rulefile}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createRuleFile(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="rulefile") String ruleFile, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerruleFile
- the id of the objectcreateObjectDescription
- the object description@Path(value="/checklogbookreports/{logbookreportfile}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createlogbookreportFile(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="logbookreportfile") String logbookreportfile, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerlogbookreportfile
- the id of the objectcreateObjectDescription
- the object description@Path(value="/checklogbookreports/{logbookreportfile}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getlogbookreportFile(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="logbookreportfile") String logbookreportfile) throws IOException
headers
- logbookreportfile
- IOException
@Path(value="/agencies/{agencyfile}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response creatAgencyfileFile(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="agencyfile") String agencyfile, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headeragencyfile
- the id of the objectcreateObjectDescription
- the object description@Path(value="/dip/{guid}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createDIP(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="guid") String guid, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerguid
- the id of the objectcreateObjectDescription
- the object description@Path(value="/dip/{guid}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response readDIP(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="guid") String guid)
httpServletRequest
- http servlet request to get requesterheaders
- http headerguid
- the id of the object@Path(value="/profiles/{profile_file_name}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createProfileOrGetInformation(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="profile_file_name") String profileFileName, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerprofileFileName
- the id of the objectcreateObjectDescription
- the object description@Path(value="/profiles/{profile_file_name}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response downloadProfile(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="profile_file_name") String profileFileName) throws IOException
headers
- http headerprofileFileName
- the id of the objectIOException
- throws an IO Exceptionpublic void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
Copyright © 2018 Vitam. All rights reserved.