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 intgetCollectionFrom(Collection<? extends DataBaseObject> collection) Gets the collection from.static intgetCollectionSizeFrom(Collection<? extends CollectionSizeBean> collection) Gets the collection size from.static DataBaseCursorgetDataBaseCursor(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 ECpdsSessionGets the ecpds session from object.static StringgetFormatted(ecmwf.web.model.users.User user, String output) Gets the formatted.static StringgetValue(javax.servlet.http.HttpServletRequest request, String name, Util.DefaultValue defaultValue) Gets the value.static StringGets the value.
-
Constructor Details
-
Util
public Util()
-
-
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
-