Constructor and Description |
---|
WebUtils() |
Modifier and Type | Method and Description |
---|---|
static JSONPage |
agentSelect(javax.servlet.http.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(java.util.Collection<? extends KeyValuePair<java.lang.String,java.lang.String>> p) |
static JSONPage |
getJSONObjectSelect(java.util.Map<java.lang.String,java.lang.String> params) |
Page |
jsonHolidays(javax.servlet.http.HttpServletRequest req)
Returns holidays for the date picker in JSON format.
|
static Page |
jsonObjectSelect(javax.servlet.http.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(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
- current requestjava.lang.Exception
- in case of an errorpublic Page jsonHolidays(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
- current requestorg.json.JSONException
- in case of an errorjava.lang.Exception
public static JSONPage agentSelect(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
- the requestjava.lang.Exception
public static JSONPage genJSONPage(java.util.Collection<? extends KeyValuePair<java.lang.String,java.lang.String>> p) throws org.json.JSONException
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 optionjava.lang.Exception
org.json.JSONException
public static JSONPage getJSONObjectSelect(java.util.Map<java.lang.String,java.lang.String> params) throws java.lang.Exception
params
- a map containing all configuration parameters for the dojo selectjava.lang.Exception
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.