Package org.apereo.cas.persondir
Class GrouperPersonAttributeDao
java.lang.Object
org.apereo.cas.authentication.attribute.BasePersonAttributeDao
org.apereo.cas.persondir.GrouperPersonAttributeDao
- All Implemented Interfaces:
Comparable<org.apereo.cas.authentication.principal.attribute.PersonAttributeDao>,org.apereo.cas.authentication.principal.attribute.PersonAttributeDao,org.springframework.core.Ordered
public class GrouperPersonAttributeDao
extends org.apereo.cas.authentication.attribute.BasePersonAttributeDao
Class implementing a minimal
This implementation uses Grouper's grouperClient library to query Grouper's back-end repository.
PersonAttributeDao API only used by CAS which simply reads all
the groups from Grouper repository
for a given principal and adopts them to PersonAttributes instance.
All other unimplemented methods throw UnsupportedOperationException
This implementation uses Grouper's grouperClient library to query Grouper's back-end repository.
Note: All the Grouper server connection configuration for grouperClient is defined in grouper.client.properties file and must be available in client application's (CAS web application) classpath.
- Since:
- 7.1.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields 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.persondir.GrouperPersonAttributeDao.GroupAttributeValueTypeSet<org.apereo.cas.authentication.principal.attribute.PersonAttributes> getPeople(Map<String, Object> query, org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter, Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> resultPeople) 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) org.apereo.cas.authentication.principal.attribute.PersonAttributesgetPerson(String subjectId, Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> resultPeople, org.apereo.cas.authentication.principal.attribute.PersonAttributeDaoFilter filter) org.apereo.cas.authentication.principal.attribute.UsernameAttributeProvidervoidsetGroupAttributeValueType(org.apereo.cas.persondir.GrouperPersonAttributeDao.GroupAttributeValueType groupAttributeValueType) voidsetParameters(Map<String, String> parameters) voidvoidsetUsernameAttributeProvider(org.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider usernameAttributeProvider) Methods inherited from class org.apereo.cas.authentication.attribute.BasePersonAttributeDao
compareTo, equals, getId, getOrder, getTags, hashCode, isEnabled, parseAttributeToAttributeMapping, putTag, setEnabled, setId, setOrder, setTags, toStringMethods inherited from interface org.apereo.cas.authentication.principal.attribute.PersonAttributeDao
getAvailableQueryAttributes, getPeople, getPeople, getPeople, getPeopleWithMultivaluedAttributes, getPeopleWithMultivaluedAttributes, getPeopleWithMultivaluedAttributes, getPerson, getPerson, getPossibleUserAttributeNames
-
Field Details
-
DEFAULT_GROUPER_ATTRIBUTES_KEY
Default group attribute.- See Also:
-
-
Constructor Details
-
GrouperPersonAttributeDao
public GrouperPersonAttributeDao()
-
-
Method Details
-
getPerson
-
getPeople
-
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) -
getUsernameAttributeProvider
public org.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider getUsernameAttributeProvider() -
getParameters
-
getSubjectType
-
getGroupAttributeValueType
public org.apereo.cas.persondir.GrouperPersonAttributeDao.GroupAttributeValueType getGroupAttributeValueType() -
setUsernameAttributeProvider
public void setUsernameAttributeProvider(org.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider usernameAttributeProvider) -
setParameters
-
setSubjectType
-
setGroupAttributeValueType
public void setGroupAttributeValueType(org.apereo.cas.persondir.GrouperPersonAttributeDao.GroupAttributeValueType groupAttributeValueType)
-