org.apache.maven.continuum.xmlrpc.project
Class ProjectNotifier

java.lang.Object
  extended by org.apache.maven.continuum.xmlrpc.project.ProjectNotifier
All Implemented Interfaces:
Serializable

public class ProjectNotifier
extends Object
implements Serializable

Configures one method for notifying users/developers when a build breaks.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
static int FROM_PROJECT
           
static int FROM_USER
           
 
Constructor Summary
ProjectNotifier()
           
 
Method Summary
 void addConfiguration(Object key, String value)
          Method addConfiguration.
 boolean equals(Object other)
          Method equals.
 Map getConfiguration()
          Method getConfiguration.
 int getFrom()
          Get the origin of the notifier (pom or user).
 int getId()
          Get the id field.
 int getRecipientType()
          Get the recipientType field.
 String getType()
          Get the mechanism used to deliver notifications.
 int hashCode()
          Method hashCode.
 boolean isEnabled()
          Get the enabled field.
 boolean isFromProject()
           
 boolean isFromUser()
           
 boolean isSendOnError()
          Get the sendOnError field.
 boolean isSendOnFailure()
          Get the sendOnFailure field.
 boolean isSendOnSuccess()
          Get the sendOnSuccess field.
 boolean isSendOnWarning()
          Get the sendOnWarning field.
 void setConfiguration(Map configuration)
          Set extended configuration specific to this notifier goes here.
 void setEnabled(boolean enabled)
          Set the enabled field.
 void setFrom(int from)
          Set the origin of the notifier (pom or user).
 void setId(int id)
          Set the id field.
 void setRecipientType(int recipientType)
          Set the recipientType field.
 void setSendOnError(boolean sendOnError)
          Set the sendOnError field.
 void setSendOnFailure(boolean sendOnFailure)
          Set the sendOnFailure field.
 void setSendOnSuccess(boolean sendOnSuccess)
          Set the sendOnSuccess field.
 void setSendOnWarning(boolean sendOnWarning)
          Set the sendOnWarning field.
 void setType(String type)
          Set the mechanism used to deliver notifications.
 String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FROM_PROJECT

public static final int FROM_PROJECT
See Also:
Constant Field Values

FROM_USER

public static final int FROM_USER
See Also:
Constant Field Values
Constructor Detail

ProjectNotifier

public ProjectNotifier()
Method Detail

addConfiguration

public void addConfiguration(Object key,
                             String value)
Method addConfiguration.

Parameters:
key -
value -

equals

public boolean equals(Object other)
Method equals.

Overrides:
equals in class Object
Parameters:
other -
Returns:
boolean

getConfiguration

public Map getConfiguration()
Method getConfiguration.

Returns:
Map

getFrom

public int getFrom()
Get the origin of the notifier (pom or user).

Returns:
int

getId

public int getId()
Get the id field.

Returns:
int

getRecipientType

public int getRecipientType()
Get the recipientType field.

Returns:
int

getType

public String getType()
Get the mechanism used to deliver notifications.

Returns:
String

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

isEnabled

public boolean isEnabled()
Get the enabled field.

Returns:
boolean

isSendOnError

public boolean isSendOnError()
Get the sendOnError field.

Returns:
boolean

isSendOnFailure

public boolean isSendOnFailure()
Get the sendOnFailure field.

Returns:
boolean

isSendOnSuccess

public boolean isSendOnSuccess()
Get the sendOnSuccess field.

Returns:
boolean

isSendOnWarning

public boolean isSendOnWarning()
Get the sendOnWarning field.

Returns:
boolean

setConfiguration

public void setConfiguration(Map configuration)
Set extended configuration specific to this notifier goes here.

Parameters:
configuration -

setEnabled

public void setEnabled(boolean enabled)
Set the enabled field.

Parameters:
enabled -

setFrom

public void setFrom(int from)
Set the origin of the notifier (pom or user).

Parameters:
from -

setId

public void setId(int id)
Set the id field.

Parameters:
id -

setRecipientType

public void setRecipientType(int recipientType)
Set the recipientType field.

Parameters:
recipientType -

setSendOnError

public void setSendOnError(boolean sendOnError)
Set the sendOnError field.

Parameters:
sendOnError -

setSendOnFailure

public void setSendOnFailure(boolean sendOnFailure)
Set the sendOnFailure field.

Parameters:
sendOnFailure -

setSendOnSuccess

public void setSendOnSuccess(boolean sendOnSuccess)
Set the sendOnSuccess field.

Parameters:
sendOnSuccess -

setSendOnWarning

public void setSendOnWarning(boolean sendOnWarning)
Set the sendOnWarning field.

Parameters:
sendOnWarning -

setType

public void setType(String type)
Set the mechanism used to deliver notifications.

Parameters:
type -

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String

isFromProject

public boolean isFromProject()

isFromUser

public boolean isFromUser()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.