public abstract class AbstractModuleAction extends Object implements IModuleAction
Constructor and Description |
---|
AbstractModuleAction() |
Modifier and Type | Method and Description |
---|---|
AbstractModuleContext |
getModuleContext(javax.servlet.http.HttpSession session,
Module module) |
boolean |
haveRight(ContentContext ctx,
String action) |
Boolean |
haveRight(javax.servlet.http.HttpSession session,
User user)
check if a specific user can use the module.
|
protected static boolean |
isLightInterface(ContentContext ctx) |
String |
performChangeRenderer(RequestService rs,
Module currentModule) |
String |
performSearch(ContentContext ctx,
ModulesContext moduleContext,
String query)
method called when a seach in lauched from search form.
|
String |
performWizard(ContentContext ctx,
RequestService rs,
Module currentModule,
AbstractModuleContext moduleContext) |
String |
prepare(ContentContext ctx,
ModulesContext modulesContext)
method called before module rendering
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActionGroupName
protected static boolean isLightInterface(ContentContext ctx)
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
IModuleAction
prepare
in interface IModuleAction
ctx
- the current context.modulesContext
- the context of the module. You can call getCurrentModule for recover the module.Exception
public String performSearch(ContentContext ctx, ModulesContext moduleContext, String query) throws Exception
IModuleAction
performSearch
in interface IModuleAction
query
- the text entered in the search input field.Exception
public AbstractModuleContext getModuleContext(javax.servlet.http.HttpSession session, Module module) throws Exception
Exception
public String performChangeRenderer(RequestService rs, Module currentModule) throws Exception
Exception
public String performWizard(ContentContext ctx, RequestService rs, Module currentModule, AbstractModuleContext moduleContext) throws Exception
Exception
public Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
IModuleAction
haveRight
in interface IModuleAction
ModuleException
public boolean haveRight(ContentContext ctx, String action)
Copyright © 2012-2018. All Rights Reserved.