@Component(value="groupProviderConfiguration") public class GroupProviderConfigurationImpl extends Object implements GroupProviderConfiguration
GroupProviderConfiguration.ServiceINTERNAL_GROUP_PATTERN| Constructor and Description |
|---|
GroupProviderConfigurationImpl() |
| 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.
|
void |
setBasicAuthGroupService(BasicAuthGroupService basicAuthGroupService) |
void |
setGroupProviderService(GroupProviderService groupProviderService) |
void |
setOauthGroupService(OauthGroupService oauthGroupService) |
public boolean isInternalGroup(String groupId)
GroupProviderConfigurationisInternalGroup in interface GroupProviderConfigurationgroupId - the group identifierpublic List<GroupProvider> getAllowedGroupProviders(GroupProviderConfiguration.Service service, String spEntityId, List<GroupProvider> allGroupProviders)
GroupProviderConfigurationSecurityContextHolder.getContext().getAuthentication().getPrincipal()
contextgetAllowedGroupProviders in interface GroupProviderConfigurationservice - the ACL to check forspEntityId - the entity of the Service providerallGroupProviders - all of the Group Providers@Cacheable(value="group-providers",
key="methodName")
public List<GroupProvider> getAllGroupProviders()
GroupProviderConfigurationgetAllGroupProviders in interface GroupProviderConfigurationpublic boolean isCallAllowed(GroupProviderConfiguration.Service service, String spEntityId, GroupProvider groupProvider)
GroupProviderConfigurationServiceProviderGroupAcl for
the given GroupProviderConfiguration.Service and GroupProviderisCallAllowed in interface GroupProviderConfigurationservice - the ACL to check forspEntityId - the entity of the Service providerpublic GroupMembersEntry getGroupMembersEntry(GroupProvider groupProvider, String onBehalfOf, String groupId, int limit, int offset)
GroupProviderConfigurationgetGroupMembersEntry in interface GroupProviderConfigurationgroupProvider - 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 nullpublic Group20Entry getGroup20Entry(GroupProvider groupProvider, String userId, int limit, int offset)
getGroup20Entry in interface GroupProviderConfigurationgroupProvider - 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 nullpublic Group20 getGroup20(GroupProvider groupProvider, String userId, String groupId)
GroupProviderConfigurationgetGroup20 in interface GroupProviderConfigurationgroupProvider - the GroupProvideruserId - the userIdgroupId - the groupIdpublic String cutOffUrnPartForGrouper(List<GroupProvider> groupProviders, String groupId)
GroupProviderConfigurationcutOffUrnPartForGrouper in interface GroupProviderConfigurationgroupProviders - all groupPrvidersgroupId - the long version with the urn part of the Grouppublic Group20Entry addUrnPartForGrouper(List<GroupProvider> groupProviders, Group20Entry group20Entry)
GroupProviderConfigurationaddUrnPartForGrouper in interface GroupProviderConfigurationgroupProviders - all groupProvidergroup20Entry - the group20Entry with Grouper id'spublic void setGroupProviderService(GroupProviderService groupProviderService)
groupProviderService - the groupProviderService to setpublic void setOauthGroupService(OauthGroupService oauthGroupService)
oauthGroupService - the oauthGroupService to setpublic void setBasicAuthGroupService(BasicAuthGroupService basicAuthGroupService)
basicAuthGroupService - the basicAuthGroupService to setCopyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.