public class ContextualDataConnector extends Object implements DataConnector
DataConnector
within a resolution context. This wrapper ensures that the connector is resolved
only once per context.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.
|
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 DataConnector
public 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–2014. All rights reserved.