Skip to content

Commit adbeb91

Browse files
authored
Merge pull request #2307 from zlamalp/rpcdocs
RPC: Extended javadoc for getUser/GroupRoles() methods
2 parents f653412 + 15e781b commit adbeb91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

perun-rpc/src/main/java/cz/metacentrum/perun/rpc/methods/AuthzResolverMethod.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public List<String> call(ApiCaller ac, Deserializer parms ) throws PerunExceptio
4343
/*#
4444
* Returns all roles as an AuthzRoles object for a given user.
4545
*
46-
* @param userId Id of a user
46+
* @param userId int Id of a user
4747
* @return AuthzRoles Object which contains all roles with perunbeans
48+
* @exampleResponse {"FACILITYADMIN":{"Facility":[32]},"SELF":{"Member":[4353,12324],"User":[2552,2252]},"SPONSOR":{"SponsoredUser":[54750]},"VOADMIN":{"Vo":[356]},"PERUNADMIN":{}}
4849
*/
4950
getUserRoles {
5051
@Override
@@ -67,8 +68,9 @@ public List<String> call(ApiCaller ac, Deserializer parms ) throws PerunExceptio
6768
/*#
6869
* Returns all roles as an AuthzRoles object for a given group.
6970
*
70-
* @param groupId Id of a group
71+
* @param groupId int Id of a group
7172
* @return AuthzRoles Object which contains all roles with perunbeans
73+
* @exampleResponse {"FACILITYADMIN":{"Facility":[3682,3826]},"GROUPADMIN":{"Group":[9082,12093],"Vo":[3794,201]},"VOADMIN":{"Vo":[2561,1541,2061,1041,3601]}}
7274
*/
7375
getGroupRoles {
7476
@Override

0 commit comments

Comments
 (0)