Class 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 Detail

      • 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 Detail

      • LdapMapping

        public LdapMapping​(String attrId)
        Simple not-required attr<->property
        Parameters:
        attrId -
    • Method Detail

      • 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
      • getKindAttrId

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