public class EscalationCalendar
extends java.lang.Object
Constructor and Description |
---|
EscalationCalendar()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static long |
calculateNewElapsedTime(java.util.Date now,
ReferencePointData refPointData)
Calculate a new Elapsed time for spanning days
|
static long |
calculateTimeLeftBeforeTarget(MboRemote workPeriod,
java.util.Date targetDate)
Calculate the how much time we have until we hit the target today
|
static long |
calculateTimeLeftForTodaysShift(MboRemote workPeriod,
java.util.Date now)
For the given Work Period is the current time valid
|
static MXLogger |
getLogger() |
static int |
getShiftType(MboRemote workPeriod)
Returns the shift type i.e.
|
static java.lang.String |
getSLARefPointCondition(java.util.Date now,
ReferencePointData refPointData)
Calculates and returns the refpoint conditon (1=1 or 1=2)
|
static java.lang.String |
getSLARefPointConditionPastTargetDate(java.util.Date now,
ReferencePointData refPointData)
Deprecated.
As of release 7.6.0.8, replaced by
getSLARefPointCondition(Date, ReferencePointData) |
static boolean |
isEscalationWithinCalendarBoundary(java.util.Date now,
EscalationData escalationData,
MboRemote escalationMbo)
Checks if there is a Calendar/Shift associcated with this Escalation.
|
static boolean |
isInBoundary(MboRemote workPeriod,
java.util.Date now)
For the given Work Period is the current time valid
|
static boolean |
isRefPointEscalationWithinCalendarBoundary(java.util.Date now,
ReferencePointData refPointData)
Checks if there is a Calendar/Shift associcated with this Escalation.
|
static void |
setLogger(MXLogger logger) |
public EscalationCalendar()
escalationData
- MboRemote
- public static void setLogger(MXLogger logger)
public static MXLogger getLogger()
public static long calculateNewElapsedTime(java.util.Date now, ReferencePointData refPointData) throws java.rmi.RemoteException, MXException
now
- refPointData
- java.rmi.RemoteException
MXException
@Deprecated public static java.lang.String getSLARefPointConditionPastTargetDate(java.util.Date now, ReferencePointData refPointData) throws java.rmi.RemoteException, MXException
getSLARefPointCondition(Date, ReferencePointData)
now
- refPointData
- java.rmi.RemoteException
MXException
public static java.lang.String getSLARefPointCondition(java.util.Date now, ReferencePointData refPointData) throws java.rmi.RemoteException, MXException
now
- refPointData
- java.rmi.RemoteException
MXException
public static boolean isRefPointEscalationWithinCalendarBoundary(java.util.Date now, ReferencePointData refPointData) throws java.rmi.RemoteException, MXException
esclationData
- now
- MXException
java.rmi.RemoteException
public static boolean isEscalationWithinCalendarBoundary(java.util.Date now, EscalationData escalationData, MboRemote escalationMbo) throws java.rmi.RemoteException, MXException
esclationData
- now
- MXException
java.rmi.RemoteException
public static long calculateTimeLeftForTodaysShift(MboRemote workPeriod, java.util.Date now) throws java.rmi.RemoteException, MXException
workPeriod
- now
- java.rmi.RemoteException
MXException
public static long calculateTimeLeftBeforeTarget(MboRemote workPeriod, java.util.Date targetDate) throws java.rmi.RemoteException, MXException
workPeriod
- targetDate
- java.rmi.RemoteException
MXException
public static boolean isInBoundary(MboRemote workPeriod, java.util.Date now) throws java.rmi.RemoteException, MXException
workPeriod
- now
- java.rmi.RemoteException
MXException
public static int getShiftType(MboRemote workPeriod) throws java.rmi.RemoteException, MXException
workPeriod
- java.rmi.RemoteException
MXException