public class ContextualDataConnector extends Object implements DataConnector
DataConnector within a resolution context. This wrapper ensures that the connector is resolved
only once per context.| Modifier and Type | Field and Description |
|---|---|
private Map<String,BaseAttribute> |
attributes
Cached result of resolving the data connector.
|
private DataConnector |
connector
Wrapped data connector.
|
| Constructor and Description |
|---|
ContextualDataConnector(DataConnector newConnector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getDependencyIds()
Gets the IDs of the resolution plugins this plugin is dependent on.
|
String |
getFailoverDependencyId()
Returns the ID of data connectors to use if this one fails.
|
String |
getId()
Returns the unique ID of the plugin.
|
int |
hashCode() |
Map<String,BaseAttribute> |
resolve(ShibbolethResolutionContext resolutionContext)
Performs the attribute resolution for this plugin.
|
void |
validate()
Validate the internal state of this plug-in.
|
private DataConnector connector
private Map<String,BaseAttribute> attributes
public ContextualDataConnector(DataConnector newConnector)
newConnector - data connector to wrappublic List<String> getDependencyIds()
getDependencyIds in interface ResolutionPlugIn<Map<String,BaseAttribute>>public String getFailoverDependencyId()
getFailoverDependencyId in interface DataConnectorpublic String getId()
getId in interface ResolutionPlugIn<Map<String,BaseAttribute>>public Map<String,BaseAttribute> resolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
resolve in interface ResolutionPlugIn<Map<String,BaseAttribute>>resolutionContext - the context for the resolutionAttributeResolutionException - the problem that occurred during the resolutionpublic void validate()
throws AttributeResolutionException
validate in interface ResolutionPlugIn<Map<String,BaseAttribute>>AttributeResolutionException - if the plug-in has an invalid internal stateCopyright © 1999-2015. All Rights Reserved.