Class DirectoryRuleBuilder

java.lang.Object
com.atlassian.crowd.embedded.validator.rule.RuleBuilder<Directory>
com.atlassian.crowd.embedded.validator.rule.DirectoryRuleBuilder

public class DirectoryRuleBuilder extends RuleBuilder<Directory>
Builder utility extending the base class RuleBuilder specifically for Directory related ValidationRule
Since:
3.2.0
  • Method Details

    • ruleFor

      public static DirectoryRuleBuilder ruleFor(String fieldName)
      Constructs a RuleBuilder instance for the given field name
      Parameters:
      fieldName - Name of the field for which error would be mapped
      Returns:
      DirectoryRuleBuilder instance for the given field name
    • valueOf

      public static Function<Directory,String> valueOf(String attributeKey)
      Utility method Creates and returns a Function that will get the string value of the given attribute key from the Map of directory attributes
      Parameters:
      attributeKey - The key tobe retrieved from the directory attributes map
      Returns:
      Function which will get the attribute key from Map of directory attributes