class: AffiliationCreator

public class: AffiliationCreator
Author: Johannes Mueller (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 611 $ $LastChangedDate: 2007-11-07 12:0; Complexity: 1
Dates: Created: 16.07.2009 15:15:30; Modified: 16.07.2009 15:15:30;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {6C79D83E-5099-4b4b-BAD0-1263CDB7F162}
This class containts methods that create affiliations and affiliation structures in the framework. It is used by tests in xmltransforming and datagathering.
 

Goto: Custom Properties, Fields, Methods

Extends: TestBase

See also: XmlTransforming, TestBase

Appears in: common

Connections
 
Custom Properties
 
AffiliationCreator Attributes
Attribute Details
private static const String
  FILTER_ALL
Initial: ""
private static const Logger
  logger
Initial: Logger.getLogger(AffiliationCreator.class)
Notes: Logger for this class.
private static XmlTransforming
  xmlTransforming
Initial: null
 
AffiliationCreator Methods
Operation Details
public static
createAffiliationStructure(
   String systemAdministratorUserHandle):Map
Sequential
Tags: throws=Exception
Notes: This method creates an affiliation structure in the framework and stores a mapping between affiliation abbreviations and the affiliations' objectIds in a Key-Value-Mapping. The HashMap is given back. The created structure is as follows: * MPG->(MPIFG,MPI-G,FML,MPIMF->(ZEL,MPH-HD->(ZEL2->(FU-BERLIN2))),FU-BERLIN // HG->FU-BERLIN // FG->FU-BERLIN The used abbreviations are as follows: "objectIdMPG" "objectIdFG" "objectIdHG" "objectIdMPIFG" "objectIdMPI_G" "objectIdFML" "objectIdMPIMF" "objectIdZEL" "objectIdMPH_HD" "objectIdZEL2" "objectIdFuBerlin_2" "objectIdFuBerlin"
@return A Key-Value-Mapping between the affiliation abbreviations and the affiliations' objectIds of the created affiliations.
public static
createSubAffiliation(
   AffiliationVO affiliation,
   List parentObjectIds,
   String userHandle,
   long uniquer):String
Sequential
Tags: throws=Exception
Notes: Creates a sub-affiliation of a list of other affiliations and checks the number of parent affiliations afterwards.
@return The object id of the created affiliation.
public static
createTopLevelAffiliation(
   AffiliationVO affiliation,
   String userHandle,
   long uniquer):String
Sequential
Tags: throws=Exception
Notes: Creates a top level affiliation (i.e. an affiliation w/o a parent affiliation)
@return The object id of the created affiliation.
private static
deleteAffiliationNode(
   OrganizationalUnitHandler ouh,
   AffiliationVO affiliation):void
Sequential
public static
deleteAllAffiliationsContainingThreeAsteriskes():void
Sequential
Tags: throws=Exception
public static
getAffiliationFML():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the affiliation 'Friedrich-Miescher-Laboratorium für biologische Arbeitsgruppen in der Max-Planck-Gesellschaft'.
@return The affiliation.
public static
getAffiliationFU_BERLIN():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the affiliation 'Freie Universität Berlin'.
@return The affiliation.
public static
getAffiliationMPH_HD():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the affiliation 'Max-Planck-Haus Heidelberg'.
@return The affiliation.
public static
getAffiliationMPI_G():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the affiliation 'Max-Planck-Institut zur Erforschung multireligiöser und multiethnischer Gesellschaften'.
@return The affiliation.
public static
getAffiliationMPIFG():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the affiliation 'Max-Planck-Institut für Gesellschaftsforschung'.
@return The affiliation.
public static
getAffiliationMPIMF():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the affiliation 'Max-Planck-Institut für medizinische Forschung'.
@return The affiliation.
public static
getAffiliationZEL():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the affiliation 'Zentrale Einrichtung Lichtmikroskopie des MPI für Medizinische Forschung'.
@return The affiliation.
public static
getTopLevelAffiliationFraunhofer():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the (top-level) affiliation 'Fraunhofer-Gesellschaft'.
@return The affiliation.
public static
getTopLevelAffiliationHelmholtz():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the (top-level) affiliation 'Helmholtz-Gemeinschaft'.
@return The affiliation.
public static
getTopLevelAffiliationMPG():AffiliationVO
Sequential
Tags: throws=NamingException
Notes: Delivers the (top-level) affiliation 'Max-Planck-Gesellschaft'.
@return The affiliation.