public class Addrole extends Object
FortressAntTask
to load Role
s used to
drive AdminMgr.addRole(org.apache.directory.fortress.core.model.Role)
}.
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, 'Addrole', is used for the xml tag in the load script.
<target name="all">
<FortressAdmin>
<addrole>
...
</addrole>
</FortressAdmin>
</target>
Constructor and Description |
---|
Addrole()
All Ant data entities must have a default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(Role role)
This method name, 'addRole', is used for derived xml tag 'role' in the load script.
|
List<Role> |
getRoles()
Used by
FortressAntTask.addRoles() to retrieve list of Roles as defined in input xml file. |
public void addRole(Role role)
<addrole>
<role name="role1" description="Tomcat Role for Calendar App" beginTime="0800" endTime="1700" beginDate="20110101"
endDate="20111231" beginLockDate="20110601" endLockDate="20110615" dayMask="23456" timeout="60"/>
<role name="role2" description="Tomcat Role 2 for Calendar App"/>
</addrole>
role
- contains reference to data element targeted for insertion..public List<Role> getRoles()
FortressAntTask.addRoles()
to retrieve list of Roles as defined in input xml file.Role
s targeted for insertion.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621