@Immutable @ThreadSafe public final class AttributeRegistry extends Object
AttributeDefinition
s based on files on the classpath or on the filesystem.
The given file must comply with the attribute registry format (see AttributeSetPropertiesConverter
.
If the configuration files are available as a file in the classpath or on the filesystem, then they are reloaded automatically when their last-modified-date changes.
If the configuration files are available inside a jar in the classpath, then they are loaded once and for all and cannot be reloaded.
AttributeSetPropertiesConverter
Modifier and Type | Class and Description |
---|---|
static interface |
AttributeRegistry.AttributeDefinitionFilter
Instances of this interface are used to filter the result of the
getByFilter(AttributeDefinitionFilter)
method. |
Constructor and Description |
---|
AttributeRegistry(AttributeDefinitionDao attributeDefinitionDao)
Creates an attribute registry based on the given
SingletonAccessor s. |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(eu.eidas.auth.commons.attribute.AttributeDefinition<?> attributeDefinition)
Returns
true when this instance contains the given attribute definition, false otherwise. |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getAttributes() |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getByFilter(AttributeRegistry.AttributeDefinitionFilter filter) |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getByFriendlyName(String friendlyName) |
eu.eidas.auth.commons.attribute.AttributeDefinition<?> |
getByName(String name) |
eu.eidas.auth.commons.attribute.AttributeDefinition<?> |
getByName(URI nameUri) |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getByPersonType(eu.eidas.auth.commons.attribute.PersonType type) |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getByRequired(boolean required) |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getByTransliteration(boolean isTransliterationMandatory) |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getByUniqueIdentifier(boolean isUniqueIdentifier) |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
getByXmlType(QName xmlType) |
public AttributeRegistry(@Nonnull AttributeDefinitionDao attributeDefinitionDao)
SingletonAccessor
s.attributeDefinitionDao
- the attributeDefinitionDao.public boolean contains(@Nonnull eu.eidas.auth.commons.attribute.AttributeDefinition<?> attributeDefinition)
true
when this instance contains the given attribute definition, false
otherwise.attributeDefinition
- the attribute definition to look uptrue
when this instance contains the given attribute definition, false
otherwise.@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> getAttributes()
@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> getByFilter(@Nonnull AttributeRegistry.AttributeDefinitionFilter filter)
@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> getByFriendlyName(@Nonnull String friendlyName)
@Nullable public eu.eidas.auth.commons.attribute.AttributeDefinition<?> getByName(@Nonnull String name)
@Nullable public eu.eidas.auth.commons.attribute.AttributeDefinition<?> getByName(@Nonnull URI nameUri)
@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> getByPersonType(@Nonnull eu.eidas.auth.commons.attribute.PersonType type)
@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> getByRequired(boolean required)
@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> getByTransliteration(boolean isTransliterationMandatory)
@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> getByUniqueIdentifier(boolean isUniqueIdentifier)
Copyright © 2020. All Rights Reserved.