|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.attributes.AttributeConverterFactory
public class AttributeConverterFactory
Singleton factory class for AttributeConverter and AttributeNameMappers. Instances which are created by this factory are configured with XML files. These file paths MUST be set before the createXXX method is called.
| Field Summary | |
|---|---|
private java.lang.String |
acFilePath
AttributeConverter configuration file path. |
private java.lang.String |
afFilePath
AttributeFilter configuration file path. |
private java.lang.String |
amFilePath
AttributeNameMapper configuration file path. |
private static AttributeConverterFactory |
instance
|
private org.apache.log4j.Logger |
log
|
private static AttributeNameMapper |
nameMapper
The configured AttributeNameMapper instance. |
| Constructor Summary | |
|---|---|
private |
AttributeConverterFactory()
Private constructor. |
| Method Summary | |
|---|---|
AttributeConverter |
createAttributeConverter()
Creates new AttributeConverter instance, and configures it with the XML file. |
private AttributeConverter |
createAttributeConverter(AttributeConversionRulesType converterConfiguration)
Creates new AttributeConverter instance. |
AttributeConverter |
createAttributeConverter(java.lang.String converterXMLConfig)
Creates new AttributeConverter instance and configures it with String XML configuration. |
AttributeFilter |
createAttributeFilter()
Creates new AttributeFilter instance, and configures it with the XML file. |
private AttributeFilter |
createAttributeFilter(AttributeFilterType filterConfiguration)
|
AttributeFilter |
createAttributeFilter(java.lang.String filterXMLConfig)
|
AttributeNameMapper |
createAttributeNameMapper()
Creates new AttributeNameMapper instance and configures it. |
RequestContext |
createRequestContext(java.util.List<AttributeValues> input,
java.lang.String remoteProvider,
java.lang.String localProvider)
Creates request context from input AttributeValues list and remote and local provider identifier. |
java.lang.String |
getAttributeConverterFilePath()
|
java.lang.String |
getAttributeFilterFilePath()
Get the Attribute Filter configuration file path. |
private AttributeNameMapper |
getAttributeNameMapper()
|
java.lang.String |
getAttributeNameMapperFilePath()
|
static AttributeConverterFactory |
getInstance()
Returns the AttributeConverterFactory instance. |
void |
setAttributeConverterFilePath(java.lang.String acFilePath)
Set the Attribute Converter configuration file path. |
void |
setAttributeFilterFilePath(java.lang.String afFilePath)
Set the Attribute Filter configuration file path. |
void |
setAttributeNameMapperFilePath(java.lang.String amFilePath)
Set the Attribute Name Mapper configuration file path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static AttributeConverterFactory instance
private java.lang.String acFilePath
private java.lang.String amFilePath
private java.lang.String afFilePath
private static AttributeNameMapper nameMapper
private org.apache.log4j.Logger log
| Constructor Detail |
|---|
private AttributeConverterFactory()
| Method Detail |
|---|
public static AttributeConverterFactory getInstance()
public AttributeConverter createAttributeConverter()
throws ConfigurationException
ConfigurationException
public AttributeConverter createAttributeConverter(java.lang.String converterXMLConfig)
throws ConfigurationException
converterXMLConfig -
ConfigurationException
private AttributeConverter createAttributeConverter(AttributeConversionRulesType converterConfiguration)
throws ConfigurationException
converterConfiguration -
ConfigurationException
public AttributeFilter createAttributeFilter()
throws ConfigurationException
ConfigurationException
public AttributeFilter createAttributeFilter(java.lang.String filterXMLConfig)
throws ConfigurationException
ConfigurationException
private AttributeFilter createAttributeFilter(AttributeFilterType filterConfiguration)
throws ConfigurationException
ConfigurationException
public AttributeNameMapper createAttributeNameMapper()
throws ConfigurationException
ConfigurationExceptionpublic java.lang.String getAttributeConverterFilePath()
public void setAttributeConverterFilePath(java.lang.String acFilePath)
acFilePath - public java.lang.String getAttributeNameMapperFilePath()
public void setAttributeNameMapperFilePath(java.lang.String amFilePath)
amFilePath - public java.lang.String getAttributeFilterFilePath()
public void setAttributeFilterFilePath(java.lang.String afFilePath)
amFilePath -
public RequestContext createRequestContext(java.util.List<AttributeValues> input,
java.lang.String remoteProvider,
java.lang.String localProvider)
input - remoteProvider - localProvider -
private AttributeNameMapper getAttributeNameMapper()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||