|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.gui.WebUtils
public class WebUtils
Miscellanea data retrieval methods used in a Web tier.
Constructor Summary | |
---|---|
WebUtils()
|
Method Summary | |
---|---|
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<Pair> pairs)
|
static JSONPage |
getJSONObjectSelect(java.util.Map<java.lang.String,java.lang.String> params)
|
void |
jsonHolidays(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns holidays for the date picker in JSON format. |
static void |
jsonObjectSelect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.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(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
req
- current request
java.lang.Exception
- in case of an errorpublic void jsonHolidays(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
req
- current request
org.json.JSONException
- in case of an error
java.lang.Exception
public static JSONPage agentSelect(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
- the request
java.lang.Exception
public static JSONPage genJSONPage(java.util.Collection<Pair> pairs) throws java.lang.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
java.lang.Exception
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 select
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |