org.teiid.adminapi.impl
Class SessionMetadata

java.lang.Object
  extended by org.teiid.adminapi.impl.AdminObjectImpl
      extended by org.teiid.adminapi.impl.SessionMetadata
All Implemented Interfaces:
java.io.Serializable, AdminObject, Session

public class SessionMetadata
extends AdminObjectImpl
implements Session

Add and delete properties also in the Mapper class for correct wrapping for profile service.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
SessionMetadata()
           
 
Method Summary
 java.lang.String getApplicationName()
          Get the Application Name
 java.lang.String getClientHostName()
          Get the host name of the machine the client is accessing from.
 long getCreatedTime()
          Get the time the Session was created.
 java.lang.String getIPAddress()
          Get the IPAddress for this Session.
 long getLastPingTime()
          Get the Last time Client has check to see if the server is still available
 javax.security.auth.login.LoginContext getLoginContext()
           
 java.lang.Object getSecurityContext()
           
 java.lang.String getSecurityDomain()
          Security Domain user logged into currently
 java.lang.String getSessionId()
          Get the unique Teiid session within a given Teiid System
 SessionToken getSessionToken()
           
 javax.security.auth.Subject getSubject()
           
 java.lang.String getUserName()
          Get User Name for this Session
 VDBMetaData getVdb()
           
 java.lang.String getVDBName()
          Get the VDB Name for this Session
 int getVDBVersion()
          Get the VDB Version for this Session
 boolean isEmbedded()
           
 void setApplicationName(java.lang.String applicationName)
           
 void setClientHostName(java.lang.String clientHostname)
           
 void setCreatedTime(long createdTime)
           
 void setEmbedded(boolean embedded)
           
 void setIPAddress(java.lang.String ipAddress)
           
 void setLastPingTime(long lastPingTime)
           
 void setLoginContext(javax.security.auth.login.LoginContext loginContext)
           
 void setSecurityContext(java.lang.Object securityContext)
           
 void setSecurityDomain(java.lang.String domain)
           
 void setSessionId(java.lang.String sessionId)
           
 void setSessionToken(SessionToken sessionToken)
           
 void setUserName(java.lang.String userName)
           
 void setVdb(VDBMetaData vdb)
           
 void setVDBName(java.lang.String vdbName)
           
 void setVDBVersion(int vdbVersion)
           
 java.lang.String toString()
           
 
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttchment, addAttchment, addProperty, getAttachment, getAttachment, getJAXBProperties, getName, getProperties, getPropertyValue, removeAttachment, removeAttachment, setJAXBProperties, setName, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.teiid.adminapi.AdminObject
getName, getProperties, getPropertyValue
 

Constructor Detail

SessionMetadata

public SessionMetadata()
Method Detail

getApplicationName

public java.lang.String getApplicationName()
Description copied from interface: Session
Get the Application Name

Specified by:
getApplicationName in interface Session
Returns:
String of the Application Name

setApplicationName

public void setApplicationName(java.lang.String applicationName)

getCreatedTime

public long getCreatedTime()
Description copied from interface: Session
Get the time the Session was created.

Specified by:
getCreatedTime in interface Session
Returns:

setCreatedTime

public void setCreatedTime(long createdTime)

getClientHostName

public java.lang.String getClientHostName()
Description copied from interface: Session
Get the host name of the machine the client is accessing from. Note this value is reported from the client.

Specified by:
getClientHostName in interface Session
Returns:

setClientHostName

public void setClientHostName(java.lang.String clientHostname)

getIPAddress

public java.lang.String getIPAddress()
Description copied from interface: Session
Get the IPAddress for this Session. Note this value is reported from the client.

Specified by:
getIPAddress in interface Session
Returns:

setIPAddress

public void setIPAddress(java.lang.String ipAddress)

getLastPingTime

public long getLastPingTime()
Description copied from interface: Session
Get the Last time Client has check to see if the server is still available

Specified by:
getLastPingTime in interface Session
Returns:
Date of the last ping to the server.

setLastPingTime

public void setLastPingTime(long lastPingTime)

getSessionId

public java.lang.String getSessionId()
Description copied from interface: Session
Get the unique Teiid session within a given Teiid System

Specified by:
getSessionId in interface Session
Returns:
String of the Session ID

setSessionId

public void setSessionId(java.lang.String sessionId)

getUserName

public java.lang.String getUserName()
Description copied from interface: Session
Get User Name for this Session

Specified by:
getUserName in interface Session
Returns:
String of UserName

setUserName

public void setUserName(java.lang.String userName)

getVDBName

public java.lang.String getVDBName()
Description copied from interface: Session
Get the VDB Name for this Session

Specified by:
getVDBName in interface Session
Returns:
String name of the VDB

setVDBName

public void setVDBName(java.lang.String vdbName)

getVDBVersion

public int getVDBVersion()
Description copied from interface: Session
Get the VDB Version for this Session

Specified by:
getVDBVersion in interface Session
Returns:
String name/number of the VDB Version

setVDBVersion

public void setVDBVersion(int vdbVersion)

getSecurityDomain

public java.lang.String getSecurityDomain()
Description copied from interface: Session
Security Domain user logged into currently

Specified by:
getSecurityDomain in interface Session
Returns:

setSecurityDomain

public void setSecurityDomain(java.lang.String domain)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getVdb

public VDBMetaData getVdb()

setVdb

public void setVdb(VDBMetaData vdb)

getSessionToken

public SessionToken getSessionToken()

setSessionToken

public void setSessionToken(SessionToken sessionToken)

getLoginContext

public javax.security.auth.login.LoginContext getLoginContext()

setLoginContext

public void setLoginContext(javax.security.auth.login.LoginContext loginContext)

getSecurityContext

public java.lang.Object getSecurityContext()

setSecurityContext

public void setSecurityContext(java.lang.Object securityContext)

getSubject

public javax.security.auth.Subject getSubject()

setEmbedded

public void setEmbedded(boolean embedded)

isEmbedded

public boolean isEmbedded()


Copyright © 2010. All Rights Reserved.