Class ModulesContext


  • public class ModulesContext
    extends Object
    • Method Detail

      • isModule

        public boolean isModule​(String moduleName)
        check if current site have a specific module active
        Parameters:
        moduleName -
        Returns:
      • isCurrentModule

        public boolean isCurrentModule()
      • setCurrentModuleByActionGroup

        public void setCurrentModuleByActionGroup​(String actionGroup)
        active module with action group associate.
        Parameters:
        actionGroup -
      • setCurrentModule

        public void setCurrentModule​(String moduleName)
      • getModule

        public Module getModule​(String moduleName)
      • getFromModule

        public Module getFromModule()
        returns the module that called the current module, null if nobody as call the module, just click on menu. as exemple : for choose templates you can call template module from admin module.
        Returns:
      • setFromModule

        public void setFromModule​(Module fromModule)
      • searchModule

        public Module searchModule​(String name)
      • setFromModule

        public void setFromModule​(String moduleName)
      • initContext

        public void initContext​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws Exception
        Throws:
        Exception