Class LdapField
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.AbstractField
-
- org.silverpeas.core.contribution.content.form.field.TextField
-
- org.silverpeas.core.contribution.content.form.field.LdapField
-
- All Implemented Interfaces:
Serializable
,Comparable
,Field
public class LdapField extends TextField
A LdapField stores a value of ldap field.- See Also:
Field
,FieldDisplayer
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE
The ldap field type name.static String
VARIABLE_LOGIN
The ldap field dynamic variable login.-
Fields inherited from class org.silverpeas.core.contribution.content.form.field.TextField
CONTENT_TYPE, CONTENT_TYPE_FLOAT, CONTENT_TYPE_INT, PARAM_MAXLENGTH
-
Fields inherited from interface org.silverpeas.core.contribution.content.form.Field
FILE_PARAM_NAME_SUFFIX, TYPE_FILE
-
-
Constructor Summary
Constructors Constructor Description LdapField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindLdap(com.novell.ldap.LDAPConnection ldapConnection, String version, String distinguishedName, byte[] password)
com.novell.ldap.LDAPConnection
connectLdap(String host, String port)
void
disconnectLdap(com.novell.ldap.LDAPConnection connection)
String
getStringValue()
Returns the string value of this field.String
getTypeName()
Returns the type name.boolean
isReadOnly()
Returns true if the value is read only.Collection<String>
searchLdap(com.novell.ldap.LDAPConnection ldapConnection, String baseDn, String scope, String filter, String attribute, boolean typesOnly, String currentUserId)
void
setConstraintLdap(com.novell.ldap.LDAPConnection ldapConnection, String maxResultDisplayed)
void
setStringValue(String value)
Set the string value of this field.-
Methods inherited from class org.silverpeas.core.contribution.content.form.field.TextField
acceptObjectValue, acceptStringValue, acceptValue, acceptValue, compareTo, equals, getObjectValue, getValue, getValue, hashCode, isNull, setNull, setObjectValue, setValue, setValue
-
Methods inherited from class org.silverpeas.core.contribution.content.form.AbstractField
getName, getOccurrence, setName, setOccurrence
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
The ldap field type name.- See Also:
- Constant Field Values
-
VARIABLE_LOGIN
public static final String VARIABLE_LOGIN
The ldap field dynamic variable login.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeName
public String getTypeName()
Returns the type name.- Specified by:
getTypeName
in interfaceField
- Overrides:
getTypeName
in classTextField
-
getStringValue
public String getStringValue()
Returns the string value of this field.- Specified by:
getStringValue
in interfaceField
- Specified by:
getStringValue
in classAbstractField
-
setStringValue
public void setStringValue(String value)
Set the string value of this field.- Specified by:
setStringValue
in interfaceField
- Specified by:
setStringValue
in classAbstractField
-
isReadOnly
public boolean isReadOnly()
Returns true if the value is read only.- Specified by:
isReadOnly
in classTextField
-
connectLdap
public com.novell.ldap.LDAPConnection connectLdap(String host, String port) throws FormException
- Throws:
FormException
-
disconnectLdap
public void disconnectLdap(com.novell.ldap.LDAPConnection connection) throws FormException
- Throws:
FormException
-
bindLdap
public void bindLdap(com.novell.ldap.LDAPConnection ldapConnection, String version, String distinguishedName, byte[] password) throws FormException
- Throws:
FormException
-
setConstraintLdap
public void setConstraintLdap(com.novell.ldap.LDAPConnection ldapConnection, String maxResultDisplayed) throws FormException
- Throws:
FormException
-
searchLdap
public Collection<String> searchLdap(com.novell.ldap.LDAPConnection ldapConnection, String baseDn, String scope, String filter, String attribute, boolean typesOnly, String currentUserId) throws FormException
- Throws:
FormException
-
-