Package org.silverpeas.core.calendar
Class CalendarReference
- java.lang.Object
-
- org.silverpeas.core.persistence.EntityReference<Calendar>
-
- org.silverpeas.core.calendar.CalendarReference
-
public class CalendarReference extends EntityReference<Calendar>
A reference to a given calendar in Silverpeas, such calendar being represented by aCalendar
instance.- Author:
- Yohann Chastagnier
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.persistence.EntityReference
UNKNOWN_TYPE
-
-
Constructor Summary
Constructors Constructor Description CalendarReference(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CalendarReference
fromCalendar(Calendar calendar)
Calendar
getEntity()
Gets the instance of the entity targeted by this reference.
-
-
-
Constructor Detail
-
CalendarReference
public CalendarReference(String id)
-
-
Method Detail
-
fromCalendar
public static CalendarReference fromCalendar(Calendar calendar)
-
getEntity
public Calendar getEntity()
Description copied from class:EntityReference
Gets the instance of the entity targeted by this reference.- Specified by:
getEntity
in classEntityReference<Calendar>
- Returns:
- the entity identified by this reference.
-
-