}
int attendeeSize = userIdNames.size();
int userId[] = new int[attendeeSize];
Set availElement = userIdNames.keySet();
Iterator userID = availElement.iterator();
int toArr = 0;
while (userID.hasNext()) {
userId[toArr] = ((Integer)userID.next()).intValue();
toArr++;
}
try {
CvCalendarHome ch = (CvCalendarHome)CVUtility.getHomeObject(
"com.centraview.calendar.CvCalendarHome", "CvCalendar");
CvCalendar cr = ch.create();
cr.setDataSource(dataSource);
userActivities = cr.getAvailibility(1, userId, startDate, endDate);
} catch (Exception e) {
logger.error("[execute]: Exception", e);
}
// check for the users in the hashmap and get the vector of activities
Set setElement = userActivities.keySet();
Iterator allUsers = setElement.iterator();
// check for all users
while (allUsers.hasNext()) {
// get user id
Integer user = (Integer)allUsers.next();