|
||||||||||
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.AbstractResolutionPlugIn<BaseAttribute>
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.MappedAttributeDefinition
public class MappedAttributeDefinition
The RegexAttributeDefinition allows regular expression based replacements on attribute values, using the regex syntax
allowed by Pattern
.
Constructor Summary | |
---|---|
MappedAttributeDefinition()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition |
---|
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeID, getValuesFromAllDependencies, isDependencyOnly, resolve, setDependencyOnly, setSourceAttributeID |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn |
---|
getDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ResolutionPlugIn |
---|
getDependencyIds, getId |
Constructor Detail |
---|
public MappedAttributeDefinition()
Method Detail |
---|
protected BaseAttribute doResolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
doResolve
in class BaseAttributeDefinition
resolutionContext
- current attribute resolution context
AttributeResolutionException
- thrown if there is a problem resolving and creating the attributeprotected Set<String> mapValue(String value)
value
- the value from the dependency
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |