mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-9156 Calendar Java API tagging support, and convert the Event Get webscript to be java backed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,6 +21,7 @@ package org.alfresco.repo.calendar;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.service.cmr.calendar.CalendarEntry;
|
||||
@@ -99,7 +100,9 @@ public class CalendarEntryImpl extends CalendarEntryDTO
|
||||
entry.setEnd((Date)properties.get(CalendarModel.PROP_TO_DATE));
|
||||
entry.setRecurrenceRule((String)properties.get(CalendarModel.PROP_RECURRENCE_RULE));
|
||||
entry.setLastRecurrence((Date)properties.get(CalendarModel.PROP_RECURRENCE_LAST_MEETING));
|
||||
entry.setOutlook((Boolean)properties.get(CalendarModel.PROP_IS_OUTLOOK));
|
||||
|
||||
Boolean isOutlook = (Boolean)properties.get(CalendarModel.PROP_IS_OUTLOOK);
|
||||
entry.setOutlook(isOutlook == null ? false : isOutlook);
|
||||
entry.setOutlookUID((String)properties.get(CalendarModel.PROP_OUTLOOK_UID));
|
||||
|
||||
//entry.setColor(properties.get(CalendarModel.PROP_COLOR));
|
||||
@@ -114,4 +117,13 @@ public class CalendarEntryImpl extends CalendarEntryDTO
|
||||
{
|
||||
populate(this, properties);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the list of tags for the entry
|
||||
*/
|
||||
protected void setTags(List<String> tags)
|
||||
{
|
||||
super.getTags().clear();
|
||||
super.getTags().addAll(tags);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user