Class 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.AutoCloseable
    Since:
    6.2.0
    • Field Summary

      • Fields inherited from interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore

        BEAN_NAME, LOGGER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void destroy()  
      java.util.Collection<org.apereo.cas.authentication.attribute.AttributeDefinition> getAttributeDefinitions()  
      boolean isEmpty()  
      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.AttributeDefinitionStore registerAttributeDefinition​(java.lang.String key, org.apereo.cas.authentication.attribute.AttributeDefinition defn)  
      org.apereo.cas.authentication.attribute.AttributeDefinitionStore registerAttributeDefinition​(org.apereo.cas.authentication.attribute.AttributeDefinition defn)  
      org.apereo.cas.authentication.attribute.AttributeDefinitionStore removeAttributeDefinition​(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.AttributeDefinitionStore store​(org.springframework.core.io.Resource resource)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore

        resolveAttributeValues
    • 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:
        registerAttributeDefinition in interface org.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:
        registerAttributeDefinition in interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore
      • removeAttributeDefinition

        public org.apereo.cas.authentication.attribute.AttributeDefinitionStore removeAttributeDefinition​(java.lang.String key)
        Specified by:
        removeAttributeDefinition in interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore
      • locateAttributeDefinition

        public java.util.Optional<org.apereo.cas.authentication.attribute.AttributeDefinition> locateAttributeDefinition​(java.lang.String key)
        Specified by:
        locateAttributeDefinition in interface org.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:
        locateAttributeDefinition in interface org.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:
        locateAttributeDefinition in interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore
      • getAttributeDefinitions

        public java.util.Collection<org.apereo.cas.authentication.attribute.AttributeDefinition> getAttributeDefinitions()
        Specified by:
        getAttributeDefinitions in interface org.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:
        resolveAttributeValues in interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore
      • store

        public org.apereo.cas.authentication.attribute.AttributeDefinitionStore store​(org.springframework.core.io.Resource resource)
        Specified by:
        store in interface org.apereo.cas.authentication.attribute.AttributeDefinitionStore
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean