Iterator it = cl.keySet().iterator();
while (it.hasNext()) {
Object o = cl.get(it.next());
if (o instanceof CalendarListElement) {
CalendarListElement ele = (CalendarListElement) o;
Set setmember = ele.keySet();
Iterator itMember = setmember.iterator();
while (itMember.hasNext()) {
Object keyValue = itMember.next();
CalendarMember elemember = (CalendarMember) ele.get(keyValue);
CalendarActivityObject calActivity = elemember.getActivityobject();
ArrayList activitiesAttendeesList = calActivity.getActivityAttendee();
if ("PRIVATE".equals(calActivity.getActivityVisibility()) && calActivity.getActivityOwnerId() != individualID
&& !activitiesAttendeesList.contains(individualID + "")) {
calActivity.setActivity("Private");
calActivity.setActivityDetail("Private");
}
}
}
}
continue;
}
Map map = (Map) lgmap.get(key);
Iterator it = map.keySet().iterator();
while (it.hasNext()) {
CalendarActivityObject cao = (CalendarActivityObject) map.get(it.next());
ArrayList activitiesAttendeesList = cao.getActivityAttendee();
if ("PRIVATE".equals(cao.getActivityVisibility()) && cao.getActivityOwnerId() != individualID
&& !activitiesAttendeesList.contains(individualID + "")) {
cao.setActivity("Private");
cao.setActivityDetail("Private");
}
}
}
DL.setSearchString(request.getParameter("searchTextBox"));
request.setAttribute("allDayActivity", allDayActivity);
ArrayList nonCalendarActivityList = new ArrayList();
if (scheduledactivity != null) {
Set scheduleSet = scheduledactivity.keySet();
Iterator scheduleIt = scheduleSet.iterator();
while (scheduleIt.hasNext()) {
CalendarActivityObject ele = (CalendarActivityObject) scheduledactivity.get(scheduleIt.next());
String activitytype = ele.getActivityType();
String iconFileName = CalendarUtil.getActivityIconFileName(activitytype);
String activityTitle = ele.getActivity();
StringBuffer displayLink = new StringBuffer("/activities/view_activity.do?rowId=");
displayLink.append(ele.getActivityID());
HashMap nonCalenderActivityMap = new HashMap();
nonCalenderActivityMap.put("activityIcon", iconFileName);
nonCalenderActivityMap.put("activityLink", displayLink.toString());
nonCalenderActivityMap.put("activityTitle", activityTitle);
nonCalendarActivityList.add(nonCalenderActivityMap);
}// end while (it.hasNext())
}
if (unscheduledactivity != null) {
Set unScheduleSet = unscheduledactivity.keySet();
Iterator unScheduleIt = unScheduleSet.iterator();
while (unScheduleIt.hasNext()) {
CalendarActivityObject ele = (CalendarActivityObject) unscheduledactivity.get(unScheduleIt.next());
String activitytype = ele.getActivityType();
String iconFileName = CalendarUtil.getActivityIconFileName(activitytype);
StringBuffer displayLink = new StringBuffer("/activities/view_activity.do?rowId=");
displayLink.append(ele.getActivityID());
String activityTitle = ele.getActivity();
HashMap nonCalenderActivityMap = new HashMap();
nonCalenderActivityMap.put("activityIcon", iconFileName);
nonCalenderActivityMap.put("activityLink", displayLink.toString());
nonCalenderActivityMap.put("activityTitle", activityTitle);
nonCalendarActivityList.add(nonCalenderActivityMap);
}
}
calendardyna.set("nonCalendarActivity", nonCalendarActivityList);
// set the Icon and the links on the calendar elements.
Set listkey = DL.keySet();
Iterator it = listkey.iterator();
while (it.hasNext()) {
CalendarListElement ele = (CalendarListElement) DL.get(it.next());
Set elekey = ele.keySet();
Iterator eleit = elekey.iterator();
while (eleit.hasNext()) {
CalendarMember calmember = (CalendarMember) ele.get(eleit.next());
CalendarActivityObject calActivity = calmember.getActivityobject();
String activitytype = calActivity.getActivityType();