Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getECpdsSessionFromObject(Object)
- getFormatted(User, String)
- getValue(HttpServletRequest, String, String)
- getValue(HttpServletRequest, String, Util.DefaultValue)
- getDataBaseCursor(String, int, int, boolean, HttpServletRequest)
- getCollectionFrom(Collection)
- getCollectionSizeFrom(Collection)
- getDestinationPairList(Collection, Collection)
Class Util
java.lang.Object
ecmwf.ecpds.master.plugin.http.dao.Util
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCollectionFrom
(Collection<? extends DataBaseObject> collection) Gets the collection from.static int
getCollectionSizeFrom
(Collection<? extends CollectionSizeBean> collection) Gets the collection size from.static DataBaseCursor
getDataBaseCursor
(String displayId, int recordsPerPage, int defaultSort, boolean descending, javax.servlet.http.HttpServletRequest request) Gets the data base cursor.static Collection
<ecmwf.web.util.bean.Pair> getDestinationPairList
(Collection<ecmwf.web.util.bean.Pair> list, Collection<Destination> toRemove) Gets the destination pair list.static ECpdsSession
Gets the ecpds session from object.static String
getFormatted
(ecmwf.web.model.users.User user, String output) Gets the formatted.static String
getValue
(javax.servlet.http.HttpServletRequest request, String name, Util.DefaultValue defaultValue) Gets the value.static String
Gets the value.
-
Constructor Details
-
Method Details
-
getECpdsSessionFromObject
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
-
getValue
-
getValue
public static String getValue(javax.servlet.http.HttpServletRequest request, String name, Util.DefaultValue defaultValue) Gets the value.- Parameters:
request
- the requestname
- the namedefaultValue
- the default value- Returns:
- the value
-
getDataBaseCursor
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 idrecordsPerPage
- the records per pagedefaultSort
- the default sortdescending
- the descendingrequest
- the request- Returns:
- the data base cursor
-
getCollectionFrom
Gets the collection from.- Parameters:
collection
- the collection- Returns:
- the collection from
-
getCollectionSizeFrom
Gets the collection size from.- Parameters:
collection
- the collection- Returns:
- the collection size from
-
getDestinationPairList
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 listtoRemove
- the to remove- Returns:
- the destination pair list
-