Class ClientMockResultHelper
java.lang.Object
fr.gouv.vitam.common.external.client.ClientMockResultHelper
Results for client mock
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestResponse<com.fasterxml.jackson.databind.JsonNode>
static RequestResponse
static RequestResponse<com.fasterxml.jackson.databind.JsonNode>
static RequestResponse
createReponse
(String s, int statuscode) static RequestResponse<AccessContractModel>
static RequestResponse
static RequestResponse<AgenciesModel>
static RequestResponse<AgenciesModel>
getAgencies
(int statusCode) getArchiveUnitProfiles
(int statusCode) Get archive unit profiles mock with the given status codestatic RequestResponse
static RequestResponse<com.fasterxml.jackson.databind.JsonNode>
getArchiveUnitSimpleResult
(com.fasterxml.jackson.databind.JsonNode query) static RequestResponse<ContextModel>
getContexts
(int statusCode) static RequestResponse<com.fasterxml.jackson.databind.JsonNode>
getDIPSimpleResult
(com.fasterxml.jackson.databind.JsonNode dslRequest) static RequestResponse
static RequestResponse<com.fasterxml.jackson.databind.JsonNode>
getEvidenceAudit
(int statusCode) static RequestResponse<FileFormatModel>
static RequestResponse<FileFormatModel>
getFormat
(int statusCode) static RequestResponse<FileFormatModel>
static RequestResponse<com.fasterxml.jackson.databind.JsonNode>
getGotSimpleResult
(com.fasterxml.jackson.databind.JsonNode query) static RequestResponse<IngestContractModel>
static ItemStatus
getItemStatus
(String id) static RequestResponse<LogbookLifecycle>
static RequestResponse<LogbookOperation>
static List<LogbookOperation>
static RequestResponse<LogbookOperation>
static com.fasterxml.jackson.databind.JsonNode
Deprecated.static RequestResponse
Deprecated.static com.fasterxml.jackson.databind.JsonNode
static javax.ws.rs.core.Response
static RequestResponse<OntologyModel>
getOntologies
(int statusCode) static RequestResponse<com.fasterxml.jackson.databind.JsonNode>
getOperationSimpleResult
(String itemId) static RequestResponse<ProfileModel>
getProbativeValue
(int statusCode) static RequestResponse<ProfileModel>
getProfiles
(int statusCode) static RequestResponse<FileRulesModel>
getRule()
static RequestResponse<FileRulesModel>
getRule
(int statusCode) static RequestResponse<FileRulesModel>
static RequestResponse
static RequestResponse
getSecurityProfiles
(int statusCode)
-
Field Details
-
SECURITY_PROFILES
- See Also:
-
-
Method Details
-
getLogbookOperations
- Returns:
- a default Logbook Result
- Throws:
InvalidParseOperationException
-
getLogbookResults
@Deprecated public static com.fasterxml.jackson.databind.JsonNode getLogbookResults() throws InvalidParseOperationExceptionDeprecated.FIXME to remove in 2905- Returns:
- a default Logbook Result
- Throws:
InvalidParseOperationException
-
getLogbooksRequestResponseJsonNode
@Deprecated public static RequestResponse getLogbooksRequestResponseJsonNode() throws InvalidParseOperationExceptionDeprecated.FIXME to remove in 2905- Returns:
- a default Logbook operations response Result
- Throws:
InvalidParseOperationException
-
getLogbookOperationsRequestResponse
- Returns:
- a default Logbook operations response Result
-
getLogbookOperationRequestResponse
- Returns:
- one default Logbook operation response
-
getLogbookLifecycleRequestResponse
- Returns:
- one default Logbook lifecycle response
-
getMetaDataResult
public static com.fasterxml.jackson.databind.JsonNode getMetaDataResult() throws InvalidParseOperationException- Throws:
InvalidParseOperationException
-
createReponse
- Parameters:
s
- the original object to be included in response- Returns:
- a default response
- Throws:
InvalidParseOperationException
-
createReponse
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> createReponse(String s) throws InvalidParseOperationException - Parameters:
s
- the original object to be included in response- Returns:
- a default response
- Throws:
InvalidParseOperationException
-
createReponse
public static RequestResponse createReponse(String s, int statuscode) throws InvalidParseOperationException - Parameters:
s
- the original object to be included in responsestatuscode
- status to be returned- Returns:
- a default response
- Throws:
InvalidParseOperationException
-
getAccessionRegisterSummary
- Returns:
- a default Access Register Summary
-
getAccessionRegisterDetail
- Returns:
- a default Access Register Detail
- Throws:
InvalidParseOperationException
-
getFormat
- Returns:
- a default Format
-
getFormat
- Parameters:
statusCode
-- Returns:
- a default Format
-
getRule
- Returns:
- a default Rule
-
getRule
- Parameters:
statusCode
-- Returns:
- a default Rule
-
getIngestContracts
- Returns:
- a RequestResponse containing contracts json
-
getAccessContracts
- Returns:
- a RequestResponse containing access contracts json
-
getManagementContracts
- Returns:
- a RequestResponse containing access contracts json
-
getAgencies
- Returns:
- a RequestResponse containing agencies json
-
getAgencies
- Parameters:
statusCode
-- Returns:
- a RequestResponse containing agencies json
-
getContexts
- Returns:
- context json
-
getProfiles
-
getOntologies
- Parameters:
statusCode
-- Returns:
- a RequestResponse containing Ontology json
-
getFormatList
- Returns:
- a default list of Formats
- Throws:
InvalidParseOperationException
-
getRuleList
-
getEmptyResult
- Returns:
- a default list of Rules
- Throws:
InvalidParseOperationException
-
getArchiveUnitResult
- Returns:
- a default ArchiveUnit result
- Throws:
InvalidParseOperationException
-
getArchiveUnitSimpleResult
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> getArchiveUnitSimpleResult(com.fasterxml.jackson.databind.JsonNode query) - Returns:
- a simple ArchiveUnit result
-
getOperationSimpleResult
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> getOperationSimpleResult(String itemId) throws VitamClientException - Returns:
- a simple Operation result
- Throws:
VitamClientException
-
getGotSimpleResult
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> getGotSimpleResult(com.fasterxml.jackson.databind.JsonNode query) - Returns:
- a simple GOT result
-
getObjectStream
public static javax.ws.rs.core.Response getObjectStream()- Returns:
- a default ArchiveUnit result
- Throws:
InvalidParseOperationException
-
getItemStatus
- Parameters:
id
-- Returns:
- a default ArchiveUnit result
- Throws:
InvalidParseOperationException
-
checkOperationTraceability
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> checkOperationTraceability() throws InvalidParseOperationException- Throws:
InvalidParseOperationException
-
getSecurityProfiles
- Returns:
- Throws:
VitamClientException
-
getSecurityProfiles
- Parameters:
statusCode
-- Returns:
- Throws:
VitamClientException
-
getDIPSimpleResult
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> getDIPSimpleResult(com.fasterxml.jackson.databind.JsonNode dslRequest) -
getEvidenceAudit
public static RequestResponse<com.fasterxml.jackson.databind.JsonNode> getEvidenceAudit(int statusCode) -
getProbativeValue
-
getArchiveUnitProfiles
Get archive unit profiles mock with the given status code- Parameters:
statusCode
-- Returns:
- a mock of archive unit profiles
-