public interface Sab
| Modifier and Type | Method and Description |
|---|---|
Collection<SabPerson> |
getPersonsInRoleForOrganization(String organisationAbbreviation,
String role)
Get all persons within the given organisation that have the given role.
|
SabRoleHolder |
getRoles(String userId)
Get the Role/organisation info for the given userId
|
boolean |
hasRoleForOrganisation(String userId,
String role,
String organisation)
Returns whether the given user has the given role for the given organisation
|
boolean hasRoleForOrganisation(String userId, String role, String organisation)
userId - role - organisation - SabRoleHolder getRoles(String userId) throws IOException
userId - the userId to query forIOException - when IO fails or an error occurs (for example authentication failure)Collection<SabPerson> getPersonsInRoleForOrganization(String organisationAbbreviation, String role)
organisationAbbreviation - role - Copyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.