org.olat.commons.calendar.model
Class KalendarEvent
java.lang.Object
org.olat.commons.calendar.model.KalendarEvent
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- KalendarRecurEvent
public class KalendarEvent
- extends java.lang.Object
- implements java.lang.Cloneable
|
Constructor Summary |
KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
java.util.Date end)
Create a new calendar event with the given subject and
given start and end times as UNIX timestamps. |
KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
java.util.Date end,
java.lang.String recurrenceRule)
Create a new calendar entry with the given start and end |
KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
int duration)
Create a new calendar entry with the given subject, starting at
and with a duration of milliseconds. |
KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
int duration,
java.lang.String recurrenceRule)
Create a new calendar entry with the given start, a duration and a recurrence |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_PRIVATE
public static final int CLASS_PRIVATE
- See Also:
- Constant Field Values
CLASS_X_FREEBUSY
public static final int CLASS_X_FREEBUSY
- See Also:
- Constant Field Values
CLASS_PUBLIC
public static final int CLASS_PUBLIC
- See Also:
- Constant Field Values
DAILY
public static final java.lang.String DAILY
- See Also:
- Constant Field Values
WEEKLY
public static final java.lang.String WEEKLY
- See Also:
- Constant Field Values
MONTHLY
public static final java.lang.String MONTHLY
- See Also:
- Constant Field Values
YEARLY
public static final java.lang.String YEARLY
- See Also:
- Constant Field Values
WORKDAILY
public static final java.lang.String WORKDAILY
- See Also:
- Constant Field Values
BIWEEKLY
public static final java.lang.String BIWEEKLY
- See Also:
- Constant Field Values
UNTIL
public static final java.lang.String UNTIL
- See Also:
- Constant Field Values
COUNT
public static final java.lang.String COUNT
- See Also:
- Constant Field Values
KalendarEvent
public KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
java.util.Date end)
- Create a new calendar event with the given subject and
given start and end times as UNIX timestamps.
- Parameters:
subject - begin - end -
KalendarEvent
public KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
int duration)
- Create a new calendar entry with the given subject, starting at
and with a duration of milliseconds.
- Parameters:
subject - begin - duration -
KalendarEvent
public KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
int duration,
java.lang.String recurrenceRule)
- Create a new calendar entry with the given start, a duration and a recurrence
- Parameters:
id - subject - begin - duration - recurrenceRule -
KalendarEvent
public KalendarEvent(java.lang.String id,
java.lang.String subject,
java.util.Date begin,
java.util.Date end,
java.lang.String recurrenceRule)
- Create a new calendar entry with the given start and end
- Parameters:
id - subject - begin - end - recurrenceRule -
getID
public java.lang.String getID()
getBegin
public java.util.Date getBegin()
setBegin
public void setBegin(java.util.Date begin)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getEnd
public java.util.Date getEnd()
setEnd
public void setEnd(java.util.Date end)
getSubject
public java.lang.String getSubject()
setSubject
public void setSubject(java.lang.String subject)
getClassification
public int getClassification()
setClassification
public void setClassification(int classification)
getCreated
public long getCreated()
setCreated
public void setCreated(long created)
getCreatedBy
public java.lang.String getCreatedBy()
setCreatedBy
public void setCreatedBy(java.lang.String createdBy)
getLastModified
public long getLastModified()
setLastModified
public void setLastModified(long lastModified)
getLocation
public java.lang.String getLocation()
setLocation
public void setLocation(java.lang.String location)
getCalendar
public Kalendar getCalendar()
isAllDayEvent
public boolean isAllDayEvent()
setAllDayEvent
public void setAllDayEvent(boolean isAllDayEvent)
isToday
public boolean isToday()
isWithinOneDay
public boolean isWithinOneDay()
- Returns:
getKalendarEventLinks
public java.util.List getKalendarEventLinks()
- Returns:
- Returns the uRI.
setKalendarEventLinks
public void setKalendarEventLinks(java.util.List kalendarEventLinks)
- Parameters:
uri - The uRI to set.
getComment
public java.lang.String getComment()
setComment
public void setComment(java.lang.String comment)
getNumParticipants
public java.lang.Integer getNumParticipants()
setNumParticipants
public void setNumParticipants(int numParticipants)
getParticipants
public java.lang.String[] getParticipants()
setParticipants
public void setParticipants(java.lang.String[] participants)
getSourceNodeId
public java.lang.String getSourceNodeId()
setSourceNodeId
public void setSourceNodeId(java.lang.String sourceNodeId)
getRecurrenceRule
public java.lang.String getRecurrenceRule()
setRecurrenceRule
public void setRecurrenceRule(java.lang.String recurrenceRule)
clone
public KalendarEvent clone()
- Overrides:
clone in class java.lang.Object
setRecurrenceExc
public void setRecurrenceExc(java.lang.String recurrenceExc)
getRecurrenceExc
public java.lang.String getRecurrenceExc()
addRecurrenceExc
public void addRecurrenceExc(java.util.Date excDate)