String dateString = asString("date");
requestScope("contentsType", Constants.GOOGLE_ACTIVITY_TYPE_ALL);
DateModel dateModel = DateService.getOrNull(acsessUserModel, dateString);
if(dateModel == null) {
return null;
}
requestScope("dateModel", dateModel);
List<ActivityModel> activityModelList = ActivityService.getActivityListByDate(acsessUserModel, dateModel);
requestScope("activityList", activityModelList);
// 最近の投稿
S3QueryResultList<ActivityModel> newActivityModelList = ActivityService.getActivitysByUser(acsessUserModel, null);
ArrayList<ActivityModel> activityModelLimt5List = new ArrayList<ActivityModel>();
int i = 0;
for(ActivityModel activityModel: newActivityModelList) {
i++;
if(i > 5) {
break;
}
activityModelLimt5List.add(activityModel);
}
requestScope("newActivityModelList", activityModelLimt5List);
requestScope("pageTitle", dateModel.getDateJP() + " " + acsessUserModel.getDisplayName() + " の投稿");
requestScope("pageDescription", dateModel.getDateJP() + " " + acsessUserModel.getDisplayName() + " の投稿");
setThisURI(acsessUserModel, dateModel);
return forward("/responsive/date_activity.jsp");
}