it.eng.spagobi.kpi.ou.util
Class OrganizationalUnitSynchronizer

java.lang.Object
  extended by it.eng.spagobi.kpi.ou.util.OrganizationalUnitSynchronizer

public class OrganizationalUnitSynchronizer
extends java.lang.Object

This class synchronizes OU list, hierarchies list and hierarchies structure. It retrieves information by a it.eng.spagobi.kpi.ou.provider.OrganizationalUnitListProvider. Inside an instance of class it.eng.spagobi.kpi.ou.bo.OrganizationalUnit retrieved by the OrganizationalUnitListProvider, the "id" property does not make sense, since it does not match the "id" in the SpagoBI repository. An existing OU is matched to a OU coming from the OrganizationalUnitListProvider if it has the same label; in this case, we set the id coming from SpagoBI repository. For hierarchies it is the same. For hierarchies structure, we consider the path of each node: if an existing path does no more exists, it is deleted (with its descendants); if a new path does not exist, it is inserted (recursively).

Author:
Davide Zerbetto (davide.zerbetto@eng.it)

Constructor Summary
OrganizationalUnitSynchronizer(it.eng.spago.security.IEngUserProfile userProfile)
           
 
Method Summary
 java.util.List<OrganizationalUnitHierarchy> synchronize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationalUnitSynchronizer

public OrganizationalUnitSynchronizer(it.eng.spago.security.IEngUserProfile userProfile)
Method Detail

synchronize

public java.util.List<OrganizationalUnitHierarchy> synchronize()