Make JDBCDataConnector an element in resolver config.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 25 Jul 2003 20:39:04 +0000 (20:39 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 25 Jul 2003 20:39:04 +0000 (20:39 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@697 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/attrresolv/ResolutionPlugInFactory.java
src/schemas/shibboleth-resolver-1.0.xsd

index 1973216..398c701 100644 (file)
@@ -54,6 +54,7 @@ import org.w3c.dom.Element;
 
 import edu.internet2.middleware.shibboleth.aa.attrresolv.provider.CustomAttributeDefinition;
 import edu.internet2.middleware.shibboleth.aa.attrresolv.provider.CustomDataConnector;
+import edu.internet2.middleware.shibboleth.aa.attrresolv.provider.JDBCDataConnector;
 import edu.internet2.middleware.shibboleth.aa.attrresolv.provider.JNDIDirectoryDataConnector;
 import edu.internet2.middleware.shibboleth.aa.attrresolv.provider.PersistentIDAttributeDefinition;
 import edu.internet2.middleware.shibboleth.aa.attrresolv.provider.SimpleAttributeDefinition;
@@ -91,6 +92,10 @@ public class ResolutionPlugInFactory {
                        return new JNDIDirectoryDataConnector(e);
                }
 
+               if (e.getTagName().equals("JDBCDataConnector")) {
+                       return new JDBCDataConnector(e);
+               }
+
                log.error("Unrecognized PlugIn type: " + e.getTagName());
                throw new AttributeResolverException("Failed to initialize PlugIn.");
        }
index 930b30a..55ca325 100644 (file)
                                                </xs:complexContent>
                                        </xs:complexType>
                                </xs:element>
+                               <xs:element name="JDBCDataConnector" minOccurs="0" maxOccurs="unbounded">
+                                       <xs:complexType>
+                                               <xs:complexContent>
+                                                       <xs:extension base="resolver:BaseResolutionPlugIn">
+                                                               <xs:sequence>
+                                                                       <xs:element name="Search">
+                                                                               <xs:complexType>
+                                                                                       <xs:attribute name="query" type="xs:string" use="required"/>
+                                                                                       <xs:attribute name="attributeExtractor" type="xs:string" use="optional"/>
+                                                                               </xs:complexType>
+                                                                       </xs:element>
+                                                                       <xs:sequence>
+                                                                               <xs:element name="Property" maxOccurs="unbounded">
+                                                                                       <xs:complexType>
+                                                                                               <xs:attribute name="name" type="xs:string" use="required"/>
+                                                                                               <xs:attribute name="value" type="xs:string" use="required"/>
+                                                                                       </xs:complexType>
+                                                                               </xs:element>
+                                                                       </xs:sequence>
+                                                               </xs:sequence>
+                                                       </xs:extension>
+                                               </xs:complexContent>
+                                       </xs:complexType>
+                               </xs:element>
                        </xs:choice>
                </xs:complexType>
        </xs:element>