|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.WebUtils
public class WebUtils
Miscellanea data retrieval methods used in a Web tier.
| Constructor Summary | |
|---|---|
WebUtils()
|
|
| Method Summary | |
|---|---|
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<Pair> pairs)
|
static JSONPage |
getJSONObjectSelect(Map<String,String> params)
|
void |
jsonHolidays(HttpServletRequest req,
HttpServletResponse res)
Returns holidays for the date picker in JSON format. |
static void |
jsonObjectSelect(HttpServletRequest req,
HttpServletResponse res)
Performs the search using the criteria, specified as request parameters, and returns the JSON-encoded page with the content of found entries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebUtils()
| Method Detail |
|---|
public static void jsonObjectSelect(HttpServletRequest req,
HttpServletResponse res)
throws Exception
req - current request
Exception - in case of an error
public void jsonHolidays(HttpServletRequest req,
HttpServletResponse res)
throws Exception
req - current request
JSONException - in case of an error
Exception
public static JSONPage agentSelect(HttpServletRequest req)
throws Exception
req - the request
Exception
public static JSONPage genJSONPage(Collection<Pair> pairs)
throws Exception
pairs - 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 option
Exception
public static JSONPage getJSONObjectSelect(Map<String,String> params)
throws Exception
params - a map containing all configuration parameters for the dojo select
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||