Interface AdminManagementClient
-
- All Superinterfaces:
java.lang.AutoCloseable
,MockOrRestClient
,VitamAutoCloseable
- All Known Implementing Classes:
AdminManagementClientMock
public interface AdminManagementClient extends MockOrRestClient
AdminManagementClient interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Response
checkAgenciesFile(java.io.InputStream stream)
Check if agencies file is well formatedjavax.ws.rs.core.Response
checkFormat(java.io.InputStream stream)
javax.ws.rs.core.Response
checkRulesFile(java.io.InputStream stream)
Check if rule file is well formatedRequestResponse<AccessionRegisterSymbolic>
createAccessionRegisterSymbolic(java.util.List<java.lang.Integer> tenants)
Creates and return the accession register symbolic.RequestResponse
createArchiveUnitProfiles(java.util.List<ArchiveUnitProfileModel> archiveUnitProfileModelList)
Import a set of archive unit profile metadata.javax.ws.rs.core.Response.Status
createExternalOperation(LogbookOperationParameters logbookOperationparams)
Create external logbook operation entry
RequestResponse<AccessionRegisterDetailModel>
createOrUpdateAccessionRegister(AccessionRegisterDetailModel register)
RequestResponse
createProfiles(java.util.List<ProfileModel> profileModelList)
Import a set of profile If all the profiles are valid, they will be stored in the collection and indexed The input is invalid in the following situations : The json is invalid The json contains 2 ore many profile having the same name One or more mandatory field is missing A field has an invalid format One or many profiles already exist in the databasejavax.ws.rs.core.Response
downloadProfileFile(java.lang.String profileMetadataId)
Download the profile file according to profileMetadataIdRequestResponse<com.fasterxml.jackson.databind.JsonNode>
evidenceAudit(com.fasterxml.jackson.databind.JsonNode queryDsl)
launch a traceability audit for the unitRequestResponse<com.fasterxml.jackson.databind.JsonNode>
exportProbativeValue(ProbativeValueRequest probativeValueRequest)
Launch an probative value export for the queryRequestResponse<AccessContractModel>
findAccessContracts(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find access contracts By id mongo By the name By comlexe criteriaRequestResponse<AccessContractModel>
findAccessContractsByID(java.lang.String documentId)
RequestResponse<ArchiveUnitProfileModel>
findArchiveUnitProfiles(com.fasterxml.jackson.databind.JsonNode query)
Find profiles according to the given json query (we can also use this method to find profile by identifier)RequestResponse<ArchiveUnitProfileModel>
findArchiveUnitProfilesByID(java.lang.String id)
Find archive unit profile by technical id (id generated by the database)RequestResponse<ContextModel>
findContextById(java.lang.String id)
Find context by idRequestResponse<ContextModel>
findContexts(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find contextsRequestResponse<GriffinModel>
findGriffin(com.fasterxml.jackson.databind.JsonNode dslQuery)
RequestResponse<GriffinModel>
findGriffinByID(java.lang.String id)
RequestResponse<IngestContractModel>
findIngestContracts(com.fasterxml.jackson.databind.JsonNode query)
RequestResponse<IngestContractModel>
findIngestContractsByID(java.lang.String id)
RequestResponse<com.fasterxml.jackson.databind.JsonNode>
findJobs()
RequestResponse<ManagementContractModel>
findManagementContracts(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find management contracts By id mongo By the name By comlexe criteriaRequestResponse<ManagementContractModel>
findManagementContractsByID(java.lang.String documentId)
RequestResponse<OntologyModel>
findOntologies(com.fasterxml.jackson.databind.JsonNode query)
Find ontologies according to the given json query (we can also use this method to find ontology by identifier)RequestResponse<OntologyModel>
findOntologyByID(java.lang.String id)
Find the ontology by technical id (id generated by the database)RequestResponse<PreservationScenarioModel>
findPreservation(com.fasterxml.jackson.databind.JsonNode dslQuery)
RequestResponse<PreservationScenarioModel>
findPreservationByID(java.lang.String id)
RequestResponse<ProfileModel>
findProfiles(com.fasterxml.jackson.databind.JsonNode query)
Find profiles according to the given query string (we can also use this method to find profile by identifier)RequestResponse<ProfileModel>
findProfilesByID(java.lang.String id)
Find profile by id (id generated by the database)RequestResponse<SecurityProfileModel>
findSecurityProfileByIdentifier(java.lang.String identifier)
Find a security profile by identifierRequestResponse<SecurityProfileModel>
findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find security profiles by DSL query By internal id By identifier By name By comlexe criteriaRequestResponse
forcePause(ProcessPause info)
Pause the processes specified by ProcessPause infoRequestResponse<AccessionRegisterSummaryModel>
getAccessionRegister(com.fasterxml.jackson.databind.JsonNode query)
Get the accession register summary matching the given queryRequestResponse<AccessionRegisterDetailModel>
getAccessionRegisterDetail(com.fasterxml.jackson.databind.JsonNode query)
Get the accession register details matching the given queryRequestResponse<AccessionRegisterDetailModel>
getAccessionRegisterDetail(java.lang.String originatingAgency, com.fasterxml.jackson.databind.JsonNode query)
Get the accession register details matching the given query for the specified contractRequestResponse<AccessionRegisterSymbolicModel>
getAccessionRegisterSymbolic(java.lang.Integer tenant, com.fasterxml.jackson.databind.JsonNode queryDsl)
Retrieve the accession register symbolic regarding the tenant and a date range.com.fasterxml.jackson.databind.JsonNode
getAgencies(com.fasterxml.jackson.databind.JsonNode query)
List the agencies that match the queryRequestResponse<AgenciesModel>
getAgencyById(java.lang.String id)
com.fasterxml.jackson.databind.JsonNode
getFormatByID(java.lang.String id)
RequestResponse<FileFormatModel>
getFormats(com.fasterxml.jackson.databind.JsonNode query)
com.fasterxml.jackson.databind.JsonNode
getRuleByID(java.lang.String id)
com.fasterxml.jackson.databind.JsonNode
getRules(com.fasterxml.jackson.databind.JsonNode query)
List the rules that match the queryjavax.ws.rs.core.Response.Status
importAccessContracts(java.util.List<AccessContractModel> accessContractModelList)
Import a set of access contracts after passing the validation steps If all the contracts are valid, they are stored in the collection and indexed The input is invalid in the following situations : The json is invalid The json have an id already set The json contains 2 ore many contracts having the same name One or more mandatory field is missing A field has an invalid format One or many contracts Already exist in the databasejavax.ws.rs.core.Response.Status
importAgenciesFile(java.io.InputStream stream, java.lang.String filename)
Import agencies for a given tenantjavax.ws.rs.core.Response.Status
importContexts(java.util.List<ContextModel> contextModelList)
Import a set of contextjavax.ws.rs.core.Response.Status
importFormat(java.io.InputStream stream, java.lang.String filename)
RequestResponse<GriffinModel>
importGriffins(java.util.List<GriffinModel> griffinModelList)
javax.ws.rs.core.Response.Status
importIngestContracts(java.util.List<IngestContractModel> ingestContractModelList)
Import a set of ingest contracts after passing the validation steps If all the contracts are valid, they are stored in the collection and indexed The input is invalid in the following situations : The json is invalid The json contains 2 ore many contracts having the same name One or more mandatory field is missing A field has an invalid format One or many contracts elready exist in the databasejavax.ws.rs.core.Response.Status
importManagementContracts(java.util.List<ManagementContractModel> managementContractModelList)
Import a set of management contracts after passing the validation steps If all the contracts are valid, they are stored in the collection and indexed The input is invalid in the following situations : The json is invalid The json have an id already set The json contains 2 ore many contracts having the same name One or more mandatory field is missing A field has an invalid format One or many contracts Already exist in the database One or many storage strategies are invalidRequestResponse
importOntologies(boolean forceUpdate, java.util.List<OntologyModel> ontologyModelList)
Import a set of ontologies metadata.RequestResponse<PreservationScenarioModel>
importPreservationScenarios(java.util.List<PreservationScenarioModel> preservationScenarioModels)
RequestResponse<ProfileModel>
importProfileFile(java.lang.String profileMetadataId, java.io.InputStream stream)
javax.ws.rs.core.Response.Status
importRulesFile(java.io.InputStream stream, java.lang.String filename)
Import a the set of rules for a given tenantjavax.ws.rs.core.Response.Status
importSecurityProfiles(java.util.List<SecurityProfileModel> securityProfileModelList)
Import a set of security profiles after passing the validation steps.RequestResponse<com.fasterxml.jackson.databind.JsonNode>
launchAuditWorkflow(AuditOptions options, boolean checkAccessContract)
launch audit with optionsRequestResponse<com.fasterxml.jackson.databind.JsonNode>
launchReferentialAudit(AuditReferentialOptions auditReferentialOptions)
RequestResponse<ReindexationResult>
launchReindexation(com.fasterxml.jackson.databind.JsonNode options)
launch a reindexation process with optionsRequestResponse<com.fasterxml.jackson.databind.JsonNode>
launchRuleAudit(java.util.List<java.lang.Integer> tenants)
launch audit for rule managementvoid
reconstructAccessionRegister(java.util.List<ReconstructionRequestItem> reconstructionItems)
void
reconstructCollection(java.lang.String collection)
RequestResponse<com.fasterxml.jackson.databind.JsonNode>
rectificationAudit(java.lang.String operationId)
Launch rectification AuditRequestResponse
removeForcePause(ProcessPause info)
Remove the pause for the processes specified by ProcessPause infoRequestResponse<java.lang.Boolean>
securityProfileIsUsedInContexts(java.lang.String securityProfileId)
Find if security profile is used in contextsRequestResponse<ReindexationResult>
switchIndexes(com.fasterxml.jackson.databind.JsonNode options)
launch an index switch.RequestResponse<AccessContractModel>
updateAccessContract(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update AccessContract to mongoRequestResponse<ArchiveUnitProfileModel>
updateArchiveUnitProfile(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update a profileRequestResponse<ContextModel>
updateContext(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update context to mongoRequestResponse<IngestContractModel>
updateIngestContract(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update IngestContract to mongoRequestResponse<ManagementContractModel>
updateManagementContract(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update ManagementContract to mongoRequestResponse<ProfileModel>
updateProfile(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update a profileRequestResponse<SecurityProfileModel>
updateSecurityProfile(java.lang.String identifier, com.fasterxml.jackson.databind.JsonNode queryDsl)
Updates a security context-
Methods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
-
-
-
Method Detail
-
checkFormat
javax.ws.rs.core.Response checkFormat(java.io.InputStream stream) throws ReferentialException
- Parameters:
stream
- as InputStream;- Returns:
- Response
- Throws:
ReferentialException
- when check exception occurs
-
importFormat
javax.ws.rs.core.Response.Status importFormat(java.io.InputStream stream, java.lang.String filename) throws ReferentialException, DatabaseConflictException
- Parameters:
stream
- as InputStreamfilename
- name of the imported file- Returns:
- the response to the request
- Throws:
ReferentialException
- when import exception occursDatabaseConflictException
- conflict exception occurs
-
getFormatByID
com.fasterxml.jackson.databind.JsonNode getFormatByID(java.lang.String id) throws ReferentialException, InvalidParseOperationException
- Parameters:
id
- as String- Returns:
- JsonNode
- Throws:
ReferentialException
- check exception occursInvalidParseOperationException
- when json exception occurs
-
getFormats
RequestResponse<FileFormatModel> getFormats(com.fasterxml.jackson.databind.JsonNode query) throws ReferentialException, InvalidParseOperationException, java.io.IOException
- Parameters:
query
- as JsonNode- Returns:
- JsonNode
- Throws:
ReferentialException
- when referential format exception occursInvalidParseOperationException
- when json exception occursjava.io.IOException
- when io data exception occurs
-
checkRulesFile
javax.ws.rs.core.Response checkRulesFile(java.io.InputStream stream) throws FileRulesException, AdminManagementClientServerException
Check if rule file is well formated- Parameters:
stream
- rule file inputstream to check- Returns:
- Response
- Throws:
FileRulesException
AdminManagementClientServerException
-
checkAgenciesFile
javax.ws.rs.core.Response checkAgenciesFile(java.io.InputStream stream) throws ReferentialException, AdminManagementClientServerException
Check if agencies file is well formated- Parameters:
stream
- agencies file inputstream to check- Returns:
- Response
- Throws:
FileRulesException
AdminManagementClientServerException
ReferentialException
-
importRulesFile
javax.ws.rs.core.Response.Status importRulesFile(java.io.InputStream stream, java.lang.String filename) throws ReferentialException, DatabaseConflictException
Import a the set of rules for a given tenant- Parameters:
stream
- rule file inputstream to importfilename
- name of the imported file- Returns:
- the response to the request
- Throws:
ReferentialException
- when file rules exception occursDatabaseConflictException
- when Database conflict exception occursAdminManagementClientServerException
-
importAgenciesFile
javax.ws.rs.core.Response.Status importAgenciesFile(java.io.InputStream stream, java.lang.String filename) throws ReferentialException
Import agencies for a given tenant- Parameters:
stream
- agency file inputstream to importfilename
- name of the imported file- Returns:
- the response to the request
- Throws:
ReferentialException
- when file rules exception occursDatabaseConflictException
- when Database conflict exception occursAdminManagementClientServerException
-
getAgencyById
RequestResponse<AgenciesModel> getAgencyById(java.lang.String id) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
- Parameters:
id
- The agency identifier- Returns:
- agency in JsonNode agency
- Throws:
ReferentialNotFoundException
- when file referential exception occursInvalidParseOperationException
- when a parse problem occursAdminManagementClientServerException
-
getAgencies
com.fasterxml.jackson.databind.JsonNode getAgencies(com.fasterxml.jackson.databind.JsonNode query) throws ReferentialException, InvalidParseOperationException, AdminManagementClientServerException
List the agencies that match the query- Parameters:
query
- to get agencies- Returns:
- The server response as vitam RequestResponse
- Throws:
ReferentialException
- when file referential exception occursInvalidParseOperationException
- when a parse problem occursjava.io.IOException
- when IO Exception occursAdminManagementClientServerException
- when admin management resources not found
-
getRuleByID
com.fasterxml.jackson.databind.JsonNode getRuleByID(java.lang.String id) throws FileRulesException, InvalidParseOperationException, AdminManagementClientServerException
- Parameters:
id
- The rule identifier- Returns:
- Rule in JsonNode format
- Throws:
FileRulesException
- when file rules exception occursInvalidParseOperationException
- when a parse problem occursAdminManagementClientServerException
-
getRules
com.fasterxml.jackson.databind.JsonNode getRules(com.fasterxml.jackson.databind.JsonNode query) throws FileRulesException, InvalidParseOperationException, java.io.IOException, AdminManagementClientServerException
List the rules that match the query- Parameters:
query
- to get rule- Returns:
- Rules in JsonNode format
- Throws:
FileRulesException
- when file rules exception occursInvalidParseOperationException
- when a parse problem occursjava.io.IOException
- when IO Exception occursAdminManagementClientServerException
- when admin management resources not found
-
createOrUpdateAccessionRegister
RequestResponse<AccessionRegisterDetailModel> createOrUpdateAccessionRegister(AccessionRegisterDetailModel register) throws AdminManagementClientServerException
- Parameters:
register
- AccessionRegisterDetail- Throws:
AdminManagementClientServerException
- when
-
getAccessionRegister
RequestResponse<AccessionRegisterSummaryModel> getAccessionRegister(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, ReferentialException, AccessUnauthorizedException
Get the accession register summary matching the given query- Parameters:
query
- The DSL Query as JsonNode- Returns:
- instance of RequestResponse of type AccessionRegisterSummaryModel
- Throws:
InvalidParseOperationException
ReferentialException
AccessUnauthorizedException
-
getAccessionRegisterDetail
RequestResponse<AccessionRegisterDetailModel> getAccessionRegisterDetail(java.lang.String originatingAgency, com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, ReferentialException
Get the accession register details matching the given query for the specified contract- Parameters:
query
- The DSL Query as a JSON Node- Returns:
- The AccessionregisterDetails list as a response jsonNode
- Throws:
InvalidParseOperationException
ReferentialException
-
getAccessionRegisterDetail
RequestResponse<AccessionRegisterDetailModel> getAccessionRegisterDetail(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, ReferentialException
Get the accession register details matching the given query- Parameters:
query
- The DSL Query as a JSON Node- Returns:
- The AccessionregisterDetails list as a response jsonNode
- Throws:
InvalidParseOperationException
ReferentialException
-
importIngestContracts
javax.ws.rs.core.Response.Status importIngestContracts(java.util.List<IngestContractModel> ingestContractModelList) throws InvalidParseOperationException, AdminManagementClientServerException
Import a set of ingest contracts after passing the validation steps If all the contracts are valid, they are stored in the collection and indexed The input is invalid in the following situations :- The json is invalid
- The json contains 2 ore many contracts having the same name
- One or more mandatory field is missing
- A field has an invalid format
- One or many contracts elready exist in the database
- Parameters:
ingestContractModelList
- the contract to import- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
-
importAccessContracts
javax.ws.rs.core.Response.Status importAccessContracts(java.util.List<AccessContractModel> accessContractModelList) throws InvalidParseOperationException, AdminManagementClientServerException
Import a set of access contracts after passing the validation steps If all the contracts are valid, they are stored in the collection and indexed The input is invalid in the following situations :- The json is invalid
- The json have an id already set
- The json contains 2 ore many contracts having the same name
- One or more mandatory field is missing
- A field has an invalid format
- One or many contracts Already exist in the database
- Parameters:
accessContractModelList
- the list contract to import- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
importManagementContracts
javax.ws.rs.core.Response.Status importManagementContracts(java.util.List<ManagementContractModel> managementContractModelList) throws InvalidParseOperationException, AdminManagementClientServerException
Import a set of management contracts after passing the validation steps If all the contracts are valid, they are stored in the collection and indexed The input is invalid in the following situations :- The json is invalid
- The json have an id already set
- The json contains 2 ore many contracts having the same name
- One or more mandatory field is missing
- A field has an invalid format
- One or many contracts Already exist in the database
- One or many storage strategies are invalid
- Parameters:
managementContractModelList
- the list contract to import- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
updateAccessContract
RequestResponse<AccessContractModel> updateAccessContract(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Update AccessContract to mongo- Parameters:
id
- the given access contract id to updatequeryDsl
- query to execute- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
updateIngestContract
RequestResponse<IngestContractModel> updateIngestContract(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Update IngestContract to mongo- Parameters:
id
- the given Ingest contract id to updatequeryDsl
- query to execute- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
updateManagementContract
RequestResponse<ManagementContractModel> updateManagementContract(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Update ManagementContract to mongo- Parameters:
id
- the given access contract id to updatequeryDsl
- query to execute- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
findAccessContracts
RequestResponse<AccessContractModel> findAccessContracts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
Find access contracts- By id mongo
- By the name
- By comlexe criteria
- Parameters:
queryDsl
-- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
findAccessContractsByID
RequestResponse<AccessContractModel> findAccessContractsByID(java.lang.String documentId) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
- Parameters:
documentId
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
findIngestContracts
RequestResponse<IngestContractModel> findIngestContracts(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
- Parameters:
query
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
-
findIngestContractsByID
RequestResponse<IngestContractModel> findIngestContractsByID(java.lang.String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
- Parameters:
id
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
findManagementContracts
RequestResponse<ManagementContractModel> findManagementContracts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
Find management contracts- By id mongo
- By the name
- By comlexe criteria
- Parameters:
queryDsl
-- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
findManagementContractsByID
RequestResponse<ManagementContractModel> findManagementContractsByID(java.lang.String documentId) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
- Parameters:
documentId
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
createProfiles
RequestResponse createProfiles(java.util.List<ProfileModel> profileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
Import a set of profile If all the profiles are valid, they will be stored in the collection and indexed The input is invalid in the following situations :- The json is invalid
- The json contains 2 ore many profile having the same name
- One or more mandatory field is missing
- A field has an invalid format
- One or many profiles already exist in the database
- Parameters:
profileModelList
- the list profile to import- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
importProfileFile
RequestResponse<ProfileModel> importProfileFile(java.lang.String profileMetadataId, java.io.InputStream stream) throws ReferentialException, DatabaseConflictException
- Parameters:
profileMetadataId
- the id of the profile metadata corresponding to the filestream
- as InputStream- Returns:
- the response to the request
- Throws:
ReferentialException
- when import exception occursDatabaseConflictException
- conflict exception occurs
-
downloadProfileFile
javax.ws.rs.core.Response downloadProfileFile(java.lang.String profileMetadataId) throws AdminManagementClientServerException, ProfileNotFoundException
Download the profile file according to profileMetadataId- Parameters:
profileMetadataId
-- Returns:
- Response
- Throws:
AdminManagementClientServerException
ProfileNotFoundException
-
findProfiles
RequestResponse<ProfileModel> findProfiles(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
Find profiles according to the given query string (we can also use this method to find profile by identifier)- Parameters:
query
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
-
findProfilesByID
RequestResponse<ProfileModel> findProfilesByID(java.lang.String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Find profile by id (id generated by the database)- Parameters:
id
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
updateProfile
RequestResponse<ProfileModel> updateProfile(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws AdminManagementClientServerException, InvalidParseOperationException, ReferentialNotFoundException
Update a profile- Parameters:
id
-queryDsl
-- Returns:
- Throws:
AdminManagementClientServerException
InvalidParseOperationException
ReferentialNotFoundException
-
importContexts
javax.ws.rs.core.Response.Status importContexts(java.util.List<ContextModel> contextModelList) throws ReferentialException
Import a set of context- Parameters:
contextModelList
-- Returns:
- Status
- Throws:
ReferentialException
-
updateContext
RequestResponse<ContextModel> updateContext(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Update context to mongo- Parameters:
id
-queryDsl
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
findContexts
RequestResponse<ContextModel> findContexts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
Find contexts- Parameters:
queryDsl
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
-
findContextById
RequestResponse<ContextModel> findContextById(java.lang.String id) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
Find context by id- Parameters:
id
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
ReferentialNotFoundException
AdminManagementClientServerException
-
securityProfileIsUsedInContexts
RequestResponse<java.lang.Boolean> securityProfileIsUsedInContexts(java.lang.String securityProfileId) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
Find if security profile is used in contexts- Parameters:
securityProfileId
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
ReferentialNotFoundException
AdminManagementClientServerException
-
launchAuditWorkflow
RequestResponse<com.fasterxml.jackson.databind.JsonNode> launchAuditWorkflow(AuditOptions options, boolean checkAccessContract) throws AdminManagementClientServerException
launch audit with options- Parameters:
options
-- Returns:
- Throws:
AdminManagementClientServerException
-
launchReferentialAudit
RequestResponse<com.fasterxml.jackson.databind.JsonNode> launchReferentialAudit(AuditReferentialOptions auditReferentialOptions) throws AdminManagementClientServerException
-
launchRuleAudit
RequestResponse<com.fasterxml.jackson.databind.JsonNode> launchRuleAudit(java.util.List<java.lang.Integer> tenants) throws AdminManagementClientServerException, InvalidParseOperationException
launch audit for rule management- Returns:
- The server response as vitam RequestResponse
- Throws:
AdminManagementClientServerException
InvalidParseOperationException
-
importSecurityProfiles
javax.ws.rs.core.Response.Status importSecurityProfiles(java.util.List<SecurityProfileModel> securityProfileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
Import a set of security profiles after passing the validation steps. If all the security profiles are valid, they are stored in the database. The input is invalid in the following situations :- The json is invalid
- The json contains 2 ore many contracts having the same name or identifier
- One or more mandatory field is missing
- A field has an invalid format
- One or many security profiles already exist in the database
- Parameters:
securityProfileModelList
- the security profiles to import- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
updateSecurityProfile
RequestResponse<SecurityProfileModel> updateSecurityProfile(java.lang.String identifier, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Updates a security context- Parameters:
identifier
- the identifier of the security profile to updatequeryDsl
- query to execute- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
findSecurityProfiles
RequestResponse<SecurityProfileModel> findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
Find security profiles by DSL query- By internal id
- By identifier
- By name
- By comlexe criteria
- Parameters:
queryDsl
- the DSL query- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
findSecurityProfileByIdentifier
RequestResponse<SecurityProfileModel> findSecurityProfileByIdentifier(java.lang.String identifier) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Find a security profile by identifier- Parameters:
identifier
- the identifier of the security profile- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
launchReindexation
RequestResponse<ReindexationResult> launchReindexation(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
launch a reindexation process with options- Parameters:
options
- specifying what to reindex- Returns:
- the server response including information about the newsly created index
- Throws:
AdminManagementClientServerException
-
switchIndexes
RequestResponse<ReindexationResult> switchIndexes(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
launch an index switch. By specifying the name of the index and the collection, the index will be mapped to the correct alias- Parameters:
options
-- Returns:
- the server response
- Throws:
AdminManagementClientServerException
-
evidenceAudit
RequestResponse<com.fasterxml.jackson.databind.JsonNode> evidenceAudit(com.fasterxml.jackson.databind.JsonNode queryDsl) throws AdminManagementClientServerException
launch a traceability audit for the unit- Parameters:
queryDsl
- the id- Returns:
- the server response
- Throws:
AdminManagementClientServerException
-
rectificationAudit
RequestResponse<com.fasterxml.jackson.databind.JsonNode> rectificationAudit(java.lang.String operationId) throws AdminManagementClientServerException
Launch rectification Audit- Parameters:
operationId
- operation Id- Returns:
- RequestResponse
- Throws:
AdminManagementClientServerException
-
exportProbativeValue
RequestResponse<com.fasterxml.jackson.databind.JsonNode> exportProbativeValue(ProbativeValueRequest probativeValueRequest) throws AdminManagementClientServerException
Launch an probative value export for the query- Parameters:
probativeValueRequest
- the id- Returns:
- the server response
- Throws:
AdminManagementClientServerException
-
createArchiveUnitProfiles
RequestResponse createArchiveUnitProfiles(java.util.List<ArchiveUnitProfileModel> archiveUnitProfileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
Import a set of archive unit profile metadata. If all the archive unit profiles are valid, they will be stored in the collection and indexed The input is invalid in the following situations :- The json is invalid
- The json contains 2 ore many profile having the same name
- One or more mandatory field is missing
- A field has an invalid format
- One or many profiles already exist in the database
- Parameters:
archiveUnitProfileModelList
- the list profile to import- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
findArchiveUnitProfiles
RequestResponse<ArchiveUnitProfileModel> findArchiveUnitProfiles(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
Find profiles according to the given json query (we can also use this method to find profile by identifier)- Parameters:
query
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
-
findArchiveUnitProfilesByID
RequestResponse<ArchiveUnitProfileModel> findArchiveUnitProfilesByID(java.lang.String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Find archive unit profile by technical id (id generated by the database)- Parameters:
id
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
updateArchiveUnitProfile
RequestResponse<ArchiveUnitProfileModel> updateArchiveUnitProfile(java.lang.String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Update a profile- Parameters:
id
-queryDsl
-- Returns:
- the updated ProfileModel for success
- Throws:
AdminManagementClientServerException
InvalidParseOperationException
ReferentialNotFoundException
-
importOntologies
RequestResponse importOntologies(boolean forceUpdate, java.util.List<OntologyModel> ontologyModelList) throws InvalidParseOperationException, AdminManagementClientServerException
Import a set of ontologies metadata. If all the ontologies are valid, they will be stored in the ontology collection and indexed The input is invalid in the following situations :- The json is invalid
- The json contains an already used identifier
- One or more mandatory field is missing
- A field has an invalid format
- Parameters:
ontologyModelList
- the list of ontologies to importforceUpdate
-- Returns:
- The server response as vitam RequestResponse
- Throws:
VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
-
findOntologies
RequestResponse<OntologyModel> findOntologies(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException
Find ontologies according to the given json query (we can also use this method to find ontology by identifier)- Parameters:
query
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
-
findOntologyByID
RequestResponse<OntologyModel> findOntologyByID(java.lang.String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
Find the ontology by technical id (id generated by the database)- Parameters:
id
-- Returns:
- The server response as vitam RequestResponse
- Throws:
InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
-
forcePause
RequestResponse forcePause(ProcessPause info) throws AdminManagementClientServerException
Pause the processes specified by ProcessPause info- Parameters:
info
- a ProcessPause object indicating the tenant and/or the type of process to pause- Returns:
- The server response as vitam RequestResponse
- Throws:
AdminManagementClientServerException
-
removeForcePause
RequestResponse removeForcePause(ProcessPause info) throws AdminManagementClientServerException
Remove the pause for the processes specified by ProcessPause info- Parameters:
info
- a ProcessPause object indicating the tenant and/or the type of process to pause- Returns:
- The server response as vitam RequestResponse
- Throws:
AdminManagementClientServerException
-
createAccessionRegisterSymbolic
RequestResponse<AccessionRegisterSymbolic> createAccessionRegisterSymbolic(java.util.List<java.lang.Integer> tenants) throws AdminManagementClientServerException, InvalidParseOperationException
Creates and return the accession register symbolic.- Parameters:
tenants
- tenants list- Returns:
- the accession register created
- Throws:
AdminManagementClientServerException
InvalidParseOperationException
-
getAccessionRegisterSymbolic
RequestResponse<AccessionRegisterSymbolicModel> getAccessionRegisterSymbolic(java.lang.Integer tenant, com.fasterxml.jackson.databind.JsonNode queryDsl) throws AdminManagementClientServerException
Retrieve the accession register symbolic regarding the tenant and a date range.- Parameters:
tenant
- related to the accession registerqueryDsl
- search by dsl- Returns:
- a lis of accession register symbolic or a empty list if nothing is found
- Throws:
AdminManagementClientServerException
-
importGriffins
RequestResponse<GriffinModel> importGriffins(java.util.List<GriffinModel> griffinModelList) throws AdminManagementClientServerException
-
importPreservationScenarios
RequestResponse<PreservationScenarioModel> importPreservationScenarios(java.util.List<PreservationScenarioModel> preservationScenarioModels) throws AdminManagementClientServerException
-
findGriffinByID
RequestResponse<GriffinModel> findGriffinByID(java.lang.String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
-
findPreservationByID
RequestResponse<PreservationScenarioModel> findPreservationByID(java.lang.String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
-
findPreservation
RequestResponse<PreservationScenarioModel> findPreservation(com.fasterxml.jackson.databind.JsonNode dslQuery) throws AdminManagementClientServerException, InvalidParseOperationException, ReferentialNotFoundException
-
findGriffin
RequestResponse<GriffinModel> findGriffin(com.fasterxml.jackson.databind.JsonNode dslQuery) throws AdminManagementClientServerException, InvalidParseOperationException, ReferentialNotFoundException
-
createExternalOperation
javax.ws.rs.core.Response.Status createExternalOperation(LogbookOperationParameters logbookOperationparams) throws AdminManagementClientServerException, BadRequestException, LogbookClientAlreadyExistsException
Create external logbook operation entry
- Parameters:
logbookOperationparams
- the logbook parameters to be created- Returns:
- RequestResponse status of the insertion
- Throws:
AdminManagementClientServerException
LogbookClientAlreadyExistsException
BadRequestException
-
findJobs
RequestResponse<com.fasterxml.jackson.databind.JsonNode> findJobs() throws AdminManagementClientServerException
-
reconstructCollection
void reconstructCollection(java.lang.String collection) throws AdminManagementClientServerException
-
reconstructAccessionRegister
void reconstructAccessionRegister(java.util.List<ReconstructionRequestItem> reconstructionItems) throws AdminManagementClientServerException
-
-