public class CmsJspDateSeriesBean extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
CmsJspDateSeriesBean.CmsSeriesSingleEventTransformer
Provides information on the single event when the start date is provided.
|
| Constructor and Description |
|---|
CmsJspDateSeriesBean(CmsJspContentAccessValueWrapper value,
java.util.Locale locale)
Constructor for a date series bean.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.Date> |
getDates()
Returns the list of start dates for all instances of the series.
|
CmsJspInstanceDateBean |
getFirst()
Returns the first event of this series.
|
java.lang.Long |
getInstanceDuration()
Returns the duration of a single instance in milliseconds.
|
java.util.Map<java.lang.Object,CmsJspInstanceDateBean> |
getInstanceInfo()
Returns a lazy map from the start time of a single instance of the series to the date information on the single instance.
|
boolean |
getIsExtractedDate()
Returns a flag, indicating if the series is extracted from another series.
|
boolean |
getIsSeries()
Returns a flag, indicating if the series is defined via a pattern, i.e., not just as via single date.
|
boolean |
getIsSingleDate()
Returns a flag, indicating if the series is defined by only a single date and not extracted from another series.
|
CmsJspInstanceDateBean |
getLast()
Returns the last event of this series.
|
java.util.Locale |
getLocale()
Returns the locale to use for rendering dates.
|
CmsJspInstanceDateBean |
getNext()
Returns the next event of this series relative to the current date.
|
CmsJspInstanceDateBean |
getNextFor(java.lang.Object date)
Returns the next event of this series that takes place at the given date or after it.
|
CmsJspDateSeriesBean |
getParentSeries()
Returns the parent series, if it is present, otherwise
null. |
CmsJspInstanceDateBean |
getPrevious()
Returns the next event of this series relative to the current date.
|
CmsJspInstanceDateBean |
getPreviousFor(java.lang.Object date)
Returns the next event of this series that takes place at the given date or after it.
|
java.lang.String |
getTitle()
Returns the gallery title of the series content.
|
boolean |
isMultiDay()
Returns a flag, indicating if the single events last over night.
|
boolean |
isWholeDay()
Returns a flag, indicating if the events in the series last whole days.
|
java.util.Date |
toDate(java.lang.Object date)
Converts the provided object to a date, if possible.
|
public CmsJspDateSeriesBean(CmsJspContentAccessValueWrapper value, java.util.Locale locale)
value - the content value wrapper for the element that stores the series definitionlocale - the locale in which dates should be rendered. This can differ from the content locale, if e.g.
on a German page a content that is only present in English is rendered.public java.util.List<java.util.Date> getDates()
public CmsJspInstanceDateBean getFirst()
In case this is just a single event and not a series, this is identical to the date of the event.
public java.lang.Long getInstanceDuration()
public java.util.Map<java.lang.Object,CmsJspInstanceDateBean> getInstanceInfo()
Start time can be provided as Long, as a String representation of the long value or as Date.
If no event exists for the start time, the information for the first event of the series is returned.
public boolean getIsExtractedDate()
public boolean getIsSeries()
public boolean getIsSingleDate()
public CmsJspInstanceDateBean getLast()
In case this is just a single event and not a series, this is identical to the date of the event.
public java.util.Locale getLocale()
public CmsJspInstanceDateBean getNext()
In case this is just a single event and not a series, this is identical to the date of the event.
public CmsJspInstanceDateBean getNextFor(java.lang.Object date)
In case this is just a single event and not a series, this is identical to the date of the event.
date - the date relative to which the event is returned.public CmsJspDateSeriesBean getParentSeries()
null.nullpublic CmsJspInstanceDateBean getPrevious()
In case this is just a single event and not a series, this is identical to the date of the event.
public CmsJspInstanceDateBean getPreviousFor(java.lang.Object date)
In case this is just a single event and not a series, this is identical to the date of the event.
date - the date relative to which the event is returned.public java.lang.String getTitle()
public boolean isMultiDay()
true if the event ends on another day than it starts, false if it ends on the same daypublic boolean isWholeDay()
public java.util.Date toDate(java.lang.Object date)
date - the date.Date