lumis.portal.event
Class AbstractPortalEvent

Package class diagram package AbstractPortalEvent
java.lang.Object
  extended by lumis.portal.event.AbstractPortalEvent
All Implemented Interfaces:
IPortalEvent
Direct Known Subclasses:
AbstractTransactionalPortalEvent, BaseNotificationConfig, ClusterMembershipChangedEvent, ClusterMessageReceivedEvent, FileSystemEvent

@StableMinor(version="6.2",
             sinceVersion="4.2")
public abstract class AbstractPortalEvent
extends Object
implements IPortalEvent

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.

Since:
4.1.0

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

AbstractPortalEvent

public AbstractPortalEvent()
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 interface IPortalEvent
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 interface IPortalEvent
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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.