public interface GroupProviderConfiguration
| Modifier and Type | Interface and Description |
|---|---|
static class |
GroupProviderConfiguration.Service |
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
INTERNAL_GROUP_PATTERN |
| Modifier and Type | Method and Description |
|---|---|
Group20Entry |
addUrnPartForGrouper(List<GroupProvider> groupProviders,
Group20Entry group20Entry)
Add to all the groups the conext urn part for grouper
|
String |
cutOffUrnPartForGrouper(List<GroupProvider> groupProviders,
String groupId)
Strip the urn part off the groupId
|
List<GroupProvider> |
getAllGroupProviders()
Get all group providers
|
List<GroupProvider> |
getAllowedGroupProviders(GroupProviderConfiguration.Service service,
String spEntityId,
List<GroupProvider> allGroupProviders)
Get all GroupProviders that have the correct ACL configured based on the
Service.
|
Group20 |
getGroup20(GroupProvider groupProvider,
String userId,
String groupId)
Get a single group
|
Group20Entry |
getGroup20Entry(GroupProvider groupProvider,
String userId,
int limit,
int offset) |
GroupMembersEntry |
getGroupMembersEntry(GroupProvider groupProvider,
String onBehalfOf,
String groupId,
int limit,
int offset)
Gets group members with paginating information for the user's oauth
configuration
|
boolean |
isCallAllowed(GroupProviderConfiguration.Service service,
String spEntityId,
GroupProvider groupProvider)
Is the call allowed? e.g.
|
boolean |
isInternalGroup(String groupId)
Verify if the given groupId is from an internal e.g.
|
static final Pattern INTERNAL_GROUP_PATTERN
boolean isInternalGroup(String groupId)
groupId - the group identifierList<GroupProvider> getAllowedGroupProviders(GroupProviderConfiguration.Service service, String spEntityId, List<GroupProvider> allGroupProviders)
SecurityContextHolder.getContext().getAuthentication().getPrincipal()
contextservice - the ACL to check forspEntityId - the entity of the Service providerallGroupProviders - all of the Group ProvidersList<GroupProvider> getAllGroupProviders()
boolean isCallAllowed(GroupProviderConfiguration.Service service, String spEntityId, GroupProvider groupProvider)
ServiceProviderGroupAcl for
the given GroupProviderConfiguration.Service and GroupProviderservice - the ACL to check forspEntityId - the entity of the Service providergroupProvider - the Group ProviderGroupMembersEntry getGroupMembersEntry(GroupProvider groupProvider, String onBehalfOf, String groupId, int limit, int offset)
groupProvider - GroupProvider for the settingsgroupId - the groupId as we know it in SURFconext context (e.g.
urn:collab:group:myuniversity.nl:testgroup)limit - maximum number of itemsoffset - starting point for pagingGroupMembersEntry, can be nullGroup20Entry getGroup20Entry(GroupProvider groupProvider, String userId, int limit, int offset)
groupProvider - GroupProvider for the settingsuserId - the userId as we know it in SURFconext context (e.g.
urn:collab:person:myuniversity.nl:testuser)limit - maximum number of itemsoffset - starting point for pagingGroup20Entry, can be nullString cutOffUrnPartForGrouper(List<GroupProvider> groupProviders, String groupId)
groupProviders - all groupPrvidersgroupId - the long version with the urn part of the GroupGroup20 getGroup20(GroupProvider groupProvider, String userId, String groupId)
groupProvider - the GroupProvideruserId - the userIdgroupId - the groupIdGroup20Entry addUrnPartForGrouper(List<GroupProvider> groupProviders, Group20Entry group20Entry)
groupProviders - all groupProvidergroup20Entry - the group20Entry with Grouper id'sCopyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.