VLab Common 1.2

pl.psnc.vlab.remote.session
Interface VlabSessionRemote

All Known Implementing Classes:
VlabSessionRemoteImpl

public interface VlabSessionRemote

This it the interface to the VLab Comunnication Proxy module (which is written in C). It allows sending messages to the VLab sytem.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Method Summary
 SessionValue getAppSession(java.lang.String sessionKey)
          Retrieve session information by the given session key
 byte[] getUserProxy(int userId)
          Get the user proxy
 boolean isSessionValid(java.lang.String sessionKey)
          Checks whether the current session is valid.
 boolean removeSession(java.lang.String sessionKey)
          Deletes session from the database by the given session key
 boolean updateSession(java.lang.String sessionKey)
          Updates timestamp in the current session
 

Method Detail

getAppSession

SessionValue getAppSession(java.lang.String sessionKey)
                           throws VlabException
Retrieve session information by the given session key

Parameters:
sessionKey - session key
Returns:
session value object
Throws:
VlabException - indicates an exception which may occur during call

isSessionValid

boolean isSessionValid(java.lang.String sessionKey)
                       throws VlabException
Checks whether the current session is valid. The session is valid if the following condition is true: current_timestamp < last_valid_timestamp + timestamp_limit timestamo_limit is stored in the database

Parameters:
sessionKey - session key
Returns:
true if the session is valid false otherwise
Throws:
VlabException - indicates an exception which may occur during call

removeSession

boolean removeSession(java.lang.String sessionKey)
                      throws VlabException
Deletes session from the database by the given session key

Parameters:
sessionKey - session key
Returns:
true if the operation succeeds false otherwise
Throws:
VlabException - indicates an exception which may occur during call

updateSession

boolean updateSession(java.lang.String sessionKey)
                      throws VlabException
Updates timestamp in the current session

Parameters:
sessionKey - session key
Returns:
true if the operation succeeds false otherwise
Throws:
VlabException - indicates an exception which may occur during call

getUserProxy

byte[] getUserProxy(int userId)
                    throws VlabException
Get the user proxy

Parameters:
userId -
Returns:
user proxy as a byte array
Throws:
VlabException - indicates an exception which may occur during call

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.