public class FortressAntTask
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.input.InputHandler
using the custom Ant task that is implemented in this class. The format of the XML is flat and consists of entity names along with their attributes.
<target name="all">
<FortressAdmin>
<adduser> ...</adduser>
<deluser> ...</deluser>
<adduserrole> ...</adduserrole>
<deluserrole> ...</deluserrole>
<addrole> ...</addrole>*
<delrole> ...</delrole>
<addroleinheritance>...</addroleinheritance>
<delroleinheritance>...</delroleinheritance>
<addsdset>STATIC or DYNAMIC</addsdset>
<delsdset>STATIC or DYNAMIC</delsdset>
<delpwpolicy> ...</delpwpolicy>
<addpwpolicy> ...</addpwpolicy>
<addpermobj> RBAC or ARBAC permission objects</addpermobj>
<delpermobj> RBAC or ARBAC permission objects</delpermobj>
<addpermop> RBAC or ARBAC permission operations</addpermop>
<delpermop> RBAC or ARBAC permission operations</delpermop>
<addpermgrant> RBAC or ARBAC permission grants </addpermgrant>
<delpermgrant> RBAC or ARBAC permission revokes </delpermgrant>
<addorgunit> User OUs or Perm OUs </addorgunit>
<delorgunit> User OUs or Perm OUs </delorgunit>
<adduserorgunitinheritance> ...</adduserorgunitinheritance>
<deluserorgunitinheritance> ...</deluserorgunitinheritance>
<addpermorgunitinheritance> ...</addpermorgunitinheritance>
<delpermorgunitinheritance> ...</delpermorgunitinheritance>
<adduser> ... </adduser>
<deluser> ...</deluser>
<addadminrole> ... </addadminrole>
<deladminrole> ... </deladminrole>
<addadminroleinheritance>...</addadminroleinheritance>
<deladminroleinheritance>...</deladminroleinheritance>
<adduseradminrole> ... </adduseradminrole>
<deluseradminrole> ... </deluseradminrole>
</FortressAdmin>
</target>
AdminMgr.deassignUser(
org.apache.directory.fortress.core.model.UserRole)
DelAdminMgr.deassignUser(UserAdminRole)
AdminMgr.revokePermission(
org.apache.directory.fortress.core.model.Permission,
org.apache.directory.fortress.core.model.Role)
AdminMgr.disableUser(
org.apache.directory.fortress.core.model.User)
PwPolicyMgr.delete(
org.apache.directory.fortress.core.model.PwPolicy)
AdminMgr.deletePermission(
org.apache.directory.fortress.core.model.Permission)
AdminMgr.deletePermObj(
org.apache.directory.fortress.core.model.PermObj)
AdminMgr.deleteDsdSet(
org.apache.directory.fortress.core.model.SDSet)
and
AdminMgr.deleteSsdSet(org.apache.directory.fortress.core.model.SDSet)
AdminMgr.deleteInheritance(
org.apache.directory.fortress.core.model.Role, org.apache.directory.fortress.core.model.Role)
AdminMgr.deleteRole(
org.apache.directory.fortress.core.model.Role)
DelAdminMgr.deleteInheritance(
org.apache.directory.fortress.core.model.AdminRole,org.apache.directory.fortress.core.model.AdminRole)
DelAdminMgr.deleteRole(
org.apache.directory.fortress.core.model.AdminRole)
DelAdminMgr.deleteInheritance(
org.apache.directory.fortress.core.model.OrgUnit, org.apache.directory.fortress.core.model.OrgUnit)
USER and PERM
DelAdminMgr.delete(
org.apache.directory.fortress.core.model.OrgUnit)
USER and PERM
ConfigMgr.delete(String, java.util.Properties)
OrganizationalUnitP.delete(OrganizationalUnit)
SuffixP.delete(
org.apache.directory.fortress.core.model.Suffix)
}
SuffixP.add(Suffix)
}OrganizationalUnitP.add(OrganizationalUnit)
ConfigMgr.add(String, java.util.Properties)
DelAdminMgr.add(
org.apache.directory.fortress.core.model.OrgUnit)
USER and PERM
DelAdminMgr.addInheritance(org.apache.directory.fortress.core.model.OrgUnit,
org.apache.directory.fortress.core.model.OrgUnit)
USER and PERM
DelAdminMgr.addRole(
org.apache.directory.fortress.core.model.AdminRole)
DelAdminMgr.addInheritance(
org.apache.directory.fortress.core.model.AdminRole, org.apache.directory.fortress.core.model.AdminRole)
AdminMgr.addRole(
org.apache.directory.fortress.core.model.Role)
AdminMgr.addInheritance(
org.apache.directory.fortress.core.model.Role, org.apache.directory.fortress.core.model.Role)
AdminMgr.createDsdSet(
org.apache.directory.fortress.core.model.SDSet)
and
AdminMgr.createSsdSet(org.apache.directory.fortress.core.model.SDSet)
AdminMgr.addPermObj(
org.apache.directory.fortress.core.model.PermObj)
AdminMgr.addPermission(
org.apache.directory.fortress.core.model.Permission)
PwPolicyMgr.add(
org.apache.directory.fortress.core.model.PwPolicy)
AdminMgr.addUser(org.apache.directory.fortress.core.model.User)
AdminMgr.grantPermission(
org.apache.directory.fortress.core.model.Permission, org.apache.directory.fortress.core.model.Role)
DelAdminMgr.assignUser(
org.apache.directory.fortress.core.model.UserAdminRole)
AdminMgr.assignUser(
org.apache.directory.fortress.core.model.UserRole)
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
FortressAntTask()
Default constructor initializes he Manager APIs.
|
Modifier and Type | Method and Description |
---|---|
void |
addAddadminrole(Addadminrole addrole)
Load the entity with data.
|
void |
addAddadminroleinheritance(Addadminroleinheritance addadminroleinheritance)
Load the entity with data.
|
void |
addAddconfig(Addconfig addcfg)
Load the entity with data.
|
void |
addAddcontainer(Addcontainer addcontainer)
Load the entity with data.
|
void |
addAddcontext(Addcontext addcontext)
Load the entity with data.
|
void |
addAddgroup(Addgroup addgroup)
Load the entity with data.
|
void |
addAddgroupmember(Addgroupmember addgroupmember)
Load the entity with data.
|
void |
addAddgroupproperty(Addgroupproperty addgroupproperty)
Load the entity with data.
|
void |
addAddorgunit(Addorgunit addorgunit)
Load the entity with data.
|
void |
addAddpermGrant(AddpermGrant addpermGrant)
Load the entity with data.
|
void |
addAddpermObj(AddpermObj addpermObj)
Load the entity with data.
|
void |
addAddpermOp(AddpermOp addpermOp)
Load the entity with data.
|
void |
addAddpermorgunitinheritance(Addpermorgunitinheritance addinheritance)
Load the entity with data.
|
void |
addAddpwpolicy(Addpwpolicy addpwpolicy)
Load the entity with data.
|
void |
addAddrole(Addrole addrole)
Load the entity with data.
|
void |
addAddroleinheritance(Addroleinheritance addroleinheritance)
Load the entity with data.
|
void |
addAddsdset(Addsdset addsd)
Load the entity with data.
|
void |
addAddsuffix(Addsuffix addsuffix)
Load the entity with data.
|
void |
addAdduser(Adduser adduser)
Load the entity with data.
|
void |
addAdduseradminrole(Adduseradminrole adduserrole)
Load the entity with data.
|
void |
addAdduserorgunitinheritance(Adduserorgunitinheritance addinheritance)
Load the entity with data.
|
void |
addAdduserrole(Adduserrole adduserrole)
Load the entity with data.
|
void |
addDeladminrole(Deladminrole delrole)
Load the entity with data.
|
void |
addDeladminroleinheritance(Deladminroleinheritance deladminroleinheritance)
Load the entity with data.
|
void |
addDelconfig(Delconfig delcfg)
Load the entity with data.
|
void |
addDelcontainer(Delcontainer delcontainer)
Load the entity with data.
|
void |
addDelgroup(Delgroup delgroup)
Load the entity with data.
|
void |
addDelgroupmember(Delgroupmember delgroupmember)
Load the entity with data.
|
void |
addDelgroupproperty(Delgroupproperty delgroupproperty)
Load the entity with data.
|
void |
addDelorgunit(Delorgunit delorgunit)
Load the entity with data.
|
void |
addDelpermGrant(DelpermGrant delpermGrant)
Load the entity with data.
|
void |
addDelpermObj(DelpermObj delpermObj)
Load the entity with data.
|
void |
addDelpermOp(DelpermOp delpermOp)
Load the entity with data.
|
void |
addDelpermorgunitinheritance(Delpermorgunitinheritance delinheritance)
Load the entity with data.
|
void |
addDelpwpolicy(Delpwpolicy delpwpolicy)
Load the entity with data.
|
void |
addDelrole(Delrole delrole)
Load the entity with data.
|
void |
addDelroleinheritance(Delroleinheritance delroleinheritance)
Load the entity with data.
|
void |
addDelsdset(Delsdset delsd)
Load the entity with data.
|
void |
addDelsuffix(Delsuffix delsuffix)
Load the entity with data.
|
void |
addDeluser(Deluser deluser)
Load the entity with data.
|
void |
addDeluseradminrole(Deluseradminrole deluserrole)
Load the entity with data.
|
void |
addDeluserorgunitinheritance(Deluserorgunitinheritance delinheritance)
Load the entity with data.
|
void |
addDeluserrole(Deluserrole deluserrole)
Load the entity with data.
|
void |
execute() |
List<Addgroup> |
getAddgroups() |
List<AddpermGrant> |
getAddpermGrants() |
List<AddpermObj> |
getAddpermObjs() |
List<AddpermOp> |
getAddpermOps() |
List<Addroleinheritance> |
getAddroleinheritances() |
List<Addrole> |
getAddroles() |
List<Addsdset> |
getAddsdsets() |
List<Adduserrole> |
getAdduserroles() |
List<Adduser> |
getAddusers() |
static Properties |
getProperties(String inputString) |
String |
getTenant() |
void |
handleInput(org.apache.tools.ant.input.InputRequest request)
Used by Apache Ant to load data from xml into entities.
|
void |
setContext(Context context)
This method is used as an alternative way to set tenant id.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public static final boolean DEBUG
protected static final org.slf4j.Logger LOG
public FortressAntTask()
public String getTenant()
public void addAddcontext(Addcontext addcontext)
addcontext
- contains the ant initialized data entities to be handed off for further processing.public void setContext(Context context)
context
- contains the tenant info.public void handleInput(org.apache.tools.ant.input.InputRequest request)
handleInput
in interface org.apache.tools.ant.input.InputHandler
request
- The input requestpublic void addAddconfig(Addconfig addcfg)
addcfg
- contains the ant initialized data entities to be handed off for further processing.public void addDelconfig(Delconfig delcfg)
delcfg
- contains the ant initialized data entities to be handed off for further processing.public void addAdduser(Adduser adduser)
adduser
- contains the ant initialized data entities to be handed off for further processing.public void addDeluser(Deluser deluser)
deluser
- contains the ant initialized data entities to be handed off for further processing.public void addAdduserrole(Adduserrole adduserrole)
adduserrole
- contains the ant initialized data entities to be handed off for further processing.public void addDeluserrole(Deluserrole deluserrole)
deluserrole
- contains the ant initialized data entities to be handed off for further processing.public void addAddrole(Addrole addrole)
addrole
- contains the ant initialized data entities to be handed off for further processing.public void addDelrole(Delrole delrole)
delrole
- contains the ant initialized data entities to be handed off for further processing.public void addAddroleinheritance(Addroleinheritance addroleinheritance)
addroleinheritance
- contains the ant initialized data entities to be handed off for further processing.public void addDelroleinheritance(Delroleinheritance delroleinheritance)
delroleinheritance
- contains the ant initialized data entities to be handed off for further processing.public void addAddsdset(Addsdset addsd)
addsd
- contains the ant initialized data entities to be handed off for further processing.public void addDelsdset(Delsdset delsd)
delsd
- contains the ant initialized data entities to be handed off for further processing.public void addAddpermOp(AddpermOp addpermOp)
addpermOp
- contains the ant initialized data entities to be handed off for further processing.public void addDelpermOp(DelpermOp delpermOp)
delpermOp
- contains the ant initialized data entities to be handed off for further processing.public void addAddpermObj(AddpermObj addpermObj)
addpermObj
- contains the ant initialized data entities to be handed off for further processing.public void addDelpermObj(DelpermObj delpermObj)
delpermObj
- contains the ant initialized data entities to be handed off for further processing.public void addAddpermGrant(AddpermGrant addpermGrant)
addpermGrant
- contains the ant initialized data entities to be handed off for further processing.public void addDelpermGrant(DelpermGrant delpermGrant)
delpermGrant
- contains the ant initialized data entities to be handed off for further processing.public void addAddpwpolicy(Addpwpolicy addpwpolicy)
addpwpolicy
- contains the ant initialized data entities to be handed off for further processing.public void addDelpwpolicy(Delpwpolicy delpwpolicy)
delpwpolicy
- contains the ant initialized data entities to be handed off for further processing.public void addAddcontainer(Addcontainer addcontainer)
addcontainer
- contains the ant initialized data entities to be handed off for further processing.public void addDelcontainer(Delcontainer delcontainer)
delcontainer
- contains the ant initialized data entities to be handed off for further processing.public void addAddsuffix(Addsuffix addsuffix)
addsuffix
- contains the ant initialized data entities to be handed off for further processing.public void addDelsuffix(Delsuffix delsuffix)
delsuffix
- contains the ant initialized data entities to be handed off for further processing.public void addAddorgunit(Addorgunit addorgunit)
addorgunit
- contains the ant initialized data entities to be handed off for further processing.public void addDelorgunit(Delorgunit delorgunit)
delorgunit
- contains the ant initialized data entities to be handed off for further processing.public void addAdduserorgunitinheritance(Adduserorgunitinheritance addinheritance)
addinheritance
- contains the ant initialized data entities to be handed off for further processing.public void addDeluserorgunitinheritance(Deluserorgunitinheritance delinheritance)
delinheritance
- contains the ant initialized data entities to be handed off for further processing.public void addAddpermorgunitinheritance(Addpermorgunitinheritance addinheritance)
addinheritance
- contains the ant initialized data entities to be handed off for further processing.public void addDelpermorgunitinheritance(Delpermorgunitinheritance delinheritance)
delinheritance
- contains the ant initialized data entities to be handed off for further processing.public void addAddadminrole(Addadminrole addrole)
addrole
- contains the ant initialized data entities to be handed off for further processing.public void addDeladminrole(Deladminrole delrole)
delrole
- contains the ant initialized data entities to be handed off for further processing.public void addAddadminroleinheritance(Addadminroleinheritance addadminroleinheritance)
addadminroleinheritance
- contains the ant initialized data entities to be handed off for further
processing.public void addDeladminroleinheritance(Deladminroleinheritance deladminroleinheritance)
deladminroleinheritance
- contains the ant initialized data entities to be handed off for further
processing.public void addAdduseradminrole(Adduseradminrole adduserrole)
adduserrole
- contains the ant initialized data entities to be handed off for further processing.public void addDeluseradminrole(Deluseradminrole deluserrole)
deluserrole
- contains the ant initialized data entities to be handed off for further processing.public void addAddgroup(Addgroup addgroup)
addgroup
- contains the ant initialized data entities to be handed off for further processing.public void addDelgroup(Delgroup delgroup)
delgroup
- contains the ant initialized data entities to be handed off for further processing.public void addAddgroupmember(Addgroupmember addgroupmember)
addgroupmember
- contains the ant initialized data entities to be handed off for further processing.public void addDelgroupmember(Delgroupmember delgroupmember)
delgroupmember
- contains the ant initialized data entities to be handed off for further processing.public void addAddgroupproperty(Addgroupproperty addgroupproperty)
addgroupproperty
- contains the ant initialized data entities to be handed off for further processing.public void addDelgroupproperty(Delgroupproperty delgroupproperty)
delgroupproperty
- contains the ant initialized data entities to be handed off for further processing.public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- An error occurred while buildingpublic static Properties getProperties(String inputString)
public List<AddpermObj> getAddpermObjs()
public List<Adduserrole> getAdduserroles()
public List<Addroleinheritance> getAddroleinheritances()
public List<AddpermGrant> getAddpermGrants()
Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621