MilestoneAlert

public final class MilestoneAlert implements Serializable

Represents the milestone data used to create events.

Constructors

MilestoneAlert

public MilestoneAlert(String milestoneName, DateTime earliestDateTime, DateTime dueDateTime, DateTime lateDateTime, DateTime defaultmentDateTime)

Creates a MilestoneAlert from with the milestoneName attribute set to milestoneName, the earliestDateTime attribute set to earliestDateTime, the dueDateTime attribute set to dueDateTime, the lateDateTime attribute set to lateDateTime and the defaultmentDateTime attribute set to defaultmentDateTime.

Parameters:
  • milestoneName – the name of the milestone
  • earliestDateTime – the start date and time of the earliest window
  • dueDateTime – the start date and time of the due window
  • lateDateTime – the start date and time of the late window
  • defaultmentDateTime – the defaultment date and time of the milestone

Methods

equals

public boolean equals(Object o)

fromMilestone

public static MilestoneAlert fromMilestone(Milestone milestone, DateTime startOfMilestone)

Creates a MilestoneAlert from the given milestone.

Parameters:
  • milestone – the milestone
  • startOfMilestone – the start date and time of the milestone
Returns:

the milestone alert

getDefaultmentDateTime

public DateTime getDefaultmentDateTime()

getDueDateTime

public DateTime getDueDateTime()

getEarliestDateTime

public DateTime getEarliestDateTime()

getLateDateTime

public DateTime getLateDateTime()

getMilestoneName

public String getMilestoneName()

hashCode

public int hashCode()

toString

public String toString()