Class TemplatesExportAction


  • public class TemplatesExportAction
    extends TemplateAction
    Exports templates to XML.
    Author:
    Thomas Riley
    • Method Summary

      All 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)
      Build a query based on the template and the input from the user.
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        protected static final org.apache.log4j.Logger LOG
    • Constructor Detail

      • TemplatesExportAction

        public TemplatesExportAction()
    • 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
        Build a query based on the template and the input from the user. There are some request parameters that, if present, effect the behaviour of the action. These are:
        skipBuilder
        If this attribute is specifed (with any value) then the action will forward directly to the object details page if the results contain just one object.
        noSaveQuery
        If this attribute is specifed (with any value) then the query is not automatically saved in the user's query history.
        Overrides:
        execute in class TemplateAction
        Parameters:
        mapping - not used
        form - not used
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws an exception