edu.internet2.middleware.shibboleth.common.attribute.resolver.provider
Class AbstractResolutionPlugIn<ResolvedType>

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn<ResolvedType>
Type Parameters:
ResolvedType - object type this plug-in resolves to
All Implemented Interfaces:
ResolutionPlugIn<ResolvedType>
Direct Known Subclasses:
BaseAttributeDefinition, BaseDataConnector, BasePrincipalConnector

public abstract class AbstractResolutionPlugIn<ResolvedType>
extends Object
implements ResolutionPlugIn<ResolvedType>

Base class for all ResolutionPlugIns.


Constructor Summary
AbstractResolutionPlugIn()
          Constructor.
 
Method Summary
 List<String> getDependencyIds()
          Gets the IDs of the resolution plugins this plugin is dependent on.
 String getId()
          Returns the unique ID of the plugin.
protected  Collection<Object> getValuesFromAllDependencies(ShibbolethResolutionContext context, String sourceAttribute)
          Get values from dependencies.
protected  Collection<Object> getValuesFromAttributeDependency(ShibbolethResolutionContext context, String id)
          Get values from attribute dependencies.
protected  Collection<Object> getValuesFromConnectorDependency(ShibbolethResolutionContext context, String id, String sourceAttribute)
          Get values from data connectors.
 void setId(String newId)
          Set plug-in id.
 
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
resolve, validate
 

Constructor Detail

AbstractResolutionPlugIn

public AbstractResolutionPlugIn()
Constructor.

Method Detail

getDependencyIds

public List<String> getDependencyIds()
Gets the IDs of the resolution plugins this plugin is dependent on.

Specified by:
getDependencyIds in interface ResolutionPlugIn<ResolvedType>
Returns:
IDs of the data connectors this plugin is dependent on

getId

public String getId()
Returns the unique ID of the plugin.

Specified by:
getId in interface ResolutionPlugIn<ResolvedType>
Returns:
unique ID of the plugin

setId

public void setId(String newId)
Set plug-in id.

Parameters:
newId - new plug-in id

getValuesFromAllDependencies

protected Collection<Object> getValuesFromAllDependencies(ShibbolethResolutionContext context,
                                                          String sourceAttribute)
Get values from dependencies.

Parameters:
context - resolution context
sourceAttribute - ID of attribute to retrieve from dependencies
Returns:
collection of values

getValuesFromAttributeDependency

protected Collection<Object> getValuesFromAttributeDependency(ShibbolethResolutionContext context,
                                                              String id)
Get values from attribute dependencies.

Parameters:
context - resolution context
id - ID of attribute to retrieve dependencies for
Returns:
collection of values

getValuesFromConnectorDependency

protected Collection<Object> getValuesFromConnectorDependency(ShibbolethResolutionContext context,
                                                              String id,
                                                              String sourceAttribute)
Get values from data connectors.

Parameters:
context - resolution context
id - ID of attribute to retrieve dependencies for
sourceAttribute - ID of attribute to retrieve from connector dependencies
Returns:
collection of values


Copyright © 2006-2010 Internet2. All Rights Reserved.