@Path(value="/storage/v1") public class StorageResource extends ApplicationStatusResource implements VitamAutoCloseable
STATUS_URL, TENANTS_URL
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
backupStorageAccessLog(javax.ws.rs.core.HttpHeaders headers)
Backup access log
|
javax.ws.rs.core.Response |
backupStorageLog(javax.ws.rs.core.HttpHeaders headers)
Backup storage log
|
javax.ws.rs.core.Response |
bulkCreateFromWorkspace(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String folder,
BulkObjectStoreRequest bulkObjectStoreRequest) |
javax.ws.rs.core.Response |
checkObject(javax.ws.rs.core.HttpHeaders headers,
DataCategory type,
String objectId)
Check the existence of an object
|
void |
close() |
javax.ws.rs.core.Response |
copy(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String objectId) |
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 |
create(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String operationId,
InputStream inputStream)
Post a new backup operation
|
javax.ws.rs.core.Response |
createAccessionRegisterDetail(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String fileName,
ObjectDescription createObjectDescription)
Post a new unit metadata
|
javax.ws.rs.core.Response |
createAccessionRegisterSymbolic(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String fileName,
ObjectDescription createObjectDescription)
Post a new unit metadata
|
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 |
createDistributionReportFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String distributionreportfile,
ObjectDescription createObjectDescription)
Post a new distribution report file
|
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 |
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 |
createObjectGroupGraphFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String graph_file_name,
ObjectDescription createObjectDescription)
Create a new graph zip file
|
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 |
createStorageAccessLog(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String storageAccessLogName,
ObjectDescription createObjectDescription)
Post a new accesslog 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 storagetraceabilityname,
ObjectDescription createObjectDescription)
Post a new object
|
javax.ws.rs.core.Response |
createUnitGraphFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String graph_file_name,
ObjectDescription createObjectDescription)
Create a new graph zip file
|
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 |
deleteObject(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String objectId)
Delete an object
|
javax.ws.rs.core.Response |
downloadProfile(javax.ws.rs.core.HttpHeaders headers,
String profileFileName)
Get a profile
|
javax.ws.rs.core.Response |
downloadStorageTraceability(javax.ws.rs.core.HttpHeaders headers,
String filename)
Get a storage traceability file
|
javax.ws.rs.core.Response |
getAccessionRegisterDetail(javax.ws.rs.core.HttpHeaders headers,
String fileName)
Get an accessionregistersdetail
|
javax.ws.rs.core.Response |
getAccessionRegisterSymbolic(javax.ws.rs.core.HttpHeaders headers,
String fileName)
Get an accessionregisterssymbolic
|
javax.ws.rs.core.Response |
getAccessLogFile(javax.ws.rs.core.HttpHeaders headers,
String storageAccessLogFile)
Get access log data.
|
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 |
getBatchObjectInformation(javax.ws.rs.core.HttpHeaders headers,
String typeStr,
List<String> objectIds)
Get object metadata as json Note : this is NOT to be handled in item #72.
|
javax.ws.rs.core.Response |
getDistributionReport(javax.ws.rs.core.HttpHeaders headers,
String objectId)
Get a report
|
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 |
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,
AccessLogInfoModel logInfo)
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 |
getObjectGroupGraphFile(javax.ws.rs.core.HttpHeaders headers,
String graph_file_name)
Get graph zip file
|
javax.ws.rs.core.Response |
getOfferLogs(javax.ws.rs.core.HttpHeaders headers,
DataCategory type,
OfferLogRequest offerLogRequest)
Get offer log from referent offer
|
javax.ws.rs.core.Response |
getOffers(String strategyId) |
javax.ws.rs.core.Response |
getReport(javax.ws.rs.core.HttpHeaders headers,
String objectId)
Get a report
|
javax.ws.rs.core.Response |
getRuleFile(javax.ws.rs.core.HttpHeaders headers,
String objectId) |
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 |
getStrategies()
Get the strategies available in the module
|
javax.ws.rs.core.Response |
getUnit(javax.ws.rs.core.HttpHeaders headers,
String unitId)
Get a unit
|
javax.ws.rs.core.Response |
getUnitGraphFile(javax.ws.rs.core.HttpHeaders headers,
String graph_file_name)
Get graph zip file
|
javax.ws.rs.core.Response |
listObjects(javax.ws.rs.core.HttpHeaders headers,
DataCategory type)
Get list of object type
|
javax.ws.rs.core.Response |
storeArchivalTransferReply(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.ws.rs.core.HttpHeaders headers,
String id,
ObjectDescription description) |
javax.ws.rs.core.Response |
traceabilityStorageLogbook(javax.ws.rs.core.HttpHeaders headers)
Run storage logbook secure operation
|
getServerTenants, status
@Path(value="/copy/{id_object}") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response copy(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object") String objectId)
@Path(value="/create/{id_operation}") @POST @Consumes(value="application/octet-stream") @Produces(value="application/json") public javax.ws.rs.core.Response create(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_operation") String operationId, InputStream inputStream)
httpServletRequest
- http servlet request to get requesterheaders
- http headeroperationId
- the id of the operationinputStream
- inputStream@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 headers@Path(value="/{type:UNIT|OBJECT|OBJECTGROUP|LOGBOOK|REPORT|MANIFEST|PROFILE|STORAGELOG|STORAGEACCESSLOG|STORAGETRACEABILITY|RULES|DIP|AGENCIES|BACKUP|BACKUP_OPERATION|CHECKLOGBOOKREPORTS|OBJECTGROUP_GRAPH|UNIT_GRAPH|DISTRIBUTIONREPORTS|ACCESSION_REGISTER_DETAIL|ACCESSION_REGISTER_SYMBOLIC}") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response listObjects(@Context javax.ws.rs.core.HttpHeaders headers, @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|OBJECTGROUP_GRAPH|UNIT_GRAPH|DISTRIBUTIONREPORTS|ACCESSION_REGISTER_DETAIL|ACCESSION_REGISTER_SYMBOLIC}/logs") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getOfferLogs(@Context javax.ws.rs.core.HttpHeaders headers, @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="/batch_info/{type}") @GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getBatchObjectInformation(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="type") String typeStr, List<String> objectIds)
headers
- http headerobjectIds
- 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, AccessLogInfoModel logInfo) 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
- headersbackupfile
- backupfileIOException
@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="/storageaccesslog/{storageaccesslogfile}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getAccessLogFile(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="storageaccesslogfile") String storageAccessLogFile)
headers
- headersstorageAccessLogFile
- backupfileIOException
@Path(value="/offers") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getOffers(@HeaderParam(value="X-Strategy-Id") String strategyId)
strategyId
- the strategy to get offers@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="/delete/{id_object}") @DELETE @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response deleteObject(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object") String objectId)
headers
- http headerobjectId
- the id of the object@Path(value="/{type:UNIT|OBJECT|OBJECTGROUP|LOGBOOK|REPORT|MANIFEST|PROFILE|STORAGELOG|STORAGETRACEABILITY|RULES|DIP|AGENCIES|BACKUP|BACKUP_OPERATION|CHECKLOGBOOKREPORTS|OBJECTGROUP_GRAPH|UNIT_GRAPH|DISTRIBUTIONREPORTS|ACCESSION_REGISTER_DETAIL|ACCESSION_REGISTER_SYMBOLIC}/{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="type") DataCategory type, @PathParam(value="id_object") String objectId)
headers
- http headerobjectId
- the id of the object@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="/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 unitId)
headers
- http headerunitId
- the id of the unit@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="/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@POST @Path(value="/archivaltransferreply/{id}") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response storeArchivalTransferReply(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id") String id, ObjectDescription description)
@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="/distributionreports/{id_report}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getDistributionReport(@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/accesslog") @Produces(value="application/json") public javax.ws.rs.core.Response backupStorageAccessLog(@Context javax.ws.rs.core.HttpHeaders headers)
headers
- http header@POST @Path(value="/storage/backup") @Produces(value="application/json") public javax.ws.rs.core.Response backupStorageLog(@Context javax.ws.rs.core.HttpHeaders headers)
headers
- http header@POST @Path(value="/storage/traceability") @Produces(value="application/json") public javax.ws.rs.core.Response traceabilityStorageLogbook(@Context javax.ws.rs.core.HttpHeaders headers)
headers
- http header@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="/storageaccesslog/{storageaccesslogname}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createStorageAccessLog(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="storageaccesslogname") String storageAccessLogName, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headercreateObjectDescription
- 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 storagetraceabilityname, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerstoragetraceabilityname
- storage traceability namecreateObjectDescription
- 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="/rules/{id_object}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getRuleFile(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object") String objectId) throws IOException
IOException
@Path(value="/unitgraph/{graph_file_name}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createUnitGraphFile(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="graph_file_name") String graph_file_name, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headergraph_file_name
- the id of the objectcreateObjectDescription
- the object description@Path(value="/unitgraph/{graph_file_name}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getUnitGraphFile(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="graph_file_name") String graph_file_name)
headers
- graph_file_name
- IOException
@Path(value="/objectgroupgraph/{graph_file_name}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createObjectGroupGraphFile(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="graph_file_name") String graph_file_name, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headergraph_file_name
- the id of the objectcreateObjectDescription
- the object description@Path(value="/objectgroupgraph/{graph_file_name}") @GET @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getObjectGroupGraphFile(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="graph_file_name") String graph_file_name)
headers
- graph_file_name
- 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="/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 Exception@Path(value="/distributionreports/{distributionreportfile}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createDistributionReportFile(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="distributionreportfile") String distributionreportfile, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerdistributionreportfile
- the id of the objectcreateObjectDescription
- the object description@Path(value="/accessionregistersdetail/{fileName}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createAccessionRegisterDetail(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="fileName") String fileName, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerfileName
- the file name of the Accession Register DetailcreateObjectDescription
- the workspace description of the unit to be created@Path(value="/accessionregistersdetail/{fileName}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getAccessionRegisterDetail(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="fileName") String fileName)
headers
- http headerfileName
- the file name of the Accession Register Detail@Path(value="/accessionregisterssymbolic/{fileName}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createAccessionRegisterSymbolic(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="fileName") String fileName, ObjectDescription createObjectDescription)
httpServletRequest
- http servlet request to get requesterheaders
- http headerfileName
- the file name of the Accession Register SymboliccreateObjectDescription
- the workspace description of the unit to be created@Path(value="/accessionregisterssymbolic/{fileName}") @GET @Produces(value={"application/octet-stream","application/zip"}) public javax.ws.rs.core.Response getAccessionRegisterSymbolic(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="fileName") String fileName)
headers
- http headerfileName
- the file name of the Accession Register Symbolic@Path(value="/bulk/{folder}") @POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response bulkCreateFromWorkspace(@Context javax.servlet.http.HttpServletRequest httpServletRequest, @Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="folder") String folder, BulkObjectStoreRequest bulkObjectStoreRequest)
@Path(value="/strategies") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getStrategies()
public void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
Copyright © 2019 Vitam. All rights reserved.