org.nhindirect.stagent.mail.notifications
Class Disposition

java.lang.Object
  extended by org.apache.jsieve.mailet.mdn.Disposition
      extended by org.nhindirect.stagent.mail.notifications.Disposition

public class Disposition
extends Disposition

Encapsulates message disposition status.

Author:
gm2552, Umesh Madan

Constructor Summary
Disposition(NotificationType notification)
          Initializes an instance with the specified disposition notification type and automatic modes.
Disposition(TriggerType triggerType, SendType sendType, NotificationType notification)
          Initializes an instance with the specified disposition notification type and action and sending modes
 
Method Summary
 NotificationType getNotification()
          Gets the type of disposition indicated
 SendType getSendType()
          Gets the sending type (system or user) that sent this disposition (sending-mode).
 TriggerType getTriggerType()
          Gets the trigger action that generated this disposition (action-mode).
 boolean isError()
          Indicates if this disposition is an error report.
 void setError(boolean error)
          Sets the error status indicating if this disposition is an error report.
 void setNotification(NotificationType notification)
          Sets the type of disposition indicated.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Disposition

public Disposition(NotificationType notification)
Initializes an instance with the specified disposition notification type and automatic modes.

Parameters:
notification - The disposition notification type.

Disposition

public Disposition(TriggerType triggerType,
                   SendType sendType,
                   NotificationType notification)
Initializes an instance with the specified disposition notification type and action and sending modes

Parameters:
triggerType - The action (trigger) mode type
sendType - The sending mode type
notification - The disposition notification type
Method Detail

isError

public boolean isError()
Indicates if this disposition is an error report.

Returns:
true if this disposition is an error report. false otherwise.

setError

public void setError(boolean error)
Sets the error status indicating if this disposition is an error report.

Parameters:
error - true if this disposition is an error report. false otherwise.

getNotification

public NotificationType getNotification()
Gets the type of disposition indicated

Returns:
The type of disposition indicated

setNotification

public void setNotification(NotificationType notification)
Sets the type of disposition indicated.

Parameters:
notification - The type of disposition indicated.

getTriggerType

public TriggerType getTriggerType()
Gets the trigger action that generated this disposition (action-mode).

Returns:
The trigger action that generated this disposition

getSendType

public SendType getSendType()
Gets the sending type (system or user) that sent this disposition (sending-mode).

Returns:
The sending type that sent this disposition.

toString

public String toString()
Overrides:
toString in class Disposition


Copyright © 2010-2012 HNIN Direct. All Rights Reserved.