Class DefaultAttributeDefinitionStore
- java.lang.Object
-
- org.apereo.cas.authentication.attribute.DefaultAttributeDefinitionStore
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apereo.cas.authentication.attribute.AttributeDefinitionStore,org.springframework.beans.factory.DisposableBean
public class DefaultAttributeDefinitionStore extends java.lang.Object implements org.apereo.cas.authentication.attribute.AttributeDefinitionStore, org.springframework.beans.factory.DisposableBean, java.lang.AutoCloseableThis isDefaultAttributeDefinitionStore.- Since:
- 6.2.0
-
-
Constructor Summary
Constructors Constructor Description DefaultAttributeDefinitionStore(org.apereo.cas.authentication.attribute.AttributeDefinition... defns)DefaultAttributeDefinitionStore(org.springframework.core.io.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddestroy()java.util.Collection<org.apereo.cas.authentication.attribute.AttributeDefinition>getAttributeDefinitions()booleanisEmpty()java.util.Optional<org.apereo.cas.authentication.attribute.AttributeDefinition>locateAttributeDefinition(java.lang.String key)<T extends org.apereo.cas.authentication.attribute.AttributeDefinition>
java.util.Optional<T>locateAttributeDefinition(java.lang.String key, java.lang.Class<T> clazz)<T extends org.apereo.cas.authentication.attribute.AttributeDefinition>
java.util.Optional<T>locateAttributeDefinition(java.util.function.Predicate<org.apereo.cas.authentication.attribute.AttributeDefinition> predicate)org.apereo.cas.authentication.attribute.AttributeDefinitionStoreregisterAttributeDefinition(java.lang.String key, org.apereo.cas.authentication.attribute.AttributeDefinition defn)org.apereo.cas.authentication.attribute.AttributeDefinitionStoreregisterAttributeDefinition(org.apereo.cas.authentication.attribute.AttributeDefinition defn)org.apereo.cas.authentication.attribute.AttributeDefinitionStoreremoveAttributeDefinition(java.lang.String key)java.util.Optional<org.apache.commons.lang3.tuple.Pair<org.apereo.cas.authentication.attribute.AttributeDefinition,java.util.List<java.lang.Object>>>resolveAttributeValues(java.lang.String key, java.util.List<java.lang.Object> attributeValues, org.apereo.cas.services.RegisteredService registeredService, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)org.apereo.cas.authentication.attribute.AttributeDefinitionStorestore(org.springframework.core.io.Resource resource)
-
-
-
Constructor Detail
-
DefaultAttributeDefinitionStore
public DefaultAttributeDefinitionStore(org.springframework.core.io.Resource resource) throws java.lang.Exception- Throws:
java.lang.Exception
-
DefaultAttributeDefinitionStore
public DefaultAttributeDefinitionStore(org.apereo.cas.authentication.attribute.AttributeDefinition... defns)
-
-
Method Detail
-
registerAttributeDefinition
public org.apereo.cas.authentication.attribute.AttributeDefinitionStore registerAttributeDefinition(org.apereo.cas.authentication.attribute.AttributeDefinition defn)
- Specified by:
registerAttributeDefinitionin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
registerAttributeDefinition
public org.apereo.cas.authentication.attribute.AttributeDefinitionStore registerAttributeDefinition(java.lang.String key, org.apereo.cas.authentication.attribute.AttributeDefinition defn)- Specified by:
registerAttributeDefinitionin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
removeAttributeDefinition
public org.apereo.cas.authentication.attribute.AttributeDefinitionStore removeAttributeDefinition(java.lang.String key)
- Specified by:
removeAttributeDefinitionin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
locateAttributeDefinition
public java.util.Optional<org.apereo.cas.authentication.attribute.AttributeDefinition> locateAttributeDefinition(java.lang.String key)
- Specified by:
locateAttributeDefinitionin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
locateAttributeDefinition
public <T extends org.apereo.cas.authentication.attribute.AttributeDefinition> java.util.Optional<T> locateAttributeDefinition(java.lang.String key, java.lang.Class<T> clazz)- Specified by:
locateAttributeDefinitionin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
locateAttributeDefinition
public <T extends org.apereo.cas.authentication.attribute.AttributeDefinition> java.util.Optional<T> locateAttributeDefinition(java.util.function.Predicate<org.apereo.cas.authentication.attribute.AttributeDefinition> predicate)
- Specified by:
locateAttributeDefinitionin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
getAttributeDefinitions
public java.util.Collection<org.apereo.cas.authentication.attribute.AttributeDefinition> getAttributeDefinitions()
- Specified by:
getAttributeDefinitionsin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
resolveAttributeValues
public java.util.Optional<org.apache.commons.lang3.tuple.Pair<org.apereo.cas.authentication.attribute.AttributeDefinition,java.util.List<java.lang.Object>>> resolveAttributeValues(java.lang.String key, java.util.List<java.lang.Object> attributeValues, org.apereo.cas.services.RegisteredService registeredService, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)- Specified by:
resolveAttributeValuesin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
store
public org.apereo.cas.authentication.attribute.AttributeDefinitionStore store(org.springframework.core.io.Resource resource)
- Specified by:
storein interfaceorg.apereo.cas.authentication.attribute.AttributeDefinitionStore
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
-