Class BulkImportDestinationMetaDataAction

java.lang.Object
org.apache.struts.action.Action
ecmwf.web.controller.ECMWFAction
ecmwf.ecpds.master.plugin.http.controller.PDSAction
ecmwf.ecpds.master.plugin.http.controller.transfer.destination.BulkImportDestinationMetaDataAction

public class BulkImportDestinationMetaDataAction extends PDSAction
Bulk-import XML metadata files for all destinations at once.

File scanning and XML parsing are delegated to the MasterServer (via MasterManager.getDB().scanMetadataAttachments(null)) so they always run on the machine that owns the attachment directories — regardless of whether the web application and the MasterServer run on different hosts.

GET without confirm=true: returns a grouped preview of what would be imported. GET with confirm=true: commits all parsed values to the DB.

  • Field Summary

    Fields inherited from class PDSAction

    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
    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.

    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 Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BulkImportDestinationMetaDataAction

      public BulkImportDestinationMetaDataAction()
  • Method Details

    • safeAuthorizedPerform

      public 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.controller.ECMWFActionFormException
      Safe authorized perform.
      Specified by:
      safeAuthorizedPerform in class PDSAction
      Parameters:
      mapping - the mapping
      form - the form
      request - the request
      response - the response
      user - the user
      Returns:
      the action forward
      Throws:
      ecmwf.web.controller.ECMWFActionFormException