Class ModifyTemplateAction


  • public class ModifyTemplateAction
    extends InterMineAction
    Action that results from a button press on the user profile page.
    Author:
    Mark Woodbridge, Thomas Riley
    • Field Summary

      • Fields inherited from class org.apache.struts.action.Action

        servlet
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.struts.action.ActionErrors delete​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Delete some templates.
      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)
      Forward to the correct method based on the button pressed.
      void export​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Export the selected templates.
      • 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
    • Constructor Detail

      • ModifyTemplateAction

        public ModifyTemplateAction()
    • 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
        Forward to the correct method based on the button pressed.
        Overrides:
        execute in class org.apache.struts.action.Action
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        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
      • delete

        public org.apache.struts.action.ActionErrors delete​(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
        Delete some templates.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        errors The errors, if any, encountered whilst attempting to delete templates
        Throws:
        java.lang.Exception - if the application business logic throws an exception
      • export

        public void export​(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
        Export the selected templates.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Throws:
        java.lang.Exception - if the application business logic throws an exception