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<AccessionRegisterDetailModel> |
createorUpdateAccessionRegister(AccessionRegisterDetailModel register) |
void |
createorUpdateAccessionRegisterRaw(com.fasterxml.jackson.databind.JsonNode accessionRegisterDetail)
Create the accession register details as raw Data
|
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<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<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<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<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<com.fasterxml.jackson.databind.JsonNode> |
getAccessionRegisterDetailRaw(String operationId,
String originatingAgency)
Get the accession register details as raw Data
|
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 |
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<com.fasterxml.jackson.databind.JsonNode> |
objectGroupEvidenceAudit(String objectGroupId)
launch a traceability audit for the object group
|
RequestResponse<IndexationResult> |
switchIndexes(com.fasterxml.jackson.databind.JsonNode options)
launch an index switch.
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
unitEvidenceAudit(String unitId)
launch a traceability audit for the unit
|
RequestResponse<AccessContractModel> |
updateAccessContract(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update AccessContract to mongo
|
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, getServiceUrl
javax.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 checkFileRulesException
AdminManagementClientServerException
javax.ws.rs.core.Response checkAgenciesFile(InputStream stream) throws ReferentialException, AdminManagementClientServerException
stream
- agencies file inputstream to checkFileRulesException
AdminManagementClientServerException
ReferentialException
javax.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 occursAdminManagementClientServerException
javax.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 occursAdminManagementClientServerException
RequestResponse<AgenciesModel> getAgencyById(String id) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
id
- The agency identifierReferentialNotFoundException
- when file referential exception occursInvalidParseOperationException
- when a parse problem occursAdminManagementClientServerException
com.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 occursAdminManagementClientServerException
com.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, DatabaseConflictException, AdminManagementClientServerException
register
- AccessionRegisterDetailAccessionRegisterException
- when AccessionRegisterDetailexception occursDatabaseConflictException
- when Database conflict exception occursAdminManagementClientServerException
- whenRequestResponse<AccessionRegisterSummaryModel> getAccessionRegister(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, ReferentialException, AccessUnauthorizedException
query
- The DSL Query as JsonNodeInvalidParseOperationException
ReferentialException
AccessUnauthorizedException
RequestResponse<AccessionRegisterDetailModel> getAccessionRegisterDetail(String documentId, com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, ReferentialException
query
- The DSL Query as a JSON NodeInvalidParseOperationException
ReferentialException
void createorUpdateAccessionRegisterRaw(com.fasterxml.jackson.databind.JsonNode accessionRegisterDetail) throws ReferentialException, AdminManagementClientServerException, VitamClientException
accessionRegisterDetail
- accession Register DetailReferentialException
AdminManagementClientServerException
VitamClientException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> getAccessionRegisterDetailRaw(String operationId, String originatingAgency) throws VitamClientException
operationId
- operation Id linked to accession register detailoriginatingAgency
- originatingAgency linked to accessing register detailVitamClientException
javax.ws.rs.core.Response.Status importIngestContracts(List<IngestContractModel> ingestContractModelList) throws InvalidParseOperationException, AdminManagementClientServerException
ingestContractModelList
- the contract to importVitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
javax.ws.rs.core.Response.Status importAccessContracts(List<AccessContractModel> accessContractModelList) throws InvalidParseOperationException, AdminManagementClientServerException
accessContractModelList
- the list contract to importVitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
RequestResponse<AccessContractModel> updateAccessContract(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id
- the given access contract id to updatequeryDsl
- query to executeInvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse<IngestContractModel> updateIngestContract(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id
- the given Ingest contract id to updatequeryDsl
- query to executeInvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse<AccessContractModel> findAccessContracts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
queryDsl
- VitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
RequestResponse<AccessContractModel> findAccessContractsByID(String documentId) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
documentId
- InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse<IngestContractModel> findIngestContracts(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
query
- InvalidParseOperationException
AdminManagementClientServerException
RequestResponse<IngestContractModel> findIngestContractsByID(String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id
- InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse createProfiles(List<ProfileModel> profileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
profileModelList
- the list profile to importVitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
RequestResponse 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
- AdminManagementClientServerException
ProfileNotFoundException
RequestResponse<ProfileModel> findProfiles(com.fasterxml.jackson.databind.JsonNode query) throws InvalidParseOperationException, AdminManagementClientServerException
query
- InvalidParseOperationException
AdminManagementClientServerException
RequestResponse<ProfileModel> findProfilesByID(String id) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id
- InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse<ProfileModel> updateProfile(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws AdminManagementClientServerException, InvalidParseOperationException, ReferentialNotFoundException
id
- queryDsl
- AdminManagementClientServerException
InvalidParseOperationException
ReferentialNotFoundException
javax.ws.rs.core.Response.Status importContexts(List<ContextModel> ContextModelList) throws ReferentialException
ContextModelList
- ReferentialException
RequestResponse<ContextModel> updateContext(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
id
- queryDsl
- InvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse<ContextModel> findContexts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
queryDsl
- InvalidParseOperationException
AdminManagementClientServerException
RequestResponse<ContextModel> findContextById(String id) throws InvalidParseOperationException, ReferentialNotFoundException, AdminManagementClientServerException
id
- InvalidParseOperationException
ReferentialNotFoundException
AdminManagementClientServerException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> launchAuditWorkflow(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
options
- AdminManagementClientServerException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> launchRuleAudit() throws AdminManagementClientServerException
AdminManagementClientServerException
javax.ws.rs.core.Response.Status importSecurityProfiles(List<SecurityProfileModel> securityProfileModelList) throws InvalidParseOperationException, AdminManagementClientServerException
securityProfileModelList
- the security profiles to importVitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
RequestResponse updateSecurityProfile(String identifier, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
identifier
- the identifier of the security profile to updatequeryDsl
- query to executeInvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse<SecurityProfileModel> findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, AdminManagementClientServerException
queryDsl
- the DSL queryVitamClientInternalException
InvalidParseOperationException
AdminManagementClientServerException
RequestResponse<SecurityProfileModel> findSecurityProfileByIdentifier(String identifier) throws InvalidParseOperationException, AdminManagementClientServerException, ReferentialNotFoundException
identifier
- the identifier of the security profileInvalidParseOperationException
AdminManagementClientServerException
ReferentialNotFoundException
RequestResponse<IndexationResult> launchReindexation(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
options
- specifying what to reindexAdminManagementClientServerException
RequestResponse<IndexationResult> switchIndexes(com.fasterxml.jackson.databind.JsonNode options) throws AdminManagementClientServerException
options
- AdminManagementClientServerException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> unitEvidenceAudit(String unitId) throws AdminManagementClientServerException
unitId
- the idAdminManagementClientServerException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> objectGroupEvidenceAudit(String objectGroupId) throws AdminManagementClientServerException
objectGroupId
- the idAdminManagementClientServerException
Copyright © 2018 Vitam. All rights reserved.