Package org.javlo.module.search
Class SearchModuleAction
- java.lang.Object
-
- org.javlo.actions.AbstractModuleAction
-
- org.javlo.module.search.SearchModuleAction
-
- All Implemented Interfaces:
IAction,IModuleAction
public class SearchModuleAction extends AbstractModuleAction
-
-
Constructor Summary
Constructors Constructor Description SearchModuleAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidaddPage(ContentContext ctx, Map<MenuElement,SearchResultBean> outResult, MenuElement page, String lg, String authors)StringgetActionGroupName()the group name of the actionstatic voidmain(String[] args)static StringperformDownloadxlsx(RequestService rs, javax.servlet.http.HttpServletRequest request, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)static StringperformSearch(RequestService rs, javax.servlet.http.HttpServletRequest request, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)Stringprepare(ContentContext ctx, ModulesContext modulesContext)method called before module renderingstatic Collection<SearchResultBean>searchInPage(ContentContext ctx, SearchFilter filter)static Collection<SearchResultBean>searchInResource(ContentContext ctx, SearchFilter filter)-
Methods inherited from class org.javlo.actions.AbstractModuleAction
getModuleContext, haveRight, haveRight, isLightInterface, performChangeRenderer, performSearch, performWizard
-
-
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IActionthe group name of the action- Returns:
- a group name.
-
addPage
protected static void addPage(ContentContext ctx, Map<MenuElement,SearchResultBean> outResult, MenuElement page, String lg, String authors) throws Exception
- Throws:
Exception
-
searchInPage
public static Collection<SearchResultBean> searchInPage(ContentContext ctx, SearchFilter filter) throws Exception
- Throws:
Exception
-
searchInResource
public static Collection<SearchResultBean> searchInResource(ContentContext ctx, SearchFilter filter) throws Exception
- Throws:
Exception
-
prepare
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
Description copied from interface:IModuleActionmethod called before module rendering- Specified by:
preparein interfaceIModuleAction- Overrides:
preparein classAbstractModuleAction- Parameters:
ctx- the current context.modulesContext- the context of the module. You can call getCurrentModule for recover the module.- Returns:
- eventually the error message
- Throws:
Exception
-
performSearch
public static String performSearch(RequestService rs, javax.servlet.http.HttpServletRequest request, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performDownloadxlsx
public static String performDownloadxlsx(RequestService rs, javax.servlet.http.HttpServletRequest request, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
main
public static void main(String[] args)
-
-