LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app
Class LySession

java.lang.Object
  extended by leon.app.LyDataSession
      extended by leon.app.LySession
All Implemented Interfaces:
LyEvaluator, LyGuiClientInterface, LyTimerClientInterface
Direct Known Subclasses:
LyWebSession, LyWsSession

public class LySession
extends LyDataSession
implements LyTimerClientInterface, LyGuiClientInterface

This class describes a user session. Each time a user connects itself on an application, a new instance of this class is created. By default, in heavy client versions a session is created when an application is started. In thin client versions (Servlet) a new session is created each time a new user connects himself on the servlet. A session is described by :

See Also:
LyApplication

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.app.LyDataSession
LyDataSession.State
 
Field Summary
static java.lang.String __VERSION
          File version.
static java.lang.String DEFAULT
          Default string.
static java.lang.String DEMAND_EXIT
          The Exit demand.
static java.lang.String DRAGGED_OBJECT
          DraggedObject string.
static java.lang.String METRIC_OBJECT_ID_KEY
          Metric object id constant.
static java.lang.String POPUP_VIEW
          Popup view String.
static short SESSION_TIMEOUT
          Default session time out (no time out).
 
Fields inherited from class leon.app.LyDataSession
_nbSessions, _sessionsCounter
 
Constructor Summary
LySession(LyApplication application)
          Constructor with a given application.
LySession(LyApplication application, boolean registerSession)
          Constructor with a given application.
LySession(LyApplication application, LySession parent, boolean registerSession)
          Constructor with a given application.
LySession(LyApplication application, LySession parent, java.lang.String perspectiveId, boolean registerSession)
          Constructor with a given application.
 
Method Summary
 void addController(LyController controller)
          Registers a controller on the session.
 void addOutlineController(LyOutlineController controller)
          Add an outline controller for this session.
 void addResetListener(LyResetInterface listener)
          Add reset listener.
 java.lang.String checkControllerId(LyController controller, java.lang.String id)
          Method to check id of the given controller.
 void close()
          Closes the session.
 void closeViews()
          Closes all views of the session except root.
 void closeViews(java.lang.String stackName)
          Closes all views of the session except root.
 void confirmClosing()
          Confirm the closing.
 void confirmExit()
          Confirm the exit.
 void confirmExit(boolean asynchronous)
          Confirm the exit.
 void controllerHidden(LyViewController viewController)
          Removes a view controller from the stack of shown controllers.
 void controllerShown(LyViewController viewController)
          Adds a view controller to the stack of shown controllers.
 void createStickerWindow(LyController parent, LyCreateStickerController stickerController, LySticker sticker)
          Deprecated.  
 boolean enableAction(LyAction action, LyController controller, LyObjectList objects, boolean showError)
          Indicates if an action is enabled for a given controller and a given objects list.
 boolean enableTransverseAction(LyAction action, LyClassInfo classInfo, LyController controller, LyObjectList objects, boolean showError)
          Indicates if a transverse action is enabled for a given controller and a given objects list.
 void endTimer(LyTimer timer)
          Called by the timer when session is in time out.
 void exit()
          Exit application.
 LyApplication getApplication()
          Returns the application owner of the session.
 LyController getController(int index)
          Retrieves a controller by its index.
 LyController getController(java.lang.String id)
          Retrieves a controller by its identifier.
 int getControllerCount()
          Gets number of controllers registered on this session.
 int getControllerStackSize(java.lang.String stackName)
          Returns the stack size (number of controller) for the given stack (or null for default).
 LyViewController getLastViewController()
          Returns the view controller that was last shown.
 LyViewController getLastViewController(int steps)
          Returns the view controller that was last shown.
 LySession getMasterSession()
          Return the master session for this session.
 java.lang.String getPluginId()
          Get the plugin id for this session.
 int getPrintThreadCount()
          Returns the number of printing threads registered on this session.
 LyController getRootContextController()
          Get a root level context controller.
 int getSessionTimeout()
          Returns the session timeout in seconds.
 java.util.Vector<LySession> getSlaveSessions()
          Return the list of slave sessions.
 LyViewController getStackLastController(java.lang.String stackName)
          Returns the last controller for the given stack (or null for default).
 java.lang.String[] getTempFile(java.lang.String id)
          Get a temporary file from its id.
 LyViewManager getViewManager()
          Accessor to the view manager.
 LyViewManager getViewManager(boolean mobile)
          Accessor to the view manager.
 void guiStart()
          Starts GUI.
 void guiStop()
          Stops GUI.
 void interruptPrintThreads()
          Interrupts printing threads registered on this session.
 LyController invokeAction(LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects, boolean show)
          Invokes an action.
 boolean invokeExtraAction(LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects, boolean show)
          Invokes an action that has no controller (an extra action).
 boolean isChatting()
          Check chat status.
 boolean isIdle()
          Check idle status of the table.
 LyInfoList<?> loadUserPreferences()
          Method for loading user preferences.
 LyInfoList<?> loadUserStickers()
          Method for loading user stickers.
 boolean login(java.lang.String login, java.lang.String password, java.util.HashMap<java.lang.String,java.lang.String> values)
          Log user corresponding to given login and password.
 boolean login(java.lang.String login, java.lang.String password, java.lang.String loginParameters)
          Log user corresponding to given login and password.
 void notifyOutline(LyAreaController controller)
          Notifies the outline controller that the selection has changed in an other controller.
 void processAboutAction(LyController parent)
          Show the result of the about action.
 LyController processAction(LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Processes the given action : creates the controller that handles the action.
 boolean processExtraAction(LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList objects)
          Processes an action that has no controller (an extra action) : processing of standard actions.
 void processHelpAction(LyController parent)
          Show the result of the help action.
 void processLogAction(LyController parent)
          Show the result of the log action.
 void processVersionAction(LyController parent)
          Show the result of the version action.
 void register(boolean start)
          Registers the session on its application owner.
 void removeController(LyController controller)
          Unregisters a controller from the session.
 void removeOutlineController(LyOutlineController controller)
          Remove an outline controller of this session for a given perspective.
 void removeResetListener(LyResetInterface listener)
          Remove given reset listener.
 void reset()
          Reset session.
 void resetTimeout()
          Called to reset the timer (When a user action occured).
 void resetUndoRedo()
          Reset undo redo stack.
 void sessionTimeout()
          Called when the session is in time out.
 void sessionTimeout(boolean asynchronous)
          Called when the session is in time out.
 void setChatting(boolean chat)
          Set chat status.
 void setIdle(boolean idle)
          Freeze/unfreeze session.
 void setLanguage(java.lang.String language)
          Sets the language for this session.
 void setMasterSession(LySession masterSession)
          Sets the master session for this session.
 void setPluginId(java.lang.String pluginId)
          Set the plugin id for the session.
 void setSkin(java.lang.String skin)
          Sets the skin for this session.
 void showView(LyController controller)
          Show view corresponding to the given controller.
 LyController start()
          Starts the session by invoking the root action.
 java.lang.String storeTempFile(java.lang.String path, java.lang.String name)
          Register a temporary file.
 java.lang.String toString()
          Dumps this session as a string.
 boolean validateAction(LyAction action, LyController controller)
          Indicates if an action is valid for a given controller.
 void writeXml(LyAction action, LyClassInfo classInfo, java.lang.String file, boolean fullView)
          Write XML view file corresponding to a given action.
 
Methods inherited from class leon.app.LyDataSession
addInfoListener, addValue, dumpLocks, getContextManager, getCreationTime, getDataSource, getDataSource, getEnvironment, getHardLock, getId, getKeyValue, getObjectsByName, getObjectSource, getParent, getSessionBehavior, getSoftLock, getState, getSubSessions, getUser, getValue, handleException, hasTransaction, isClosed, isObjectVisible, isRegistered, isValid, notifyInfoListeners, putObjectSource, releaseHardLock, releaseSoftLock, removeInfoListener, removeObjectSource, setTimeZone, setUser, setValid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version.

See Also:
Constant Field Values

SESSION_TIMEOUT

public static final short SESSION_TIMEOUT
Default session time out (no time out).

See Also:
Constant Field Values

DEMAND_EXIT

public static final java.lang.String DEMAND_EXIT
The Exit demand.


DEFAULT

public static final java.lang.String DEFAULT
Default string.


DRAGGED_OBJECT

public static final java.lang.String DRAGGED_OBJECT
DraggedObject string.


METRIC_OBJECT_ID_KEY

public static final java.lang.String METRIC_OBJECT_ID_KEY
Metric object id constant.


POPUP_VIEW

public static final java.lang.String POPUP_VIEW
Popup view String.

Constructor Detail

LySession

public LySession(LyApplication application)
Constructor with a given application. Registers the session on the application.

Parameters:
application - The application owner of the session.

LySession

public LySession(LyApplication application,
                 boolean registerSession)
Constructor with a given application.

Parameters:
application - The application owner of the session.
registerSession - Indicates if the session must be registered on the application (default is true), or if this is a temporary session which should be ignored.

LySession

public LySession(LyApplication application,
                 LySession parent,
                 boolean registerSession)
Constructor with a given application.

Parameters:
application - The application owner of the session.
parent - Parent session: used for a module.
registerSession - Indicates if the session must be registered on the application (default is true), or if this is a temporary session which should be ignored.

LySession

public LySession(LyApplication application,
                 LySession parent,
                 java.lang.String perspectiveId,
                 boolean registerSession)
Constructor with a given application.

Parameters:
application - The application owner of the session.
parent - Parent session: used for a module.
perspectiveId - The perspective id for this session.
registerSession - Indicates if the session must be registered on the application (default is true), or if this is a temporary session which should be ignored.
Method Detail

getApplication

public LyApplication getApplication()
Returns the application owner of the session.

Overrides:
getApplication in class LyDataSession
Returns:
The application owner of the session.
See Also:
LyApplication

getSessionTimeout

public int getSessionTimeout()
Returns the session timeout in seconds.

Returns:
the session timeout

register

public void register(boolean start)
Registers the session on its application owner. This method starts the session if the given parameter is true by calling the start() method.

Overrides:
register in class LyDataSession
Parameters:
start - Indicates whether the session must be started or not.
Throws:
java.lang.IllegalStateException - if the session has already been registered.
See Also:
start()

start

public LyController start()
Starts the session by invoking the root action. If no root action is defined in the meta-model then the '_login' action is started.

Returns:
The controller of the root action or null if nothing was done.

validateAction

public boolean validateAction(LyAction action,
                              LyController controller)
Indicates if an action is valid for a given controller. This method calls the same method on the client interface.

Parameters:
action - The action that must be tested.
controller - The controller used to control the action validity.
Returns:
true if the action is valid, false otherwise.
See Also:
LySessionBehavior.validateAction(leon.app.LySession, leon.info.LyAction, leon.control.LyController)

enableAction

public boolean enableAction(LyAction action,
                            LyController controller,
                            LyObjectList objects,
                            boolean showError)
Indicates if an action is enabled for a given controller and a given objects list. This method calls the same method on the client interface.

Parameters:
action - The action that must be tested.
controller - The controller used to control the action validity.
objects - The list of objects on which the action should be applied.
showError - Indicates if an error message should be displayed in case of error.
Returns:
true if the action is enabled, false otherwise.
See Also:
LySessionBehavior.enableAction(leon.app.LySession, leon.info.LyAction, leon.control.LyController, leon.data.LyObjectList, boolean)

enableTransverseAction

public boolean enableTransverseAction(LyAction action,
                                      LyClassInfo classInfo,
                                      LyController controller,
                                      LyObjectList objects,
                                      boolean showError)
Indicates if a transverse action is enabled for a given controller and a given objects list. This method calls the same method on the client interface.

Parameters:
action - The action that must be tested.
classInfo - The classInfo for which the action is checked.
controller - The controller used to control the action validity.
objects - The list of objects on which the action should be applied.
showError - Indicates if an error message should be displayed in case of error.
Returns:
true if the action is enabled, false otherwise.
See Also:
LySessionBehavior.enableTransverseAction(leon.app.LySession, leon.info.LyAction, leon.info.LyClassInfo, leon.control.LyController, leon.data.LyObjectList, boolean)

invokeExtraAction

public boolean invokeExtraAction(LyController parent,
                                 LyAction action,
                                 LyClassInfo classInfo,
                                 LyObjectList objects,
                                 boolean show)
Invokes an action that has no controller (an extra action).

Parameters:
parent - The source controller.
action - The action to execute.
classInfo - The class on which the action applies.
objects - The list of objects on which the action applies.
show - Indicates if the action must be shown or not.
Returns:
true if the action was handled by the session, false otherwise.
See Also:
LySessionBehavior.invokeExtraAction(leon.app.LySession, leon.control.LyController, leon.info.LyAction, leon.info.LyClassInfo, leon.data.LyObjectList, boolean)

processExtraAction

public boolean processExtraAction(LyController parent,
                                  LyAction action,
                                  LyClassInfo classInfo,
                                  LyObjectList objects)
Processes an action that has no controller (an extra action) : processing of standard actions.

Parameters:
parent - The source controller.
action - The action to execute.
classInfo - The class on which the action applies.
objects - The list of objects on which the action applies.
Returns:
true if the action was handled by the session, false otherwise.
See Also:
LySessionBehavior.invokeExtraAction(leon.app.LySession, leon.control.LyController, leon.info.LyAction, leon.info.LyClassInfo, leon.data.LyObjectList, boolean)

invokeAction

public LyController invokeAction(LyController parent,
                                 LyAction action,
                                 LyClassInfo classInfo,
                                 LyObjectList objects,
                                 boolean show)
Invokes an action.

Parameters:
parent - The source controller.
action - The action to execute.
classInfo - The class on which the action applies.
objects - The list of objects on which the action applies.
show - Indicates if the action must be shown or not.
Returns:
true if the action was handled by the session, false otherwise.
See Also:
LySessionBehavior.invokeAction(leon.app.LySession, leon.control.LyController, leon.info.LyAction, leon.info.LyClassInfo, leon.data.LyObjectList, boolean)

processAction

public LyController processAction(LyController parent,
                                  LyAction action,
                                  LyClassInfo classInfo,
                                  LyObjectList objects)
Processes the given action : creates the controller that handles the action.

Parameters:
parent - The source controller.
action - The action to execute.
classInfo - The class on which the action applies.
objects - The list of objects on which the action applies.
Returns:
the controller associated to this action
See Also:
LySessionBehavior.invokeAction(leon.app.LySession, leon.control.LyController, leon.info.LyAction, leon.info.LyClassInfo, leon.data.LyObjectList, boolean)

processAboutAction

public void processAboutAction(LyController parent)
Show the result of the about action.

Parameters:
parent - the source controller

processLogAction

public void processLogAction(LyController parent)
Show the result of the log action.

Parameters:
parent - the source controller

processVersionAction

public void processVersionAction(LyController parent)
Show the result of the version action.

Parameters:
parent - the source controller

processHelpAction

public void processHelpAction(LyController parent)
Show the result of the help action.

Parameters:
parent - the source controller

showView

public void showView(LyController controller)
Show view corresponding to the given controller.

Parameters:
controller - the controller to show

writeXml

public void writeXml(LyAction action,
                     LyClassInfo classInfo,
                     java.lang.String file,
                     boolean fullView)
Write XML view file corresponding to a given action.

Parameters:
action - The action to execute.
classInfo - The class on which the action applies.
file - Path of the output file.
fullView - Dump of the full view or only of its content.
See Also:
LySessionBehavior.invokeAction(leon.app.LySession, leon.control.LyController, leon.info.LyAction, leon.info.LyClassInfo, leon.data.LyObjectList, boolean)

getPrintThreadCount

public int getPrintThreadCount()
Returns the number of printing threads registered on this session. Actually threads are registered on controllers and this methods called all these controllers to retrieve printing threads.

Returns:
The number of printing threads registered on this session.

interruptPrintThreads

public void interruptPrintThreads()
Interrupts printing threads registered on this session. Actually threads are registered on controllers and this methods called all these controllers to interrupt printing threads.


endTimer

public void endTimer(LyTimer timer)
Called by the timer when session is in time out.

Specified by:
endTimer in interface LyTimerClientInterface
Parameters:
timer - the time that call this method

resetTimeout

public void resetTimeout()
Called to reset the timer (When a user action occured).


sessionTimeout

public void sessionTimeout()
Called when the session is in time out.


sessionTimeout

public void sessionTimeout(boolean asynchronous)
Called when the session is in time out.

Parameters:
asynchronous - indicates whether the exit is processed asynchronously

exit

public void exit()
Exit application.


confirmExit

public void confirmExit()
Confirm the exit. Interrupt all print thread and close the session


confirmExit

public void confirmExit(boolean asynchronous)
Confirm the exit. Interrupt all print thread and close the session

Parameters:
asynchronous - indicates whether the exit is processed asynchronously

confirmClosing

public void confirmClosing()
Confirm the closing.


close

public void close()
Closes the session. Removes the session from its application, sets all the controllers, the object sources and the view manager free.

Overrides:
close in class LyDataSession

closeViews

public void closeViews()
Closes all views of the session except root.


closeViews

public void closeViews(java.lang.String stackName)
Closes all views of the session except root.

Parameters:
stackName - the name of the controller stack or null if default stack is considered The name of a stack is the name of the window (Servlet mode)

checkControllerId

public java.lang.String checkControllerId(LyController controller,
                                          java.lang.String id)
Method to check id of the given controller.

Parameters:
controller - The new controller.
id - Desired id.
Returns:
Id of the new controller once checked by this session.

addController

public void addController(LyController controller)
Registers a controller on the session.

Parameters:
controller - The controller to register.
Throws:
java.lang.IllegalArgumentException - if the given controller is null.
See Also:
removeController(leon.control.LyController)

removeController

public void removeController(LyController controller)
Unregisters a controller from the session.

Parameters:
controller - The controller to unregister.
Throws:
java.lang.IllegalArgumentException - if the given controller is null.
See Also:
addController(leon.control.LyController)

getController

public LyController getController(java.lang.String id)
Retrieves a controller by its identifier.

Parameters:
id - The id of the controller to get.
Returns:
The controller which have the specified id.
Throws:
java.lang.IllegalArgumentException - if the given string is null.

getController

public LyController getController(int index)
Retrieves a controller by its index.

Parameters:
index - The index of the controller to get.
Returns:
The controller which have the specified index in the list of this session.

getControllerCount

public int getControllerCount()
Gets number of controllers registered on this session.

Returns:
Number of controllers of this session.

controllerShown

public void controllerShown(LyViewController viewController)
Adds a view controller to the stack of shown controllers.

Parameters:
viewController - The view controller to add.

controllerHidden

public void controllerHidden(LyViewController viewController)
Removes a view controller from the stack of shown controllers.

Parameters:
viewController - The view controller to remove.

getControllerStackSize

public int getControllerStackSize(java.lang.String stackName)
Returns the stack size (number of controller) for the given stack (or null for default).

Parameters:
stackName - the name of the controller stack or null if default stack is considered
Returns:
the number of controllers or null if stack is empty.

getStackLastController

public LyViewController getStackLastController(java.lang.String stackName)
Returns the last controller for the given stack (or null for default).

Parameters:
stackName - the name of the controller stack or null if default stack is considered
Returns:
the last controller of the stack or null if stack is empty.

getLastViewController

public LyViewController getLastViewController()
Returns the view controller that was last shown.

Returns:
The view controller that was last shown or null if no view controller had been shown yet.

getLastViewController

public LyViewController getLastViewController(int steps)
Returns the view controller that was last shown.

Parameters:
steps - the number of steps used to retrieve desired view controller. For example, getLastViewController(0) will return the view controller that was last shown, getLastViewController(1) will return the view controller that was shown before this one, etc.
Returns:
The view controller that was last shown or null if no view controller had been shown yet.

addOutlineController

public void addOutlineController(LyOutlineController controller)
Add an outline controller for this session. This controller is usefull for selection notification.

Parameters:
controller - An outline controller for this session.

createStickerWindow

public void createStickerWindow(LyController parent,
                                LyCreateStickerController stickerController,
                                LySticker sticker)
Deprecated. 

Create a sticker window and add it to given parent window for the given sticker.

Parameters:
parent - the parent controller whose view will get the sticker component.
stickerController - the create sticker controller.
sticker - the sticker definition.

removeOutlineController

public void removeOutlineController(LyOutlineController controller)
Remove an outline controller of this session for a given perspective.

Parameters:
controller - the outline controller to remove.

notifyOutline

public void notifyOutline(LyAreaController controller)
Notifies the outline controller that the selection has changed in an other controller.

Parameters:
controller - The area controller where the selection has changed.

guiStart

public void guiStart()
Starts GUI.

Specified by:
guiStart in interface LyGuiClientInterface

guiStop

public void guiStop()
Stops GUI.

Specified by:
guiStop in interface LyGuiClientInterface

isIdle

public final boolean isIdle()
Check idle status of the table.

Returns:
boolean indicating the idle mode

setIdle

public void setIdle(boolean idle)
Freeze/unfreeze session.

Parameters:
idle - true to freeze the session, false to unfreeze

isChatting

public final boolean isChatting()
Check chat status.

Returns:
boolean indicating the chat mode

setChatting

public void setChatting(boolean chat)
Set chat status.

Parameters:
chat - the new chat status.

reset

public void reset()
Reset session. Resets all view controllers of the session.


addResetListener

public void addResetListener(LyResetInterface listener)
Add reset listener.

Parameters:
listener - Listener to call on reset.

removeResetListener

public void removeResetListener(LyResetInterface listener)
Remove given reset listener.

Parameters:
listener - Listener removed from reset listeners list.

setPluginId

public void setPluginId(java.lang.String pluginId)
Set the plugin id for the session.

Overrides:
setPluginId in class LyDataSession
Parameters:
pluginId - The plugin id.

getPluginId

public java.lang.String getPluginId()
Get the plugin id for this session.

Overrides:
getPluginId in class LyDataSession
Returns:
The plugin id.

setLanguage

public void setLanguage(java.lang.String language)
Sets the language for this session. Default values are defined in LANGUAGE_xxx constants.

Parameters:
language - The new language.
See Also:
LyEnvironment.setLanguage(String)

setSkin

public void setSkin(java.lang.String skin)
Sets the skin for this session.

Parameters:
skin - The new skin.
See Also:
LyEnvironment.setSkin(String)

setMasterSession

public void setMasterSession(LySession masterSession)
Sets the master session for this session.
Used in web mode only to indicate that current session is a "slave" session managed by another one.

Parameters:
masterSession - the master session of this session

getMasterSession

public LySession getMasterSession()
Return the master session for this session.
Used in web mode only to indicate that current session is a "slave" session managed by another one.

Returns:
the master session for this session if set, null otherwise

getSlaveSessions

public java.util.Vector<LySession> getSlaveSessions()
Return the list of slave sessions. Used in web mode only to indicate the sessions managed by current one.

Returns:
a list of slave sessions

getRootContextController

public LyController getRootContextController()
Get a root level context controller. This controller when created defines a top level session context : GUI modification Like set controller should become subcontext of this context. Usually this method returns null (no controller is a top level context controller). The ImportTableController is defining a root level context to grab all user modifications in the import context while the import table is active.

Returns:
the root level context controller if any, or null if it could not be found.

toString

public java.lang.String toString()
Dumps this session as a string.

Overrides:
toString in class java.lang.Object
Returns:
the session dump as string

resetUndoRedo

public void resetUndoRedo()
Reset undo redo stack.

Overrides:
resetUndoRedo in class LyDataSession

getViewManager

public LyViewManager getViewManager()
Accessor to the view manager.

Returns:
the view manager for this session

getViewManager

public LyViewManager getViewManager(boolean mobile)
Accessor to the view manager.

Parameters:
mobile - : if the request comes from a mobile
Returns:
the view manager for this session

loadUserPreferences

public LyInfoList<?> loadUserPreferences()
Method for loading user preferences.

Returns:
a list of user preferences

loadUserStickers

public LyInfoList<?> loadUserStickers()
Method for loading user stickers.


storeTempFile

public java.lang.String storeTempFile(java.lang.String path,
                                      java.lang.String name)
Register a temporary file.

Parameters:
path - the path of the file
name - the name of the file
Returns:
a unique id for this file
See Also:
getTempFile(String)

getTempFile

public java.lang.String[] getTempFile(java.lang.String id)
Get a temporary file from its id.

Parameters:
id - the id of a file
Returns:
an array of String: index 0 is the path, index 1 is the name. Can be null
See Also:
storeTempFile(String, String)

login

public boolean login(java.lang.String login,
                     java.lang.String password,
                     java.lang.String loginParameters)
Log user corresponding to given login and password.

Parameters:
login - User login.
password - User password.
loginParameters - Parameters string formated like param1=value1;param2=value2;....
Returns:
True if log is successfull, false otherwise.

login

public boolean login(java.lang.String login,
                     java.lang.String password,
                     java.util.HashMap<java.lang.String,java.lang.String> values)
Log user corresponding to given login and password.

Parameters:
login - User login.
password - User password.
values - Extra values if needed.
Returns:
True if log is successfull, false otherwise.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com