Class AbstractAggregatingDefaultQueryPersonAttributeDao
java.lang.Object
org.apereo.cas.authentication.attribute.BasePersonAttributeDao
org.apereo.cas.authentication.attribute.AbstractFlatteningPersonAttributeDao
org.apereo.cas.authentication.attribute.AbstractDefaultAttributePersonAttributeDao
org.apereo.cas.authentication.attribute.AbstractAggregatingDefaultQueryPersonAttributeDao
- All Implemented Interfaces:
Comparable<org.apereo.cas.authentication.principal.attribute.PersonAttributeDao>,org.apereo.cas.authentication.principal.attribute.PersonAttributeDao,org.springframework.core.Ordered
- Direct Known Subclasses:
MergingPersonAttributeDaoImpl
public abstract class AbstractAggregatingDefaultQueryPersonAttributeDao
extends AbstractDefaultAttributePersonAttributeDao
Provides a base set of implementations and properties for
PersonAttributeDao
implementations that aggregate results from a sub List of PersonAttributeDao.- Since:
- 7.1.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.apereo.cas.authentication.principal.attribute.PersonAttributeDao
WILDCARD, WILDCARD_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apereo.cas.authentication.principal.merger.AttributeMergerStrategy for merging together the results from successive PersonAttributeDaos.getAvailableQueryAttributes(org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter) Merges the results of callingPersonAttributeDao.getAvailableQueryAttributes(PersonAttributeDaoFilter)on each child dao using the configuredAttributeMerger.mergeAvailableQueryAttributes(Set, Set).String[]getId()Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> getPeopleWithMultivaluedAttributes(Map<String, List<Object>> query, org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter, Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> resultPeople) List<org.apereo.cas.authentication.principal.attribute.PersonAttributeDao> A List of childPersonAttributeDaoinstances which we will poll in order.getPossibleUserAttributeNames(org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter) Merges the results of callingPersonAttributeDao.getPossibleUserAttributeNames(PersonAttributeDaoFilter)on each child dao using the configuredAttributeMerger.mergePossibleUserAttributeNames(Set, Set).booleanTrue if we should catch, logger, and ignore Throwables propogated by individual DAOs.booleanForce all provided person attribute DAOs to produce results, and otherwise, halt execution if any of them cannot resolve the principal and return null.booleanThe Stop on success.voidsetAttributeMerger(org.apereo.cas.authentication.principal.merger.AttributeMerger attributeMerger) Strategy for merging together the results from successive PersonAttributeDaos.voidsetPersonAttributeDaos(List<org.apereo.cas.authentication.principal.attribute.PersonAttributeDao> personAttributeDaos) A List of childPersonAttributeDaoinstances which we will poll in order.voidsetRecoverExceptions(boolean recoverExceptions) True if we should catch, logger, and ignore Throwables propogated by individual DAOs.voidsetRequireAll(boolean requireAll) Force all provided person attribute DAOs to produce results, and otherwise, halt execution if any of them cannot resolve the principal and return null.voidsetStopOnSuccess(boolean stopOnSuccess) The Stop on success.Methods inherited from class org.apereo.cas.authentication.attribute.AbstractDefaultAttributePersonAttributeDao
getPerson, getUsernameAttributeProvider, setUsernameAttributeProviderMethods inherited from class org.apereo.cas.authentication.attribute.AbstractFlatteningPersonAttributeDao
getPeopleMethods inherited from class org.apereo.cas.authentication.attribute.BasePersonAttributeDao
compareTo, equals, getOrder, getTags, hashCode, isEnabled, parseAttributeToAttributeMapping, putTag, setEnabled, setId, setOrder, setTags, toStringMethods inherited from interface org.apereo.cas.authentication.principal.attribute.PersonAttributeDao
getPeople, getPeople, getPeople, getPeopleWithMultivaluedAttributes, getPeopleWithMultivaluedAttributes, getPeopleWithMultivaluedAttributes, getPerson, getPerson, stuffAttributesIntoList
-
Constructor Details
-
AbstractAggregatingDefaultQueryPersonAttributeDao
public AbstractAggregatingDefaultQueryPersonAttributeDao()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributeDao- Overrides:
getIdin classBasePersonAttributeDao
-
getPeopleWithMultivaluedAttributes
public Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> getPeopleWithMultivaluedAttributes(Map<String, List<Object>> query, org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter, Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> resultPeople) -
getPossibleUserAttributeNames
public final Set<String> getPossibleUserAttributeNames(org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter) Merges the results of callingPersonAttributeDao.getPossibleUserAttributeNames(PersonAttributeDaoFilter)on each child dao using the configuredAttributeMerger.mergePossibleUserAttributeNames(Set, Set). If all children return null this method returns null as well. If any child does not return null this method will not return null.- See Also:
-
getAvailableQueryAttributes
public Set<String> getAvailableQueryAttributes(org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter) Merges the results of callingPersonAttributeDao.getAvailableQueryAttributes(PersonAttributeDaoFilter)on each child dao using the configuredAttributeMerger.mergeAvailableQueryAttributes(Set, Set). If all children return null this method returns null as well. If any child does not return null this method will not return null.- See Also:
-
getPersonAttributeDaos
public List<org.apereo.cas.authentication.principal.attribute.PersonAttributeDao> getPersonAttributeDaos()A List of childPersonAttributeDaoinstances which we will poll in order. -
getAttributeMerger
public org.apereo.cas.authentication.principal.merger.AttributeMerger getAttributeMerger()Strategy for merging together the results from successive PersonAttributeDaos. -
isRecoverExceptions
public boolean isRecoverExceptions()True if we should catch, logger, and ignore Throwables propogated by individual DAOs. -
isStopOnSuccess
public boolean isStopOnSuccess()The Stop on success. -
isRequireAll
public boolean isRequireAll()Force all provided person attribute DAOs to produce results, and otherwise, halt execution if any of them cannot resolve the principal and return null. -
setPersonAttributeDaos
public void setPersonAttributeDaos(List<org.apereo.cas.authentication.principal.attribute.PersonAttributeDao> personAttributeDaos) A List of childPersonAttributeDaoinstances which we will poll in order. -
setAttributeMerger
public void setAttributeMerger(org.apereo.cas.authentication.principal.merger.AttributeMerger attributeMerger) Strategy for merging together the results from successive PersonAttributeDaos. -
setRecoverExceptions
public void setRecoverExceptions(boolean recoverExceptions) True if we should catch, logger, and ignore Throwables propogated by individual DAOs. -
setStopOnSuccess
public void setStopOnSuccess(boolean stopOnSuccess) The Stop on success. -
setRequireAll
public void setRequireAll(boolean requireAll) Force all provided person attribute DAOs to produce results, and otherwise, halt execution if any of them cannot resolve the principal and return null.
-