Class GlobalMapValueValidator

  • All Implemented Interfaces:
    ServiceAttributeValidator

    public class GlobalMapValueValidator
    extends Object
    implements ServiceAttributeValidator
    Validates Global Map property value in Agent Properties. These "Global" Map properties are just like Map properties, except they ALSO allow you to specify one global value as the default for the property, so when a key is not specified so mapping exists, then this global value is used. e.g. com.sun.identity.agents.config.someglobalmapprop=somevalue Note, can have only *one* global value: -where value has no brackets or context root key and is just a value -also allow a global value format: "=SomeValue" etc, which includes an equal sign since in property file style an entry like com.sun.someprop=ALL would have a value "=SomeValue" -can not have a blank r.h.s like "= " -can not have space inside characters of r.h.s, like "= some space" This validator accepts all the values accepted by MapValueValidator and additionally accepts global format style values. See the MapValueValidator.java class for non global map regular expressions and examples of acceptable values.
    • Constructor Detail

      • GlobalMapValueValidator

        public GlobalMapValueValidator()
    • Method Detail

      • validate

        public boolean validate​(Set<String> values)
        Returns true if values are of global map format.
        Specified by:
        validate in interface ServiceAttributeValidator
        Parameters:
        values - the set of values to be validated
        Returns:
        true if values are of global map format.