|
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 |
java.lang.Objectleon.app.behavior.LyDataSessionBehavior
public class LyDataSessionBehavior
This class implements the default behavior of a session.
LyDataSession
,
LyDataSessionBehaviorInterface
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version. |
Constructor Summary | |
---|---|
LyDataSessionBehavior()
Constructor. |
Method Summary | |
---|---|
void |
close(LyDataSession session)
Method called when a session is closed. |
void |
connectionLost(LyDataSession session,
LyInfo server)
Method called when a connection with a server ( LyLocation or
LyNotifier ) is lost. |
short |
controlBeforeCommit(LyDataSession session,
java.util.Collection<LyObject> objects)
Method called when a context needs to control objects before commit. |
void |
free()
Free this behavior. |
LyUnit |
getDefaultUnitForField(LyDataSession session,
LyFieldInfo fieldInfo)
Get the reference unit for the given field for the current session |
java.lang.Object |
getKeyValue(java.lang.String key)
Retrieves a value from a registered key. |
LyObject |
getUser(LyDataSession session)
Gets user of this session. |
void |
handleException(LyDataSession session,
java.lang.Throwable t)
Method called when an exception occurred during the session processing. |
void |
start(LyDataSession session)
Method called when a session is started. |
void |
updateUndoRedo(LyDataSession session)
/** Method called when the undo/redo status has changed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyDataSessionBehavior()
Method Detail |
---|
public void start(LyDataSession session)
validate
the session if the root action is not a
login action.
start
in interface LyDataSessionBehaviorInterface
session
- the started session.public void close(LyDataSession session)
close
in interface LyDataSessionBehaviorInterface
session
- the closed session.public LyObject getUser(LyDataSession session)
getUser
in interface LyDataSessionBehaviorInterface
session
- Current session.
public void handleException(LyDataSession session, java.lang.Throwable t)
abort
transactions of the
session.
handleException
in interface LyDataSessionBehaviorInterface
session
- the current sessiont
- The throwable instance that stopped the processing.public void free()
free
in interface LyDataSessionBehaviorInterface
public short controlBeforeCommit(LyDataSession session, java.util.Collection<LyObject> objects)
controlBeforeCommit
in interface LyDataSessionBehaviorInterface
session
- the current sessionobjects
- the objects to control.
public void updateUndoRedo(LyDataSession session)
updateUndoRedo
in interface LyDataSessionBehaviorInterface
session
- the current session.LyContextManager.isUndoAvailable()
,
LyContextManager.isRedoAvailable()
public void connectionLost(LyDataSession session, LyInfo server)
LyLocation
or
LyNotifier
) is lost.
connectionLost
in interface LyDataSessionBehaviorInterface
session
- Current session.server
- Logical server definitionpublic java.lang.Object getKeyValue(java.lang.String key)
getKeyValue
in interface LyDataSessionBehaviorInterface
key
- The key that must be used.
public LyUnit getDefaultUnitForField(LyDataSession session, LyFieldInfo fieldInfo)
getDefaultUnitForField
in interface LyDataSessionBehaviorInterface
session
- Current sessionfieldInfo
- a field
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |