|
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.notifier.LyEventEncoder
public class LyEventEncoder
This class is used by DataSources to transmit events to an instance of LyEventConnection.
LyEventConnection
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
TYPE_CREATION
Name of the type CREATION. |
static java.lang.String |
TYPE_DELETION
Name of the type DELETION. |
static java.lang.String |
TYPE_GROUP
Name of the type GROUP. |
static java.lang.String |
TYPE_MODIFICATION
Name of the type MODIFICATION. |
Constructor Summary | |
---|---|
LyEventEncoder(LyEventNotifier notifier,
LyDataSource dataSource)
Default constructor Initialization is done with the init method. |
Method Summary | |
---|---|
boolean |
postCreation(java.lang.Object object)
Invoked when an object is created. |
boolean |
postDeletion(java.lang.Object object)
Invoked when an object is deleted. |
boolean |
postGroupedEvent(java.lang.String groupId,
LyEventNotifier.EventType type,
java.lang.Object object,
LyValueSet oldValues)
Invoked to notify grouped events. |
boolean |
postModification(java.lang.Object object,
LyValueSet oldValues)
Invoked when an object is modified. |
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
public static final java.lang.String TYPE_MODIFICATION
public static final java.lang.String TYPE_CREATION
public static final java.lang.String TYPE_DELETION
public static final java.lang.String TYPE_GROUP
Constructor Detail |
---|
public LyEventEncoder(LyEventNotifier notifier, LyDataSource dataSource)
notifier
- The associated notifierdataSource
- The datasource for which an event is encoded.Method Detail |
---|
public boolean postDeletion(java.lang.Object object)
object
- object which is deleted.
public boolean postCreation(java.lang.Object object)
object
- object which has been created.
public boolean postModification(java.lang.Object object, LyValueSet oldValues)
object
- object which has been modified.oldValues
- set of values which have been modified
public boolean postGroupedEvent(java.lang.String groupId, LyEventNotifier.EventType type, java.lang.Object object, LyValueSet oldValues)
groupId
- Id of the group of events. This id is used to group the notifications.type
- Type of the event. One of the NOTIF_XXX const in LyEventNotifier.object
- object impacted by the event.oldValues
- set of values which have been modified in case of NOTIF_UPDATE.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |