org.ow2.jasmine.event.beans
Class JasmineEventNotificationUpdate

java.lang.Object
  extended by org.ow2.jasmine.event.beans.JasmineEventNotificationUpdate
All Implemented Interfaces:
Serializable, IJasmineEventNotification

public class JasmineEventNotificationUpdate
extends Object
implements IJasmineEventNotification, Serializable

Contains informations to update a stored JasmineEventNotification. The update will add a JasmineEventNotificationDetail, or a JasmineEventNotificationExecutedAction. Filters have to be set to get a unique notification to update.

Author:
Guillaume Renault
See Also:
Serialized Form

Constructor Summary
JasmineEventNotificationUpdate()
          Initialize the SearchFilter list and the JasmineEventNotificationDetail list.
JasmineEventNotificationUpdate(JasmineEventNotificationExecutedAction p_action)
          Initialize the SearchFilter list and set the action to add.
JasmineEventNotificationUpdate(List<JasmineEventNotificationDetail> p_details)
          Initialize the SearchFilter list and set the detail to add.
 
Method Summary
 void addDetail(JasmineEventNotificationDetail detail)
           
 void addSearchFilter(SearchFilter searchFilter)
          Add a SearchFilter to the list.
 JasmineEventNotificationExecutedAction getAction()
           
 String getComment()
           
 Date getDate()
           
 List<JasmineEventNotificationDetail> getDetails()
           
 String getId()
           
 int getMaxRetry()
           
 String getMessage()
           
 String getRule()
           
 List<SearchFilter> getSearchFilters()
           
 String getUser()
           
 void setAction(JasmineEventNotificationExecutedAction action)
           
 void setComment(String comment)
           
 void setDate(Date date)
           
 void setId(String id)
           
 void setMaxRetry(int maxRetry)
           
 void setMessage(String message)
           
 void setRule(String rule)
           
 void setUser(String user)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JasmineEventNotificationUpdate

public JasmineEventNotificationUpdate()
Initialize the SearchFilter list and the JasmineEventNotificationDetail list.


JasmineEventNotificationUpdate

public JasmineEventNotificationUpdate(List<JasmineEventNotificationDetail> p_details)
Initialize the SearchFilter list and set the detail to add.

Parameters:
p_details - the JasmineEventNotificationDetail to add.

JasmineEventNotificationUpdate

public JasmineEventNotificationUpdate(JasmineEventNotificationExecutedAction p_action)
Initialize the SearchFilter list and set the action to add.

Parameters:
p_action - the JasmineEventNotificationExecutedAction to add.
Method Detail

getId

public String getId()
Returns:
the ID of the notification to update or updated

setId

public void setId(String id)
Parameters:
id - the ID of the notification to update or updated

getDetails

public List<JasmineEventNotificationDetail> getDetails()
Returns:
the detail

addDetail

public final void addDetail(JasmineEventNotificationDetail detail)
Parameters:
detail - the detail to set

getAction

public final JasmineEventNotificationExecutedAction getAction()
Returns:
the action

setAction

public final void setAction(JasmineEventNotificationExecutedAction action)
Parameters:
action - the action to set

getSearchFilters

public List<SearchFilter> getSearchFilters()
Returns:
the filters

addSearchFilter

public void addSearchFilter(SearchFilter searchFilter)
Add a SearchFilter to the list.

Parameters:
searchFilter - the SearchFilter to add.

getDate

public Date getDate()
Returns:
the date

setDate

public void setDate(Date date)
Parameters:
date - the date of the notification update

getMessage

public final String getMessage()
Returns:
the message

setMessage

public final void setMessage(String message)
Parameters:
message - the message to set

getComment

public final String getComment()
Returns:
the comment

setComment

public final void setComment(String comment)
Parameters:
comment - the comment to set

getUser

public final String getUser()
Returns:
the user

setUser

public final void setUser(String user)
Parameters:
user - the user to set

getRule

public String getRule()

setRule

public void setRule(String rule)

getMaxRetry

public final int getMaxRetry()
Returns:
the max retry

setMaxRetry

public final void setMaxRetry(int maxRetry)
Parameters:
maxRetry -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 OW2 Consortium. All Rights Reserved.