|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=FIELD) @Retention(value=RUNTIME) public @interface Attribute
This annotation describes the mapping of a Java field to an LDAP attribute.
The containing class must be annotated with Entry.
Entry| Optional Element Summary | |
|---|---|
String |
name
The LDAP attribute name that this field represents. |
String |
syntax
The LDAP syntax of the attribute that this field represents. |
Attribute.Type |
type
Indicates whether this field is returned by the LDAP JNDI provider as a String (Type.STRING) or as a
byte[] (Type.BINARY). |
public abstract String name
Defaults to "" in which case the Java field name is used as the LDAP attribute name.
public abstract Attribute.Type type
String (Type.STRING) or as a
byte[] (Type.BINARY).
Type.STRING to indicate a string attribute
or Type.BINARY to indicate a binary attribute.public abstract String syntax
This optional value is typically used to affect the precision of conversion
of values between LDAP and Java,
see ConverterManager
and ConverterManagerImpl.
|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||