|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.struts.action.Action
org.intermine.web.struts.InterMineAction
org.intermine.web.struts.TemplateAction
public class TemplateAction
Action to handle submit from the template page. setSavingQueries
can be used to set whether or not queries run by this action are
automatically saved in the user's query history. This property is true by
default.
| Field Summary | |
|---|---|
static java.lang.String |
SKIP_BUILDER_PARAMETER
Name of skipBuilder parameter |
static java.lang.String |
TEMPLATE_ACTION_PATH
path of TemplateAction action |
| Fields inherited from class org.apache.struts.action.Action |
|---|
defaultLocale, servlet |
| Constructor Summary | |
|---|---|
TemplateAction()
|
|
| Method Summary | |
|---|---|
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)
Build a query based on the template and the input from the user. |
protected java.util.Map<java.lang.String,java.util.List<TemplateValue>> |
templateFormToTemplateValues(TemplateForm tf,
TemplateQuery template)
The method returns a map of TemplateValue for each editable constraint. |
| Methods inherited from class org.intermine.web.struts.InterMineAction |
|---|
getWebProperties, recordError, recordError, recordError, recordMessage |
| Methods inherited from class org.apache.struts.action.Action |
|---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SKIP_BUILDER_PARAMETER
public static final java.lang.String TEMPLATE_ACTION_PATH
| Constructor Detail |
|---|
public TemplateAction()
| Method Detail |
|---|
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
execute in class org.apache.struts.action.Actionmapping - 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
java.lang.Exception - if the application business logic throws an exception
protected java.util.Map<java.lang.String,java.util.List<TemplateValue>> templateFormToTemplateValues(TemplateForm tf,
TemplateQuery template)
tf - the actionform containing the value from the requsttemplate - the current template
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||