Class NotificationInfo
- java.lang.Object
-
- org.opennms.web.admin.users.parsers.NotificationInfo
-
- All Implemented Interfaces:
java.lang.Cloneable
public class NotificationInfo extends java.lang.Object implements java.lang.CloneableThis class stores notification information for a user- Since:
- 1.8.1
- Version:
- 1.1.1.1
- Author:
- Jason Johns , OpenNMS , Jason Johns , OpenNMS
-
-
Constructor Summary
Constructors Constructor Description NotificationInfo()Default constructor, initializes the member variables
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDutySchedule(DutySchedule aSchedule)This method adds a duty schedulejava.lang.Objectclone()cloneintgetDutyScheduleCount()Returns the number of DutySchedule object for a userjava.util.List<DutySchedule>getDutySchedules()Returns the full list of DutySchedulesjava.lang.StringgetEmail()Returns the email addressjava.lang.StringgetNumericalPin()Returns the numerical pin stringjava.lang.StringgetNumericalService()Returns the numerical service stringjava.lang.StringgetPagerEmail()Returns the pager email addressjava.lang.StringgetTextPin()Returns the text pin stringjava.lang.StringgetTextService()Returns the text service stringjava.lang.StringgetXMPPAddress()Returns the XMPP addressbooleanisOnDuty(java.util.Calendar aTime)Returns a boolean indicating if the user is on duty at the specified time.voidsetDutySchedule(java.util.List<DutySchedule> someSchedules)This method sets a full list of duty schedules for a uservoidsetEmail(java.lang.String anEmail)Sets the email addressvoidsetNumericalPin(java.lang.String aPin)Sets the numerical pinvoidsetNumericalService(java.lang.String aService)Sets the numerical service stringvoidsetPagerEmail(java.lang.String anEmail)Sets the pager email addressvoidsetTextPin(java.lang.String aPin)Sets the text pin stringvoidsetTextService(java.lang.String aService)Sets the text service stringvoidsetXMPPAddress(java.lang.String anAddress)Sets the XMPP addressjava.lang.StringtoString()A String representation of the notification information, primarily used for debugging.
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
clone
- Overrides:
clonein classjava.lang.Object- Returns:
- a
Objectobject.
-
setEmail
public void setEmail(java.lang.String anEmail)
Sets the email address- Parameters:
anEmail- the email address
-
setPagerEmail
public void setPagerEmail(java.lang.String anEmail)
Sets the pager email address- Parameters:
anEmail- the new email address
-
setXMPPAddress
public void setXMPPAddress(java.lang.String anAddress)
Sets the XMPP address- Parameters:
anAddress- the new XMPP address
-
setNumericalService
public void setNumericalService(java.lang.String aService)
Sets the numerical service string- Parameters:
aService- the numerical service
-
setNumericalPin
public void setNumericalPin(java.lang.String aPin)
Sets the numerical pin- Parameters:
aPin- the numerical pin
-
setTextService
public void setTextService(java.lang.String aService)
Sets the text service string- Parameters:
aService- the text service
-
setTextPin
public void setTextPin(java.lang.String aPin)
Sets the text pin string- Parameters:
aPin- the text pin
-
addDutySchedule
public void addDutySchedule(DutySchedule aSchedule)
This method adds a duty schedule- Parameters:
aSchedule- a new duty schedule to associate with a user
-
setDutySchedule
public void setDutySchedule(java.util.List<DutySchedule> someSchedules)
This method sets a full list of duty schedules for a user- Parameters:
someSchedules- a list of DutySchedule objects for a user
-
getEmail
public java.lang.String getEmail()
Returns the email address- Returns:
- the email address
-
getPagerEmail
public java.lang.String getPagerEmail()
Returns the pager email address- Returns:
- the pager email address
-
getXMPPAddress
public java.lang.String getXMPPAddress()
Returns the XMPP address- Returns:
- the XMPP address
-
getNumericalService
public java.lang.String getNumericalService()
Returns the numerical service string- Returns:
- the numerical service
-
getNumericalPin
public java.lang.String getNumericalPin()
Returns the numerical pin string- Returns:
- the numerical pin
-
getTextService
public java.lang.String getTextService()
Returns the text service string- Returns:
- the text service
-
getTextPin
public java.lang.String getTextPin()
Returns the text pin string- Returns:
- the text pin
-
getDutyScheduleCount
public int getDutyScheduleCount()
Returns the number of DutySchedule object for a user- Returns:
- the number of DutySchedules
-
getDutySchedules
public java.util.List<DutySchedule> getDutySchedules()
Returns the full list of DutySchedules- Returns:
- the full list of DutySchedules
-
isOnDuty
public boolean isOnDuty(java.util.Calendar aTime)
Returns a boolean indicating if the user is on duty at the specified time.- Parameters:
aTime- a time to see if the user is on duty- Returns:
- true if the user is on duty, false otherwise
-
toString
public java.lang.String toString()
A String representation of the notification information, primarily used for debugging.- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation of the notification information
-
-