Class Addorgunit
- java.lang.Object
-
- org.apache.directory.fortress.core.ant.Addorgunit
-
public class Addorgunit extends Object
The class is used byFortressAntTask
to create newOrgUnit
s used to driveDelAdminMgr.add(org.apache.directory.fortress.core.model.OrgUnit)
. It is not intended to be callable by programs outside of the Ant load utility. The class name itself maps to the xml tag used by load utility.This class name, 'Addorgunit', is used for the xml tag in the load script.
<target name="all"> <FortressAdmin> <addorgunit> ... </addorgunit> </FortressAdmin> </target>
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Addorgunit()
All Ant data entities must have a default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrgUnit(OrgUnitAnt ou)
This method name, 'addOrgUnit', is used for derived xml tag 'orgunit' in the load script.List<OrgUnitAnt>
getOrgUnits()
Used byFortressAntTask.addOrgunits()
to retrieve list of OrgUnits as defined in input xml file.
-
-
-
Method Detail
-
addOrgUnit
public void addOrgUnit(OrgUnitAnt ou)
This method name, 'addOrgUnit', is used for derived xml tag 'orgunit' in the load script.<addorgunit> <orgunit name="demousrs1" typeName="USER" description="Test User Org 1 for User on Tomcat Calendar App"/> <orgunit name="demousrs2" typename="USER" description="Test User Org 2 for User on Tomcat Calendar App"/> <orgunit name="demoapps1" typeName="PERM" description="Test Perm Org 1 for Permission on Tomcat Calendar App"/> <orgunit name="demoapps2" typename="PERM" description="Test Perm Org 2 for Permission on Tomcat Calendar App"/> </addorgunit>
- Parameters:
ou
- contains reference to data element targeted for insertion..
-
getOrgUnits
public List<OrgUnitAnt> getOrgUnits()
Used byFortressAntTask.addOrgunits()
to retrieve list of OrgUnits as defined in input xml file.- Returns:
- collection containing
OrgUnit
s targeted for insertion.
-
-