uk.ac.ebi.intenz.webapp.controller.modification
Class CurationAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by uk.ac.ebi.intenz.webapp.controller.modification.CurationAction
Direct Known Subclasses:
AmendEntryAction, AmendEntryUpdateAction, CreateEntryAction, CreateEntryUpdateAction, DeleteEntryAction, DeleteEntryUpdateAction, FormButtonAction, PreviewEntryAction, TransferEntryAction, TransferEntryUpdateAction

public class CurationAction
extends org.apache.struts.action.Action

This class checks to see if the entry is still valid. If its not it reloads it.

Version:
$Revision: 1.2 $ $Date: 2008/01/28 12:33:07 $
Author:
Michael Darsow

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
CurationAction()
           
 
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)
           
protected  void keepToken(javax.servlet.http.HttpServletRequest request)
          Keeps the token as it is to ensure that the entry can be reloaded if necessary.
 
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
 

Constructor Detail

CurationAction

public CurationAction()
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 Exception
Overrides:
execute in class org.apache.struts.action.Action
Throws:
Exception

keepToken

protected void keepToken(javax.servlet.http.HttpServletRequest request)
Keeps the token as it is to ensure that the entry can be reloaded if necessary.

Parameters:
request - Used to transfer the token parameter to the token attribute.
Throws:
NullPointerException - if request is null


Copyright © 2013 EMBL-EBI. All Rights Reserved.