public class JsonBackedComplexStubPersonAttributeDao extends ComplexStubPersonAttributeDao
ComplexStubPersonAttributeDao that reads the configuration for its backingMap
property from an external JSON configuration resource.
Sample JSON file:
{
"u1":{
"firstName":["Json1"],
"lastName":["One"],
"additionalAttribute":["here I AM!!!"],
"additionalAttribute2":["attr2"],
"eduPersonAffiliation":["alumni", "staff"]
},
"u2":{
"firstName":["Json2"],
"lastName":["Two"],
"eduPersonAffiliation":["employee", "student"]
},
"u3":{
"firstName":["Json3"],
"lastName":["Three"],
"eduPersonAffiliation":["alumni", "student", "employee", "some other attr"]
}
}
DEFAULT_CASE_CANONICALIZATION_MODE, DEFAULT_USERNAME_CASE_CANONICALIZATION_MODEloggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
JsonBackedComplexStubPersonAttributeDao(org.springframework.core.io.Resource personAttributesConfigFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Init method un-marshals JSON representation of the person attributes.
|
appendAttributeToQuery, getAvailableQueryAttributes, getBackingMap, getPeopleForQuery, getPossibleUserAttributeNames, getQueryAttributeName, setBackingMap, setQueryAttributeNameappendCanonicalizedAttributeToQuery, canonicalizeAttribute, generateQuery, getCaseCanonicalizationLocale, getCaseInsensitiveQueryAttributes, getCaseInsensitiveResultAttributes, getConfiguredUserNameAttribute, getDefaultCaseCanonicalizationMode, getPeopleWithMultivaluedAttributes, getQueryAttributeMapping, getResultAttributeMapping, getUnmappedUsernameAttribute, getUsernameCaseCanonicalizationMode, isRequireAllQueryAttributes, isUseAllQueryAttributes, isUserNameAttributeConfigured, mapPersonAttributes, setCaseCanonicalizationLocale, setCaseInsensitiveQueryAttributes, setCaseInsensitiveQueryAttributesAsCollection, setCaseInsensitiveResultAttributes, setCaseInsensitiveResultAttributesAsCollection, setDefaultCaseCanonicalizationMode, setQueryAttributeMapping, setRequireAllQueryAttributes, setResultAttributeMapping, setUnmappedUsernameAttribute, setUseAllQueryAttributes, setUsernameCaseCanonicalizationModegetPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedflattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributespublic JsonBackedComplexStubPersonAttributeDao(org.springframework.core.io.Resource personAttributesConfigFile)
public void init()
throws IOException
IOException - invalid config file URICopyright © 2015 Jasig. All Rights Reserved.