| Modifier and Type | Field and Description |
|---|---|
protected static org.joda.time.format.DateTimeFormatter |
XML_DATE_TIME_FORMAT |
| Constructor and Description |
|---|
SabClient(SabTransport sabTransport) |
| Modifier and Type | Method and Description |
|---|---|
String |
createRequest(String userId,
String messageId)
Create request string from template
|
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
|
protected static final org.joda.time.format.DateTimeFormatter XML_DATE_TIME_FORMAT
@Autowired public SabClient(SabTransport sabTransport)
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 Collection<SabPerson> getPersonsInRoleForOrganization(String organisationAbbreviation, String role)
SabgetPersonsInRoleForOrganization in interface SabCopyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.