|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LyApplicationBehaviorInterface
This interface defines methods to implement in order to create a specific behavior for an application.
LyApplication
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Method Summary | |
---|---|
void |
addSpecificEncoders(LyApplication application,
LyDataProvider provider)
Adds specific encoders for new providers if needed. |
void |
afterCommit(LyApplication application,
java.lang.String idTransaction,
java.lang.String locationId)
Method called after a transaction has been committed on a location. |
void |
afterRollback(LyApplication application,
java.lang.String idTransaction,
java.lang.String locationId)
Method called after a transaction has been rollbacked on a location. |
void |
beforeCommit(LyApplication application,
java.lang.String idTransaction,
java.lang.String locationId)
Method called before a transaction should be committed on a location. |
void |
beforeRollback(LyApplication application,
java.lang.String idTransaction,
java.lang.String locationId)
Method called before a transaction should be rollbacked on a location. |
void |
begin(LyApplication application,
java.lang.String idTransaction,
java.lang.String locationId)
Method called when a transaction begins on a location. |
void |
close(LyApplication application)
Method called when an application is closed. |
void |
connectionLost(LyApplication application,
LyInfo server)
Method called when a connection with a server ( LyLocation or LyNotifier ) is lost. |
void |
createDaemons(LyApplication application)
Creates daemons to manage relations within an application. |
boolean |
deleteExtraInfo(LyApplication application,
LyExtraInfoInterface info)
Delete given extra info like preferences, charts or treemap configurations. |
boolean |
enableLoadUnloadData(LyClassInfo classInfo)
Indicates whether data may be loaded / unloaded for given class info. |
void |
free()
Free this behavior. |
LyEventManager |
getEventManager(LyApplication application)
Get the event manager for the given application. |
LyInfoList<LyClassInfo> |
getLogicalClasses(LyApplication application,
LyObjectId objectId,
LyValueSet values)
Method used to find logical classes of a peer object identifier. |
double |
getNextDouble(LyApplication application,
LyClass objectClass)
Method used to get an unique double value for the specified application. |
float |
getNextFloat(LyApplication application,
LyClass objectClass)
Method used to get an unique float value for the specified application. |
int |
getNextInt(LyApplication application,
LyClass objectClass)
Method used to get an unique int value for the specified application. |
long |
getNextLong(LyApplication application,
LyClass objectClass)
Method used to get an unique long value for the specified application. |
short |
getNextShort(LyApplication application,
LyClass objectClass)
Method used to get an unique short value for the specified application. |
int |
getPriorityLevel(LyApplication application,
LyObject object)
Gets the control priority level of the application. |
LyInfoList<LyClassInfo> |
getSubClasses(LyApplication application,
LyObjectId objectId,
LyValueSet values)
Method used by abstract classes to define which subclass has to be loaded. |
java.lang.String[][] |
getSupportedLanguages(LyApplication application)
Gets all languages that the given application supports. |
java.lang.String[] |
getSupportedTimeZones(LyApplication application)
Get all timezone supported by this application. |
void |
loadData(LyApplication application)
Method called when datas are loaded for an application. |
void |
loadData(LyApplication application,
LyInfoList<LyClassInfo> classes)
Load data for given classes. |
LyInfoList<LyInfo> |
loadExtraInfos(LyApplication application)
Load extra infos. |
java.util.Vector<LyExtraInfoInterface> |
loadExtraInfosFromDB(LyApplication application,
java.lang.String type,
java.lang.String userId)
Load extra info like preferences, charts, treemap configurations or form saves. |
LyInfoList<LyInfo> |
loadPreferences(LyApplication application)
Load application preferences. |
LyInfoList<LyInfo> |
parseExtraFromDB(LyApplication application,
java.lang.String prefType,
java.lang.String userId)
Method for parsing extra information such as charts or preferences. |
void |
saveData(LyApplication application)
Method called when datas are saved for an application. |
boolean |
saveExtraInfo(LyApplication application,
LyExtraInfoInterface info)
Save given extra info like preferences, charts or treemap configurations. |
boolean |
saveExtraInfo(LyApplication application,
LyExtraInfoInterface info,
LyXmlWriterInterface writer)
Save given extra info like preferences, charts or treemap configurations. |
void |
sessionAdded(LyApplication application,
LyDataSession session)
Method called when a session is added to the application. |
void |
sessionRemoved(LyApplication application,
LyDataSession session)
Method called when a session is removed from the application. |
void |
sleep(LyApplication application)
Method called when an application falls in sleeping mode. |
boolean |
start(LyApplication application)
Method called when an application is starting. |
boolean |
started(LyApplication application)
Method called when an application is started. |
void |
transactionCompleted(LyApplication application,
java.util.Vector<java.lang.String> idTransactions,
java.util.Vector<java.lang.String> locationIds)
Method called after a transaction was successfully completed (commit and notification done). |
void |
unloadData(LyApplication application)
Method called when datas are unloaded for an application. |
void |
update(LyApplication application,
java.lang.String idTransaction,
java.lang.String locationId,
java.lang.String request)
Method called when a request is sent in a transaction for a location. |
void |
wakeUp(LyApplication application)
Method called when an application is awake from sleeping mode. |
Methods inherited from interface leon.app.behaviorinterface.LySessionListenerInterface |
---|
sessionLoggedIn |
Field Detail |
---|
static final java.lang.String __VERSION
Method Detail |
---|
boolean start(LyApplication application)
started(LyApplication)
to be notified
after generic staring process.
application
- Application that is starting.
started(LyApplication)
boolean started(LyApplication application)
start(LyApplication)
to be notified before
generic staring process.
application
- Application that is started.
start(LyApplication)
LyInfoList<LyInfo> loadPreferences(LyApplication application)
application
- Application on which preferences are loaded.
LyInfoList<LyInfo> loadExtraInfos(LyApplication application)
application
- Application on which extra infos (like charts or treemap configurations)
are loaded.
java.util.Vector<LyExtraInfoInterface> loadExtraInfosFromDB(LyApplication application, java.lang.String type, java.lang.String userId)
application
- Application on which extra info is saved.type
- Type of the extra info.id
- Id of extra info.
boolean saveExtraInfo(LyApplication application, LyExtraInfoInterface info)
application
- Application on which extra info is saved.info
- Info to be saved.
boolean saveExtraInfo(LyApplication application, LyExtraInfoInterface info, LyXmlWriterInterface writer)
application
- Application on which extra info is saved.info
- Info to be saved.writer
- Writer interface.
boolean deleteExtraInfo(LyApplication application, LyExtraInfoInterface info)
application
- Application on which extra info is deleted.info
- Info to be deleted.
void createDaemons(LyApplication application)
application
- Current application.void sessionAdded(LyApplication application, LyDataSession session)
sessionAdded
in interface LySessionListenerInterface
application
- Application in which a session is added.session
- Session added to the application.void sessionRemoved(LyApplication application, LyDataSession session)
sessionRemoved
in interface LySessionListenerInterface
application
- Application in which a session is removed.session
- Session removed from the application.void loadData(LyApplication application)
application
- Application for which datas are loaded.void unloadData(LyApplication application)
application
- Application for which datas are unloaded.boolean enableLoadUnloadData(LyClassInfo classInfo)
classInfo
- class info for which data may be loaded / unloaded
void saveData(LyApplication application)
application
- Application for which datas are saved.void close(LyApplication application)
application
- Application that is closed.void sleep(LyApplication application)
application
- Application for which datas are saved.void wakeUp(LyApplication application)
application
- Application that is awake.java.lang.String[][] getSupportedLanguages(LyApplication application)
application
- Application that is awake.
Locale
for the first string, and the display name of the language or a key to the
dictionary of this string for the second.java.lang.String[] getSupportedTimeZones(LyApplication application)
application
- the current application
void addSpecificEncoders(LyApplication application, LyDataProvider provider)
application
- Current application.provider
- provider which may need an encodervoid connectionLost(LyApplication application, LyInfo server)
LyLocation
or LyNotifier
) is lost.
application
- Current application.server
- Logical server definitionint getPriorityLevel(LyApplication application, LyObject object)
application
- Current application.object
- the object on which the control is applied.
void begin(LyApplication application, java.lang.String idTransaction, java.lang.String locationId)
application
- Current applicationidTransaction
- Id of the begin transactionlocationId
- Id of the locationvoid update(LyApplication application, java.lang.String idTransaction, java.lang.String locationId, java.lang.String request)
application
- Current applicationidTransaction
- Id of the transactionlocationId
- Id of the locationrequest
- Sent request if the request has a string representationvoid beforeCommit(LyApplication application, java.lang.String idTransaction, java.lang.String locationId)
application
- Current applicationidTransaction
- Id of the transactionlocationId
- Id of the locationvoid afterCommit(LyApplication application, java.lang.String idTransaction, java.lang.String locationId)
application
- Current applicationidTransaction
- Id of the transactionlocationId
- Id of the locationvoid beforeRollback(LyApplication application, java.lang.String idTransaction, java.lang.String locationId)
application
- Current applicationidTransaction
- Id of the transactionlocationId
- Id of the locationvoid afterRollback(LyApplication application, java.lang.String idTransaction, java.lang.String locationId)
application
- Current applicationidTransaction
- Id of the transactionlocationId
- Id of the locationLyInfoList<LyClassInfo> getSubClasses(LyApplication application, LyObjectId objectId, LyValueSet values)
application
- current application.objectId
- the object identifier to be loadedvalues
- optional additional values we might know about the object : this
parameter is usually null.
LyInfoList<LyClassInfo> getLogicalClasses(LyApplication application, LyObjectId objectId, LyValueSet values)
application
- current application.objectId
- an object identifier of a peer object (use LyClassInfo.getObjectClass()
to get the peer class : instance
of LyClass
)values
- optional additional values we might know about the object : this
parameter is usually null.
short getNextShort(LyApplication application, LyClass objectClass)
application
- current applicationobjectClass
- the class for which a new object is created.
int getNextInt(LyApplication application, LyClass objectClass)
application
- current applicationobjectClass
- the class for which a new object is created.
long getNextLong(LyApplication application, LyClass objectClass)
application
- current applicationobjectClass
- the class for which a new object is created.
float getNextFloat(LyApplication application, LyClass objectClass)
application
- current applicationobjectClass
- the class for which a new object is created.
double getNextDouble(LyApplication application, LyClass objectClass)
application
- current applicationobjectClass
- the class for which a new object is created.
void transactionCompleted(LyApplication application, java.util.Vector<java.lang.String> idTransactions, java.util.Vector<java.lang.String> locationIds)
application
- the current applicationidTransactions
- List of involved transaction idslocationIds
- list of involved locations idsvoid free()
void loadData(LyApplication application, LyInfoList<LyClassInfo> classes)
application
- Application for which classes are loaded.classes
- List of classes to load.LyApplication.loadData()
,
LyClassInfo
LyInfoList<LyInfo> parseExtraFromDB(LyApplication application, java.lang.String prefType, java.lang.String userId)
application
- Application for which classes are loaded.prefType
- identifies the preference type : "preference", "chart" or "treemap_configuration"userId
- User id (may be null when info is shared).
LyEventManager getEventManager(LyApplication application)
application
- the current application
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |