|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.web.controller.MasterDetailControllerUtil
public class MasterDetailControllerUtil
Common utility functions used by MVC controllers that deal with paged Master/Detail search functions
| Constructor Summary | |
|---|---|
MasterDetailControllerUtil()
|
|
| Method Summary | |
|---|---|
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 model 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" |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterDetailControllerUtil()
| Method Detail |
|---|
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 -
public static String nullForEmpty(String input)
input -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||