public class AttributeMapping extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BY_BOOL
Reference type
BY_BOOL designates a reference based on
a boolean value (TRUE/FALSE) |
static int |
BY_CLASS
Reference type
BY_CLASS designates a reference based on
the name of the Java objects class |
static int |
BY_DN
Reference type
BY_DN designates a reference based on
the distinguished name (LDAP-DN) of the class mapping of the objects class |
static int |
BY_ID
Reference type
BY_ID designates a reference based on
the value of the id field of the Java Object |
static int |
BY_ID_CHAIN
Reference type
BY_ID_CHAIN designates a reference based on
a chain of id references |
static int |
BY_OID
Reference type
BY_OID designates a reference based on
the value of field oid of the java object |
static int |
BY_PWD
Reference type
BY_PWD designates a special treatment
of the password field according to RFC 2307 |
static int |
BY_VALUE
Reference type
BY_VALUE designates a reference based on the attributes value. |
Constructor and Description |
---|
AttributeMapping(ClassMapping cm,
String attName,
String fieldName)
Constructs a new AttributeMapping and adds it to a Class Mapping
|
Modifier and Type | Method and Description |
---|---|
String |
getAttName()
Returns the LDAP attribute name of this attribute mapping
|
ClassMapping |
getCm()
Returns the class mapping this attribute mapping belongs to
|
String |
getFieldName()
Returns the Java field name of this attribute mapping
|
int |
getRefType()
Returns the reference type of this mapping
|
void |
setRefType(int refType)
Sets the reference type of this mapping
|
public static final int BY_VALUE
BY_VALUE
designates a reference based on the attributes value.
This is the default reference type.public static final int BY_ID
BY_ID
designates a reference based on
the value of the id
field of the Java Objectpublic static final int BY_DN
BY_DN
designates a reference based on
the distinguished name (LDAP-DN) of the class mapping of the objects classpublic static final int BY_BOOL
BY_BOOL
designates a reference based on
a boolean value (TRUE/FALSE)public static final int BY_ID_CHAIN
BY_ID_CHAIN
designates a reference based on
a chain of id referencespublic static final int BY_OID
BY_OID
designates a reference based on
the value of field oid
of the java objectpublic static final int BY_CLASS
BY_CLASS
designates a reference based on
the name of the Java objects classpublic static final int BY_PWD
BY_PWD
designates a special treatment
of the password field according to RFC 2307public AttributeMapping(ClassMapping cm, String attName, String fieldName)
cm
- the class mapping to which the attribute mapping is addedattName
- the LDAP attribute namefieldName
- the Java field namepublic ClassMapping getCm()
public String getFieldName()
public String getAttName()
public void setRefType(int refType)
refType
- public int getRefType()
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.