/** * get activity by activity id, check if there is the activity * * @return String * @throws */ public String checkActivity() { activity = memberService.getActivityById(activityId); LOGGER.info("activity: " + activity); return SUCCESS; }
/** * for a member attend an activity * * @return String * @throws */ public String attendActivity() { int id = (Integer) session().get("id"); memberService.attendActivity(id, activityId, answerSelected); return SUCCESS; }
/** * get all activities * * @return String * @throws */ public String getAllActivities() { int id = (Integer) session().get("id"); activities = memberService.getAvaibleActivities(id); return SUCCESS; }