Package org.intermine.web.struts
Class BagBuildController
- java.lang.Object
-
- org.apache.struts.action.Action
-
- org.apache.struts.tiles.actions.TilesAction
-
- org.intermine.web.struts.BagBuildController
-
public class BagBuildController extends org.apache.struts.tiles.actions.TilesAction
Controller Action for buildBag.jsp- Author:
- Kim Rutherford
-
-
Constructor Summary
Constructors Constructor Description BagBuildController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.struts.action.ActionForward
execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Set up environment for the buildBag page.static java.util.List<java.lang.Object>
getFieldValues(ObjectStore os, ObjectStoreSummary oss, java.lang.String extraClassName, java.lang.String constrainField)
Return a list of the possible field values for the given class/field name combination.-
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.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 environment for the buildBag page.- Overrides:
execute
in classorg.apache.struts.tiles.actions.TilesAction
- Parameters:
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating- Returns:
- an ActionForward object defining where control goes next
- Throws:
java.lang.Exception
- if an error occurs
-
getFieldValues
public static java.util.List<java.lang.Object> getFieldValues(ObjectStore os, ObjectStoreSummary oss, java.lang.String extraClassName, java.lang.String constrainField)
Return a list of the possible field values for the given class/field name combination.- Parameters:
os
- the ObjectStore to query if the field values aren't available from the summaryoss
- the summary of the object storeextraClassName
- the class nameconstrainField
- the field name- Returns:
- a List of the feild values
-
-