Package org.silverpeas.core.calendar
Class CalendarEventModel
- java.lang.Object
-
- org.silverpeas.core.contribution.model.DefaultContributionModel<CalendarEvent>
-
- org.silverpeas.core.calendar.CalendarEventModel
-
- All Implemented Interfaces:
ContributionModel
public class CalendarEventModel extends DefaultContributionModel<CalendarEvent>
The default implementation of theCalendarEvent
entity which is extending the default one.- Author:
- silveryocha
- See Also:
ContributionModel
,DefaultContributionModel
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CalendarEventModel(CalendarEvent contribution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getProperty(String property, Object... parameters)
About propertyCalendarEvent.NEXT_START_DATE_TIME_MODEL_PROPERTY
:
If noZonedDateTime
given as first parameter, then theZonedDateTime.now()
is taken into account, otherwise the givenZonedDateTime
is used.
The next occurrence start date from theZonedDateTime
instance is returned.-
Methods inherited from class org.silverpeas.core.contribution.model.DefaultContributionModel
filterByType, getByReflection, getContribution
-
-
-
-
Constructor Detail
-
CalendarEventModel
protected CalendarEventModel(CalendarEvent contribution)
-
-
Method Detail
-
getProperty
public <T> T getProperty(String property, Object... parameters)
About property
CalendarEvent.NEXT_START_DATE_TIME_MODEL_PROPERTY
:
If noZonedDateTime
given as first parameter, then theZonedDateTime.now()
is taken into account, otherwise the givenZonedDateTime
is used.
The next occurrence start date from theZonedDateTime
instance is returned.- Specified by:
getProperty
in interfaceContributionModel
- Overrides:
getProperty
in classDefaultContributionModel<CalendarEvent>
- Type Parameters:
T
- the expected type of the property value.- Parameters:
property
- the name of the business property of the represented contribution.parameters
- optionally some parameters required to select the correct value of the property- Returns:
- the value of the asked business property.
-
-