Class AccessContractRestrictionHelper
- java.lang.Object
-
- fr.gouv.vitam.common.database.utils.AccessContractRestrictionHelper
-
public final class AccessContractRestrictionHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.JsonNode
applyAccessContractExceptRuleRestrictionsForObjectGroupForSelect(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract)
Apply access contract restriction except rule restrictions for object group for select requeststatic com.fasterxml.jackson.databind.JsonNode
applyAccessContractRestrictionForObjectGroupForSelect(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract)
Apply access contract restriction for object group for select requeststatic com.fasterxml.jackson.databind.JsonNode
applyAccessContractRestrictionForUnitForSelect(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract)
Apply access contract restriction for archive unit for select requeststatic com.fasterxml.jackson.databind.JsonNode
applyAccessContractRestrictionForUnitForUpdate(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract)
Apply access contract restriction for archive unit for update requeststatic com.fasterxml.jackson.databind.JsonNode
applyAccessContractRestrictionOnOriginatingAgencies(com.fasterxml.jackson.databind.JsonNode queryDsl)
Deprecated.
-
-
-
Method Detail
-
applyAccessContractRestrictionForUnitForSelect
public static com.fasterxml.jackson.databind.JsonNode applyAccessContractRestrictionForUnitForSelect(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract) throws InvalidParseOperationException, InvalidCreateOperationException
Apply access contract restriction for archive unit for select request- Parameters:
queryDsl
-contract
-- Returns:
- Throws:
InvalidParseOperationException
InvalidCreateOperationException
-
applyAccessContractRestrictionForObjectGroupForSelect
public static com.fasterxml.jackson.databind.JsonNode applyAccessContractRestrictionForObjectGroupForSelect(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract) throws InvalidParseOperationException, InvalidCreateOperationException
Apply access contract restriction for object group for select request- Parameters:
queryDsl
-contract
-- Returns:
- JsonNode contains restriction
- Throws:
InvalidParseOperationException
InvalidCreateOperationException
-
applyAccessContractExceptRuleRestrictionsForObjectGroupForSelect
public static com.fasterxml.jackson.databind.JsonNode applyAccessContractExceptRuleRestrictionsForObjectGroupForSelect(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract) throws InvalidParseOperationException, InvalidCreateOperationException
Apply access contract restriction except rule restrictions for object group for select request- Parameters:
queryDsl
-contract
-- Returns:
- JsonNode contains restriction
- Throws:
InvalidParseOperationException
InvalidCreateOperationException
-
applyAccessContractRestrictionForUnitForUpdate
public static com.fasterxml.jackson.databind.JsonNode applyAccessContractRestrictionForUnitForUpdate(com.fasterxml.jackson.databind.JsonNode queryDsl, AccessContractModel contract) throws InvalidParseOperationException, InvalidCreateOperationException
Apply access contract restriction for archive unit for update request- Parameters:
queryDsl
-contract
-- Returns:
- Throws:
InvalidParseOperationException
InvalidCreateOperationException
-
applyAccessContractRestrictionOnOriginatingAgencies
@Deprecated public static com.fasterxml.jackson.databind.JsonNode applyAccessContractRestrictionOnOriginatingAgencies(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException, InvalidCreateOperationException
Deprecated.Just filter by originating agency. Deprecated as used just for object group, from Release 8 use applyAccessContractRestrictionForObjectGroupForSelect instead- Parameters:
queryDsl
-- Returns:
- Throws:
InvalidParseOperationException
InvalidCreateOperationException
-
-