Package com.denodo.common.custom.policy
Class CustomRestrictionPolicyValue
java.lang.Object
com.denodo.common.custom.policy.CustomRestrictionPolicyValue
Class that represents the action that will be taken as a result of
custom policy evaluation. This action can be:
- Reject the query
- Accept the query without restrictions
- Accept the query but imposing some restrictions
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aCustomRestrictionPolicyValuewithout imposing any restrictionCustomRestrictionPolicyValue(CustomRestrictionPolicyType policyType, CustomRestrictionPolicyFilterType filterType, String condition, CustomMaskingExpression defaultMaskingExpression, Map<String, CustomMaskingExpression> sensitiveFields) CustomRestrictionPolicyValue(CustomRestrictionPolicyType policyType, CustomRestrictionPolicyFilterType filterType, String condition, Set<String> sensitiveFields) Constructs aCustomRestrictionPolicyValuewhich may impose some restriction -
Method Summary
Modifier and TypeMethodDescriptionReturns the condition that will be added to the query when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTERReturns the default masking expression used for those fields using DefaultCustomMaskingExpression.TypeReturns the action to be taken for all the rows that do not verify the condition when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTERReturns the action to be taken as a result of custom policy evaluationReturns the set of field names that will be used to decide how the restriction will be applied when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTERReturns the map of field names that will be used to decide how the restriction will be applied when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTER.
-
Constructor Details
-
CustomRestrictionPolicyValue
Constructs aCustomRestrictionPolicyValuewithout imposing any restriction- Parameters:
policyType- Action to be taken as a result of custom policy evaluation
-
CustomRestrictionPolicyValue
public CustomRestrictionPolicyValue(CustomRestrictionPolicyType policyType, CustomRestrictionPolicyFilterType filterType, String condition, Set<String> sensitiveFields) Constructs aCustomRestrictionPolicyValuewhich may impose some restriction- Parameters:
policyType- Action to be taken as a result of custom policy evaluationfilterType- Action to be taken for all the rows that do not verify theconditionwhenpolicyTypeisACCEPT_WITH_FILTER.condition- Condition that will be added to the query whenpolicyTypeisACCEPT_WITH_FILTER.sensitiveFields- Set of field names that will be used to decide how the restriction indicated byfilterTypewill be applied
-
CustomRestrictionPolicyValue
public CustomRestrictionPolicyValue(CustomRestrictionPolicyType policyType, CustomRestrictionPolicyFilterType filterType, String condition, CustomMaskingExpression defaultMaskingExpression, Map<String, CustomMaskingExpression> sensitiveFields)
-
-
Method Details
-
getFilterType
Returns the action to be taken for all the rows that do not verify the condition when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTER- Returns:
- the action to be taken for all the rows that do not verify the
condition when the custom policy evaluates to
CustomRestrictionPolicyType.ACCEPT_WITH_FILTER
-
getCondition
Returns the condition that will be added to the query when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTER- Returns:
- the condition that will be added to the query when the custom
policy evaluates to
CustomRestrictionPolicyType.ACCEPT_WITH_FILTER
-
getSensitiveFields
Returns the set of field names that will be used to decide how the restriction will be applied when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTER- Returns:
- the set of field names that will be used to decide how the
restriction will be applied when the custom policy evaluates to
CustomRestrictionPolicyType.ACCEPT_WITH_FILTER
-
getSensitiveFieldsExpressions
Returns the map of field names that will be used to decide how the restriction will be applied when the custom policy evaluates toCustomRestrictionPolicyType.ACCEPT_WITH_FILTER. The mapping value is theCustomMaskingExpressionapplied for each field.- Returns:
- the map of field names that will be used to decide how the
restriction will be applied when the custom policy evaluates to
CustomRestrictionPolicyType.ACCEPT_WITH_FILTER. The mapping value is theCustomMaskingExpressionapplied for each field.
-
getDefaultMaskingExpression
Returns the default masking expression used for those fields using DefaultCustomMaskingExpression.Type- Returns:
- the default masking expression used for those fields using Default
CustomMaskingExpression.Type.
-
getPolicyType
Returns the action to be taken as a result of custom policy evaluation- Returns:
- the action to be taken as a result of custom policy evaluation
-