Class Delcontainer


  • public class Delcontainer
    extends Object
    The class is used by FortressAntTask to remove OrganizationalUnits used to drive OrganizationalUnitP.delete( org.apache.directory.fortress.core.model.OrganizationalUnit). 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, 'Delcontainer', is used for the xml tag in the load script.

     
     <target name="all">
         <FortressAdmin>
             <delcontainer>
               ...
             </delcontainer>
         </FortressAdmin>
     </target>
     
     

    This class is destructive as it will remove all nodes below the container using recursive delete function.
    Extreme care should be taken during execution to ensure target dn is correct and permanent removal of data is intended. There is no 'undo' for this operation.

    Author:
    Apache Directory Project
    • Constructor Detail

      • Delcontainer

        public Delcontainer()
        All Ant data entities must have a default constructor.
    • Method Detail

      • addContainer

        public void addContainer​(OrganizationalUnit ou)
        This method name, 'addContainer', is used for derived xml tag 'container' in the load script.
         
         <delcontainer>
             <container name="Config"/>
             <container name="People"/>
             <container name="Policies"/>
             <container name="RBAC"/>
             <container name="Roles" parent="RBAC"/>
             <container name="Permissions" parent="RBAC"/>
             <container name="Constraints" parent="RBAC"/>
             <container name="ARBAC"/>
             <container name="OS-U" parent="ARBAC"/>
             <container name="OS-P" parent="ARBAC"/>
             <container name="AdminRoles" parent="ARBAC"/>
             <container name="AdminPerms" parent="ARBAC"/>
         </delcontainer>
         
         
        Parameters:
        ou - contains reference to data element targeted for deletion.