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, waitgetActionGroupNameprotected static boolean isLightInterface(ContentContext ctx)
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
IModuleActionprepare in interface IModuleActionctx - the current context.modulesContext - the context of the module. You can call getCurrentModule for recover the module.Exceptionpublic String performSearch(ContentContext ctx, ModulesContext moduleContext, String query) throws Exception
IModuleActionperformSearch in interface IModuleActionquery - the text entered in the search input field.Exceptionpublic AbstractModuleContext getModuleContext(javax.servlet.http.HttpSession session, Module module) throws Exception
Exceptionpublic String performChangeRenderer(RequestService rs, Module currentModule) throws Exception
Exceptionpublic String performWizard(ContentContext ctx, RequestService rs, Module currentModule, AbstractModuleContext moduleContext) throws Exception
Exceptionpublic Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
IModuleActionhaveRight in interface IModuleActionModuleExceptionpublic boolean haveRight(ContentContext ctx, String action)
Copyright © 2012-2018. All Rights Reserved.