} else if ("editor".equalsIgnoreCase(queryType)) {
this.numTotalEvents = eventDao.countByEditorUserId(con, user.getId(), EventFilterCondition.PUBLISHED_EVENT_ONLY);
this.eventsRetrieved = eventDao.findByEditorUserId(con, user.getId(), EventFilterCondition.PUBLISHED_EVENT_ONLY, offset, limit);
} else if ("upcomingManaging".equalsIgnoreCase(queryType)) {
// TODO(mayah): This is work around ugly patch. Maybe we should have sortType besides queryType?
this.numTotalEvents = eventDao.countEventsByOwnerIdAndEditorId(con, user.getId(), EventFilterCondition.UPCOMING_EVENT_ONLY);
this.eventsRetrieved = eventDao.findByOwnerIdAndEditorId(con, user.getId(), EventFilterCondition.UPCOMING_EVENT_ONLY);
// Sort by beginDate.
Collections.sort(this.eventsRetrieved, new Comparator<Event>() {
@Override