Class SearchAttribute


  • public class SearchAttribute
    extends Object
    A representation of a policy attribute that can be searched for. Policy framework attributes are stored in LDAP attributes, so have an LDAP attribute name as well as a policy attribute name.
    • Constructor Detail

      • SearchAttribute

        public SearchAttribute​(String attributeName,
                               String ldapAttribute)
        Create a new searchable attribute.
        Parameters:
        attributeName - The name of the policy framework attribute.
        ldapAttribute - The name of the LDAP attribute that attribute will be stored in.
    • Method Detail

      • getLdapAttribute

        public String getLdapAttribute()
        Get the LDAP attribute name.
      • getAttributeName

        public String getAttributeName()
        Get the policy framework attribute name.
      • toFilter

        public String toFilter​(String operator)
        Join the LDAP attribute and policy attribute together with an operator.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object