@Ajax @Resource public Response.Content getSearchResult(String key) { Iterator itr = null; if (calendarNonDisplayedList != null) itr = calendarNonDisplayedList.iterator(); searchResult.clear(); while (itr.hasNext()) { org.exoplatform.calendar.service.Calendar c = (org.exoplatform.calendar.service.Calendar) itr.next(); if (c.getName().toLowerCase().contains(key.toLowerCase())) searchResult.add(c); } // String label = "Default Personal Calendar"; return search.with().set("searchResultList", searchResult).ok().withCharset(Tools.UTF_8); }
set("eventsDisplayedList", eventsDisplayedList). set("tasksDisplayedList", tasksDisplayedList). set("date_act", dateLabel).ok().withCharset(Tools.UTF_8);
parameters.put(GettingStartedUtils.SHOW, Isshow.toString()); if ((isChange) || ("true".equals(reload))) { return gettingStartedList.ok(parameters).withCharset(Tools.UTF_8);
@Ajax @Resource public Response.Content setting() throws Exception { calendarDisplayedList.clear(); calendarNonDisplayedList.clear(); String username = RequestContext.getCurrentInstance().getRemoteUser(); String defaultCalendarLabel = "Default"; Iterator itr1 = getAllCal(username).iterator(); while (itr1.hasNext()) { org.exoplatform.calendar.service.Calendar c = (org.exoplatform.calendar.service.Calendar) itr1.next(); if(c.getGroups()==null) { if (c.getId().equals(Utils.getDefaultCalendarId(username)) && c.getName().equals(calendarService_.getDefaultCalendarName())) { c.setName(defaultCalendarLabel); } } if (CalendarPortletUtils.contains(nonDisplayedCalendarList, c.getId())) { calendarNonDisplayedList.add(c); } else { calendarDisplayedList.add(c); } } return setting.with().set("displayedCalendar", calendarDisplayedList). set("nonDisplayedCalendar", calendarNonDisplayedList).ok().withCharset(Tools.UTF_8); }
@View public Response.Content index() throws Exception { return gettingStarted.ok().withCharset(Tools.UTF_8); }
@View public Response.Content index() { return list.ok().withCharset(Tools.UTF_8); } }