org.eclipse.higgins.idas.cp.inmem
Class InMemoryContextFactory

java.lang.Object
  extended byorg.eclipse.higgins.idas.spi.BasicAttributeSet
      extended byorg.eclipse.higgins.idas.cp.inmem.InMemoryContextFactory
All Implemented Interfaces:
org.eclipse.higgins.idas.spi.IAttributeContainer, org.eclipse.higgins.configuration.api.IConfigurableComponent, org.eclipse.higgins.idas.api.IContextFactory, org.eclipse.higgins.idas.api.IHasAttributes

public class InMemoryContextFactory
extends org.eclipse.higgins.idas.spi.BasicAttributeSet
implements org.eclipse.higgins.idas.api.IContextFactory, org.eclipse.higgins.configuration.api.IConfigurableComponent

An implementation of a Higgins. Context Factory for the InMemory/Mapping Context Provider which is intended for use when Entities are being manufactored on the fly or need to be cached privatly. Please see the Samples section for one usage of creating Entities from SAML assertions, then allowing interfaces which require Entities to manipulate the InMemory Entity.

Author:
jimse@novell.com, tdoman@novell.com, dbuss@novell.com

Constructor Summary
InMemoryContextFactory()
           
 
Method Summary
 void configure(Map mapGlobalSettings, String strComponentName, Map mapComponentSettings)
           
 org.eclipse.higgins.idas.api.IContext createContext(org.eclipse.higgins.idas.api.IContextId contextID)
           
 Iterator getContexts(String arg0)
           
 String getName()
           
 String getPolicy()
           
 void setPolicy(String arg0)
           
 
Methods inherited from class org.eclipse.higgins.idas.spi.BasicAttributeSet
addAttribute, addAttribute, addUnnotifiedAttribute, addUnnotifiedAttribute, equals, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeUnnotifiedAttribute, updateNotification
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryContextFactory

public InMemoryContextFactory()
                       throws org.eclipse.higgins.idas.api.IdASException
Method Detail

getName

public String getName()
               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getName in interface org.eclipse.higgins.idas.api.IContextFactory
Throws:
org.eclipse.higgins.idas.api.IdASException

getContexts

public Iterator getContexts(String arg0)
                     throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getContexts in interface org.eclipse.higgins.idas.api.IContextFactory
Throws:
org.eclipse.higgins.idas.api.IdASException

getPolicy

public String getPolicy()
                 throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getPolicy in interface org.eclipse.higgins.idas.api.IContextFactory
Throws:
org.eclipse.higgins.idas.api.IdASException

setPolicy

public void setPolicy(String arg0)
               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
setPolicy in interface org.eclipse.higgins.idas.api.IContextFactory
Throws:
org.eclipse.higgins.idas.api.IdASException

configure

public void configure(Map mapGlobalSettings,
                      String strComponentName,
                      Map mapComponentSettings)
               throws Exception
Specified by:
configure in interface org.eclipse.higgins.configuration.api.IConfigurableComponent
Throws:
Exception

createContext

public org.eclipse.higgins.idas.api.IContext createContext(org.eclipse.higgins.idas.api.IContextId contextID)
                                                    throws org.eclipse.higgins.idas.api.IdASException
Specified by:
createContext in interface org.eclipse.higgins.idas.api.IContextFactory
Throws:
org.eclipse.higgins.idas.api.IdASException