api docs update

This commit is contained in:
John Woodlock
2012-05-28 15:02:39 +10:00
parent 74a94a09bc
commit ff4b011824
3 changed files with 128 additions and 355 deletions
@@ -33,7 +33,7 @@ public class PermissionReadPlatformServiceImpl implements PermissionReadPlatform
AppUser currentUser = context.authenticatedUser();
PermissionMapper mapper = new PermissionMapper();
String sql = "select " + mapper.schema() + " where p.org_id = ?";
String sql = "select " + mapper.schema() + " where p.org_id = ? order by p.id";
return this.jdbcTemplate.query(sql, mapper, new Object[] { currentUser
.getOrganisation().getId() });
@@ -65,7 +65,7 @@ public class RoleReadPlatformServiceImpl implements RoleReadPlatformService {
}
public String schema() {
return " r.id as id, r.org_id as orgId, r.name as name, r.description as description from admin_role r ";
return " r.id as id, r.org_id as orgId, r.name as name, r.description as description from admin_role r order by r.id";
}
}
}