Class AddpermGrant
- java.lang.Object
-
- org.apache.directory.fortress.core.ant.AddpermGrant
-
public class AddpermGrant extends Object
The class is used byFortressAntTask
to create newPermGrant
s used to driveAdminMgr.grantPermission(org.apache.directory.fortress.core.model.Permission, 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, 'AddpermGrant', is used for the xml tag in the load script.
<target name="all"> <FortressAdmin> <addpermgrant> ... </addpermgrant> </FortressAdmin> </target>
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AddpermGrant()
All Ant data entities must have a default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPermGrant(PermGrant permGrant)
This method name, 'addPermGrant', is used for derived xml tag 'permgrant' in the load script.List<PermGrant>
getPermGrants()
Used byFortressAntTask.addPermGrants()
to retrieve list of PermGrant as defined in input xml file.
-
-
-
Method Detail
-
addPermGrant
public void addPermGrant(PermGrant permGrant)
This method name, 'addPermGrant', is used for derived xml tag 'permgrant' in the load script.<addpermgrant> <permgrant objName="/jsp/cal/cal1.jsp" opName="main" roleNm="role1"/> <permgrant objName="/jsp/cal/cal2.jsp" opName="8am" roleNm="role1"/> <permgrant objName="/jsp/cal/cal2.jsp" opName="10am" roleNm="role1"/> <permgrant objName="/jsp/cal/cal2.jsp" opName="12pm" roleNm="role1"/> <permgrant objName="/jsp/cal/cal2.jsp" opName="2pm" roleNm="role1"/> <permgrant objName="/jsp/cal/cal2.jsp" opName="4pm" roleNm="role1"/> <permgrant objName="/jsp/cal/cal2.jsp" opName="6pm" roleNm="role1"/> </addpermgrant>
- Parameters:
permGrant
- contains reference to data element targeted for insertion..
-
getPermGrants
public List<PermGrant> getPermGrants()
Used byFortressAntTask.addPermGrants()
to retrieve list of PermGrant as defined in input xml file.- Returns:
- collection containing
PermGrant
s targeted for insertion.
-
-