Class FieldRestriction


  • public final class FieldRestriction
    extends Object
    The restrictions on a field imposed by a specific policy.
    • Constructor Detail

      • FieldRestriction

        public FieldRestriction()
    • Method Detail

      • result

        public FieldRestrictionResult result()
        Get the result property: The type of restriction that is imposed on the field.
        Returns:
        the result value.
      • defaultValue

        public String defaultValue()
        Get the defaultValue property: The value that policy will set for the field if the user does not provide a value.
        Returns:
        the defaultValue value.
      • values

        public List<String> values()
        Get the values property: The values that policy either requires or denies for the field.
        Returns:
        the values value.
      • policy

        public PolicyReference policy()
        Get the policy property: The details of the policy that is causing the field restriction.
        Returns:
        the policy value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.