|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.services.SessionServiceImpl
public class SessionServiceImpl
This class serves as the primary implementation of the Session Service.
| Field Summary | |
|---|---|
static java.lang.String |
SECURITY_DOMAINS
|
| Fields inherited from interface org.teiid.dqp.service.SessionService |
|---|
DEFAULT_MAX_SESSIONS, DEFAULT_SESSION_EXPIRATION, MAX_SESSIONS, NAME, SESSION_EXPIRATION |
| Constructor Summary | |
|---|---|
SessionServiceImpl()
|
|
| Method Summary | |
|---|---|
protected TeiidLoginContext |
authenticate(java.lang.String userName,
Credentials credentials,
java.lang.String applicationName,
java.util.List<java.lang.String> domains,
SecurityHelper helper,
boolean onlyallowPassthrough)
|
void |
closeSession(java.lang.String sessionID)
Closes the specified session. |
SessionMetadata |
createSession(java.lang.String userName,
Credentials credentials,
java.lang.String applicationName,
java.util.Properties properties,
boolean adminConnection,
boolean authenticate)
Create a session for the given user authenticating against the given Credentials. |
SessionMetadata |
getActiveSession(java.lang.String sessionID)
|
java.util.Collection<SessionMetadata> |
getActiveSessions()
Get the collection of active user sessions on the system. |
int |
getActiveSessionsCount()
Get the number of active user sessions on the system. |
long |
getSessionExpirationTimeLimit()
|
long |
getSessionMaxLimit()
|
java.util.Collection<SessionMetadata> |
getSessionsLoggedInToVDB(java.lang.String VDBName,
int vdbVersion)
Get all MetaMatrixSessionIDs that are in the ACTIVE state
and currently logged in to a VDB. |
void |
pingServer(java.lang.String sessionID)
Periodically called by the client to indicate the client is still alive. |
void |
setAdminSecurityDomain(java.lang.String domain)
|
void |
setDqp(org.teiid.dqp.internal.process.DQPCore dqp)
|
void |
setSecurityDomains(java.lang.String domainNameOrder)
|
void |
setSecurityHelper(SecurityHelper securityHelper)
|
void |
setSessionExpirationTimeLimit(long limit)
|
void |
setSessionMaxLimit(long limit)
|
void |
setVDBRepository(VDBRepository repo)
|
void |
start()
|
void |
stop()
|
boolean |
terminateSession(java.lang.String terminatedSessionID,
java.lang.String adminSessionID)
Terminates the specified session. |
SessionMetadata |
validateSession(java.lang.String sessionID)
This method is intended to verify that the session is valid, and, if need be, set the session in an active state, ready to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SECURITY_DOMAINS
| Constructor Detail |
|---|
public SessionServiceImpl()
| Method Detail |
|---|
public void closeSession(java.lang.String sessionID)
throws InvalidSessionException
SessionService
closeSession in interface SessionServicesessionID - The MetaMatrixSessionID identifying user's session
to be closed
InvalidSessionException - If sessionID identifies an invalid
session
public SessionMetadata createSession(java.lang.String userName,
Credentials credentials,
java.lang.String applicationName,
java.util.Properties properties,
boolean adminConnection,
boolean authenticate)
throws javax.security.auth.login.LoginException,
SessionServiceException
SessionServiceCredentials.
createSession in interface SessionServicejavax.security.auth.login.LoginException
SessionServiceException
protected TeiidLoginContext authenticate(java.lang.String userName,
Credentials credentials,
java.lang.String applicationName,
java.util.List<java.lang.String> domains,
SecurityHelper helper,
boolean onlyallowPassthrough)
throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
public java.util.Collection<SessionMetadata> getActiveSessions()
throws SessionServiceException
SessionService
getActiveSessions in interface SessionServiceSessionServiceExceptionpublic SessionMetadata getActiveSession(java.lang.String sessionID)
getActiveSession in interface SessionService
public int getActiveSessionsCount()
throws SessionServiceException
SessionService
getActiveSessionsCount in interface SessionServiceSessionServiceException
public java.util.Collection<SessionMetadata> getSessionsLoggedInToVDB(java.lang.String VDBName,
int vdbVersion)
throws SessionServiceException
SessionServiceMetaMatrixSessionIDs that are in the ACTIVE state
and currently logged in to a VDB.
getSessionsLoggedInToVDB in interface SessionServiceVDBName - The name of the VDB.vdbVersion - The version of the VDB.
SessionServiceException - when transaction with database fails or unexpected exception happens
public void pingServer(java.lang.String sessionID)
throws InvalidSessionException
SessionService
pingServer in interface SessionServicesessionID - - identifies the client
InvalidSessionException
public boolean terminateSession(java.lang.String terminatedSessionID,
java.lang.String adminSessionID)
SessionService
terminateSession in interface SessionServiceterminatedSessionID - The MetaMatrixSessionID identifying user's session
to be terminatedadminSessionID - The session id identifying session of administrator
public SessionMetadata validateSession(java.lang.String sessionID)
throws InvalidSessionException,
SessionServiceException
SessionService
validateSession in interface SessionServicesessionID - MetaMatrixSessionID representing the session
InvalidSessionException - If sessionID identifies an invalid
session
SessionServiceExceptionpublic long getSessionMaxLimit()
public void setSessionMaxLimit(long limit)
public long getSessionExpirationTimeLimit()
public void setSessionExpirationTimeLimit(long limit)
public void setSecurityDomains(java.lang.String domainNameOrder)
public void setAdminSecurityDomain(java.lang.String domain)
public void start()
public void stop()
public void setVDBRepository(VDBRepository repo)
public void setSecurityHelper(SecurityHelper securityHelper)
public void setDqp(org.teiid.dqp.internal.process.DQPCore dqp)
setDqp in interface SessionService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||