|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.ldap.AttributeMapping
public class AttributeMapping
Maps LDAP attribute names to field names of java objects. Is part of a class mapping. Different kinds of mapping can be specified via the provided finals.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AttributeMapping(ClassMapping cm,
String attName,
String fieldName)
Constructs a new AttributeMapping and adds it to a Class Mapping |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 Object
public static final int BY_DN
BY_DN designates a reference based on
the distinguished name (LDAP-DN) of the class mapping of the objects class
public 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 references
public static final int BY_OID
BY_OID designates a reference based on
the value of field oid of the java object
public static final int BY_CLASS
BY_CLASS designates a reference based on
the name of the Java objects class
public static final int BY_PWD
BY_PWD designates a special treatment
of the password field according to RFC 2307
| Constructor Detail |
|---|
public 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 name| Method Detail |
|---|
public ClassMapping getCm()
public String getFieldName()
public String getAttName()
public void setRefType(int refType)
refType - public int getRefType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||