org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport
Class ImportItemWrapper
java.lang.Object
org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport.ImportItemWrapper
public class ImportItemWrapper
- extends Object
This class is necessary for at least some import sources, e.g. LDAP. If we do
not have more information then a (textual) reference to a specific entry of
the source (e.g. an UID in the case of LDAP) then we can save this reference
in the sourceObj-field of this class, using it later on to create appropriate
ACOrgUnits.
- Author:
- deser
ImportItemWrapper
public ImportItemWrapper(Object sourceObj,
ACOrgUnit orgUnit)
- Parameters:
sourceObj
- A specific object, which can be used for example to identify
an import source. For example in the implementation of the
LDAP import this Object is a String which contains the unique
name of the LDAP entry.orgUnit
- An orgUnit which is the actual object that gets imported later
on.
ImportItemWrapper
public ImportItemWrapper(Object sourceObj,
ACOrgUnit orgUnit,
ImportItemWrapper parentOrgUnit)
- Parameters:
sourceObj
- A specific object, which can be used for example to identify
an import source.orgUnit
- An orgUnit which is the actual object that gets imported later
on.parentOrgUnit
- The parent orgUnit of this object.
getSourceObj
public Object getSourceObj()
- Returns:
- the source object
getOrgUnit
public ACOrgUnit getOrgUnit()
- Returns:
- the wrapped orgUnit
setParentOrgUnit
public void setParentOrgUnit(ImportItemWrapper parentOrgUnit)
- Parameters:
parentOrgUnit
- the parent orgUnit of this (wrapped) orgUnit
getParentOrgUnit
public ImportItemWrapper getParentOrgUnit()
- Returns:
- the parent orgUnit of this (wrapped) orgUnit
setChildOrgUnits
public void setChildOrgUnits(ArrayList<ImportItemWrapper> childOrgUnits)
- Parameters:
childOrgUnits
- the children of this (wrapped) orgUnit
getChildOrgUnits
public ArrayList<ImportItemWrapper> getChildOrgUnits()
- Returns:
- the children of this (wrapped) orgUnit
Copyright © 2015. All Rights Reserved.