+
+ @ApiOperation(value = "Gets MechId roles", response = String.class, responseContainer = "List")
+ @GetMapping(value = { "/v3/systemUser" }, produces = "application/json")
+ public List<AAFPermission> getSystemUserPerms(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ List<AAFPermission> permsList = null;
+ Map<String, Object> res = getMethod(request, response);
+ try {
+ permsList = (List<AAFPermission>) invokeMethod(res, request, response);
+ } catch (Exception e) {
+ logger.error(EELFLoggerDelegate.errorLogger, "getSystemUserPerms failed", e);
+ }
+ return permsList;
+ }
+
+ @ApiOperation(value = "Update role description in external auth system for an application.", response = PortalRestResponse.class, responseContainer = "Json")
+ @PutMapping(value = { "/v3/update/app/roleDescription" }, produces = "application/json")
+ public PortalRestResponse<String> updateAppRoleDescription(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ PortalRestResponse<String> result = null;
+ Map<String, Object> res = getMethod(request, response);
+ try {
+ result = (PortalRestResponse<String>) invokeMethod(res, request, response);
+ return result;
+ } catch (Exception e) {
+ logger.error(EELFLoggerDelegate.errorLogger, "updateAppRoleDescription failed", e);
+ return new PortalRestResponse<String>(PortalRestStatusEnum.ERROR, e.getMessage(), "Failed");
+ }
+ }