Class DestinationsByUser
java.lang.Object
ecmwf.web.dao.ModelSearchBase
ecmwf.ecpds.master.plugin.http.home.transfer.searches.DestinationsByUser
- All Implemented Interfaces:
ecmwf.web.model.ModelSearch, Cloneable
public class DestinationsByUser
extends ecmwf.web.dao.ModelSearchBase
The Class DestinationsByUser.
-
Field Summary
Fields inherited from interface ecmwf.web.model.ModelSearch
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE -
Constructor Summary
ConstructorsConstructorDescriptionDestinationsByUser(ecmwf.web.model.users.User user, String search, String fromToAliases, boolean asc, String status, String type, String filter) Instantiates a new destinations by user (legacy — loads all rows, sorts by name).DestinationsByUser(ecmwf.web.model.users.User user, String search, String fromToAliases, int orderColumn, boolean ascending, int start, int length, String status, String type, String filter) Instantiates a new destinations by user with full pagination and sort control. -
Method Summary
Modifier and TypeMethodDescriptionGets the filter.Gets the from to aliases.intGets the length.intGets the order column index.Gets the search.intgetStart()Gets the start offset.Gets the status.getType()Gets the type.ecmwf.web.model.users.UsergetUser()Gets the user.booleanGets the ascending sort flag.Methods inherited from class ecmwf.web.dao.ModelSearchBase
addAndQuery, addOrQuery, addSortItem, addSortItems, cacheable, getBase, getCopy, getKey, getOffset, getQuery, getScope, getSizeLimit, getSortItems, partialMatches, resetSortItems, setBase, setCacheable, setOffset, setPartialMatches, setQuery, setScope, setSizeLimit, setSortItemsFromStrings, setStoreSearchResults, storeSearchResults
-
Constructor Details
-
DestinationsByUser
public DestinationsByUser(ecmwf.web.model.users.User user, String search, String fromToAliases, boolean asc, String status, String type, String filter) Instantiates a new destinations by user (legacy — loads all rows, sorts by name).- Parameters:
user- the usersearch- the searchfromToAliases- the from to aliasesasc- the ascending sort direction for name columnstatus- the statustype- the typefilter- the filter
-
DestinationsByUser
public DestinationsByUser(ecmwf.web.model.users.User user, String search, String fromToAliases, int orderColumn, boolean ascending, int start, int length, String status, String type, String filter) Instantiates a new destinations by user with full pagination and sort control.- Parameters:
user- the usersearch- the searchfromToAliases- the from to aliasesorderColumn- the DataTables column index to sort byascending- true for ascending sortstart- the zero-based row offset (-1 for no limit)length- the maximum number of rows (-1 for no limit)status- the statustype- the typefilter- the filter
-
-
Method Details
-
getSearch
-
getFromToAliases
-
getStatus
-
getType
-
getFilter
-
getOrderColumn
public int getOrderColumn()Gets the order column index.- Returns:
- the DataTables column index to sort by
-
isAscending
public boolean isAscending()Gets the ascending sort flag.- Returns:
- true for ascending sort
-
getStart
public int getStart()Gets the start offset.- Returns:
- the zero-based row offset (-1 means no limit)
-
getLength
public int getLength()Gets the length.- Returns:
- the maximum number of rows (-1 means no limit)
-
getUser
public ecmwf.web.model.users.User getUser()Gets the user.- Returns:
- the user
-