Package org.intermine.web.struts
Class WebSearchableListController
- java.lang.Object
-
- org.apache.struts.action.Action
-
- org.apache.struts.tiles.actions.TilesAction
-
- org.intermine.web.struts.WebSearchableListController
-
public class WebSearchableListController extends org.apache.struts.tiles.actions.TilesAction
Controller for webSearchableList.tile- Author:
- Kim Rutherford
-
-
Constructor Summary
Constructors Constructor Description WebSearchableListController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.struts.action.ActionForward
execute(org.apache.struts.tiles.ComponentContext context, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Set up the attributes for webSearchableList.tilestatic java.util.Map<java.lang.String,WebSearchable>
filterByList(java.util.Map<java.lang.String,WebSearchable> filteredWebSearchables, java.lang.String list)
Filters websearchables.static java.util.Map<java.lang.String,? extends WebSearchable>
getFilterWebSearchables(javax.servlet.http.HttpServletRequest request, java.lang.String type, java.lang.String scope, java.lang.String tags)
Get all the WebSearchables in the given scope and of the given type.-
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
-
-
-
Method Detail
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.tiles.ComponentContext context, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
Set up the attributes for webSearchableList.tile- Overrides:
execute
in classorg.apache.struts.tiles.actions.TilesAction
- Throws:
java.lang.Exception
-
getFilterWebSearchables
public static java.util.Map<java.lang.String,? extends WebSearchable> getFilterWebSearchables(javax.servlet.http.HttpServletRequest request, java.lang.String type, java.lang.String scope, java.lang.String tags)
Get all the WebSearchables in the given scope and of the given type.- Parameters:
request
- requesttype
- typescope
- private or global scopetags
- tags- Returns:
- websearchables of specified type, scope and with specified tags
-
filterByList
public static java.util.Map<java.lang.String,WebSearchable> filterByList(java.util.Map<java.lang.String,WebSearchable> filteredWebSearchables, java.lang.String list)
Filters websearchables. Loops through the websearchables, removes item if item is not on the list.- Parameters:
filteredWebSearchables
- items to be filteredlist
- list- Returns:
- map with items that were on the list and on the map as well
-
-