public class LdapImportSource extends ImportSource
| Modifier and Type | Field and Description |
|---|---|
static String |
LDAP_BASE
A constant for setting the LDAP base property.
|
| Constructor and Description |
|---|
LdapImportSource()
Simple class for a LDAP-connection to import users and groups.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Initializes the connection to the LDAP server, using the properties
field.
|
void |
dispose()
Disposes any created resources.
|
Object[] |
getChildren(Object arg0)
Returns the children of a given object (which is of the type
ImportItemWrapper in this case).
|
Object[] |
getElements(Object arg0) |
String |
getLabel() |
String |
getMessage() |
boolean |
init(org.eclipse.swt.widgets.Shell shell) |
void |
inputChanged(org.eclipse.jface.viewers.Viewer arg0,
Object arg1,
Object arg2)
Called when the input changes.
|
ArrayList<NameClassPair> |
namingEnumerationToArrayList(NamingEnumeration<NameClassPair> list) |
void |
setProperties(Properties serverProperties) |
getParent, hasChildren, setOptionspublic static final String LDAP_BASE
public LdapImportSource()
public boolean init(org.eclipse.swt.widgets.Shell shell)
init in class ImportSourceshell - the shellImportSource.init(org.eclipse.swt.widgets.Shell)public String getLabel()
getLabel in class ImportSourceImportSource.getLabel()public Object[] getChildren(Object arg0)
getChildren in interface org.eclipse.jface.viewers.ITreeContentProvidergetChildren in class ImportSourcearg0 - the object to get the children from.ImportSource.getChildren(java.lang.Object)public Object[] getElements(Object arg0)
getElements in interface org.eclipse.jface.viewers.IStructuredContentProvidergetElements in interface org.eclipse.jface.viewers.ITreeContentProvidergetElements in class ImportSourcearg0 - object to get the basic elements from.ImportSource.getElements(java.lang.Object)public ArrayList<NameClassPair> namingEnumerationToArrayList(NamingEnumeration<NameClassPair> list) throws NamingException
list - a NamingEnumeration, that should be converted into an
ArrayListNamingException - throws an exceptionpublic void setProperties(Properties serverProperties)
serverProperties - The properties of the LDAP server.public void connect()
throws CorruptedSourceException
CorruptedSourceException - if no connection could be established to the given server.public String getMessage()
getMessage in class ImportSourceImportSource.getMessage()public void dispose()
Copyright © 2017. All rights reserved.