added method documentation

This commit is contained in:
Konstantinos Spyrou 2021-07-13 15:30:54 +00:00
parent aaecacd58b
commit b8c1e18d27
1 changed files with 11 additions and 1 deletions

View File

@ -51,9 +51,19 @@ public interface AuthorizationService {
boolean removeAdmin(String id, String email) throws ResourceNotFoundException; boolean removeAdmin(String id, String email) throws ResourceNotFoundException;
/**
* Returns the roles of the authenticated user.
*
* @return
*/
Collection<String> getUserRoles(); Collection<String> getUserRoles();
/**
* Returns the roles of the user with the given email.
*
* @param email
* @return
*/
Collection<String> getUserRoles(String email); Collection<String> getUserRoles(String email);
} }