Constructor and Description |
---|
WebUtils() |
Modifier and Type | Method and Description |
---|---|
static JSONPage |
agentSelect(HttpServletRequest req)
can be used by ObjectSelect-widgets to query for agents (either roles or users)
possible parameters are: role,application,orgunit,noEmptyEntry,includeRoleToo currently it's only possible to search for users and optionally include the given role too |
static JSONPage |
genJSONPage(Collection<? extends KeyValuePair<String,String>> p) |
static JSONPage |
genJSONPage(Collection<? extends KeyValuePair<String,String>> p,
String id,
String label,
Boolean showNull) |
static JSONPage |
getJSONObjectSelect(Map<String,String> params) |
Page |
jsonHolidays(HttpServletRequest req)
Returns holidays for the date picker in JSON format.
|
static Page |
jsonObjectSelect(HttpServletRequest req)
Performs the search using the criteria, specified as request parameters,
and returns the JSON-encoded page with the content of found entries.
|
public static Page jsonObjectSelect(HttpServletRequest req) throws Exception
req
- current requestException
- in case of an errorpublic Page jsonHolidays(HttpServletRequest req) throws Exception
req
- current requestException
public static JSONPage agentSelect(HttpServletRequest req) throws Exception
req
- the requestException
public static JSONPage genJSONPage(Collection<? extends KeyValuePair<String,String>> p)
p
- a list of elements. The key of the com.groiss.ds.Pair is the value of the option. The value of the Pair is the label of the optionJSONException
public static JSONPage genJSONPage(Collection<? extends KeyValuePair<String,String>> p, String id, String label, Boolean showNull)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.