|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.ContextualAttributeDefinition
public class ContextualAttributeDefinition
Wrapper for an AttributeDefinition
within a ShibbolethResolutionContext
. This wrapper ensures that
the definition is resolved only once per context.
Field Summary | |
---|---|
private BaseAttribute |
attribute
Cached result of resolving the attribute definition. |
private AttributeDefinition |
definition
Wrapped attribute definition. |
Constructor Summary | |
---|---|
ContextualAttributeDefinition(AttributeDefinition newDefinition)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AttributeDefinition definition
private BaseAttribute attribute
Constructor Detail |
---|
public ContextualAttributeDefinition(AttributeDefinition newDefinition)
newDefinition
- attribute definition to wrapMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public List<AttributeEncoder> getAttributeEncoders()
getAttributeEncoders
in interface AttributeDefinition
public List<String> getDependencyIds()
getDependencyIds
in interface ResolutionPlugIn<BaseAttribute>
public Map<Locale,String> getDisplayDescriptions()
getDisplayDescriptions
in interface AttributeDefinition
public Map<Locale,String> getDisplayNames()
getDisplayNames
in interface AttributeDefinition
public String getId()
getId
in interface ResolutionPlugIn<BaseAttribute>
public int hashCode()
hashCode
in class Object
public boolean isDependencyOnly()
isDependencyOnly
in interface AttributeDefinition
public BaseAttribute resolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
resolve
in interface ResolutionPlugIn<BaseAttribute>
resolutionContext
- the context for the resolution
AttributeResolutionException
- 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 state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |