|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.api.GroupProviderConfigurationImpl
@Component(value="groupProviderConfiguration") public class GroupProviderConfigurationImpl
The GroupProviderConfigurationImpl is thread-safe.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface nl.surfnet.coin.api.GroupProviderConfiguration |
|---|
GroupProviderConfiguration.Service |
| Field Summary |
|---|
| Fields inherited from interface nl.surfnet.coin.api.GroupProviderConfiguration |
|---|
INTERNAL_GROUP_PATTERN |
| Constructor Summary | |
|---|---|
GroupProviderConfigurationImpl()
|
|
| 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. |
void |
setBasicAuthGroupService(BasicAuthGroupService basicAuthGroupService)
|
void |
setGroupProviderService(GroupProviderService groupProviderService)
|
void |
setOauthGroupService(OauthGroupService oauthGroupService)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupProviderConfigurationImpl()
| Method Detail |
|---|
public boolean isInternalGroup(String groupId)
GroupProviderConfiguration
isInternalGroup in interface GroupProviderConfigurationgroupId - the group identifier
public List<GroupProvider> getAllowedGroupProviders(GroupProviderConfiguration.Service service,
String spEntityId,
List<GroupProvider> allGroupProviders)
GroupProviderConfigurationSecurityContextHolder.getContext().getAuthentication().getPrincipal()
context
getAllowedGroupProviders 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()
GroupProviderConfiguration
getAllGroupProviders in interface GroupProviderConfiguration
public boolean isCallAllowed(GroupProviderConfiguration.Service service,
String spEntityId,
GroupProvider groupProvider)
GroupProviderConfigurationServiceProviderGroupAcl for
the given GroupProviderConfiguration.Service and GroupProvider
isCallAllowed in interface GroupProviderConfigurationservice - the ACL to check forspEntityId - the entity of the Service providergroupProvider - the Group Provider
public GroupMembersEntry getGroupMembersEntry(GroupProvider groupProvider,
String onBehalfOf,
String groupId,
int limit,
int offset)
GroupProviderConfiguration
getGroupMembersEntry 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 paging
GroupMembersEntry, can be null
public 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 paging
Group20Entry, can be null
public Group20 getGroup20(GroupProvider groupProvider,
String userId,
String groupId)
GroupProviderConfiguration
getGroup20 in interface GroupProviderConfigurationgroupProvider - the GroupProvideruserId - the userIdgroupId - the groupId
public String cutOffUrnPartForGrouper(List<GroupProvider> groupProviders,
String groupId)
GroupProviderConfiguration
cutOffUrnPartForGrouper in interface GroupProviderConfigurationgroupProviders - all groupPrvidersgroupId - the long version with the urn part of the Group
public Group20Entry addUrnPartForGrouper(List<GroupProvider> groupProviders,
Group20Entry group20Entry)
GroupProviderConfiguration
addUrnPartForGrouper in interface GroupProviderConfigurationgroupProviders - all groupProvidergroup20Entry - the group20Entry with Grouper id's
public 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||