public class GroupProvider extends Object implements Serializable
| Constructor and Description |
|---|
GroupProvider() |
GroupProvider(Long id,
String identifier,
String name,
GroupProviderType type) |
GroupProvider(Long id,
String identifier,
String name,
String groupProviderType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowedOption(String key,
Object value)
Add a configuration option
|
void |
addGroupDecorator(ConversionRule groupIdDecorator)
Adds a single (outgoing) group id conversion rule
|
void |
addGroupFilter(ConversionRule groupIdFilter)
Adds single (incoming) group id conversion rule
|
void |
addPersonDecorator(ConversionRule personIdDecorator)
Adds single (outgoing) person id conversion rule
|
void |
addPersonFilter(ConversionRule personIdFilter)
Adds single (incoming) person id filter
|
void |
addServiceProviderGroupAcl(ServiceProviderGroupAcl serviceProviderGroupAcl) |
boolean |
equals(Object o) |
String |
getAllowedOptionAsString(String key)
Convenience method for allowed options
|
Map<String,Object> |
getAllowedOptions() |
List<ConversionRule> |
getGroupDecorators()
Gets (outgoing) conversion rules to convert an urn:collab:groups:nl.myuniversity:group1 into group1
|
List<ConversionRule> |
getGroupFilters()
Gets (incoming) conversion rules to convert group1 into urn:collab:groups:nl.myuniversity:group1
|
GroupProviderType |
getGroupProviderType() |
Long |
getId() |
String |
getIdentifier() |
String |
getLogoUrl() |
String |
getName() |
List<ConversionRule> |
getPersonDecorators()
Gets (outgoing) conversion rules to convert an urn:collab:person:nl.myuniversity:s123456 into s123456
|
List<ConversionRule> |
getPersonFilters()
Gets (incoming) conversion rules to convert s123456 into urn:collab:person:nl.myuniversity:s123456
|
List<ServiceProviderGroupAcl> |
getServiceProviderGroupAcls() |
String |
getUserIdPrecondition()
Regex pattern a user id must match in order to use this GroupProvider.
|
int |
hashCode() |
boolean |
isExternalGroupProvider() |
boolean |
isMeantForUser(String userId)
Checks if the user identifier matches the precondition for this group provider
|
void |
setAllowedOptions(Map<String,Object> allowedOptions)
Sets a Map
|
void |
setGroupDecorators(List<ConversionRule> groupDecorators)
Sets (outgoing) conversion rules to convert an urn:collab:groups:nl.myuniversity:group1 into group1
|
void |
setGroupFilters(List<ConversionRule> groupFilters)
Sets (incoming) conversion rules to convert group1 into urn:collab:groups:nl.myuniversity:group1
|
void |
setLogoUrl(String logoUrl) |
void |
setPersonDecorators(List<ConversionRule> personDecorators)
Sets (outgoing) conversion rules to convert an urn:collab:person:nl.myuniversity:s123456 into s123456
|
void |
setPersonFilters(List<ConversionRule> personFilters)
Sets (incoming) conversion rules to convert s123456 into urn:collab:person:nl.myuniversity:s123456
|
void |
setServiceProviderGroupAcls(List<ServiceProviderGroupAcl> serviceProviderGroupAcls) |
void |
setUserIdPrecondition(String userIdPrecondition) |
String |
toString() |
public GroupProvider()
public GroupProvider(Long id, String identifier, String name, String groupProviderType)
public GroupProvider(Long id, String identifier, String name, GroupProviderType type)
public Long getId()
public String getIdentifier()
public String getName()
public GroupProviderType getGroupProviderType()
GroupProviderType type of group providerpublic Map<String,Object> getAllowedOptions()
public void addAllowedOption(String key, Object value)
key - the keyvalue - the valuepublic void setAllowedOptions(Map<String,Object> allowedOptions)
allowedOptions - allowed options for a Group providerpublic String getAllowedOptionAsString(String key)
key - of the allowed optionpublic String getUserIdPrecondition()
nullpublic void setUserIdPrecondition(String userIdPrecondition)
userIdPrecondition - regex pattern the user id must match.public List<ConversionRule> getGroupDecorators()
ConversionRule'spublic void setGroupDecorators(List<ConversionRule> groupDecorators)
groupDecorators - List of ConversionRule'spublic void addGroupDecorator(ConversionRule groupIdDecorator)
groupIdDecorator - ConversionRulepublic List<ConversionRule> getGroupFilters()
ConversionRule'spublic void setGroupFilters(List<ConversionRule> groupFilters)
groupFilters - List of ConversionRule'spublic void addGroupFilter(ConversionRule groupIdFilter)
groupIdFilter - ConversionRulepublic List<ConversionRule> getPersonDecorators()
ConversionRule'spublic void setPersonDecorators(List<ConversionRule> personDecorators)
personDecorators - List of ConversionRule'spublic void addPersonDecorator(ConversionRule personIdDecorator)
personIdDecorator - ConversionRulepublic List<ConversionRule> getPersonFilters()
ConversionRule'spublic void setPersonFilters(List<ConversionRule> personFilters)
personFilters - List of ConversionRule'spublic void addPersonFilter(ConversionRule personIdFilter)
personIdFilter - ConversionRulepublic boolean isMeantForUser(String userId)
userId - urn for the userpublic String getLogoUrl()
public void setLogoUrl(String logoUrl)
public boolean isExternalGroupProvider()
public List<ServiceProviderGroupAcl> getServiceProviderGroupAcls()
public void setServiceProviderGroupAcls(List<ServiceProviderGroupAcl> serviceProviderGroupAcls)
serviceProviderGroupAcls - the serviceProviderGroupAcls to setpublic void addServiceProviderGroupAcl(ServiceProviderGroupAcl serviceProviderGroupAcl)
Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.