|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.component.cron.CronEditorBean
public class CronEditorBean
Represents the form state for the CronEditorWebComponent.
Field Summary | |
---|---|
static java.lang.String |
ADVANCED_MODE
|
static java.lang.String |
DAILY_SPEC_MODE
|
static java.lang.String |
DAYS_OF_MONTH_SPEC_MODE
|
static java.lang.String |
DAYS_OF_WEEK_SPEC_MODE
|
static java.lang.String |
DOT
|
Constructor Summary | |
---|---|
CronEditorBean()
|
|
CronEditorBean(java.lang.String paramPrefix,
java.util.Map params)
Initialises to the state defined by the given params, which are identified by the presence of paramPrefix on the key. |
Method Summary | |
---|---|
java.lang.String |
getCronString()
Returns the cron string that the object was constructed with. |
java.lang.String |
getDayInMonthOrdinal()
Returns a number that represents the first, second third etc. |
java.lang.String |
getDayOfMonth()
Gets the day of month field specified in the cron string. |
java.lang.String |
getHoursFrom()
Returns the lower bound of the hour range if this entry has a range. |
java.lang.String |
getHoursFromMeridian()
Returns the meridian indicator @{link #AM} or @{link #PM} for the lower bound of a range entry. |
java.lang.String |
getHoursRunOnce()
Returns the single hour value for this entry if it is a run once entry. |
java.lang.String |
getHoursRunOnceMeridian()
Returns the meridian indicator @{link #AM} or @{link #PM} for the entry if it is a run once entry. |
java.lang.String |
getHoursTo()
Returns the upper bound of the hour range if this entry has a range. |
java.lang.String |
getHoursToMeridian()
Returns the meridian indicator @{link #AM} or @{link #PM} for the upper bound of a range entry. |
java.lang.String |
getIncrementInMinutes()
Used to determine the total increment in minutes derived by the hour and minutes fields' increment parts. |
java.lang.String |
getMinutes()
Gets the minutes specified. |
java.lang.String |
getSeconds()
|
java.lang.String |
getSpecifiedDaysPerWeek()
Returns all the days that have been specified in a comma separated list. |
boolean |
is24HourRange()
Indicates that the range of time specified spans across the full 24 hours in a day (which is indicated by the computed hoursFrom in 24 hour time being equal to the computed hoursTo in 24 hour time). |
boolean |
isAdvancedMode()
Will return true if the passed in cron string is not valid for the editor. |
boolean |
isDailyMode()
Will return true if the editors daily mode can handle the provided cron string. |
boolean |
isDayOfWeekOfMonth()
Returns true if isDaysPerMonthMode() is true and the sub-mode of day of week per month has been
selected. |
boolean |
isDayPerWeekMode()
Will return true if the editors day per week mode can handle the provided cron string. |
boolean |
isDaySpecified(java.lang.String dayStr)
Returns true if the passed in day has been specified, false otherwise. |
boolean |
isDaysPerMonthMode()
Will return true if the editors days per month mode can handle the provided cron string. |
boolean |
isRange()
Indicates that a range of time is being specified. |
boolean |
isRangeHoursValid()
Used to validate the hours to see that the from hour is before the to hour, if specified. |
void |
setCronString(java.lang.String cronString)
The full cron string that may have been specified. |
void |
setDayInMonthOrdinal(java.lang.String dayInMonthOrdinal)
|
void |
setDayOfMonth(java.lang.String dayOfMonth)
|
void |
setDayOfWeekOfMonth(boolean dayOfWeekOfMonth)
|
void |
setHoursFrom(java.lang.String hoursFrom)
|
void |
setHoursFromMeridian(java.lang.String hoursFromMeridian)
|
void |
setHoursRunOnce(java.lang.String hoursRunOnce)
|
void |
setHoursRunOnceMeridian(java.lang.String hoursRunOnceMeridian)
|
void |
setHoursTo(java.lang.String hoursTo)
|
void |
setHoursToMeridian(java.lang.String hoursToMeridian)
|
void |
setIncrementInMinutes(java.lang.String incrementInMinutes)
Set the interval of repetition. |
void |
setMinutes(java.lang.String minutes)
|
void |
setMode(java.lang.String mode)
|
void |
setSeconds(java.lang.String seconds)
|
void |
setSpecifiedDaysOfWeek(java.lang.String specifiedDaysOfWeek)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DAILY_SPEC_MODE
public static final java.lang.String DAYS_OF_WEEK_SPEC_MODE
public static final java.lang.String DAYS_OF_MONTH_SPEC_MODE
public static final java.lang.String ADVANCED_MODE
public static final java.lang.String DOT
Constructor Detail |
---|
public CronEditorBean()
public CronEditorBean(java.lang.String paramPrefix, java.util.Map params)
paramPrefix
- the prefix used on each of the params.params
- state parameters to use.Method Detail |
---|
public boolean isRangeHoursValid()
public boolean isRange()
public boolean is24HourRange()
public java.lang.String getCronString()
CronTrigger
.
public boolean isAdvancedMode()
public boolean isDailyMode()
public boolean isDayPerWeekMode()
mode
is equal to DAYS_OF_WEEK_SPEC_MODE
, false otherwisepublic boolean isDaysPerMonthMode()
mode
is equal to DAYS_OF_MONTH_SPEC_MODE
, false otherwisepublic boolean isDayOfWeekOfMonth()
isDaysPerMonthMode()
is true and the sub-mode of day of week per month has been
selected.
public java.lang.String getDayOfMonth()
public java.lang.String getMinutes()
public java.lang.String getHoursFrom()
public java.lang.String getHoursTo()
public java.lang.String getHoursFromMeridian()
public java.lang.String getHoursToMeridian()
public java.lang.String getHoursRunOnce()
public java.lang.String getHoursRunOnceMeridian()
public boolean isDaySpecified(java.lang.String dayStr)
dayStr
- a string representing a day (e.g. 1-7).
public java.lang.String getDayInMonthOrdinal()
public java.lang.String getSpecifiedDaysPerWeek()
public java.lang.String getIncrementInMinutes()
public void setCronString(java.lang.String cronString)
cronString
- a valid cron string.public void setMode(java.lang.String mode)
public void setDayOfWeekOfMonth(boolean dayOfWeekOfMonth)
public void setDayOfMonth(java.lang.String dayOfMonth)
public void setMinutes(java.lang.String minutes)
public void setHoursFrom(java.lang.String hoursFrom)
public void setHoursTo(java.lang.String hoursTo)
public void setHoursFromMeridian(java.lang.String hoursFromMeridian)
public void setHoursToMeridian(java.lang.String hoursToMeridian)
public void setHoursRunOnce(java.lang.String hoursRunOnce)
public void setHoursRunOnceMeridian(java.lang.String hoursRunOnceMeridian)
public void setSpecifiedDaysOfWeek(java.lang.String specifiedDaysOfWeek)
public void setDayInMonthOrdinal(java.lang.String dayInMonthOrdinal)
public void setIncrementInMinutes(java.lang.String incrementInMinutes)
incrementInMinutes
- the interval or "0"public void setSeconds(java.lang.String seconds)
public java.lang.String getSeconds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |