Package lumis.portal.event
Class AbstractPortalEvent
- java.lang.Object
-
- lumis.portal.event.AbstractPortalEvent
-
- All Implemented Interfaces:
IPortalEvent
- Direct Known Subclasses:
AbstractTransactionalPortalEvent
,ActivityDocumentAddedEvent
,BigDataRepositoryInitializedEvent
,BigDataRepositoryPreDestroyEvent
,ClusterMembershipChangedEvent
,ClusterMessageReceivedEvent
,FileSystemEvent
@StableMinor(version="14.1", sinceVersion="4.2") public abstract class AbstractPortalEvent extends Object implements IPortalEvent
An abstract implementation forIPortalEvent
. It is recommended to extend this class instead of implementing the interface directly.This implementation initializes
getOperationType()
asPortalEventOperationType.UNDEFINED
andgetEventGroups()
as and empty set. Subclasses may call the set methods (preferably inside the constructor) or override the get methods to change these default values.- Since:
- 4.1.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
-
-
Constructor Summary
Constructors Constructor Description AbstractPortalEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
getEventGroups
public Set<String> getEventGroups()
Description copied from interface:IPortalEvent
Returns the event group identifiers for which this event was raised. The possible groups for each event may be defined by each event implementation.- Specified by:
getEventGroups
in interfaceIPortalEvent
- Returns:
- this event's groups. Must never return
null
, but may return an empty set to indicate that this event does not belong to any group.
-
setEventGroups
protected void setEventGroups(Set<String> eventGroups)
Sets the groups for this event.- Parameters:
eventGroups
- the groups to set.- Since:
- 4.1.0
-
getOperationType
public PortalEventOperationType getOperationType()
Description copied from interface:IPortalEvent
Returns the type of operation that generated this event.- Specified by:
getOperationType
in interfaceIPortalEvent
- Returns:
- the type of operation that generated this event.
-
setOperationType
protected void setOperationType(PortalEventOperationType operationType)
Sets the type of operation that generated this event.- Parameters:
operationType
- the operation type value to set.- Since:
- 4.1.0
-
-