| Modifier and Type | Field and Description |
|---|---|
protected static org.joda.time.format.DateTimeFormatter |
XML_DATE_TIME_FORMAT |
| Constructor and Description |
|---|
SabClient() |
| Modifier and Type | Method and Description |
|---|---|
String |
createRequest(String userId,
String messageId)
Create request string from template
|
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) |
protected static final org.joda.time.format.DateTimeFormatter XML_DATE_TIME_FORMAT
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 String createRequest(String userId, String messageId)
userId - the userId to usemessageId - the messageId to usepublic void setTransport(SabTransport transport)
Copyright © 2012–2013 SURFnet bv, The Netherlands. All rights reserved.