org.eclipse.emf.emfstore.internal.client.ui.dialogs.admin.acimport
Class ImportItemWrapper

java.lang.Object
  extended by 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

Constructor Summary
ImportItemWrapper(Object sourceObj, ACOrgUnit orgUnit)
           
ImportItemWrapper(Object sourceObj, ACOrgUnit orgUnit, ImportItemWrapper parentOrgUnit)
           
 
Method Summary
 ArrayList<ImportItemWrapper> getChildOrgUnits()
           
 ACOrgUnit getOrgUnit()
           
 ImportItemWrapper getParentOrgUnit()
           
 Object getSourceObj()
           
 void setChildOrgUnits(ArrayList<ImportItemWrapper> childOrgUnits)
           
 void setParentOrgUnit(ImportItemWrapper parentOrgUnit)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.