Revision 61371
Added by Konstantinos Spyrou almost 3 years ago
RepositoryServiceImpl.java | ||
---|---|---|
1027 | 1027 |
ArrayList<String> roleIds = new ArrayList<>(); |
1028 | 1028 |
ArrayList<Integer> couIds = new ArrayList<>(); |
1029 | 1029 |
if (coPersonId != null) { |
1030 |
roles = registryCalls.getRoles(coPersonId);
|
|
1030 |
roles = registryCalls.getRolesWithStatus(coPersonId, AaiRegistryService.RoleStatus.ACTIVE);
|
|
1031 | 1031 |
for (JsonElement role : roles) { |
1032 | 1032 |
JsonObject object = role.getAsJsonObject(); |
1033 | 1033 |
if (object.get("CouId") == null) { |
Also available in: Unified diff
1. changed user roles defined in the project to authorities given by the aai.
2. created method returning user roles with desired status (active, deleted).