Annotation Interface DnAttribute
Maps a Java field to a component of an entry's distinguished name. Fields annotated
with this annotation will be automatically populated with values from the distinguished
names of found entries. Annotated fields must be of type
String
.
For automatic calculation of the DN of an entry to work, the index()
value
must be specified on all DnAttribute annotations in that class, and these attribute
values, prepended with the
Entry.base()
value will be used to
figure out the distinguished name of entries to create and update.
- Since:
- 2.0
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
The index of this attribute in the calculated distinguished name of an entry.
-
Element Details
-
value
String valueThe name of the distinguished name attribute.- Returns:
- the attribute name.
-
-
-
index
int indexThe index of this attribute in the calculated distinguished name of an entry.- Returns:
- the 0-based index of this attribute.
- Default:
- -1
-