|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.iam.platform.Platform
public final class Platform
Provides OIM Components a way to interact with other elements in the OIM runtime environment.This class cannot be instantiated. All functionality is provided using static methods. The elements include
Field Summary | |
---|---|
static char |
PACKAGE_SEPARATOR_CHAR |
static java.lang.String |
SERVICE_DELEGATE_SUFFIX |
Method Summary | |
---|---|
static javax.sql.DataSource |
getAuditDS() |
static java.lang.Object |
getBean(java.lang.Class beanType) Gets the bean for a particular type |
static oracle.iam.platform.utils.Configuration |
getConfiguration() Returns a handle to OIM configuration so that you can retrieve various configuration data that is part of oim-config.xml |
static javax.xml.parsers.DocumentBuilderFactory |
getDocumentBuilderFactory() Returns a handle to DocumentBuilderFactory to perform XML related operations |
static MDSInstance |
getMDSInstance() Returns the MDS Instance that can be used to retrieve component specific metadata |
static javax.sql.DataSource |
getNonXADataSource() Returns the Non-XA datasource for OIM. |
static oracle.iam.platform.tx.OIMTransactionManager |
getOIMTransactionManager() Returns transaction manager |
static javax.sql.DataSource |
getOperationalDS() Provides the XA DataSource for the OIM OperationalDS. |
static java.lang.Object |
getService(java.lang.Class serviceClass) Returns a handle to a Service available in an OIM . |
static java.lang.Object |
getServiceForEventHandlers(java.lang.Class serviceClass, java.lang.String contextKey, java.lang.String contextType, java.lang.String contextSubType, java.util.HashMap contextValues) Returns a handle to a Service available in an OIM . |
static java.lang.Object |
getTargetImplementation(java.lang.Object obj, java.lang.Class clazz) |
static Session |
getToplinkSession() Returns the Default Toplink Session that can be used to do database operations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICE_DELEGATE_SUFFIX
public static final char PACKAGE_SEPARATOR_CHAR
Method Detail |
---|
public static javax.sql.DataSource getOperationalDS()
public static javax.sql.DataSource getNonXADataSource()
public static javax.sql.DataSource getAuditDS()
public static java.lang.Object getService(java.lang.Class serviceClass) throws oracle.iam.platform.utils.NoSuchServiceException
//Get a handle to the UserService (a Business Service) UserManager userService = Platform.getService(UserManager.class); //Get a handle to the OrchestrationEngine (Infrastructure Service) EntityManager entityMgr = Platform.getService(EntityManager.class);
serviceClass
- the Class object corresponding to the Service Interfaceoracle.iam.platform.utils.NoSuchServiceException
- if no such service handle is available in OIMpublic static java.lang.Object getServiceForEventHandlers(java.lang.Class serviceClass, java.lang.String contextKey, java.lang.String contextType, java.lang.String contextSubType, java.util.HashMap contextValues) throws oracle.iam.platform.utils.NoSuchServiceException
//Get a handle to the User Service (a Business Service) UserManager userService = Platform.getService(UserManager.class); //Get a handle to the OrchestrationEngine (Infrastructure Service) EntityManager entityMgr = Platform.getService(EntityManager.class);
serviceClass
- the Class object corresponding to the Service Interface.contextKey
- context key such as request key if request context, policy key if access policy context. Value can be nullcontextType
- Type of the context such as REQUEST, RECON, POLICY. Value has to be one of the values of Enum oracle.iam.platform.context.ContextManager.ContextTypes or nullcontextSubType
- Sub type information that can additionally identifies the context. Value can be nullcontextValues
- Values that should be set in this context. Key of the map should be a string and value should be a ContextAware object. These will be available in the context as ContextAwareHashMap with key APIContext.oracle.iam.platform.utils.NoSuchServiceException
- if no such service handle is available in OIMpublic static java.lang.Object getBean(java.lang.Class beanType)
beanType
- the Class object for the bean typepublic static MDSInstance getMDSInstance()
public static Session getToplinkSession()
public static oracle.iam.platform.utils.Configuration getConfiguration()
public static oracle.iam.platform.tx.OIMTransactionManager getOIMTransactionManager()
public static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
public static java.lang.Object getTargetImplementation(java.lang.Object obj, java.lang.Class clazz)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |