Class BasePersonAttributeDao
- 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:
AbstractFlatteningPersonAttributeDao,StubPersonAttributeDao
PersonAttributeDao that provides implementations of the deprecated methods.- 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 TypeMethodDescriptionintcompareTo(org.apereo.cas.authentication.principal.attribute.PersonAttributeDao o) booleanString[]getId()intgetOrder()getTags()inthashCode()booleanparseAttributeToAttributeMapping(Map<String, ?> mapping) Translate from a more flexible Attribute to Attribute mapping format to a Map from String to Set of Strings.Put tag into this DAO and override/remove existing tags by name.voidsetEnabled(boolean enabled) voidvoidsetOrder(int order) voidtoString()Methods inherited from interface org.apereo.cas.authentication.principal.attribute.PersonAttributeDao
getAvailableQueryAttributes, getPeople, getPeople, getPeople, getPeople, getPeopleWithMultivaluedAttributes, getPeopleWithMultivaluedAttributes, getPeopleWithMultivaluedAttributes, getPeopleWithMultivaluedAttributes, getPerson, getPerson, getPerson, getPossibleUserAttributeNames, stuffAttributesIntoList
-
Constructor Details
-
BasePersonAttributeDao
public BasePersonAttributeDao()
-
-
Method Details
-
compareTo
public int compareTo(org.apereo.cas.authentication.principal.attribute.PersonAttributeDao o) - Specified by:
compareToin interfaceComparable<org.apereo.cas.authentication.principal.attribute.PersonAttributeDao>
-
setId
-
putTag
Put tag into this DAO and override/remove existing tags by name.- Parameters:
name- the namevalue- the value- Returns:
- the base person attribute dao
-
parseAttributeToAttributeMapping
Translate from a more flexible Attribute to Attribute mapping format to a Map from String to Set of Strings.The point of the map is to map from attribute names in the underlying data store (e.g., JDBC column names, LDAP attribute names) to uPortal attribute names. Any given underlying data store attribute might map to zero uPortal attributes (not appear in the map at all), map to exactly one uPortal attribute (appear in the Map as a mapping from a String to a String or as a mapping from a String to a Set containing just one String), or map to several uPortal attribute names (appear in the Map as a mapping from a String to a Set of Strings).
This method takes as its argument a
Mapthat must have keys of typeStringand values of typeStringorSetofStrings. The argument must not be null and must have no null keys. It must contain no keys other than Strings and no values other than Strings or Sets of Strings. This method will convert any non-string values to a String using the object's toString() method.This method returns a Map equivalent to its argument except wherever there was a String value in the Map there will instead be an immutable Set containing the String value. That is, the return value is normalized to be a Map from String to Set (of String).
- Parameters:
mapping-Mapfrom String names of attributes in the underlying store to attribute names or Sets of such names.- Returns:
- a Map from String to Set of Strings
-
toString
-
equals
-
hashCode
public int hashCode() -
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributeDao
-
setOrder
public void setOrder(int order) -
getId
- Specified by:
getIdin interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributeDao
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributeDao
-
setEnabled
public void setEnabled(boolean enabled) -
getTags
- Specified by:
getTagsin interfaceorg.apereo.cas.authentication.principal.attribute.PersonAttributeDao
-
setTags
-