Package org.javlo.module.core
Class Module.EmptyAction
- java.lang.Object
-
- org.javlo.module.core.Module.EmptyAction
-
- All Implemented Interfaces:
IAction,IModuleAction
- Enclosing class:
- Module
public static final class Module.EmptyAction extends Object implements IModuleAction
-
-
Constructor Summary
Constructors Constructor Description EmptyAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActionGroupName()the group name of the actionBooleanhaveRight(javax.servlet.http.HttpSession session, User user)check if a specific user can use the module.booleanhaveRight(ContentContext ctx, String action)StringperformSearch(ContentContext ctx, ModulesContext moduleContext, String searchText)method called when a seach in lauched from search form.Stringprepare(ContentContext ctx, ModulesContext moduleContext)method called before module rendering
-
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IActionthe group name of the action- Specified by:
getActionGroupNamein interfaceIAction- Returns:
- a group name.
-
prepare
public String prepare(ContentContext ctx, ModulesContext moduleContext)
Description copied from interface:IModuleActionmethod called before module rendering- Specified by:
preparein interfaceIModuleAction- Parameters:
ctx- the current context.moduleContext- the context of the module. You can call getCurrentModule for recover the module.- Returns:
- eventually the error message
-
performSearch
public String performSearch(ContentContext ctx, ModulesContext moduleContext, String searchText) throws Exception
Description copied from interface:IModuleActionmethod called when a seach in lauched from search form.- Specified by:
performSearchin interfaceIModuleActionsearchText- the text entered in the search input field.- Returns:
- eventually the error message
- Throws:
Exception
-
haveRight
public Boolean haveRight(javax.servlet.http.HttpSession session, User user)
Description copied from interface:IModuleActioncheck if a specific user can use the module.- Specified by:
haveRightin interfaceIModuleAction- Returns:
- true if access, false if no access and null if this method can't determine access. If access is not determined by the action javlo will take the user group in config.properties.
-
haveRight
public boolean haveRight(ContentContext ctx, String action)
-
-