Project

General

Profile

« Previous | Next » 

Revision 61371

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).

View differences:

AaiRegistryService.java
90 90
    JsonArray getRoles(Integer coPersonId);
91 91

  
92 92
    /**
93
     * 5.2 Get User non admin active roles
94
     *
95
     * @param coPersonId
96
     * @return
97
     */
98
    JsonArray getRolesWithStatus(Integer coPersonId, RoleStatus status);
99

  
100
    /**
93 101
     * 6. Get Role id of User base on couId.
94 102
     *
95 103
     * @param coPersonId
......
251 259

  
252 260
    // TODO: add description
253 261
    List<User> getUsers(Integer couId);
262

  
263
    enum RoleStatus {
264
        ACTIVE("Active"),
265
        DELETED("Deleted");
266

  
267
        public final String status;
268

  
269
        RoleStatus(String status) {
270
            this.status = status;
271
        }
272
    }
254 273
}

Also available in: Unified diff