public class LdapSchemaMapping extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.identityconnectors.framework.common.objects.ObjectClass |
ANY_OBJECT_CLASS |
| Constructor and Description |
|---|
LdapSchemaMapping(LdapConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
String |
create(org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.Name name,
Attributes initialAttrs) |
org.identityconnectors.framework.common.objects.Attribute |
createAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass,
String attrName,
LdapEntry entry,
boolean emptyWhenNotFound)
Returns an empty attribute instead of
null when
emptyWhenNotFound is
true. |
org.identityconnectors.framework.common.objects.Name |
createName(org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapEntry entry)
Creates a
Name for the given entry. |
org.identityconnectors.framework.common.objects.Uid |
createUid(org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapEntry entry)
Creates a
Uid for the given entry. |
org.identityconnectors.framework.common.objects.Uid |
createUid(org.identityconnectors.framework.common.objects.ObjectClass oclass,
String entryDN) |
Attribute |
encodeAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.Attribute attr) |
GuardedPasswordAttribute |
encodePassword(org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.Attribute attr) |
Set<String> |
getEffectiveLdapClasses(org.identityconnectors.framework.common.objects.ObjectClass oclass)
Returns the LDAP object class to which the given framework object class is mapped in a transitive manner, i.e.,
together with any superior object classes, any superiors thereof, etc..
|
String |
getEntryDN(org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.Name name) |
String |
getLdapAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.Attribute attr)
Returns the name of the LDAP attribute which corresponds to the given attribute of the given object class, or
null.
|
String |
getLdapAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass,
String attrName,
boolean transfer) |
Set<String> |
getLdapAttributes(org.identityconnectors.framework.common.objects.ObjectClass oclass,
Set<String> attrs,
boolean transfer)
Returns the names of the LDAP attributes which correspond to the given attribute names of the given object class.
|
List<String> |
getLdapClasses(org.identityconnectors.framework.common.objects.ObjectClass oclass)
Returns the LDAP object classes to which the given framework object class is mapped.
|
String |
getLdapNameAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass)
Returns the LDAP attribute which corresponds to
Name for the given object class. |
String |
getLdapPasswordAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass)
Returns the LDAP attribute which corresponds to the password.
|
String |
getLdapUidAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass)
Returns the LDAP attribute which corresponds to
Uid. |
List<String> |
getUserNameLdapAttributes(org.identityconnectors.framework.common.objects.ObjectClass oclass) |
void |
removeNonReadableAttributes(org.identityconnectors.framework.common.objects.ObjectClass oclass,
Set<String> attrNames) |
String |
rename(org.identityconnectors.framework.common.objects.ObjectClass oclass,
String entryDN,
org.identityconnectors.framework.common.objects.Name newName) |
org.identityconnectors.framework.common.objects.Schema |
schema() |
public static final org.identityconnectors.framework.common.objects.ObjectClass ANY_OBJECT_CLASS
public LdapSchemaMapping(LdapConnection conn)
public org.identityconnectors.framework.common.objects.Schema schema()
public List<String> getLdapClasses(org.identityconnectors.framework.common.objects.ObjectClass oclass)
public Set<String> getEffectiveLdapClasses(org.identityconnectors.framework.common.objects.ObjectClass oclass)
public List<String> getUserNameLdapAttributes(org.identityconnectors.framework.common.objects.ObjectClass oclass)
public String getLdapAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass, String attrName, boolean transfer)
public String getLdapAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass, org.identityconnectors.framework.common.objects.Attribute attr)
public Set<String> getLdapAttributes(org.identityconnectors.framework.common.objects.ObjectClass oclass, Set<String> attrs, boolean transfer)
transfer is true, the binary option will be added to the attributes which need it.public String getLdapUidAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass)
Uid. Should never return null.public String getLdapPasswordAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass)
public String getLdapNameAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass)
Name for the given object class. Might return
null if, for example, the object class was not configured explicitly in the configuration.public org.identityconnectors.framework.common.objects.Uid createUid(org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapEntry entry)
Uid for the given entry. It is assumed that the entry contains the attribute returned by
getLdapUidAttribute(org.identityconnectors.framework.common.objects.ObjectClass).public org.identityconnectors.framework.common.objects.Uid createUid(org.identityconnectors.framework.common.objects.ObjectClass oclass,
String entryDN)
public org.identityconnectors.framework.common.objects.Name createName(org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapEntry entry)
Name for the given entry. It is assumed that the entry contains the attribute returned by
getLdapNameAttribute(org.identityconnectors.framework.common.objects.ObjectClass).public org.identityconnectors.framework.common.objects.Attribute createAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass,
String attrName,
LdapEntry entry,
boolean emptyWhenNotFound)
null when
emptyWhenNotFound is
true.public String create(org.identityconnectors.framework.common.objects.ObjectClass oclass, org.identityconnectors.framework.common.objects.Name name, Attributes initialAttrs)
public Attribute encodeAttribute(org.identityconnectors.framework.common.objects.ObjectClass oclass, org.identityconnectors.framework.common.objects.Attribute attr)
public GuardedPasswordAttribute encodePassword(org.identityconnectors.framework.common.objects.ObjectClass oclass, org.identityconnectors.framework.common.objects.Attribute attr)
public String getEntryDN(org.identityconnectors.framework.common.objects.ObjectClass oclass, org.identityconnectors.framework.common.objects.Name name)
public String rename(org.identityconnectors.framework.common.objects.ObjectClass oclass, String entryDN, org.identityconnectors.framework.common.objects.Name newName)
Copyright © 2013. All Rights Reserved.