|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.event.AbstractPortalEvent
@StableMinor(version="5.5", sinceVersion="4.2") public abstract class AbstractPortalEvent
An abstract implementation for IPortalEvent
.
It is recommended to extend this class instead of implementing
the interface directly.
This implementation initializes getOperationType()
as
PortalEventOperationType.UNDEFINED
and
getEventGroups()
as and empty set. Subclasses may call the set
methods (preferably inside the constructor) or override the get methods
to change these default values.
Constructor Summary | |
---|---|
AbstractPortalEvent()
|
Method Summary | |
---|---|
Set<String> |
getEventGroups()
Returns the event group identifiers for which this event was raised. |
PortalEventOperationType |
getOperationType()
Returns the type of operation that generated this event. |
protected void |
setEventGroups(Set<String> eventGroups)
Sets the groups for this event. |
protected void |
setOperationType(PortalEventOperationType operationType)
Sets the type of operation that generated this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.portal.event.IPortalEvent |
---|
toString |
Constructor Detail |
---|
public AbstractPortalEvent()
Method Detail |
---|
public Set<String> getEventGroups()
IPortalEvent
getEventGroups
in interface IPortalEvent
null
, but
may return an empty set to indicate that this event does not belong
to any group.protected void setEventGroups(Set<String> eventGroups)
eventGroups
- the groups to set.public PortalEventOperationType getOperationType()
IPortalEvent
getOperationType
in interface IPortalEvent
protected void setOperationType(PortalEventOperationType operationType)
operationType
- the operation type value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |