eu.scape_project.watch.domain
Class Notification

java.lang.Object
  extended by thewebsemantic.binding.RdfBean<Notification>
      extended by eu.scape_project.watch.domain.Notification

public class Notification
extends thewebsemantic.binding.RdfBean<Notification>

A Notification describes what should happen when a Trigger is fired. Each Notification has a type, e.g. Email, Push Notification, etc.

Author:
Luis Faria

Constructor Summary
Notification()
          Create a new empty notification.
Notification(String type, Collection<Entry> parameters)
          Create a new notification.
Notification(String type, Map<String,String> parameters)
          Create a new notification.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          Get the unique Id of this notification.
 Map<String,String> getParameterMap()
           
 Collection<Entry> getParameters()
           
 String getType()
           
 int hashCode()
           
 void setId(String id)
           
 void setParameterMap(Map<String,String> parameterMap)
          Set the parameters using a Map.
 void setParameters(Collection<Entry> parameters)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class thewebsemantic.binding.RdfBean
asIndividual, delete, fill, fill, load, query, refresh, save
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Notification

public Notification()
Create a new empty notification.


Notification

public Notification(String type,
                    Collection<Entry> parameters)
Create a new notification.

Parameters:
type - The type of the notification.
parameters - The notification parameters, e.g. email recipients, subject, etc.

Notification

public Notification(String type,
                    Map<String,String> parameters)
Create a new notification.

Parameters:
type - The type of the notification.
parameters - The notification parameters, e.g. email recipients, subject, etc.
Method Detail

getId

public String getId()
Get the unique Id of this notification.

Returns:
the Id

setId

public void setId(String id)

getType

public String getType()

setType

public void setType(String type)

getParameters

public Collection<Entry> getParameters()

getParameterMap

public Map<String,String> getParameterMap()

setParameters

public void setParameters(Collection<Entry> parameters)

setParameterMap

public void setParameterMap(Map<String,String> parameterMap)
Set the parameters using a Map.

Parameters:
parameterMap - The map with the parameters

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.