org.edg.security.authorization.map
Class DbMapCreator
java.lang.Object
|
+--org.edg.security.authorization.map.DbMapCreator
- All Implemented Interfaces:
- AttributeMapCreator
- public class DbMapCreator
- extends java.lang.Object
- implements AttributeMapCreator
Class DbMapCreator.
Creates a DbMap from the following XML snippet:
<!-- the supplied "config" node -->
<map type="db">
<dbName dbname="dbname" />
<Driver driver="driver" />
<Table table="table" />
<Url url="url" />
<userName username="username" />
<passWord passwd="passwd" />
<refreshInterval interval="interval" />
</map>
- Version:
- $Id: DbMapCreator.java,v 1.12 2003/10/27 15:57:53 gianluca Exp $
- Author:
- Niklas Karlsson HIP
- See Also:
DbMap
,
AttributeMapCreator
,
AttributeMapFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theDbNameElement
public static final java.lang.String theDbNameElement
- See Also:
- Constant Field Values
theDriverElement
public static final java.lang.String theDriverElement
- See Also:
- Constant Field Values
theTableElement
public static final java.lang.String theTableElement
- See Also:
- Constant Field Values
theUrlElement
public static final java.lang.String theUrlElement
- See Also:
- Constant Field Values
theUserNameElement
public static final java.lang.String theUserNameElement
- See Also:
- Constant Field Values
thePasswordElement
public static final java.lang.String thePasswordElement
- See Also:
- Constant Field Values
theRefreshIntervalElement
public static final java.lang.String theRefreshIntervalElement
- See Also:
- Constant Field Values
DbMapCreator
public DbMapCreator()
create
public java.util.Map create(AttributeMapFactory factory,
org.w3c.dom.Element config)
throws java.text.ParseException
- Description copied from interface:
AttributeMapCreator
- Method create.
Creates a Map from the supplied XML definition.
- Specified by:
create
in interface AttributeMapCreator
- Parameters:
config
- The configuration.
- Returns:
- Map The resulting map, mapping a key to a List of String values
java.text.ParseException
- See Also:
AttributeMapCreator.create(AttributeMapFactory, Element)