public class AddpermGrant extends Object
FortressAntTask
to create new PermGrant
s used to drive
AdminMgr.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>
Constructor and Description |
---|
AddpermGrant()
All Ant data entities must have a default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPermGrant(PermGrant permGrant)
This method name, 'addPermGrant', is used for derived xml tag 'permgrant' in the load script.
|
List<PermGrant> |
getPermGrants()
Used by
FortressAntTask.addPermGrants() to retrieve list of PermGrant as defined in input xml file. |
public AddpermGrant()
public void addPermGrant(PermGrant permGrant)
<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>
permGrant
- contains reference to data element targeted for insertion..public List<PermGrant> getPermGrants()
FortressAntTask.addPermGrants()
to retrieve list of PermGrant as defined in input xml file.PermGrant
s targeted for insertion.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621