public class MasterDetailControllerUtil extends Object
| Constructor and Description |
|---|
MasterDetailControllerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPagedModelAttributes(String orderBy,
Boolean orderAsc,
org.springframework.ui.ModelMap model,
int pageNo,
PagedSearchResult<?> pagedResult,
javax.servlet.http.HttpServletRequest request,
Map<String,Object> searchParams)
Adds all standard control attributes to the window for displaying the search
results page
|
static void |
addParam(Map<String,Object> searchParams,
String paramName,
Object paramValue)
Adds a parameter to the searchParams map, only if it has a value
|
static boolean |
defaultFalse(Boolean input)
Standardises the orderAsc field to use false if otherwise not supplied
|
static int |
defaultZero(Integer input)
Returns the input value if not null, otherwise 0
|
static String |
nullForEmpty(String input)
Returns the input value or null for an empty String
|
static String |
resolveOrderBy(String orderBy)
Returns the input value if not null, otherwise "id"
|
public static void addParam(Map<String,Object> searchParams, String paramName, Object paramValue)
searchParams - paramName - paramValue - public static void addPagedModelAttributes(String orderBy, Boolean orderAsc, org.springframework.ui.ModelMap model, int pageNo, PagedSearchResult<?> pagedResult, javax.servlet.http.HttpServletRequest request, Map<String,Object> searchParams)
orderBy - orderAsc - model - pageNo - pagedResult - request - searchParams - public static boolean defaultFalse(Boolean input)
orderAsc - public static String resolveOrderBy(String orderBy)
orderBy - public static int defaultZero(Integer input)
input - Copyright © 2007-2017 Ikasan. All Rights Reserved.