Class PDSAction

java.lang.Object
org.apache.struts.action.Action
ecmwf.web.controller.ECMWFAction
ecmwf.ecpds.master.plugin.http.controller.PDSAction
Direct Known Subclasses:
AdminFormAction, AssociationsAction, CleanDataWindowAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteFormAction, DeleteTransfersAction, DeleteUnsuccessfulTransfersAction, DetailerAction, FilterAction, GetArrivalDisplayAction, GetCategoryAction, GetCountryAction, GetDataFileAction, GetDataFileSetupAction, GetDataTransferAction, GetDestinationAction, GetDestinationMetaDataAction, GetEcTransModuleAction, GetHostAction, GetImageAction, GetIncomingHistoryAction, GetIncomingPolicyAction, GetIncomingUserAction, GetMetaDataAction, GetOutputAction, GetReportAction, GetReportAction, GetResourceAction, GetSummaryDisplayAction, GetTimelineDisplayAction, GetTopLevelDisplayAction, GetTransferDisplayAction, GetTransferGroupAction, GetTransferHistoryAction, GetTransferMethodAction, GetTransferServerAction, GetTransferSetupAction, GetUnSuccessfulTransfersAction, GetUserAction, GetUserEventsAction, GetUserSetupAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, InsertFormAction, OperationsAction, RatesAction, RequeueUnsuccessfulTransfersAction, ResetStatisticsAction, ScheduleNowAction, StartAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UpdateFormAction, UploadAction

public abstract class PDSAction extends ecmwf.web.controller.ECMWFAction
The Class PDSAction.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant RETURN_AFTER_LOGIN_KEY.

    Fields inherited from class ecmwf.web.controller.ECMWFAction

    EXCEPTION_KEY, PATH_PARAMETERS_KEY, RETURN_AFTER_ERROR_KEY

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

    defaultLocale, servlet
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final Collection<String>
    getDateOptions(int daysBack, boolean all)
    Gets the date options.
    static final SimpleDateFormat
    Gets the ISO format.
    boolean
    match(ecmwf.web.model.ModelBean b, String what)
    Match.
    abstract org.apache.struts.action.ActionForward
    safeAuthorizedPerform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ecmwf.web.model.users.User user)
    Safe authorized perform.
    org.apache.struts.action.ActionForward
    safePerform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Do authorization check and delegate to child class implementing the abstract method.
    Collection<ecmwf.web.model.ModelBean>
    search(Collection<? extends ecmwf.web.model.ModelBean> c, String search)
    Search.

    Methods inherited from class ecmwf.web.controller.ECMWFAction

    checkTimeTaken, execute, getResource, getUser, getUserCommonName, getUserOldStyle, getUserUid, processParameterEnsuringBasePath

    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, 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 Details

    • RETURN_AFTER_LOGIN_KEY

      public static final String RETURN_AFTER_LOGIN_KEY
      The Constant RETURN_AFTER_LOGIN_KEY.
      See Also:
  • Constructor Details

    • PDSAction

      public PDSAction()
  • Method Details

    • safePerform

      public org.apache.struts.action.ActionForward safePerform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ecmwf.web.ECMWFException, ClassCastException
      Do authorization check and delegate to child class implementing the abstract method.
      Specified by:
      safePerform in class ecmwf.web.controller.ECMWFAction
      Throws:
      ecmwf.web.ECMWFException
      ClassCastException
    • safeAuthorizedPerform

      public abstract org.apache.struts.action.ActionForward safeAuthorizedPerform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ecmwf.web.model.users.User user) throws ecmwf.web.ECMWFException, ClassCastException
      Safe authorized perform.
      Parameters:
      mapping - the mapping
      form - the form
      request - the request
      response - the response
      user - the user
      Returns:
      the action forward
      Throws:
      ecmwf.web.ECMWFException - the ECMWF exception
      ClassCastException - the class cast exception
    • getDateOptions

      public static final Collection<String> getDateOptions(int daysBack, boolean all)
      Gets the date options.
      Parameters:
      daysBack - the days back
      all - the all
      Returns:
      the date options
    • getISOFormat

      public static final SimpleDateFormat getISOFormat()
      Gets the ISO format.
      Returns:
      the ISO format
    • search

      public Collection<ecmwf.web.model.ModelBean> search(Collection<? extends ecmwf.web.model.ModelBean> c, String search)
      Search.
      Parameters:
      c - the c
      search - the search
      Returns:
      the collection
    • match

      public boolean match(ecmwf.web.model.ModelBean b, String what)
      Match.
      Parameters:
      b - the b
      what - the what
      Returns:
      true, if successful