java.lang.Object
org.bedework.carddav.server.dirHandlers.ldap.LdapMapping
Direct Known Subclasses:
LdapMapping.AttrPropertyMapping, LdapMapping.AttrValue

public class LdapMapping extends Object
Define information to allow us to map between ldap attributes and vcard properties. The mapping is not complete but should handle most cases

We might want to make use of the entryUUID attribute - see RFC4530

Failing that - generate a uid for the vcard using the ldap scheme and use the dn value

Author:
douglm
  • Field Details

    • attrToVcardProperty

      public static final Map<String,LdapMapping> attrToVcardProperty
      Mappings
    • toLdapAttrNoGroup

      public static final Map<String,Collection<String>> toLdapAttrNoGroup
      property name -> attribute names
    • defaultAttrIdList

      public static final List<String> defaultAttrIdList
      We have to explicitly fetch attributes to get system attributes. This is the default list we obtain. The config can name extra attributes.
  • Constructor Details

    • LdapMapping

      public LdapMapping(String attrId)
      Simple not-required attr<->property
      Parameters:
      attrId - th eattribute id
  • Method Details

    • getAttrId

      public String getAttrId()
      Returns:
      name of attribute
    • simplePropertyToLdapAttr

      public static String simplePropertyToLdapAttr(String pname)
      Return the ldap attribute for a simple property name
      Parameters:
      pname - name of parameter
      Returns:
      ldap attribute
    • getOcKindMapping

      public static net.fortuna.ical4j.vcard.property.Kind getOcKindMapping(String val)
      Parameters:
      val - object class
      Returns:
      KIND for object class
    • getKindMapping

      public static LdapMapping.AttrPropertyMapping getKindMapping()
      Returns:
      mapping for KIND or null if no mapping
    • getKindAttrId

      public static String getKindAttrId()
      Returns:
      attrId or null if no mapping