public interface AdminManagementClient extends MockOrRestClient
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
checkAgenciesFile(InputStream stream)
Check if agencies file is well formated
|
javax.ws.rs.core.Response |
checkFormat(InputStream stream) |
javax.ws.rs.core.Response |
checkRulesFile(InputStream stream)
Check if rule file is well formated
|
RequestResponse<AccessionRegisterSymbolic> |
createAccessionRegisterSymbolic(Integer tenant)
Creates and return the accession register symbolic.
|
RequestResponse |
createArchiveUnitProfiles(List<ArchiveUnitProfileModel> archiveUnitProfileModelList)
Import a set of archive unit profile metadata.
|
RequestResponse<AccessionRegisterDetailModel> |
createorUpdateAccessionRegister(AccessionRegisterDetailModel register) |
RequestResponse |
createProfiles(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 database
|
javax.ws.rs.core.Response |
downloadProfileFile(String profileMetadataId)
Download the profile file according to profileMetadataId
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
evidenceAudit(com.fasterxml.jackson.databind.JsonNode queryDsl)
launch a traceability audit for the unit
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
exportProbativeValue(ProbativeValueRequest probativeValueRequest)
Launch an probative value export for the query
|
RequestResponse<AccessContractModel> |
findAccessContracts(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find access contracts
By id mongo
By the name
By comlexe criteria
|
RequestResponse<AccessContractModel> |
findAccessContractsByID(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(String id)
Find archive unit profile by technical id (id generated by the database)
|
RequestResponse<ContextModel> |
findContextById(String id)
Find context by id
|
RequestResponse<ContextModel> |
findContexts(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find contexts
|
RequestResponse<IngestContractModel> |
findIngestContracts(com.fasterxml.jackson.databind.JsonNode query) |
RequestResponse<IngestContractModel> |
findIngestContractsByID(String id) |
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(String id)
Find the ontology by technical id (id generated by the database)
|
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(String id)
Find profile by id (id generated by the database)
|
RequestResponse<SecurityProfileModel> |
findSecurityProfileByIdentifier(String identifier)
Find a security profile by identifier
|
RequestResponse<SecurityProfileModel> |
findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find security profiles by DSL query
By internal id
By identifier
By name
By comlexe criteria
|
RequestResponse |
forcePause(ProcessPause info)
Pause the processes specified by ProcessPause info
|
RequestResponse<AccessionRegisterSummaryModel> |
getAccessionRegister(com.fasterxml.jackson.databind.JsonNode query)
Get the accession register summary matching the given query
|
RequestResponse<AccessionRegisterDetailModel> |
getAccessionRegisterDetail(String documentId,
com.fasterxml.jackson.databind.JsonNode query)
Get the accession register details matching the given query
|
RequestResponse<List<AccessionRegisterSymbolicModel>> |
getAccessionRegisterSymbolic(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 query
|
RequestResponse<AgenciesModel> |
getAgencyById(String id) |
com.fasterxml.jackson.databind.JsonNode |
getFormatByID(String id) |
RequestResponse<FileFormatModel> |
getFormats(com.fasterxml.jackson.databind.JsonNode query) |
com.fasterxml.jackson.databind.JsonNode |
getRuleByID(String id) |
com.fasterxml.jackson.databind.JsonNode |
getRules(com.fasterxml.jackson.databind.JsonNode query)
List the rules that match the query
|
javax.ws.rs.core.Response.Status |
importAccessContracts(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 database
|
javax.ws.rs.core.Response.Status |
importAgenciesFile(InputStream stream,
String filename)
Import agencies for a given tenant
|
javax.ws.rs.core.Response.Status |
importContexts(List<ContextModel> ContextModelList)
Import a set of context
|
javax.ws.rs.core.Response.Status |
importFormat(InputStream stream,
String filename) |
javax.ws.rs.core.Response.Status |
importIngestContracts(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 database
|
RequestResponse |
importOntologies(boolean forceUpdate,
List<OntologyModel> ontologyModelList)
Import a set of ontologies metadata.
|
RequestResponse |
importProfileFile(String profileMetadataId,
InputStream stream) |
javax.ws.rs.core.Response.Status |
importRulesFile(InputStream stream,
String filename)
Import a the set of rules for a given tenant
|
javax.ws.rs.core.Response.Status |
importSecurityProfiles(List<SecurityProfileModel> securityProfileModelList)
Import a set of security profiles after passing the validation steps.
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
launchAuditWorkflow(com.fasterxml.jackson.databind.JsonNode options)
launch audit with options
|
RequestResponse<IndexationResult> |
launchReindexation(com.fasterxml.jackson.databind.JsonNode options)
launch a reindexation process with options
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
launchRuleAudit()
launch audit for rule management
|
RequestResponse |
rectificationAudit(String operationId)
Launch rectification Audit
|
RequestResponse |
removeForcePause(ProcessPause info)
Remove the pause for the processes specified by ProcessPause info
|
RequestResponse<Boolean> |
securityProfileIsUsedInContexts(String securityProfileId)
Find if security profile is used in contexts
|
RequestResponse<IndexationResult> |
switchIndexes(com.fasterxml.jackson.databind.JsonNode options)
launch an index switch.
|
RequestResponse<AccessContractModel> |
updateAccessContract(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update AccessContract to mongo
|
RequestResponse<ArchiveUnitProfileModel> |
updateArchiveUnitProfile(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update a profile
|
RequestResponse<ContextModel> |
updateContext(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update context to mongo
|
RequestResponse<IngestContractModel> |
updateIngestContract(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update IngestContract to mongo
|
RequestResponse<ProfileModel> |
updateProfile(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update a profile
|
RequestResponse |
updateSecurityProfile(String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Updates a security context
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrljavax.ws.rs.core.Response checkFormat(InputStream stream) throws ReferentialException
stream - as InputStream;ReferentialException - when check exception occursjavax.ws.rs.core.Response.Status importFormat(InputStream stream, String filename) throws ReferentialException, DatabaseConflictException
stream - as InputStreamfilename - name of the imported fileReferentialException - when import exception occursDatabaseConflictException - conflict exception occurscom.fasterxml.jackson.databind.JsonNode getFormatByID(String id) throws ReferentialException, InvalidParseOperationException
id - as StringReferentialException - check exception occursInvalidParseOperationException - when json exception occursRequestResponse<FileFormatModel> getFormats(com.fasterxml.jackson.databind.JsonNode query) throws ReferentialException, InvalidParseOperationException, IOException
query - as JsonNodeReferentialException - when referential format exception occursInvalidParseOperationException - when json exception occursIOException - when io data exception occursjavax.ws.rs.core.Response checkRulesFile(InputStream stream) throws FileRulesException, AdminManagementClientServerException
stream - rule file inputstream to checkFileRulesExceptionAdminManagementClientServerExceptionjavax.ws.rs.core.Response checkAgenciesFile(InputStream stream) throws ReferentialException, AdminManagementClientServerException
stream - agencies file inputstream to checkFileRulesExceptionAdminManagementClientServerExceptionReferentialExceptionjavax.ws.rs.core.Response.Status importRulesFile(InputStream stream, String filename) throws ReferentialException, DatabaseConflictException
stream - rule file inputstream to importfilename - name of the imported fileReferentialException - when file rules exception occursDatabaseConflictException - when Database conflict exception occursAdminManagementClientServerExceptionjavax.ws.rs.core.Response.Status importAgenciesFile(InputStream stream, String filename) throws ReferentialException
stream - agency file inputstream to importfilename - name of the imported fileReferentialException - when file rules exception occursDatabaseConflictException - when Database conflict exception occursAdminManagementClientServerExceptionRequestResponse<AgenciesModel> getAgencyById(String id) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
id - The agency identifierReferentialNotFoundException - when file referential exception occursInvalidParseOperationException - when a parse problem occursAdminManagementClientServerExceptioncom.fasterxml.jackson.databind.JsonNode getAgencies(com.fasterxml.jackson.databind.JsonNode query)
throws ReferentialException,
InvalidParseOperationException,
AdminManagementClientServerException
query - to get agenciesReferentialException - when file referential exception occursInvalidParseOperationException - when a parse problem occursIOException - when IO Exception occursAdminManagementClientServerException - when admin management resources not foundcom.fasterxml.jackson.databind.JsonNode getRuleByID(String id) throws FileRulesException, InvalidParseOperationException, AdminManagementClientServerException
id - The rule identifierFileRulesException - when file rules exception occursInvalidParseOperationException - when a parse problem occursAdminManagementClientServerExceptioncom.fasterxml.jackson.databind.JsonNode getRules(com.fasterxml.jackson.databind.JsonNode query)
throws FileRulesException,
InvalidParseOperationException,
IOException,
AdminManagementClientServerException
query - to get ruleFileRulesException - when file rules exception occursInvalidParseOperationException - when a parse problem occursIOException - when IO Exception occursAdminManagementClientServerException - when admin management resources not foundRequestResponse<AccessionRegisterDetailModel> createorUpdateAccessionRegister(AccessionRegisterDetailModel register) throws AccessionRegisterException, AdminManagementClientServerException
register - AccessionRegisterDetailAccessionRegisterException - when AccessionRegisterDetailexception occursAdminManagementClientServerException - whenRequestResponse<AccessionRegisterSummaryModel> getAccessionRegister(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, ReferentialException, AccessUnauthorizedException
query - The DSL Query as JsonNodeInvalidParseOperationExceptionReferentialExceptionAccessUnauthorizedExceptionRequestResponse<AccessionRegisterDetailModel> getAccessionRegisterDetail(String documentId, com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, ReferentialException
query - The DSL Query as a JSON NodeInvalidParseOperationExceptionReferentialExceptionjavax.ws.rs.core.Response.Status importIngestContracts(List<IngestContractModel> ingestContractModelList) throws InvalidParseOperationException, AdminManagementClientServerException
ingestContractModelList - the contract to importVitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionjavax.ws.rs.core.Response.Status importAccessContracts(List<AccessContractModel> accessContractModelList) throws InvalidParseOperationException, AdminManagementClientServerException
accessContractModelList - the list contract to importVitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<AccessContractModel> updateAccessContract(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - the given access contract id to updatequeryDsl - query to executeInvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<IngestContractModel> updateIngestContract(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - the given Ingest contract id to updatequeryDsl - query to executeInvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<AccessContractModel> findAccessContracts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
queryDsl - VitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<AccessContractModel> findAccessContractsByID(String documentId) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
documentId - InvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<IngestContractModel> findIngestContracts(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
query - InvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<IngestContractModel> findIngestContractsByID(String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - InvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse createProfiles(List<ProfileModel> profileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
profileModelList - the list profile to importVitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse importProfileFile(String profileMetadataId, InputStream stream) throws ReferentialException, DatabaseConflictException
profileMetadataId - the id of the profile metadata corresponding to the filestream - as InputStreamReferentialException - when import exception occursDatabaseConflictException - conflict exception occursjavax.ws.rs.core.Response downloadProfileFile(String profileMetadataId) throws AdminManagementClientServerException, ProfileNotFoundException
profileMetadataId - AdminManagementClientServerExceptionProfileNotFoundExceptionRequestResponse<ProfileModel> findProfiles(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
query - InvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<ProfileModel> findProfilesByID(String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - InvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<ProfileModel> updateProfile(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws AdminManagementClientServerException, InvalidParseOperationException, ReferentialNotFoundException
id - queryDsl - AdminManagementClientServerExceptionInvalidParseOperationExceptionReferentialNotFoundExceptionjavax.ws.rs.core.Response.Status importContexts(List<ContextModel> ContextModelList) throws ReferentialException
ContextModelList - ReferentialExceptionRequestResponse<ContextModel> updateContext(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - queryDsl - InvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<ContextModel> findContexts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
queryDsl - InvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<ContextModel> findContextById(String id) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
id - InvalidParseOperationExceptionReferentialNotFoundExceptionAdminManagementClientServerExceptionRequestResponse<Boolean> securityProfileIsUsedInContexts(String securityProfileId) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
securityProfileId - InvalidParseOperationExceptionReferentialNotFoundExceptionAdminManagementClientServerExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> launchAuditWorkflow(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
options - AdminManagementClientServerExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> launchRuleAudit() throws AdminManagementClientServerException
AdminManagementClientServerExceptionjavax.ws.rs.core.Response.Status importSecurityProfiles(List<SecurityProfileModel> securityProfileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
securityProfileModelList - the security profiles to importVitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse updateSecurityProfile(String identifier, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
identifier - the identifier of the security profile to updatequeryDsl - query to executeInvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<SecurityProfileModel> findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
queryDsl - the DSL queryVitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<SecurityProfileModel> findSecurityProfileByIdentifier(String identifier) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
identifier - the identifier of the security profileInvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<IndexationResult> launchReindexation(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
options - specifying what to reindexAdminManagementClientServerExceptionRequestResponse<IndexationResult> switchIndexes(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
options - AdminManagementClientServerExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> evidenceAudit(com.fasterxml.jackson.databind.JsonNode queryDsl) throws AdminManagementClientServerException
queryDsl - the idAdminManagementClientServerExceptionRequestResponse rectificationAudit(String operationId) throws AdminManagementClientServerException
operationId - operation IdAdminManagementClientServerExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> exportProbativeValue(ProbativeValueRequest probativeValueRequest) throws AdminManagementClientServerException
probativeValueRequest - the idAdminManagementClientServerExceptionRequestResponse createArchiveUnitProfiles(List<ArchiveUnitProfileModel> archiveUnitProfileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
archiveUnitProfileModelList - the list profile to importVitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<ArchiveUnitProfileModel> findArchiveUnitProfiles(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
query - InvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<ArchiveUnitProfileModel> findArchiveUnitProfilesByID(String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - InvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse<ArchiveUnitProfileModel> updateArchiveUnitProfile(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - queryDsl - AdminManagementClientServerExceptionInvalidParseOperationExceptionReferentialNotFoundExceptionRequestResponse importOntologies(boolean forceUpdate, List<OntologyModel> ontologyModelList) throws InvalidParseOperationException, AdminManagementClientServerException
ontologyModelList - the list of ontologies to importforceUpdate - VitamClientInternalExceptionInvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<OntologyModel> findOntologies(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
query - InvalidParseOperationExceptionAdminManagementClientServerExceptionRequestResponse<OntologyModel> findOntologyByID(String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id - InvalidParseOperationExceptionAdminManagementClientServerExceptionReferentialNotFoundExceptionRequestResponse forcePause(ProcessPause info) throws AdminManagementClientServerException
info - a ProcessPause object indicating the tenant and/or the type of process to pauseAdminManagementClientServerExceptionRequestResponse removeForcePause(ProcessPause info) throws AdminManagementClientServerException
info - a ProcessPause object indicating the tenant and/or the type of process to pauseAdminManagementClientServerExceptionRequestResponse<AccessionRegisterSymbolic> createAccessionRegisterSymbolic(Integer tenant) throws AdminManagementClientServerException
tenant - where are the information related to the accession register symbolicAdminManagementClientServerExceptionRequestResponse<List<AccessionRegisterSymbolicModel>> getAccessionRegisterSymbolic(Integer tenant, com.fasterxml.jackson.databind.JsonNode queryDsl) throws AdminManagementClientServerException
tenant - related to the accession registerqueryDsl - search by dslAdminManagementClientServerExceptionCopyright © 2018 Vitam. All rights reserved.