Class Updconfig
- java.lang.Object
-
- org.apache.directory.fortress.core.ant.Updconfig
-
public class Updconfig extends Object
The class is used byFortressAntTask
to update an existing config node. It callsConfigMgr.update(Configuration)
. 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, 'Updconfig', is used for the xml tag in the load script.
<target name="all"> <FortressAdmin> <updconfig> ... </updconfig> </FortressAdmin> </target>
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Updconfig()
All Ant data entities must have a default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfig(ConfigAnt config)
This method name, 'addConfig', is used for derived xml tag 'config' in the load script.List<ConfigAnt>
getConfig()
Used byFortressAntTask.addConfig()
to retrieve list of properties as defined in input xml file.
-
-
-
Method Detail
-
addConfig
public void addConfig(ConfigAnt config)
This method name, 'addConfig', is used for derived xml tag 'config' in the load script.<updconfig> <config props="config.realm:DEFAULT"/> <config props="enable.audit:true"/> <config props="authn.type:default"/> <config props="password.policy:openldap"/> <config props="clientside.sorting:true"/> <config props="suffix:dc=jts\,dc=com"/> <config props="user.root:ou=People\,dc=jts\,dc=com"/> <config props="pwpolicy.root:ou=Policies\,dc=jts\,dc=com"/> <config props="role.root:ou=Roles\,ou=RBAC\,dc=jts\,dc=com"/> <config props="perm.root:ou=Permissions\,ou=RBAC\,dc=jts\,dc=com"/> <config props="sdconstraint.root:ou=Constraints\,ou=RBAC\,dc=jts\,dc=com"/> <config props="userou.root:ou=OS-U\,ou=ARBAC\,dc=jts\,dc=com"/> <config props="permou.root:ou=OS-P\,ou=ARBAC\,dc=jts\,dc=com"/> <config props="adminrole.root:ou=AdminRoles\,ou=ARBAC\,dc=jts\,dc=com"/> <config props="adminperm.root:ou=AdminPerms\,ou=ARBAC\,dc=jts\,dc=com"/> ... </updconfig>
- Parameters:
config
- contains reference to data element targeted for insertion..
-
getConfig
public List<ConfigAnt> getConfig()
Used byFortressAntTask.addConfig()
to retrieve list of properties as defined in input xml file.- Returns:
- collection containing
ConfigAnt
s targeted for insertion.
-
-