예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }
예제 #3
0
 /**
  * get all activities
  *
  * @return String
  * @throws
  */
 public String getAllActivities() {
   int id = (Integer) session().get("id");
   activities = memberService.getAvaibleActivities(id);
   return SUCCESS;
 }