Class ClientMockResultHelper
- java.lang.Object
-
- fr.gouv.vitam.common.external.client.ClientMockResultHelper
-
public class ClientMockResultHelper extends java.lang.Object
Results for client mock
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SECURITY_PROFILES
-
Method Summary
-
-
-
Field Detail
-
SECURITY_PROFILES
public static final java.lang.String SECURITY_PROFILES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLogbookOperations
public static java.util.List<LogbookOperation> getLogbookOperations()
- Returns:
- a default Logbook Result
- Throws:
InvalidParseOperationException
-
getLogbookResults
@Deprecated public static com.fasterxml.jackson.databind.JsonNode getLogbookResults() throws InvalidParseOperationException
Deprecated.FIXME to remove in 2905- Returns:
- a default Logbook Result
- Throws:
InvalidParseOperationException
-
getLogbooksRequestResponseJsonNode
@Deprecated public static RequestResponse getLogbooksRequestResponseJsonNode() throws InvalidParseOperationException
Deprecated.FIXME to remove in 2905- Returns:
- a default Logbook operations response Result
- Throws:
InvalidParseOperationException
-
getLogbookOperationsRequestResponse
public static RequestResponse<LogbookOperation> getLogbookOperationsRequestResponse()
- Returns:
- a default Logbook operations response Result
-
getLogbookOperationRequestResponse
public static RequestResponse<LogbookOperation> getLogbookOperationRequestResponse()
- Returns:
- one default Logbook operation response
-
getLogbookLifecycleRequestResponse
public static RequestResponse<LogbookLifecycle> getLogbookLifecycleRequestResponse()
- Returns:
- one default Logbook lifecycle response
-
getMetaDataResult
public static com.fasterxml.jackson.databind.JsonNode getMetaDataResult() throws InvalidParseOperationException
- Throws:
InvalidParseOperationException
-
createReponse
public static RequestResponse createReponse(java.lang.Object s)
- Parameters:
s
- the original object to be included in response- Returns:
- a default response
- Throws:
InvalidParseOperationException
-
createReponse
public static RequestResponse createReponse(java.lang.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(java.lang.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
public static RequestResponse<AccessionRegisterSummaryModel> getAccessionRegisterSummary()
- Returns:
- a default Access Register Summary
-
getAccessionRegisterDetail
public static RequestResponse getAccessionRegisterDetail() throws InvalidParseOperationException
- Returns:
- a default Access Register Detail
- Throws:
InvalidParseOperationException
-
getFormat
public static RequestResponse<FileFormatModel> getFormat()
- Returns:
- a default Format
-
getFormat
public static RequestResponse<FileFormatModel> getFormat(int statusCode)
- Parameters:
statusCode
-- Returns:
- a default Format
-
getRule
public static RequestResponse<FileRulesModel> getRule()
- Returns:
- a default Rule
-
getRule
public static RequestResponse<FileRulesModel> getRule(int statusCode)
- Parameters:
statusCode
-- Returns:
- a default Rule
-
getIngestContracts
public static RequestResponse<IngestContractModel> getIngestContracts()
- Returns:
- a RequestResponse containing contracts json
-
getAccessContracts
public static RequestResponse<AccessContractModel> getAccessContracts()
- Returns:
- a RequestResponse containing access contracts json
-
getManagementContracts
public static RequestResponse<ManagementContractModel> getManagementContracts()
- Returns:
- a RequestResponse containing access contracts json
-
getAgencies
public static RequestResponse<AgenciesModel> getAgencies()
- Returns:
- a RequestResponse containing agencies json
-
getAgencies
public static RequestResponse<AgenciesModel> getAgencies(int statusCode)
- Parameters:
statusCode
-- Returns:
- a RequestResponse containing agencies json
-
getContexts
public static RequestResponse<ContextModel> getContexts(int statusCode)
- Returns:
- context json
-
getProfiles
public static RequestResponse<ProfileModel> getProfiles(int statusCode)
-
getOntologies
public static RequestResponse<OntologyModel> getOntologies(int statusCode)
- Parameters:
statusCode
-- Returns:
- a RequestResponse containing Ontology json
-
getFormatList
public static RequestResponse<FileFormatModel> getFormatList()
- Returns:
- a default list of Formats
- Throws:
InvalidParseOperationException
-
getRuleList
public static RequestResponse<FileRulesModel> getRuleList()
-
getEmptyResult
public static RequestResponse getEmptyResult()
- Returns:
- a default list of Rules
- Throws:
InvalidParseOperationException
-
getArchiveUnitResult
public static RequestResponse getArchiveUnitResult() throws InvalidParseOperationException
- 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(java.lang.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
public static ItemStatus getItemStatus(java.lang.String id) throws InvalidParseOperationException
- Parameters:
id
-- Returns:
- a default ArchiveUnit result
- Throws:
InvalidParseOperationException
-
checkOperationTraceability
public static RequestResponse checkOperationTraceability() throws InvalidParseOperationException
- Throws:
InvalidParseOperationException
-
getSecurityProfiles
public static RequestResponse getSecurityProfiles() throws VitamClientException
- Returns:
- Throws:
VitamClientException
-
getSecurityProfiles
public static RequestResponse getSecurityProfiles(int statusCode) throws VitamClientException
- 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<ProfileModel> getEvidenceAudit(int statusCode)
-
getProbativeValue
public static RequestResponse<ProfileModel> getProbativeValue(int statusCode)
-
getArchiveUnitProfiles
public static RequestResponse<ArchiveUnitProfileModel> getArchiveUnitProfiles(int statusCode)
Get archive unit profiles mock with the given status code- Parameters:
statusCode
-- Returns:
- a mock of archive unit profiles
-
-