public final class RegexGatewayPersonAttributeDao extends AbstractDefaultAttributePersonAttributeDao
patterns Map. Multiple seed attributes
can be tested by specifying the attribute name as the key of the patterns Map
and the regular expression pattern as the value.
| Property | Description | Required | Default |
|---|---|---|---|
| patterns |
A Map of String attribute names to String regular
expression patterns.
|
Yes | null |
| targetPersonAttributeDao |
A the IPersonAttributeDao to delegate the call to if the pattern matching
criteria is met.
|
Yes | null |
| matchAllPatterns |
If true all patterns in the patterns map must past the value mapping
criteria for the targetPersonAttributeDao to be delegated to. If false
only one of the patterns needs to pass the value mapping criteria.
|
No | false |
| matchAllValues | If true all values for the attribute being tested must match the pattern testing it for the criteria to be met. If false only one of the values needs to match the pattern for the criteria to be met. | No | false |
loggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
RegexGatewayPersonAttributeDao()
Default constructor,
setPatterns(Map) and setTargetPersonAttributeDao(IPersonAttributeDao)
will need to be called if this is used. |
RegexGatewayPersonAttributeDao(String attributeName,
String pattern,
IPersonAttributeDao enclosed)
Creates a RegexGatewayPersonAttributeDao that will test a single attribute.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAvailableQueryAttributes() |
Map<String,String> |
getPatterns() |
Set<IPersonAttributes> |
getPeopleWithMultivaluedAttributes(Map<String,List<Object>> seed) |
Set<String> |
getPossibleUserAttributeNames() |
IPersonAttributeDao |
getTargetPersonAttributeDao() |
boolean |
isMatchAllPatterns() |
boolean |
isMatchAllValues() |
void |
setMatchAllPatterns(boolean matchAllPatterns) |
void |
setMatchAllValues(boolean matchAllValues) |
void |
setPatterns(Map<String,String> patterns) |
void |
setTargetPersonAttributeDao(IPersonAttributeDao targetPersonAttributeDao) |
getPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedflattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributespublic RegexGatewayPersonAttributeDao()
setPatterns(Map) and setTargetPersonAttributeDao(IPersonAttributeDao)
will need to be called if this is used.public RegexGatewayPersonAttributeDao(String attributeName, String pattern, IPersonAttributeDao enclosed)
AbstractDefaultAttributePersonAttributeDao.getUsernameAttributeProvider().attributeName - The attribute to test, is also set as the defaultAttributeName.pattern - The pattern to test the specified attribute with.enclosed - The IPersonAttributeDao to delegate to if the pattern matches.public void setPatterns(Map<String,String> patterns)
patterns - the patterns to setpublic IPersonAttributeDao getTargetPersonAttributeDao()
public void setTargetPersonAttributeDao(IPersonAttributeDao targetPersonAttributeDao)
targetPersonAttributeDao - the targetPersonAttributeDao to setpublic boolean isMatchAllPatterns()
public void setMatchAllPatterns(boolean matchAllPatterns)
matchAllPatterns - the matchAllPatterns to setpublic boolean isMatchAllValues()
public void setMatchAllValues(boolean matchAllValues)
matchAllValues - the matchAllValues to setpublic Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> seed)
Copyright © 2015 Jasig. All Rights Reserved.