|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.util.sessions.SessionFactory
org.nees.util.sessions.AuthenticatedSessionFactory
org.nees.metadata.service.NMDSSessionFactory
org.nees.metadata.service.ogsi.client.NMDSOGSISessionFactory
This class is used for testing purposes only. It allows you to create an NMDSSession linked directly to a Mysql implementation and a pseudo-CAS Mysql implementation. The user's identity can be passed in or just asserted.
| Constructor Summary | |
NMDSOGSISessionFactory(AuthenticIdentity id,
java.lang.String factoryServiceHandle)
Create and configure a factory. |
|
NMDSOGSISessionFactory(AuthenticIdentity id,
java.lang.String factoryServiceHandle,
java.lang.String jdbcUrl,
java.lang.String jdbcUser,
java.lang.String jdbcPassword,
java.lang.String baseTableName)
Deprecated. use the constructors w/o JDBC parameters |
|
NMDSOGSISessionFactory(java.lang.String factoryServiceHandle)
Create and configure a factory. |
|
NMDSOGSISessionFactory(java.lang.String factoryServiceHandle,
java.lang.String jdbcUrl,
java.lang.String jdbcUser,
java.lang.String jdbcPassword,
java.lang.String baseTableName)
Deprecated. use the constructors w/o JDBC parameters |
|
| Method Summary | |
CASAdminAdapter |
getCASAdminAdapter()
Deprecated. use the CASA client |
CASPullAdapter |
getCASPullAdapter()
Deprecated. use the CASA client |
Session |
newSession()
Get a session for the given user's identity |
void |
releaseSession(Session s)
Optional. |
| Methods inherited from class org.nees.util.sessions.AuthenticatedSessionFactory |
getIdentity, newSession, setIdentity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NMDSOGSISessionFactory(AuthenticIdentity id,
java.lang.String factoryServiceHandle,
java.lang.String jdbcUrl,
java.lang.String jdbcUser,
java.lang.String jdbcPassword,
java.lang.String baseTableName)
id - the user idfactoryServiceHandle - the GSH of the OGSI NMDSFactoryServicejdbcUrl - the JDBC URL to the Mysql database where your NMDS tables are stored.jdbcUser - a JDBC user with permission to write to those tablesjdbcPassword - that user's passwordbaseTableName - the base table name (i.e. if your nmds tables are named "foo_XXX"
the base table name is "foo"
public NMDSOGSISessionFactory(java.lang.String factoryServiceHandle,
java.lang.String jdbcUrl,
java.lang.String jdbcUser,
java.lang.String jdbcPassword,
java.lang.String baseTableName)
factoryServiceHandle - the GSH of the OGSI NMDSFactoryServicejdbcUrl - the JDBC URL to the Mysql database where your NMDS tables are stored.jdbcUser - a JDBC user with permission to write to those tablesjdbcPassword - that user's passwordbaseTableName - the base table name (i.e. if your nmds tables are named "foo_XXX"
the base table name is "foo"
public NMDSOGSISessionFactory(AuthenticIdentity id,
java.lang.String factoryServiceHandle)
id - the user idfactoryServiceHandle - the GSH of the OGSI NMDSFactoryServicepublic NMDSOGSISessionFactory(java.lang.String factoryServiceHandle)
factoryServiceHandle - the GSH of the OGSI NMDSFactoryService| Method Detail |
public Session newSession()
throws SessionCreationException
newSession in class SessionFactorySessionCreationExceptionpublic CASPullAdapter getCASPullAdapter()
public CASAdminAdapter getCASAdminAdapter()
public void releaseSession(Session s)
SessionFactory
releaseSession in class SessionFactorys - the session to release
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||