| Constructor and Description |
|---|
SabClientMock() |
| Modifier and Type | Method and Description |
|---|---|
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
|
void |
setTransport(SabTransport transport) |
public boolean hasRoleForOrganisation(String userId, String role, String organisation)
SabhasRoleForOrganisation in interface Sabpublic SabRoleHolder getRoles(String userId) throws IOException
SabgetRoles in interface SabuserId - the userId to query forIOException - when IO fails or an error occurs (for example authentication failure)public void setTransport(SabTransport transport)
Copyright © 2012–2013 SURFnet bv, The Netherlands. All rights reserved.