public interface IModuleAction extends IAction
Modifier and Type | Method and Description |
---|---|
Boolean |
haveRight(javax.servlet.http.HttpSession session,
User user)
check if a specific user can use the module.
|
String |
performSearch(ContentContext ctx,
ModulesContext modulesContext,
String query)
method called when a seach in lauched from search form.
|
String |
prepare(ContentContext ctx,
ModulesContext moduleContext)
method called before module rendering
|
getActionGroupName, haveRight
String prepare(ContentContext ctx, ModulesContext moduleContext) throws Exception
ctx
- the current context.moduleContext
- the context of the module. You can call getCurrentModule for recover the module.Exception
String performSearch(ContentContext ctx, ModulesContext modulesContext, String query) throws Exception
ctx
- moduleContext
- the context of the module. You can call getCurrentModule for recover the module.query
- the text entered in the search input field.Exception
Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
user
- ModuleException
Copyright © 2012-2018. All Rights Reserved.