Rev 1814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1814 | Rev 1847 | ||
---|---|---|---|
Line 248... | Line 248... | ||
248 | JSONObject result = (JSONObject) sm.execute(RequestUtils.getRequester(request, response), "WSAPIListTeachers", args, names); |
248 | JSONObject result = (JSONObject) sm.execute(RequestUtils.getRequester(request, response), "WSAPIListTeachers", args, names); |
249 | return result; |
249 | return result; |
250 | } |
250 | } |
251 | 251 | ||
252 | /** |
252 | /** |
- | 253 | * |
|
- | 254 | * @param form |
|
- | 255 | * @param request |
|
- | 256 | * @param response |
|
- | 257 | * @return |
|
- | 258 | * @throws Throwable |
|
- | 259 | */ |
|
- | 260 | public JSONObject wsListCoordinators(ActionForm form,HttpServletRequest request, HttpServletResponse response) throws 1.5.0/docs/api/java/lang/Throwable.html">Throwable { |
|
- | 261 | ||
- | 262 | IServiceManager sm = ServiceManager.getInstance(); |
|
- | 263 | 1.5.0/docs/api/java/lang/String.html">String[] names = new 1.5.0/docs/api/java/lang/String.html">String[]{}; |
|
- | 264 | 5+0%2Fdocs%2Fapi+Object">Object[] args = new 5+0%2Fdocs%2Fapi+Object">Object[]{}; |
|
- | 265 | JSONObject result = (JSONObject) sm.execute(RequestUtils.getRequester(request, response), "WSAPIListCoordinators", args, names); |
|
- | 266 | return result; |
|
- | 267 | } |
|
- | 268 | ||
- | 269 | ||
- | 270 | /** |
|
253 | * * For Json Services |
271 | * * For Json Services |
254 | * @param form |
272 | * @param form |
255 | * @param request |
273 | * @param request |
256 | * @param response |
274 | * @param response |
257 | * @return |
275 | * @return |
Line 291... | Line 309... | ||
291 | wsLoginListTeachers.put("service","/wsjson/api/app/secure/ws-teacher-list"); |
309 | wsLoginListTeachers.put("service","/wsjson/api/app/secure/ws-teacher-list"); |
292 | wsLoginListTeachers.put("parameter","certificate"); |
310 | wsLoginListTeachers.put("parameter","certificate"); |
293 | wsLoginListTeachers.put("descricao","usa o certificado para garantir autenticidade da APP e devolve a lista total de professores do sistema no parametro response"); |
311 | wsLoginListTeachers.put("descricao","usa o certificado para garantir autenticidade da APP e devolve a lista total de professores do sistema no parametro response"); |
294 | wsLoginListTeachers.put("return1","devolve a lista total de professores do sistema no parametro response"); |
312 | wsLoginListTeachers.put("return1","devolve a lista total de professores do sistema no parametro response"); |
295 | 313 | ||
- | 314 | JSONObject wsLoginListCoordinators = new JSONObject(); |
|
- | 315 | wsLoginListCoordinators.put("service","/wsjson/api/app/secure/ws-coordinators-list"); |
|
- | 316 | wsLoginListCoordinators.put("parameter","certificate"); |
|
- | 317 | wsLoginListCoordinators.put("descricao","usa o certificado para garantir autenticidade da APP e devolve a lista total de professores do sistema no parametro response"); |
|
- | 318 | wsLoginListCoordinators.put("return1","devolve a lista total de professores do sistema no parametro response"); |
|
- | 319 | ||
- | 320 | ||
296 | JSONArray services = new JSONArray(); |
321 | JSONArray services = new JSONArray(); |
297 | services.put(wsAuthenticate); |
322 | services.put(wsAuthenticate); |
298 | services.put(wsLoginChallenge); |
323 | services.put(wsLoginChallenge); |
299 | services.put(wsLoginListStudents); |
324 | services.put(wsLoginListStudents); |
300 | services.put(wsLoginListTeachers); |
325 | services.put(wsLoginListTeachers); |
- | 326 | services.put(wsLoginListCoordinators); |
|
301 | wsServices.put("services",services); |
327 | wsServices.put("services",services); |
302 | 328 | ||
303 | return result; |
329 | return result; |
304 | } |
330 | } |
305 | } |
331 | } |