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