Class LdapMapping
java.lang.Object
org.bedework.carddav.server.dirHandlers.ldap.LdapMapping
- Direct Known Subclasses:
LdapMapping.AttrPropertyMapping,LdapMapping.AttrValue
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThese represent vcard properties.static classThis represents a value we need to insert into an ldap entry as we create it. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<String,LdapMapping> MappingsWe have to explicitly fetch attributes to get system attributes.static final Map<String,Collection<String>> property name -> attribute names -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic net.fortuna.ical4j.vcard.property.KindgetOcKindMapping(String val) static StringsimplePropertyToLdapAttr(String pname) Return the ldap attribute for a simple property name
-
Field Details
-
attrToVcardProperty
Mappings -
toLdapAttrNoGroup
property name -> attribute names -
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
Simple not-required attr<->property- Parameters:
attrId- th eattribute id
-
-
Method Details
-
getAttrId
- Returns:
- name of attribute
-
simplePropertyToLdapAttr
Return the ldap attribute for a simple property name- Parameters:
pname- name of parameter- Returns:
- ldap attribute
-
getOcKindMapping
- Parameters:
val- object class- Returns:
- KIND for object class
-
getKindMapping
- Returns:
- mapping for KIND or null if no mapping
-
getKindAttrId
- Returns:
- attrId or null if no mapping
-