Skip to content
Snippets Groups Projects
Commit 1f48767b authored by srosse's avatar srosse
Browse files

OMA-78: add all day event flag

parent a3f3925d
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,7 @@ public class CalendarWebService {
private void transfer(EventVO event, KalendarEvent kalEvent) {
kalEvent.setDescription(event.getDescription());
kalEvent.setLocation(event.getLocation());
kalEvent.setAllDayEvent(event.isAllDayEvent());
}
@GET
......
......@@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import org.olat.commons.calendar.model.KalendarEvent;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "catalogVO")
@XmlRootElement(name = "eventVO")
public class EventVO {
private String id;
......@@ -39,6 +39,7 @@ public class EventVO {
private Date begin;
private Date end;
private boolean allDayEvent;
private Date creationDate;
private String createdBy;
......@@ -54,6 +55,7 @@ public class EventVO {
location = event.getLocation();
begin = event.getBegin();
end = event.getEnd();
allDayEvent = event.isAllDayEvent();
calendarId = event.getCalendar().getType() + "_" + event.getCalendar().getCalendarID();
creationDate = new Date(event.getCreated());
}
......@@ -106,6 +108,14 @@ public class EventVO {
this.end = end;
}
public boolean isAllDayEvent() {
return allDayEvent;
}
public void setAllDayEvent(boolean allDayEvent) {
this.allDayEvent = allDayEvent;
}
public Date getCreationDate() {
return creationDate;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment