Class LdapMapping
- 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 casesWe 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLdapMapping.AttrPropertyMappingThese represent vcard properties.static classLdapMapping.AttrValueThis represent a value we need to insert into an ldap entry as we create it.
-
Field Summary
Fields Modifier and Type Field Description static Map<String,LdapMapping>attrToVcardPropertyMappingsstatic List<String>defaultAttrIdListWe have to explicitly fetch attributes to get system attributes.static Map<String,Collection<String>>toLdapAttrNoGroupproperty name -> attribute names
-
Constructor Summary
Constructors Constructor Description LdapMapping(String attrId)Simple not-required attr<->property
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttrId()static StringgetKindAttrId()static LdapMapping.AttrPropertyMappinggetKindMapping()static net.fortuna.ical4j.vcard.property.KindgetOcKindMapping(String val)static StringsimplePropertyToLdapAttr(String pname)Return the ldap attribute for a simple property name
-
-
-
Field Detail
-
attrToVcardProperty
public static final Map<String,LdapMapping> attrToVcardProperty
Mappings
-
toLdapAttrNoGroup
public static final Map<String,Collection<String>> toLdapAttrNoGroup
property name -> attribute names
-
-
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
-
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
-
-