public class MappedAttributeDefinition extends BaseAttributeDefinition
Pattern
.Modifier and Type | Field and Description |
---|---|
private String |
defaultValue
Default return value.
|
private static org.slf4j.Logger |
log
Class logger.
|
private boolean |
passThru
Whether the definition passes thru unmatched values.
|
private Collection<ValueMap> |
valueMaps
Value maps.
|
Constructor and Description |
---|
MappedAttributeDefinition()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected BaseAttribute |
doResolve(ShibbolethResolutionContext resolutionContext)
Creates and populates the values for the resolved attribute.
|
String |
getDefaultValue()
Gets the default return value.
|
Collection<ValueMap> |
getValueMaps()
Get the value maps.
|
boolean |
isPassThru()
Gets whether the definition passes thru unmatched values.
|
protected Set<String> |
mapValue(String value)
Maps the value from a dependency in to the value(s) for this attribute.
|
void |
setDefaultValue(String newDefaultValue)
Sets the default return value.
|
void |
setPassThru(boolean newPassThru)
Sets whether the definition passes thru unmatched values.
|
void |
validate()
Validate the internal state of this plug-in.
|
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeID, getValuesFromAllDependencies, isDependencyOnly, resolve, setDependencyOnly, setSourceAttributeID
getDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencyIds, getId
private static org.slf4j.Logger log
private String defaultValue
private boolean passThru
private Collection<ValueMap> valueMaps
protected BaseAttribute doResolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
doResolve
in class BaseAttributeDefinition
resolutionContext
- current attribute resolution contextAttributeResolutionException
- thrown if there is a problem resolving and creating the attributeprotected Set<String> mapValue(String value)
value
- the value from the dependencypublic void validate() throws AttributeResolutionException
AttributeResolutionException
- if the plug-in has an invalid internal statepublic String getDefaultValue()
public void setDefaultValue(String newDefaultValue)
newDefaultValue
- the default return valuepublic boolean isPassThru()
public void setPassThru(boolean newPassThru)
newPassThru
- whether the definition passes thru unmatched values.public Collection<ValueMap> getValueMaps()
Copyright © 1999-2012. All Rights Reserved.