public class Voot2Provider extends AbstractProvider
Provider.Configuration| Modifier and Type | Field and Description |
|---|---|
protected String |
allMembershipsUrlTemplate |
protected String |
specificMembershipTemplate |
configuration, groupIdPrefix, objectMapper, restTemplate| Constructor and Description |
|---|
Voot2Provider(Provider.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
List<Group> |
getAllGroups()
All groups
|
Optional<Group> |
getGroupMembership(String uid,
String groupId) |
List<Group> |
getGroupMemberships(String uid) |
List<Member> |
getMembers(String groupId)
Get all members of a group
|
protected List<Group> |
parseGroups(String response) |
protected Optional<Group> |
parseSingleGroup(String response) |
boolean |
shouldBeQueriedForMemberships(String schacHomeOrganization)
Tells us if it is worthwhile calling this client when returning all groups for an user
|
isExternalGroupProvider, parseJson, shouldBeQueriedForGroup, shouldBeQueriedForMembers, toStringprotected String allMembershipsUrlTemplate
protected String specificMembershipTemplate
public Voot2Provider(Provider.Configuration configuration)
public boolean shouldBeQueriedForMemberships(String schacHomeOrganization)
ProviderschacHomeOrganization - the end-user's schacHomeOrgpublic List<Group> getGroupMemberships(String uid)
uid - the fully qualified uidpublic List<Group> getAllGroups()
Providerpublic Optional<Group> getGroupMembership(String uid, String groupId)
uid - the fully qualified uidgroupId - the fully qualified uid groupIdpublic List<Member> getMembers(String groupId)
ProvidergroupId - the fully qualified uid groupIdCopyright © 2016 Pivotal Software, Inc.. All rights reserved.