Class LdapMapObject

java.lang.Object
org.keycloak.models.map.storage.ldap.model.LdapMapObject
All Implemented Interfaces:
AbstractEntity

public class LdapMapObject extends Object implements AbstractEntity
Author:
Marek Posolda
  • Constructor Details

    • LdapMapObject

      public LdapMapObject()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface AbstractEntity
    • setId

      public void setId(String id)
      Specified by:
      setId in interface AbstractEntity
    • getDn

      public LdapMapDn getDn()
    • setDn

      public void setDn(LdapMapDn dn)
    • getObjectClasses

      public List<String> getObjectClasses()
    • setObjectClasses

      public void setObjectClasses(Collection<String> objectClasses)
    • getReadOnlyAttributeNames

      public List<String> getReadOnlyAttributeNames()
    • addReadOnlyAttributeName

      public void addReadOnlyAttributeName(String readOnlyAttribute)
    • removeReadOnlyAttributeName

      public void removeReadOnlyAttributeName(String readOnlyAttribute)
    • getRdnAttributeNames

      public List<String> getRdnAttributeNames()
    • setRdnAttributeName

      public void setRdnAttributeName(String rdnAttributeName)
      Useful when single value will be used as the "RDN" attribute. Which will be most of the cases
    • setRdnAttributeNames

      public void setRdnAttributeNames(List<String> rdnAttributeNames)
    • addRdnAttributeName

      public void addRdnAttributeName(String rdnAttributeName)
    • setSingleAttribute

      public void setSingleAttribute(String attributeName, String attributeValue)
    • setAttribute

      public void setAttribute(String attributeName, Set<String> attributeValue)
    • getAttributeAsString

      public String getAttributeAsString(String name)
    • getAttributeAsSet

      public Set<String> getAttributeAsSet(String name)
    • isRangeComplete

      public boolean isRangeComplete(String name)
    • getCurrentRange

      public int getCurrentRange(String name)
    • isRangeCompleteForAllAttributes

      public boolean isRangeCompleteForAllAttributes()
    • addRangedAttribute

      public void addRangedAttribute(String name, int max)
    • populateRangedAttribute

      public void populateRangedAttribute(LdapMapObject obj, String name)
    • getAttributes

      public Map<String,Set<String>> getAttributes()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object