Rasika Perera 9 years ago
commit 12868d587b

@ -114,10 +114,10 @@ public class Group {
@GET @GET
@Produces("application/json") @Produces("application/json")
public Response getGroups(@QueryParam("start") int startIndex, @PathParam("rowCount") int rowCount) { public Response getGroups(@QueryParam("start") int startIndex, @PathParam("length") int length) {
try { try {
PaginationResult paginationResult = DeviceMgtAPIUtils.getGroupManagementProviderService() PaginationResult paginationResult = DeviceMgtAPIUtils.getGroupManagementProviderService()
.getGroups(startIndex, rowCount); .getGroups(startIndex, length);
if (paginationResult.getRecordsTotal() > 0) { if (paginationResult.getRecordsTotal() > 0) {
return Response.status(Response.Status.OK).entity(paginationResult).build(); return Response.status(Response.Status.OK).entity(paginationResult).build();
} else { } else {
@ -153,10 +153,10 @@ public class Group {
@GET @GET
@Produces("application/json") @Produces("application/json")
public Response getGroups(@PathParam("user") String userName, @QueryParam("start") int startIndex, public Response getGroups(@PathParam("user") String userName, @QueryParam("start") int startIndex,
@QueryParam("rowCount") int rowCount) { @QueryParam("length") int length) {
try { try {
PaginationResult paginationResult = DeviceMgtAPIUtils.getGroupManagementProviderService() PaginationResult paginationResult = DeviceMgtAPIUtils.getGroupManagementProviderService()
.getGroups(userName, startIndex, rowCount); .getGroups(userName, startIndex, length);
if (paginationResult.getRecordsTotal() > 0) { if (paginationResult.getRecordsTotal() > 0) {
return Response.status(Response.Status.OK).entity(paginationResult).build(); return Response.status(Response.Status.OK).entity(paginationResult).build();
} else { } else {

Loading…
Cancel
Save