|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport.ImportSource
org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport.LdapImportSource
public class LdapImportSource
| Field Summary | |
|---|---|
static String |
LDAP_BASE
A constant for setting the LDAP base property. |
| Constructor Summary | |
|---|---|
LdapImportSource()
Simple class for a LDAP-connection to import users and groups. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport.ImportSource |
|---|
getParent, hasChildren, setOptions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LDAP_BASE
| Constructor Detail |
|---|
public LdapImportSource()
| Method Detail |
|---|
public boolean init(org.eclipse.swt.widgets.Shell shell)
init in class ImportSourceshell - the shell
ImportSource.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
ArrayList
NamingException - 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()
public void inputChanged(org.eclipse.jface.viewers.Viewer arg0,
Object arg1,
Object arg2)
arg0 - the viewerarg1 - the old inputarg2 - the new input
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||