org.jboss.portal.identity
Class IdentityContextImpl
java.lang.Object
org.jboss.portal.identity.IdentityContextImpl
- All Implemented Interfaces:
- IdentityContext
public class IdentityContextImpl
- extends java.lang.Object
- implements IdentityContext
Keeps references to all identity related modules to enable them interactions
- Version:
- $Revision: 1.1 $
- Author:
- Boleslaw Dawidowicz
Method Summary |
java.util.Collection |
getKeys()
|
java.lang.Object |
getObject(java.lang.String name)
Retrieve registered identity object |
java.util.Collection |
getValues()
|
void |
register(java.lang.Object object,
java.lang.String name)
Retister identity object in context |
void |
unregister(java.lang.String name)
Remove identity object from context |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityContextImpl
public IdentityContextImpl()
register
public void register(java.lang.Object object,
java.lang.String name)
throws IdentityException
- Description copied from interface:
IdentityContext
- Retister identity object in context
- Specified by:
register
in interface IdentityContext
- Parameters:
object
- representing identity objectname
- to map object
- Throws:
IdentityException
- thrown if such object is already registered or operation fail.
unregister
public void unregister(java.lang.String name)
- Description copied from interface:
IdentityContext
- Remove identity object from context
- Specified by:
unregister
in interface IdentityContext
- Parameters:
name
- of identity object
getObject
public java.lang.Object getObject(java.lang.String name)
throws IdentityException
- Description copied from interface:
IdentityContext
- Retrieve registered identity object
- Specified by:
getObject
in interface IdentityContext
- Returns:
-
- Throws:
IdentityException
- thrown if no such object exists in context
getKeys
public java.util.Collection getKeys()
getValues
public java.util.Collection getValues()