|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.authorization.repository.Map
A Map-based AttributeRepository
implementation.
Example configuration:
<repository type="map"> <map ...> <!-- map configuration --> </map> </repository>
AttributeRepository
,
AttributeMapFactory
,
Insert 'the right' copyright
Field Summary | |
protected AttributeMap |
myMap
|
Constructor Summary | |
Map()
|
Method Summary | |
AttributeRepository |
create(AttributeRepositoryFactory factory,
org.w3c.dom.Element config)
Creates and initializes an attribute repository according to the specified configuration. |
boolean |
evalAttributeBinding(java.lang.String identity,
java.lang.String attribute)
Method evalAttributeBinding. |
java.util.List |
findAllAttributesFor(java.lang.String identity)
Method findAllAttributesFor. |
java.lang.String |
findFirstAttributeFor(java.lang.String identity)
Method findFirstAttributeFor. |
void |
terminate()
Terminate all Timer objects responsible for refreshing the content of the AttributeRepository. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AttributeMap myMap
Constructor Detail |
public Map()
Method Detail |
public AttributeRepository create(AttributeRepositoryFactory factory, org.w3c.dom.Element config) throws java.lang.Exception
AttributeRepositoryCreator
create
in interface AttributeRepositoryCreator
factory
- The factory to which this repository belongsconfig
- The XML snippet with the required configuration
java.lang.Exception
- in case of an errorAttributeRepositoryCreator.create(AttributeRepositoryFactory,Element)
public java.util.List findAllAttributesFor(java.lang.String identity)
AttributeRepository
findAllAttributesFor
in interface AttributeRepository
identity
- The subject in question.
List
of attributes.AttributeRepository.findAllAttributesFor(String)
public java.lang.String findFirstAttributeFor(java.lang.String identity)
AttributeRepository
List l = findAllAttributesFor(identity);
return l.isEmpty() ? null : (String) l.get(0);
but can be implemented in a more efficient manner.
findFirstAttributeFor
in interface AttributeRepository
identity
- The subject in question.
AttributeRepository.findFirstAttributeFor(String)
public boolean evalAttributeBinding(java.lang.String identity, java.lang.String attribute)
AttributeRepository
findAllAttributesFor(identity).contains(attribute)
evalAttributeBinding
in interface AttributeRepository
identity
- The subject in question.attribute
- The attribute asked for
AttributeRepository.evalAttributeBinding(String, String)
public java.lang.String toString()
toString
in class java.lang.Object
public void terminate()
AttributeRepository
terminate
in interface AttributeRepository
AttributeRepository.terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |