XUserREST { @GET @Path("/groupgroups") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_GROUP_GROUPS + "\")") public VXGroupGroupList searchXGroupGroups( @Context HttpServletRequest request) { SearchCriteria searchCriteria = searchUtil.extractCommonCriterias( request, xGroupGroupService.sortFields); return xUserMgr.searchXGroupGroups(searchCriteria); }  @GET @Path("/groups/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_GROUP + "\")") VXGroup getXGroup(@PathParam("id") Long id); @GET @Path("/secure/groups/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SECURE_GET_X_GROUP + "\")") VXGroup secureGetXGroup(@PathParam("id") Long id); @POST @Path("/groups") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXGroup createXGroup(VXGroup vXGroup); @POST @Path("/groups/groupinfo") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXGroupUserInfo createXGroupUserFromMap(VXGroupUserInfo vXGroupUserInfo); @POST @Path("/secure/groups") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXGroup secureCreateXGroup(VXGroup vXGroup); @PUT @Path("/groups") @Produces({ "application/xml", "application/json" }) VXGroup updateXGroup(VXGroup vXGroup); @PUT @Path("/secure/groups/{id}") @Produces({ "application/xml", "application/json" }) VXGroup secureUpdateXGroup(VXGroup vXGroup); @PUT @Path("/secure/groups/visibility") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.MODIFY_GROUPS_VISIBILITY + "\")") void modifyGroupsVisibility(HashMap<Long, Integer> groupVisibilityMap); @DELETE @Path("/groups/{id}") @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") @RangerAnnotationClassName(class_name = VXGroup.class) void deleteXGroup(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/groups") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_GROUPS + "\")") VXGroupList searchXGroups(@Context HttpServletRequest request); @GET @Path("/groups/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_GROUPS + "\")") VXLong countXGroups(@Context HttpServletRequest request); @GET @Path("/users/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_USER + "\")") VXUser getXUser(@PathParam("id") Long id); @GET @Path("/secure/users/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SECURE_GET_X_USER + "\")") VXUser secureGetXUser(@PathParam("id") Long id); @POST @Path("/users") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXUser createXUser(VXUser vXUser); @POST @Path("/users/external") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXUser createExternalUser(VXUser vXUser); @POST @Path("/users/userinfo") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXUserGroupInfo createXUserGroupFromMap(VXUserGroupInfo vXUserGroupInfo); @POST @Path("/users/roleassignments") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") List<String> setXUserRolesByName(VXUsersGroupRoleAssignments ugRoleAssignments); @POST @Path("/secure/users") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXUser secureCreateXUser(VXUser vXUser); @PUT @Path("/users") @Produces({ "application/xml", "application/json" }) VXUser updateXUser(VXUser vXUser); @PUT @Path("/secure/users/{id}") @Produces({ "application/xml", "application/json" }) VXUser secureUpdateXUser(VXUser vXUser); @PUT @Path("/secure/users/visibility") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.MODIFY_USER_VISIBILITY + "\")") void modifyUserVisibility(HashMap<Long, Integer> visibilityMap); @DELETE @Path("/users/{id}") @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") @RangerAnnotationClassName(class_name = VXUser.class) void deleteXUser(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/users") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_USERS + "\")") VXUserList searchXUsers(@Context HttpServletRequest request); @GET @Path("/lookup/users") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_USERS_LOOKUP + "\")") VXStringList getUsersLookup(@Context HttpServletRequest request); @GET @Path("/lookup/groups") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_GROUPS_LOOKUP + "\")") VXStringList getGroupsLookup(@Context HttpServletRequest request); @GET @Path("/users/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_USERS + "\")") VXLong countXUsers(@Context HttpServletRequest request); @GET @Path("/groupusers/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_GROUP_USER + "\")") VXGroupUser getXGroupUser(@PathParam("id") Long id); @POST @Path("/groupusers") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXGroupUser createXGroupUser(VXGroupUser vXGroupUser); @PUT @Path("/groupusers") @Produces({ "application/xml", "application/json" }) VXGroupUser updateXGroupUser(VXGroupUser vXGroupUser); @DELETE @Path("/groupusers/{id}") @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") @RangerAnnotationClassName(class_name = VXGroupUser.class) void deleteXGroupUser(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/groupusers") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_GROUP_USERS + "\")") VXGroupUserList searchXGroupUsers(@Context HttpServletRequest request); @GET @Path("/groupusers/groupName/{groupName}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_GROUP_USERS_BY_GROUP_NAME + "\")") VXGroupUserInfo getXGroupUsersByGroupName(@Context HttpServletRequest request,
			@PathParam("groupName") String groupName); @GET @Path("/groupusers/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_GROUP_USERS + "\")") VXLong countXGroupUsers(@Context HttpServletRequest request); @GET @Path("/groupgroups/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_GROUP_GROUP + "\")") VXGroupGroup getXGroupGroup(@PathParam("id") Long id); @POST @Path("/groupgroups") @Produces({ "application/xml", "application/json" }) VXGroupGroup createXGroupGroup(VXGroupGroup vXGroupGroup); @PUT @Path("/groupgroups") @Produces({ "application/xml", "application/json" }) VXGroupGroup updateXGroupGroup(VXGroupGroup vXGroupGroup); @DELETE @Path("/groupgroups/{id}") @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") @RangerAnnotationClassName(class_name = VXGroupGroup.class) void deleteXGroupGroup(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/groupgroups") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_GROUP_GROUPS + "\")") VXGroupGroupList searchXGroupGroups(
			@Context HttpServletRequest request); @GET @Path("/groupgroups/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_GROUP_GROUPS + "\")") VXLong countXGroupGroups(@Context HttpServletRequest request); @GET @Path("/permmaps/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_PERM_MAP + "\")") VXPermMap getXPermMap(@PathParam("id") Long id); @POST @Path("/permmaps") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_X_PERM_MAP + "\")") VXPermMap createXPermMap(VXPermMap vXPermMap); @PUT @Path("/permmaps") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_X_PERM_MAP + "\")") VXPermMap updateXPermMap(VXPermMap vXPermMap); @DELETE @Path("/permmaps/{id}") @RangerAnnotationClassName(class_name = VXPermMap.class) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_X_PERM_MAP + "\")") void deleteXPermMap(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/permmaps") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_PERM_MAPS + "\")") VXPermMapList searchXPermMaps(@Context HttpServletRequest request); @GET @Path("/permmaps/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_PERM_MAPS + "\")") VXLong countXPermMaps(@Context HttpServletRequest request); @GET @Path("/auditmaps/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_AUDIT_MAP + "\")") VXAuditMap getXAuditMap(@PathParam("id") Long id); @POST @Path("/auditmaps") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_X_AUDIT_MAP + "\")") VXAuditMap createXAuditMap(VXAuditMap vXAuditMap); @PUT @Path("/auditmaps") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_X_AUDIT_MAP + "\")") VXAuditMap updateXAuditMap(VXAuditMap vXAuditMap); @DELETE @Path("/auditmaps/{id}") @RangerAnnotationClassName(class_name = VXAuditMap.class) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_X_AUDIT_MAP + "\")") void deleteXAuditMap(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/auditmaps") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_AUDIT_MAPS + "\")") VXAuditMapList searchXAuditMaps(@Context HttpServletRequest request); @GET @Path("/auditmaps/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_AUDIT_MAPS + "\")") VXLong countXAuditMaps(@Context HttpServletRequest request); @GET @Path("/users/userName/{userName}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_USER_BY_USER_NAME + "\")") VXUser getXUserByUserName(@Context HttpServletRequest request,
			@PathParam("userName") String userName); @GET @Path("/groups/groupName/{groupName}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_GROUP_BY_GROUP_NAME + "\")") VXGroup getXGroupByGroupName(@Context HttpServletRequest request,
			@PathParam("groupName") String groupName); @DELETE @Path("/users/userName/{userName}") @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteXUserByUserName(@PathParam("userName") String userName,
			@Context HttpServletRequest request); @DELETE @Path("/groups/groupName/{groupName}") @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteXGroupByGroupName(
			@PathParam("groupName") String groupName,
			@Context HttpServletRequest request); @DELETE @Path("/group/{groupName}/user/{userName}") @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteXGroupAndXUser(@PathParam("groupName") String groupName,
			@PathParam("userName") String userName,
			@Context HttpServletRequest request); @GET @Path("/{userId}/groups") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_USER_GROUPS + "\")") VXGroupList getXUserGroups(@Context HttpServletRequest request,
			@PathParam("userId") Long id); @GET @Path("/{groupId}/users") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_GROUP_USERS + "\")") VXUserList getXGroupUsers(@Context HttpServletRequest request,
			@PathParam("groupId") Long id); @GET @Path("/authSessions") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_AUTH_SESSIONS + "\")") VXAuthSessionList getAuthSessions(@Context HttpServletRequest request); @GET @Path("/authSessions/info") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_AUTH_SESSION + "\")") VXAuthSession getAuthSession(@Context HttpServletRequest request); @POST @Path("/permission") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_X_MODULE_DEF_PERMISSION + "\")") VXModuleDef createXModuleDefPermission(VXModuleDef vXModuleDef); @GET @Path("/permission/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_MODULE_DEF_PERMISSION + "\")") VXModuleDef getXModuleDefPermission(@PathParam("id") Long id); @PUT @Path("/permission/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_X_MODULE_DEF_PERMISSION + "\")") VXModuleDef updateXModuleDefPermission(VXModuleDef vXModuleDef); @DELETE @Path("/permission/{id}") @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_X_MODULE_DEF_PERMISSION + "\")") void deleteXModuleDefPermission(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/permission") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_MODULE_DEF + "\")") VXModuleDefList searchXModuleDef(@Context HttpServletRequest request); @GET @Path("/permission/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_MODULE_DEF + "\")") VXLong countXModuleDef(@Context HttpServletRequest request); @POST @Path("/permission/user") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_X_USER_PERMISSION + "\")") VXUserPermission createXUserPermission(
			VXUserPermission vXUserPermission); @GET @Path("/permission/user/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_USER_PERMISSION + "\")") VXUserPermission getXUserPermission(@PathParam("id") Long id); @PUT @Path("/permission/user/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_X_USER_PERMISSION + "\")") VXUserPermission updateXUserPermission(
			VXUserPermission vXUserPermission); @DELETE @Path("/permission/user/{id}") @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_X_USER_PERMISSION + "\")") void deleteXUserPermission(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/permission/user") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_USER_PERMISSION + "\")") VXUserPermissionList searchXUserPermission(
			@Context HttpServletRequest request); @GET @Path("/permission/user/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_USER_PERMISSION + "\")") VXLong countXUserPermission(@Context HttpServletRequest request); @POST @Path("/permission/group") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_X_GROUP_PERMISSION + "\")") VXGroupPermission createXGroupPermission(
			VXGroupPermission vXGroupPermission); @GET @Path("/permission/group/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_X_GROUP_PERMISSION + "\")") VXGroupPermission getXGroupPermission(@PathParam("id") Long id); @PUT @Path("/permission/group/{id}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_X_GROUP_PERMISSION + "\")") VXGroupPermission updateXGroupPermission(
			VXGroupPermission vXGroupPermission); @DELETE @Path("/permission/group/{id}") @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_X_GROUP_PERMISSION + "\")") void deleteXGroupPermission(@PathParam("id") Long id,
			@Context HttpServletRequest request); @GET @Path("/permission/group") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SEARCH_X_GROUP_PERMISSION + "\")") VXGroupPermissionList searchXGroupPermission(
			@Context HttpServletRequest request); @GET @Path("/permission/group/count") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.COUNT_X_GROUP_PERMISSION + "\")") VXLong countXGroupPermission(@Context HttpServletRequest request); @PUT @Path("/secure/users/activestatus") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.MODIFY_USER_ACTIVE_STATUS + "\")") void modifyUserActiveStatus(HashMap<Long, Integer> statusMap); @PUT @Path("/secure/users/roles/{userId}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SET_USER_ROLES_BY_ID + "\")") VXStringList setUserRolesByExternalID(@PathParam("userId") Long userId,
			VXStringList roleList); @PUT @Path("/secure/users/roles/userName/{userName}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.SET_USER_ROLES_BY_NAME + "\")") VXStringList setUserRolesByName(@PathParam("userName") String userName,
			VXStringList roleList); @GET @Path("/secure/users/external/{userId}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_USER_ROLES_BY_ID + "\")") VXStringList getUserRolesByExternalID(@PathParam("userId") Long userId); @GET @Path("/secure/users/roles/userName/{userName}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_USER_ROLES_BY_NAME + "\")") VXStringList getUserRolesByName(@PathParam("userName") String userName); @DELETE @Path("/secure/users/delete") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteUsersByUserName(@Context HttpServletRequest request,VXStringList userList); @DELETE @Path("/secure/groups/delete") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteGroupsByGroupName(
			@Context HttpServletRequest request,VXStringList groupList); @DELETE @Path("/secure/users/{userName}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteSingleUserByUserName(@Context HttpServletRequest request, @PathParam("userName") String userName); @DELETE @Path("/secure/groups/{groupName}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteSingleGroupByGroupName(@Context HttpServletRequest request, @PathParam("groupName") String groupName); @DELETE @Path("/secure/users/id/{userId}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteSingleUserByUserId(@Context HttpServletRequest request, @PathParam("userId") Long userId); @DELETE @Path("/secure/groups/id/{groupId}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") void deleteSingleGroupByGroupId(@Context HttpServletRequest request, @PathParam("groupId") Long groupId); @GET @Path("/secure/download/{serviceName}") @Produces({ "application/xml", "application/json" }) RangerUserStore getSecureRangerUserStoreIfUpdated(@PathParam("serviceName") String serviceName,
															 @QueryParam("lastKnownUserStoreVersion") Long lastKnownUserStoreVersion,
															 @DefaultValue("0") @QueryParam("lastActivationTime") Long lastActivationTime,
															 @QueryParam("pluginId") String pluginId,
															 @DefaultValue("") @QueryParam("clusterName") String clusterName,
															 @DefaultValue("") @QueryParam(RangerRESTUtils.REST_PARAM_CAPABILITIES) String pluginCapabilities,
															 @Context HttpServletRequest request); @POST @Path("/ugsync/auditinfo") @Produces({ "application/xml", "application/json" }) @PreAuthorize("hasRole('ROLE_SYS_ADMIN')") VXUgsyncAuditInfo postUserGroupAuditInfo(VXUgsyncAuditInfo vxUgsyncAuditInfo); static final String USERSTORE_DOWNLOAD_USERS; }
