Package org.opencms.acacia.shared
Interface I_CmsSerialDateValue
- All Known Implementing Classes:
A_CmsSerialDateValue
,CmsSerialDateValue
public interface I_CmsSerialDateValue
Interface to access serial date values easily. Used on client and server.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Different types of serial dates.static enum
Different types of conditions how serial dates can end.static final class
The JSON keys used in the JSON representation of serial date specifications.static enum
Months as enumeration.static enum
Type of the series.static enum
Enumeration representing the week days.static enum
Possible weeks of a month. -
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Constant for the milliseconds of a day.static final int
The number of weekdays (seven). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a flag, indicating if the event ends at midnight.Returns the type of the specified date.int
Returns the day of the month, the events should take place.getEnd()
Returns the end time of the events.Returns the end type of the event series.Returns the dates, where the event should not take place.Returns the dates of an individual date series.int
Returns the pattern type specific interval of the event.getMonth()
Returns the month in which the events take place.int
Returns the number of occurrences of the event.Returns the uuid of the content that holds the series, the current event was extracted from.Returns the pattern type of the event series.Returns the date of the last day, events of the series should take place.getStart()
Returns the start time of the events.Returns the week day where the event should take place.Returns the week days where the event should take place.Returns the week of the month, the event should take place.Returns the weeks of the month, the event should take place.boolean
Returns a flag, indicating if the events should be treated as "current" till they end (or only till they start).boolean
Returns a flag, indicating if the event should take place every working day.boolean
Returns a flag, indicating if the event is extracted from another series.boolean
isValid()
Returns a flag, indicating if the value specifies a valid date (series).boolean
Returns a flag, indicating if the event last the whole day/whole days.
-
Field Details
-
DAY_IN_MILLIS
Constant for the milliseconds of a day.- See Also:
-
NUM_OF_WEEKDAYS
The number of weekdays (seven).- See Also:
-
-
Method Details
-
endsAtMidNight
boolean endsAtMidNight()Returns a flag, indicating if the event ends at midnight.- Returns:
- a flag, indicating if the event ends at midnight.
-
getDateType
Returns the type of the specified date.- Returns:
- the type of the specified date.
-
getDayOfMonth
int getDayOfMonth()Returns the day of the month, the events should take place.- Returns:
- the day of the month, the events should take place.
-
getEnd
Returns the end time of the events.- Returns:
- the end time of the events.
-
getEndType
Returns the end type of the event series.- Returns:
- the end type of the event series.
-
getExceptions
Returns the dates, where the event should not take place.- Returns:
- the dates, where the event should not take place.
-
getIndividualDates
Returns the dates of an individual date series.- Returns:
- the dates of an individual date series.
-
getInterval
int getInterval()Returns the pattern type specific interval of the event.- Returns:
- the pattern type specific interval of the event.
-
getMonth
Returns the month in which the events take place.- Returns:
- the month in which the events take place.
-
getOccurrences
int getOccurrences()Returns the number of occurrences of the event.- Returns:
- the number of occurrences of the event.
-
getParentSeriesId
Returns the uuid of the content that holds the series, the current event was extracted from. Ornull
if the current event series was not extracted from another one.- Returns:
- the uuid of the original series' content,
or
null
, if the event is not extracted from another event series.
-
getPatternType
Returns the pattern type of the event series.- Returns:
- the pattern type of the event series.
-
getSeriesEndDate
Returns the date of the last day, events of the series should take place.- Returns:
- the date of the last day, events of the series should take place.
-
getStart
Returns the start time of the events.- Returns:
- the start time of the events.
-
getWeekDay
Returns the week day where the event should take place.- Returns:
- the week day where the event should take place.
-
getWeekDays
Returns the week days where the event should take place.- Returns:
- the week days where the event should take place.
-
getWeekOfMonth
Returns the week of the month, the event should take place.- Returns:
- the week of the month, the event should take place.
-
getWeeksOfMonth
Returns the weeks of the month, the event should take place.- Returns:
- the weeks of the month, the event should take place.
-
isCurrentTillEnd
boolean isCurrentTillEnd()Returns a flag, indicating if the events should be treated as "current" till they end (or only till they start).- Returns:
true
if the event is "current" till it ends,false
if it is current till it starts.
-
isEveryWorkingDay
boolean isEveryWorkingDay()Returns a flag, indicating if the event should take place every working day.- Returns:
- a flag, indicating if the event should take place every working day.
-
isFromOtherSeries
boolean isFromOtherSeries()Returns a flag, indicating if the event is extracted from another series.- Returns:
- a flag, indicating if the event is extracted from another series.
-
isValid
boolean isValid()Returns a flag, indicating if the value specifies a valid date (series).- Returns:
- a flag, indicating if the value specifies a valid date (series).
-
isWholeDay
boolean isWholeDay()Returns a flag, indicating if the event last the whole day/whole days.- Returns:
- a flag, indicating if the event last the whole day/whole days.
-