public class ContextualAttributeDefinition extends Object implements AttributeDefinition
AttributeDefinition within a ShibbolethResolutionContext. This wrapper ensures that
the definition is resolved only once per context.| Modifier and Type | Field and Description |
|---|---|
private BaseAttribute |
attribute
Cached result of resolving the attribute definition.
|
private AttributeDefinition |
definition
Wrapped attribute definition.
|
| Constructor and Description |
|---|
ContextualAttributeDefinition(AttributeDefinition newDefinition)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<AttributeEncoder> |
getAttributeEncoders()
Gets the map of encoders to be added to attributes produced by this definition, keyed on encoder category.
|
List<String> |
getDependencyIds()
Gets the IDs of the resolution plugins this plugin is dependent on.
|
Map<Locale,String> |
getDisplayDescriptions()
Gets the localized human readable description of attribute.
|
Map<Locale,String> |
getDisplayNames()
Gets the localized human readable name of the attribute.
|
String |
getId()
Returns the unique ID of the plugin.
|
int |
hashCode() |
boolean |
isDependencyOnly()
Gets whether this attribute definition is only a dependency and thus its values should never be released outside
the resolver.
|
BaseAttribute |
resolve(ShibbolethResolutionContext resolutionContext)
Performs the attribute resolution for this plugin.
|
void |
validate()
Validate the internal state of this plug-in.
|
private AttributeDefinition definition
private BaseAttribute attribute
public ContextualAttributeDefinition(AttributeDefinition newDefinition)
newDefinition - attribute definition to wrappublic List<AttributeEncoder> getAttributeEncoders()
getAttributeEncoders in interface AttributeDefinitionpublic List<String> getDependencyIds()
getDependencyIds in interface ResolutionPlugIn<BaseAttribute>public Map<Locale,String> getDisplayDescriptions()
getDisplayDescriptions in interface AttributeDefinitionpublic Map<Locale,String> getDisplayNames()
getDisplayNames in interface AttributeDefinitionpublic String getId()
getId in interface ResolutionPlugIn<BaseAttribute>public boolean isDependencyOnly()
isDependencyOnly in interface AttributeDefinitionpublic BaseAttribute resolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
resolve in interface ResolutionPlugIn<BaseAttribute>resolutionContext - the context for the resolutionAttributeResolutionException - the problem that occurred during the resolutionpublic void validate()
throws AttributeResolutionException
validate in interface ResolutionPlugIn<BaseAttribute>AttributeResolutionException - if the plug-in has an invalid internal stateCopyright © 1999-2015. All Rights Reserved.