Class Addcontext


  • public class Addcontext
    extends Object
    The class is used by FortressAntTask to create new Context used to define multi-tenant property. 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, 'Addcontext', is used for the xml tag in the load script.

     
     <target name="all">
         <FortressAdmin>
             <addcontext>
               ...
             </addcontext>
         </FortressAdmin>
     </target>
     
     
    Author:
    Apache Directory Project
    • Constructor Detail

      • Addcontext

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

      • addContext

        public void addContext​(Context context)
        This method name, 'addContext', is used for derived xml tag 'context' in the load script.
         
         <addcontext>
             <context name="123"/>
         </addsuffix>
         
         
        Parameters:
        context - contains reference to data element targeted for insertion..
      • getContexts

        public List<Context> getContexts()
        Used by Context to retrieve list of contexts as defined in input xml file.
        Returns:
        List of context names.