Constructor and Description |
---|
SimpleEvent() |
SimpleEvent(CalEvent evt)
constructor creating a copy of the given event
|
SimpleEvent(java.lang.String subject,
java.util.Date fromDate,
java.util.Date untilDate)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(Persistent obj) |
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
int |
getCaption()
returns the caption to use for this event.
|
EventType |
getEventType() |
java.util.Date |
getFromDate() |
int |
getInterval() |
java.lang.String |
getLocation() |
Persistent |
getObject()
returns the object this
CalEvent was initially fetched for |
java.util.List<Persistent> |
getObjects()
the objects, this event belongs to
|
java.util.Date |
getRecEndDate() |
int |
getRecurrenceType() |
java.lang.String |
getSubject() |
java.lang.String |
getText() |
java.lang.String |
getUID()
get the unique identifier for this event
|
java.util.Date |
getUntilDate() |
int |
hashCode() |
boolean |
hasReminder()
should a reminder be used?
|
boolean |
isPrivateEvent() |
boolean |
isWholeDay() |
boolean |
mayEdit(User user)
check if the given user may edit this event
|
boolean |
mayView(User user)
check if the given user may view this event
|
java.lang.String |
onClick() |
void |
setCaption(int caption) |
void |
setEventType(EventType eventType) |
void |
setFromDate(java.util.Date fromDate) |
void |
setHasReminder(boolean hasReminder) |
void |
setInterval(int interval) |
void |
setLocation(java.lang.String location) |
void |
setOnClick(java.lang.String onClick) |
void |
setPrivateDate(boolean isPrivateDate) |
void |
setPrivateEvent(boolean privateEvent) |
void |
setRecEndDate(java.util.Date recEndDate) |
void |
setRecurrenceInterval(int interval) |
void |
setRecurrenceType(int recurrenceType) |
void |
setSubject(java.lang.String subject) |
void |
setText(java.lang.String text) |
void |
setUID(java.lang.String uid) |
void |
setUntilDate(java.util.Date untilDate) |
void |
setWholeDay(boolean wholeDay) |
void |
shiftTo(java.util.Date begin)
Shift a recurrent evt to another date and compute the right time
|
public SimpleEvent()
public SimpleEvent(java.lang.String subject, java.util.Date fromDate, java.util.Date untilDate)
subject
- the event's subjectfromDate
- the start-dateuntilDate
- the end-datepublic SimpleEvent(CalEvent evt)
evt
- the eventpublic java.lang.Object clone()
public int getCaption()
getCaption
in interface CalEvent
CalInfo.getCaptions()
public java.util.Date getFromDate()
getFromDate
in interface CalEvent
public int getInterval()
getInterval
in interface CalEvent
public java.lang.String getLocation()
getLocation
in interface CalEvent
public java.util.Date getRecEndDate()
getRecEndDate
in interface CalEvent
public int getRecurrenceType()
getRecurrenceType
in interface CalEvent
public java.lang.String getSubject()
getSubject
in interface CalEvent
public java.lang.String getText()
public java.lang.String getUID()
public java.util.Date getUntilDate()
getUntilDate
in interface CalEvent
public boolean isPrivateEvent()
isPrivateEvent
in interface CalEvent
public boolean isWholeDay()
isWholeDay
in interface CalEvent
public java.lang.String onClick()
public void addObject(Persistent obj)
public void setCaption(int caption)
public void setFromDate(java.util.Date fromDate)
public void setInterval(int interval)
public void setLocation(java.lang.String location)
public void setOnClick(java.lang.String onClick)
public void setPrivateEvent(boolean privateEvent)
public void setRecEndDate(java.util.Date recEndDate)
public void setRecurrenceType(int recurrenceType)
public void setSubject(java.lang.String subject)
public void setText(java.lang.String text)
public void setUID(java.lang.String uid)
public void setUntilDate(java.util.Date untilDate)
public void setWholeDay(boolean wholeDay)
public void shiftTo(java.util.Date begin)
begin
- the date to shift topublic Persistent getObject()
CalEvent
was initially fetched forpublic java.util.List<Persistent> getObjects()
getObjects
in interface CalEvent
public void setHasReminder(boolean hasReminder)
public boolean hasReminder()
hasReminder
in interface CalEvent
true
or false
public boolean mayEdit(User user)
public boolean mayView(User user)
public EventType getEventType()
getEventType
in interface CalEvent
EventType
of this eventpublic void setEventType(EventType eventType)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setRecurrenceInterval(int interval)
sets
- the recurrence intervalpublic void setPrivateDate(boolean isPrivateDate)
public int hashCode()
hashCode
in class java.lang.Object
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.