Class Addadminrole
- java.lang.Object
-
- org.apache.directory.fortress.core.ant.Addadminrole
-
public class Addadminrole extends Object
The class is used byFortressAntTask
to loadAdminRole
s used to driveDelAdminMgr.addRole(org.apache.directory.fortress.core.model.AdminRole)
. 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, 'Addadminrole', is used for the xml tag in the load script.
<target name="all"> <FortressAdmin> <addadminrole> ... </addadminrole> </FortressAdmin> </target>
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Addadminrole()
All Ant data entities must have a default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRole(AdminRoleAnt role)
This method name, 'addRole', is used for derived xml tag 'role' in the load script.List<AdminRoleAnt>
getRoles()
Used byFortressAntTask.addAdminRoles()
to retrieve list of AdminRoles as defined in input xml file.
-
-
-
Method Detail
-
addRole
public void addRole(AdminRoleAnt role)
This method name, 'addRole', is used for derived xml tag 'role' in the load script.<addadminrole> <role name="DemoAdminUsers" description="Test Admin Role for Demo" osps="demoapps1,demoapps2" osus="demousrs1,demousrs2" beginrange="role1" endrange="role1" begininclusive="true" endinclusive="true"/> </addadminrole>
- Parameters:
role
- contains extension ofAdminRole
.
-
getRoles
public List<AdminRoleAnt> getRoles()
Used byFortressAntTask.addAdminRoles()
to retrieve list of AdminRoles as defined in input xml file.- Returns:
- collection containing
AdminRoleAnt
s targeted for insertion.
-
-