de.novanic.eventservice.client.event
Interface DomainEvent

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultDomainEvent

public interface DomainEvent
extends java.io.Serializable

A DomainEvent is a container and contains an event and the domain where the event has occurred.

Author:
sstrohschein
Date: 05.10.2008
Time: 15:17:40

Method Summary
 Domain getDomain()
          Returns the domain where the event has occurred.
 Event getEvent()
          Returns the event.
 boolean isUserSpecific()
          An event/DomainEvent is user specific when it is only for one user and not for the complete domain.
 

Method Detail

isUserSpecific

boolean isUserSpecific()
An event/DomainEvent is user specific when it is only for one user and not for the complete domain. This flag depends on the constructor. If the DomainEvent is created with a domain, the DomainEvent isn't user specific.

Returns:
true when the event is user specific, otherwise false

getEvent

Event getEvent()
Returns the event.

Returns:
event

getDomain

Domain getDomain()
Returns the domain where the event has occurred.

Returns:
domain