filenet.vw.api
Class VWSLAEntryDefinition
- java.lang.Object
-
- filenet.vw.api.VWSLAEntryDefinition
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public final class VWSLAEntryDefinition extends java.lang.Object implements java.io.Serializable, java.lang.CloneableUse this class to create, read, delete, or modify Service Level Agreement Entry definition properties.- Since:
- CPE 5.2.0.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intDAY_ADJUSTMENT_ADJUSTED_TIMEValue of 4. If this is a day-based SLA entry, the deadline will be adjusted so that it occurs during work hours.static intDAY_ADJUSTMENT_END_OF_BUSINESS_DAYValue of 1. If this is a day-based SLA entry, the deadline will occur at the end of the business day.static intDAY_ADJUSTMENT_END_OF_DAYValue of 2. If this is a day-based SLA entry, the deadline will occur at the end of the day (11:59 PM).static intDAY_ADJUSTMENT_FIXED_TIMEValue of 3. If this is a day-based SLA entry, the deadline will occur at the time specified in the 'fixedTime' value.static intDAY_ADJUSTMENT_SAME_TIMEValue of 0. If this is a day-based SLA entry, the deadline will occur at the same time of day that the work item was received.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringdayAdjustmentToString(int dayAdjustment)Gets the string representation of a day adjustment value.intgetDayAdjustment()Indicates whether the deadline value is adjusted to the end of the work day, the end of the business day, or the time the work item is created.intgetDeadline()Gets the deadline value for the SLA Entry.java.lang.StringgetDescription()Gets the description value for the SLA Entry.intgetFixedTime()Gets the fixed time value for the SLA Entry.intgetReminder()Gets the reminder value for the SLA Entry.booleanisCutoffUsed()Indicates whether cutoff time is used in a calculation to determine the start time of the deadline timer.booleanisDeadlineInDays()Indicates whether the deadline is specified in days.booleanisWorkScheduleUsed()Indicates whether a Work Schedule is used in SLA time calculation for the deadline and remindervoidsetCutoffUsed(boolean theFlag)Sets whether the cutoff is to be used in calculation to determine the start time of the deadline timer.voidsetDayAdjustment(int theAdjustmentValue)Sets the day adjustment value, which is used only if this is a day-based SLA.voidsetDeadline(int theDeadline)Sets the deadline for the SLA Entry.voidsetDeadlineInDays(boolean theFlag)Sets whether the deadline is specified in days.voidsetDescription(java.lang.String theDescription)Sets the description for the SLA Entry.voidsetFixedTime(int theFixedTime)Sets the fixed time value for the SLA Entry.voidsetReminder(int theReminder)Sets the reminder value for SLA Entry.voidsetWorkScheduleUsed(boolean theFlag)Sets whether the Work Schedule is to be used in SLA calculation to determine the deadline and reminder timer.
-
-
-
Field Detail
-
DAY_ADJUSTMENT_SAME_TIME
public static final int DAY_ADJUSTMENT_SAME_TIME
Value of 0. If this is a day-based SLA entry, the deadline will occur at the same time of day that the work item was received. Used to set the 'dayAdjustment' value.- See Also:
- Constant Field Values
-
DAY_ADJUSTMENT_END_OF_BUSINESS_DAY
public static final int DAY_ADJUSTMENT_END_OF_BUSINESS_DAY
Value of 1. If this is a day-based SLA entry, the deadline will occur at the end of the business day. Used to set the 'dayAdjustment' value.- See Also:
- Constant Field Values
-
DAY_ADJUSTMENT_END_OF_DAY
public static final int DAY_ADJUSTMENT_END_OF_DAY
Value of 2. If this is a day-based SLA entry, the deadline will occur at the end of the day (11:59 PM). Used to set the 'dayAdjustment' value.- See Also:
- Constant Field Values
-
DAY_ADJUSTMENT_FIXED_TIME
public static final int DAY_ADJUSTMENT_FIXED_TIME
Value of 3. If this is a day-based SLA entry, the deadline will occur at the time specified in the 'fixedTime' value. Used to set the 'dayAdjustment' value.- See Also:
- Constant Field Values
-
DAY_ADJUSTMENT_ADJUSTED_TIME
public static final int DAY_ADJUSTMENT_ADJUSTED_TIME
Value of 4. If this is a day-based SLA entry, the deadline will be adjusted so that it occurs during work hours. Used to set the 'dayAdjustment' value.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDeadline
public int getDeadline()
Gets the deadline value for the SLA Entry.- Returns:
- The value of the deadline property for the step.
If the deadline is in days (see
VWSLAEntryDefinition.isDeadlineInDays()), return the number of days. If the deadline is not in days, return the number of minutes between the start of the step to expiration of the deadline time. - Since:
- CPE 5.2.0.3
- See Also:
VWSLAEntryDefinition.isDeadlineInDays()
-
setDeadline
public void setDeadline(int theDeadline) throws VWExceptionSets the deadline for the SLA Entry. If the deadline is in days (seeVWSLAEntryDefinition.isDeadlineInDays()), the deadline value is the number of days. If the deadline is not in days, the deadline value represents the number of minutes between the start of the step to expiration of the deadline time.- Parameters:
theDeadline- A integer specifying the dead line period.- Throws:
VWException- Thrown if the theDeadline parameter contains a negative value.- Since:
- CPE 5.2.0.3
- See Also:
VWSLAEntryDefinition.setDeadlineInDays(boolean),VWSLAEntryDefinition.isDeadlineInDays()
-
getReminder
public int getReminder()
Gets the reminder value for the SLA Entry. The reminder value represents the number of minutes the reminder timer expires prior to expiration of the deadline timer at run time.- Returns:
- A number representing the value of the reminder in minutes. If no reminder value exists, 0 (zero) is returned.
- Since:
- CPE 5.2.0.3
-
setReminder
public void setReminder(int theReminder) throws VWExceptionSets the reminder value for SLA Entry. The reminder value represents the number of minutes the reminder timer expires prior to expiration of the deadline timer at run time. Specify a reminder value of 0 (zero) for no reminder.- Parameters:
theReminder- A number specifying the reminder period, in minutes.- Throws:
VWException- The method throws an exception if theReminder parameter contains a negative value.- Since:
- CPE 5.2.0.3
-
getFixedTime
public int getFixedTime()
Gets the fixed time value for the SLA Entry.- Returns:
- A number representing the fixed time value. A value of 0 (zero) means that no fixed time is set.
- Since:
- CPE 5.2.0.3
-
setFixedTime
public void setFixedTime(int theFixedTime) throws VWExceptionSets the fixed time value for the SLA Entry. The fixed time value represents the number of minutes since 12:00 AM.- Parameters:
theFixedTime- A number specifying the fixed time period, in minutes.- Throws:
VWException- The method throws an exception if theFixedTime parameter contains a negative value.- Since:
- CPE 5.2.0.3
-
isCutoffUsed
public boolean isCutoffUsed()
Indicates whether cutoff time is used in a calculation to determine the start time of the deadline timer.- Returns:
- One of the following:
trueindicates cutoff will be used in deadline and reminder calculations.falsecutoff time will be ignored.
- Since:
- CPE 5.2.0.3
-
setCutoffUsed
public void setCutoffUsed(boolean theFlag) throws VWExceptionSets whether the cutoff is to be used in calculation to determine the start time of the deadline timer.- Parameters:
theFlag- One of the following:trueindicates cutoff will be used in deadline and reminder calculations.falsecutoff time will be ignored.
- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
getDayAdjustment
public int getDayAdjustment()
Indicates whether the deadline value is adjusted to the end of the work day, the end of the business day, or the time the work item is created. This value is used only if this is a day-based SLA.- Returns:
- The day adjustment value
- Since:
- CPE 5.2.0.3
- See Also:
VWSLAEntryDefinition.setDayAdjustment(int)
-
setDayAdjustment
public void setDayAdjustment(int theAdjustmentValue) throws VWExceptionSets the day adjustment value, which is used only if this is a day-based SLA.- Parameters:
theAdjustmentValue- One of the following:VWSLAEntryDefinition.DAY_ADJUSTMENT_SAME_TIMEthe deadline will occur at the same time of day that the work item was created.VWSLAEntryDefinition.DAY_ADJUSTMENT_END_OF_DAYthe deadline will occur at the end of the day (11:59:59 PM).VWSLAEntryDefinition.DAY_ADJUSTMENT_END_OF_BUSINESS_DAYthe deadline will occur at the end of the business day.VWSLAEntryDefinition.DAY_ADJUSTMENT_FIXED_TIMEthe deadline will occur at the time specified in the 'fixedTime' value.VWSLAEntryDefinition.DAY_ADJUSTMENT_ADJUSTED_TIMEthe deadline will be adjusted so that it occurs during work hours.
- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
isDeadlineInDays
public boolean isDeadlineInDays()
Indicates whether the deadline is specified in days. The day calculation can specify end of the day, meaning the deadline is due the end of the working day when a work schedule is present, or midnight if no work schedule is used in the calculation.- Returns:
- One of the following:
trueindicates the day will be used in deadline calculation.falseindicates that minutes will be used.
- Since:
- CPE 5.2.0.3
-
setDeadlineInDays
public void setDeadlineInDays(boolean theFlag) throws VWExceptionSets whether the deadline is specified in days. The day calculation can specify end of the day, meaning the deadline is due the end of the working day when a work schedule is present, or midnight if no work schedule is used in the calculation.- Parameters:
theFlag- One of the following:trueindicates the day will be used in deadline calculation.falseindicates that minutes will be used.
- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
isWorkScheduleUsed
public boolean isWorkScheduleUsed()
Indicates whether a Work Schedule is used in SLA time calculation for the deadline and reminder- Returns:
- One of the following:
trueindicates a Work Schedule will be used in deadline and reminder calculations.falsethe deadline and reminder calculations will use a 24x7 calendar.
- Since:
- CPE 5.2.0.3
-
setWorkScheduleUsed
public void setWorkScheduleUsed(boolean theFlag) throws VWExceptionSets whether the Work Schedule is to be used in SLA calculation to determine the deadline and reminder timer.- Parameters:
theFlag- One of the following:trueindicates a Work Schedule will be used in deadline and reminder calculations.falsethe deadline and reminder calculations will use a 24x7 calendar.
- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
getDescription
public java.lang.String getDescription()
Gets the description value for the SLA Entry.- Returns:
- A String containing the description.
- Since:
- CPE 5.2.0.3
-
setDescription
public void setDescription(java.lang.String theDescription) throws VWExceptionSets the description for the SLA Entry.- Parameters:
theDescription- A String containing the description.- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
dayAdjustmentToString
public static java.lang.String dayAdjustmentToString(int dayAdjustment) throws VWExceptionGets the string representation of a day adjustment value.- Parameters:
dayAdjustment- A day adjustment value.- Returns:
- The String version of the day adjustment setting
- Throws:
VWException- If the specified day adjustment value is invalid- Since:
- CPE 5.2.0.3
- See Also:
VWSLAEntryDefinition.setDayAdjustment(int)
-
-