@SuppressWarnings("unchecked") @Test public void test36searchXGroupGroups() { VXGroupGroupList testvXGroupGroupList=new VXGroupGroupList(); VXGroupGroup testVXGroup=createVXGroupGroup(); List<VXGroupGroup> testVXGroupGroups= new ArrayList<VXGroupGroup>(); testVXGroupGroups.add(testVXGroup); testvXGroupGroupList.setVXGroupGroups(testVXGroupGroups); HttpServletRequest request = Mockito.mock(HttpServletRequest.class); SearchCriteria testSearchCriteria=createsearchCriteria(); Mockito.when(searchUtil.extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any())).thenReturn(testSearchCriteria); Mockito.when(xUserMgr.searchXGroupGroups(testSearchCriteria)).thenReturn(testvXGroupGroupList); VXGroupGroupList outputvXGroupGroupList=xUserRest.searchXGroupGroups(request); Mockito.verify(xUserMgr).searchXGroupGroups(testSearchCriteria); Mockito.verify(searchUtil).extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any()); assertNotNull(outputvXGroupGroupList); assertEquals(outputvXGroupGroupList.getClass(),testvXGroupGroupList.getClass()); assertEquals(outputvXGroupGroupList.getResultSize(),testvXGroupGroupList.getResultSize()); }