Class Util

java.lang.Object
ecmwf.ecpds.master.plugin.http.dao.Util

public final class Util extends Object
The Class Util.
  • Constructor Details Link icon

    • Util Link icon

      public Util()
  • Method Details Link icon

    • getECpdsSessionFromObject Link icon

      public static ECpdsSession getECpdsSessionFromObject(Object u) throws ecmwf.web.model.ModelException
      Gets the ecpds session from object.
      Parameters:
      u - the u
      Returns:
      the ecpds session from object
      Throws:
      ecmwf.web.model.ModelException - the model exception
    • getFormatted Link icon

      public static String getFormatted(ecmwf.web.model.users.User user, String output)
      Gets the formatted.
      Parameters:
      user - the user
      output - the output
      Returns:
      the formatted
    • getValue Link icon

      public static String getValue(javax.servlet.http.HttpServletRequest request, String name, String defaultValue)
      Gets the value.
      Parameters:
      request - the request
      name - the name
      defaultValue - the default value
      Returns:
      the value
    • getValue Link icon

      public static String getValue(javax.servlet.http.HttpServletRequest request, String name, Util.DefaultValue defaultValue)
      Gets the value.
      Parameters:
      request - the request
      name - the name
      defaultValue - the default value
      Returns:
      the value
    • getDataBaseCursor Link icon

      public static DataBaseCursor getDataBaseCursor(String displayId, int recordsPerPage, int defaultSort, boolean descending, javax.servlet.http.HttpServletRequest request)
      Gets the data base cursor.
      Parameters:
      displayId - the display id
      recordsPerPage - the records per page
      defaultSort - the default sort
      descending - the descending
      request - the request
      Returns:
      the data base cursor
    • getCollectionFrom Link icon

      public static int getCollectionFrom(Collection<? extends DataBaseObject> collection)
      Gets the collection from.
      Parameters:
      collection - the collection
      Returns:
      the collection from
    • getCollectionSizeFrom Link icon

      public static int getCollectionSizeFrom(Collection<? extends CollectionSizeBean> collection)
      Gets the collection size from.
      Parameters:
      collection - the collection
      Returns:
      the collection size from
    • getDestinationPairList Link icon

      public static Collection<ecmwf.web.util.bean.Pair> getDestinationPairList(Collection<ecmwf.web.util.bean.Pair> list, Collection<Destination> toRemove)
      Gets the destination pair list.
      Parameters:
      list - the list
      toRemove - the to remove
      Returns:
      the destination pair list