Class NotificationInput<T>

java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.utilities.core.bl.common.notification.NotificationInput<T>
Type Parameters:
T - the type of entity being notified
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned
Direct Known Subclasses:
AppointmentNotificationInput, InterventionOutcomeCompleteNotificationInput, InterventionOutcomeNotificationInput, MeasureNotificationInput, SchedulingNotificationInput

public class NotificationInput<T> extends DynO
Input container for notification events.
This class serves as an input bean for the NotificationEvent, containing both the entity being notified and the action that triggered the notification.
Since:
1.0
See Also:
  • Constructor Details

    • NotificationInput

      public NotificationInput()
  • Method Details

    • getEntity

      public T getEntity()
      Returns the entity that has been notified.
      Returns:
      the notified entity
    • setEntity

      public void setEntity(T entity)
      Sets the entity to be notified.
      Parameters:
      entity - the notified entity
    • getAction

      public NotificationAction getAction()
      Returns the action performed prior to the notification.
      Returns:
      the action
    • setAction

      public void setAction(NotificationAction action)
      Sets the action performed prior to the notification.
      Parameters:
      action - the action