public class ModulesContext extends Object
Modifier and Type | Method and Description |
---|---|
Collection<Module> |
getAllModules() |
Module |
getCurrentModule() |
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.
|
static ModulesContext |
getInstance(javax.servlet.http.HttpSession session,
GlobalContext globalContext) |
Module |
getModule(String moduleName) |
Collection<Module> |
getModules() |
void |
initContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isCurrentModule() |
boolean |
isModule(String moduleName)
check if current site have a specific module active
|
void |
loadModule(javax.servlet.http.HttpSession session,
GlobalContext globalContext) |
Module |
searchModule(String name) |
void |
setCurrentModule(String moduleName) |
void |
setCurrentModuleByActionGroup(String actionGroup)
active module with action group associate.
|
void |
setFromModule(Module fromModule) |
void |
setFromModule(String moduleName) |
public void loadModule(javax.servlet.http.HttpSession session, GlobalContext globalContext) throws ModuleException
ModuleException
public static final ModulesContext getInstance(javax.servlet.http.HttpSession session, GlobalContext globalContext) throws ModuleException
ModuleException
public Collection<Module> getModules()
public boolean isModule(String moduleName)
moduleName
- public Collection<Module> getAllModules()
public boolean isCurrentModule()
public void setCurrentModuleByActionGroup(String actionGroup)
actionGroup
- public void setCurrentModule(String moduleName)
public Module getFromModule()
public void setFromModule(Module fromModule)
public void setFromModule(String moduleName)
Copyright © 2012-2018. All Rights Reserved.