|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.authorization.repository.AttributeRepositoryFactory
Factory for creating AttributeRepository
instances.
Configuraiton example:
<repository name="name" type="type"> <!-- type-specific configuration --> </repository>Currently supported AttributeRepository types are:
- and
- or
- map
- voms
Any other type is treated as Java class name: if such a class exists,
the following is evaluated
AttributeRepositoryCreator
AttributeRepository
AttributeRepository
,
AttributeRepositoryCreator
,
And (type=and)
,
Or (type=or)
,
Map (type=map)
,
VOMS (type=voms)
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
protected AttributeMapFactory |
myMapFactory
|
protected java.util.Hashtable |
myRepositories
|
static java.lang.String |
theNameAttribute
|
protected static java.util.Hashtable |
theRepositoryCreators
|
static java.lang.String |
theRepositoryElement
|
static java.lang.String |
theTypeAttribute
|
Constructor Summary | |
AttributeRepositoryFactory()
|
Method Summary | |
AttributeMapFactory |
getAttributeMapFactory()
|
java.util.List |
getAttributeRepositories(org.w3c.dom.Element definition)
Method getAttributeRepositories. |
AttributeRepository |
getAttributeRepository(org.w3c.dom.Element definition)
Method getAttributeRepository. |
AttributeRepository |
getAttributeRepository(java.lang.String repositoryId)
Method getAttributeRepository. |
void |
init(java.lang.String config)
Method getAttributeRepository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
public static final java.lang.String theRepositoryElement
public static final java.lang.String theNameAttribute
public static final java.lang.String theTypeAttribute
protected java.util.Hashtable myRepositories
protected AttributeMapFactory myMapFactory
protected static java.util.Hashtable theRepositoryCreators
Constructor Detail |
public AttributeRepositoryFactory()
Method Detail |
public void init(java.lang.String config) throws java.lang.Exception
config
- The location of the configuration file. May be null.
java.lang.Exception
- if the repository cannot be built or foundpublic AttributeRepository getAttributeRepository(java.lang.String repositoryId) throws java.lang.Exception
repositoryId
- An arbitrary string associated with the repository
instance in question.
java.lang.Exception
- if the repository cannot be foundpublic java.util.List getAttributeRepositories(org.w3c.dom.Element definition) throws java.lang.Exception
getAttributeRepository(Node)
for each repository definition
encountered.
definition
- the XML snippet that defines the repository instance(s).
java.lang.Exception
- if all the repositories cannot be createdpublic AttributeRepository getAttributeRepository(org.w3c.dom.Element definition) throws java.lang.Exception
definition
- the XML snippet that defines the repository
java.lang.Exception
- if the repository cannot be createdpublic AttributeMapFactory getAttributeMapFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |