LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.webservice
Class LyWsApplication

java.lang.Object
  extended by leon.app.LyApplication
      extended by leon.view.web.webservice.LyWsApplication
All Implemented Interfaces:
LyTimerClientInterface

public class LyWsApplication
extends LyApplication


Field Summary
 
Fields inherited from class leon.app.LyApplication
__VERSION, ARRAY_SEP, CLASS_SEP, FIELD_SEP, LABEL_SEP, NAME_SEP, VALUE_SEP, VISIBLE_ARRAY_SEP, VISIBLE_FIELD_SEP, VISIBLE_VALUE_SEP, VISIBLE_VECTOR_SEP
 
Constructor Summary
LyWsApplication(LyApplication parent, LyProject rootProject, java.lang.String id, java.lang.String configFile, java.lang.String path, java.lang.ClassLoader classLoader)
           
LyWsApplication(LyApplication parent, java.lang.String id)
           
LyWsApplication(LyApplication parent, java.lang.String id, java.lang.String configFile, java.lang.String path, java.lang.ClassLoader classLoader)
           
LyWsApplication(java.lang.String id)
           
LyWsApplication(java.lang.String id, java.lang.String configFile)
           
LyWsApplication(java.lang.String id, java.lang.String configFile, java.lang.ClassLoader classLoader)
           
LyWsApplication(java.lang.String id, java.lang.String configFile, java.lang.String path)
          Constructor with a given id and configuration file.
LyWsApplication(java.lang.String id, java.lang.String configFile, java.lang.String path, java.lang.ClassLoader classLoader)
           
 
Method Summary
static LyWsApplication getApplication(java.lang.String id)
          Return an application matching the given id
 LyWsSession getSession(java.lang.String sessionId)
          Get the session matching the id generated for the webservice, return null if no sessions are found
 java.lang.String getSessionId(java.lang.String user, java.lang.String password, java.lang.String args)
          Generate a session identifier for a given user
 boolean requireSession()
           
 
Methods inherited from class leon.app.LyApplication
abortClosing, addDaemon, addDataProvider, addListener, addSessionListener, addValue, buildDefaultLocationId, checkProviders, close, closeAll, createCache, deleteExtraInfo, endTimer, freeDialogSessions, getAction, getActions, getActionWithId, getActionWithTemplate, getApplicationBehavior, getApplications, getClassInfo, getClassInfos, getClassInfosFromBinding, getClassLoader, getContextManager, getCurrentContext, getCurrentEvaluator, getCurrentInstance, getCurrentSession, getDaemon, getDaemon, getDataProvider, getDataProviderCount, getDataSource, getDataSource, getDefaultLocationId, getEnvironment, getError, getEventManager, getId, getInfo, getInfoApplication, getInfoList, getInfoProvider, getInfos, getLocalDataProvider, getObjectSource, getParent, getPrefDataProvider, getPriorityLevel, getProject, getRootApplication, getSession, getSessionCount, getSessions, getSQLDataProvider, getSubApplication, getSubApplicationCount, getSubApplications, getSupportedLanguages, getSupportedTimeZones, getTag, getTags, getTransactionManager, getValue, hasParent, hasTransaction, isClosing, isEdited, isIdle, isSleeping, isValid, isWaitingForClosing, loadClass, loadClass, loadClasses, loadData, loadData, loadExtraInfos, loadExtraInfosFromDB, loadProject, parse, parseExtraFiles, putApplication, putDataSource, putInfo, putTag, reloadData, removeAll, removeApplication, removeDataSource, removeInfo, removeListener, removeSessionListener, removeTag, saveData, saveExtraInfo, saveExtraInfo, setClassLoader, setCurrentContext, setCurrentEvaluator, setCurrentInstance, setCurrentSession, setDataProviderLocation, setDefaultLocationId, setError, setIdle, sleep, start, unloadData, validateClasses, wakeUp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LyWsApplication

public LyWsApplication(java.lang.String id)
Parameters:
id -

LyWsApplication

public LyWsApplication(java.lang.String id,
                       java.lang.String configFile)
Parameters:
id -
configFile -

LyWsApplication

public LyWsApplication(java.lang.String id,
                       java.lang.String configFile,
                       java.lang.ClassLoader classLoader)
Parameters:
id -
configFile -
classLoader -

LyWsApplication

public LyWsApplication(java.lang.String id,
                       java.lang.String configFile,
                       java.lang.String path,
                       java.lang.ClassLoader classLoader)
Parameters:
id -
configFile -
path -
classLoader -

LyWsApplication

public LyWsApplication(LyApplication parent,
                       java.lang.String id,
                       java.lang.String configFile,
                       java.lang.String path,
                       java.lang.ClassLoader classLoader)
Parameters:
parent -
id -
configFile -
path -
classLoader -

LyWsApplication

public LyWsApplication(LyApplication parent,
                       LyProject rootProject,
                       java.lang.String id,
                       java.lang.String configFile,
                       java.lang.String path,
                       java.lang.ClassLoader classLoader)
Parameters:
parent -
rootProject -
id -
configFile -
path -
classLoader -

LyWsApplication

public LyWsApplication(LyApplication parent,
                       java.lang.String id)
Parameters:
parent -
id -

LyWsApplication

public LyWsApplication(java.lang.String id,
                       java.lang.String configFile,
                       java.lang.String path)
Constructor with a given id and configuration file.

Parameters:
id - The identifier of the application.
configFile - The configuration file of the application.
path - The initial path for the application .
Method Detail

getSessionId

public java.lang.String getSessionId(java.lang.String user,
                                     java.lang.String password,
                                     java.lang.String args)
Generate a session identifier for a given user

Parameters:
user -
password -
args -
Returns:

getApplication

public static LyWsApplication getApplication(java.lang.String id)
Return an application matching the given id

Parameters:
id -
Returns:

getSession

public LyWsSession getSession(java.lang.String sessionId)
Get the session matching the id generated for the webservice, return null if no sessions are found

Overrides:
getSession in class LyApplication
Parameters:
sessionId -
Returns:

requireSession

public boolean requireSession()
Returns:
true if the Leonardi application requires the creation of one session and false in the other case

(c) January 2013 - W4 S.A.

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