|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GroupProviderConfiguration
Compound strategy to encapsulate all complexity regarding GroupProviders. It is very important that first all GroupProviders are selected and used in subsequent method calls (the signature of the methods demands this also), because we are caching the call getAllGroupProviders.
| Nested Class Summary | |
|---|---|
static class |
GroupProviderConfiguration.Service
|
| Field Summary | |
|---|---|
static Pattern |
INTERNAL_GROUP_PATTERN
|
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final Pattern INTERNAL_GROUP_PATTERN
| Method Detail |
|---|
boolean isInternalGroup(String groupId)
groupId - the group identifier
List<GroupProvider> getAllowedGroupProviders(GroupProviderConfiguration.Service service,
String spEntityId,
List<GroupProvider> allGroupProviders)
SecurityContextHolder.getContext().getAuthentication().getPrincipal()
context
service - the ACL to check forspEntityId - the entity of the Service providerallGroupProviders - all of the Group Providers
List<GroupProvider> getAllGroupProviders()
boolean isCallAllowed(GroupProviderConfiguration.Service service,
String spEntityId,
GroupProvider groupProvider)
ServiceProviderGroupAcl for
the given GroupProviderConfiguration.Service and GroupProvider
service - the ACL to check forspEntityId - the entity of the Service providerthe - Group Provider
GroupMembersEntry 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 paging
GroupMembersEntry, can be null
Group20Entry 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 paging
Group20Entry, can be null
String cutOffUrnPartForGrouper(List<GroupProvider> groupProviders,
String groupId)
groupProviders - all groupPrvidersgroupId - the long version with the urn part of the Group
Group20 getGroup20(GroupProvider groupProvider,
String userId,
String groupId)
groupProvider - the GroupProvideruserId - the userIdgroupId - the groupId
Group20Entry addUrnPartForGrouper(List<GroupProvider> groupProviders,
Group20Entry group20Entry)
groupProviders - all groupProvidergroup20Entry - the group20Entry with Grouper id's
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||