java.lang.Object | |
↳ | com.atlassian.jira.web.component.cron.CronEditorBean |
Represents the form state for the CronEditorWebComponent.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ADVANCED_MODE | ||||||||||
String | DAILY_SPEC_MODE | ||||||||||
String | DAYS_OF_MONTH_SPEC_MODE | ||||||||||
String | DAYS_OF_WEEK_SPEC_MODE | ||||||||||
String | DOT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialises to the state defined by the given params, which are identified
by the presence of paramPrefix on the key.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the cron string that the object was constructed with.
| |||||||||||
Returns a number that represents the first, second third etc.
| |||||||||||
Gets the day of month field specified in the cron string.
| |||||||||||
Returns the lower bound of the hour range if this entry has a range.
| |||||||||||
Returns the meridian indicator @{link #AM} or @{link #PM} for the lower bound of a range entry.
| |||||||||||
Returns the single hour value for this entry if it is a run once entry.
| |||||||||||
Returns the meridian indicator @{link #AM} or @{link #PM} for the entry if it is a run once entry.
| |||||||||||
Returns the upper bound of the hour range if this entry has a range.
| |||||||||||
Returns the meridian indicator @{link #AM} or @{link #PM} for the upper bound of a range entry.
| |||||||||||
Used to determine the total increment in minutes derived by the hour and minutes fields' increment parts.
| |||||||||||
Gets the minutes specified.
| |||||||||||
Returns all the days that have been specified in a comma separated list.
| |||||||||||
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).
| |||||||||||
Will return true if the passed in cron string is not valid for the editor.
| |||||||||||
Will return true if the editors daily mode can handle the provided cron string.
| |||||||||||
Returns true if
isDaysPerMonthMode() is true and the sub-mode of day of week per month has been
selected. | |||||||||||
Will return true if the editors day per week mode can handle the provided cron string.
| |||||||||||
Returns true if the passed in day has been specified, false otherwise.
| |||||||||||
Will return true if the editors days per month mode can handle the provided cron string.
| |||||||||||
Indicates that a range of time is being specified.
| |||||||||||
Used to validate the hours to see that the from hour is before the to hour, if specified.
| |||||||||||
The full cron string that may have been specified.
| |||||||||||
Set the interval of repetition.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Initialises to the state defined by the given params, which are identified by the presence of paramPrefix on the key.
paramPrefix | the prefix used on each of the params. |
---|---|
params | state parameters to use. |
Returns the cron string that the object was constructed with. This method does not guarantee that the returned cron string is valid.
Returns a number that represents the first, second third etc. day of the week in a month.
Gets the day of month field specified in the cron string. Should be between 1-31 or L.
Returns the lower bound of the hour range if this entry has a range.
This end of the range is inclusive - e.g. if HoursFrom is 3PM and HoursTo is 5PM, the duration of the range is 2 hours.
Returns the meridian indicator @{link #AM} or @{link #PM} for the lower bound of a range entry.
Returns the single hour value for this entry if it is a run once entry.
Returns the meridian indicator @{link #AM} or @{link #PM} for the entry if it is a run once entry.
Returns the upper bound of the hour range if this entry has a range.
This end of the range is exclusive - e.g. if HoursFrom is 3PM and HoursTo is 5PM, the duration of the range is 2 hours.
Returns the meridian indicator @{link #AM} or @{link #PM} for the upper bound of a range entry.
Used to determine the total increment in minutes derived by the hour and minutes fields' increment parts. An increment of 0 indicates no repetition based on the hours or minutes fields and will happen if the repetition is once a day.
Returns all the days that have been specified in a comma separated list.
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).
Will return true if the passed in cron string is not valid for the editor.
Will return true if the editors daily mode can handle the provided cron string.
Returns true if isDaysPerMonthMode()
is true and the sub-mode of day of week per month has been
selected.
Will return true if the editors day per week mode can handle the provided cron string.
DAYS_OF_WEEK_SPEC_MODE
, false otherwise
Returns true if the passed in day has been specified, false otherwise.
dayStr | a string representing a day (e.g. 1-7). |
---|
Will return true if the editors days per month mode can handle the provided cron string.
DAYS_OF_MONTH_SPEC_MODE
, false otherwise
Indicates that a range of time is being specified.
Used to validate the hours to see that the from hour is before the to hour, if specified. Note: to allow the range to run "all-day" (eg. from 12AM to 12AM), we need to also allow the from and to times to be equal.
The full cron string that may have been specified. This can come from the advanced tab where the user has specified their own cron string. This does not validate the cron string.
cronString | a valid cron string. |
---|
Set the interval of repetition. "0" indicates there is no repetition.
incrementInMinutes | the interval or "0" |
---|