Esempio n. 1
0
 public ViewTalkPage(PageParameters parameters) {
   super();
   long id = parameters.get(PARAM_ID).toLong(-1L);
   if (id == -1L) {
     if (parameters.getIndexedCount() == 2 && "id".equals(parameters.get(0).toString())) {
       id = parameters.get(1).toLong(-1);
     }
   }
   if (id == -1L) {
     setResponsePage(UnauthorisedAccess.class);
   } else {
     TalkModel talk = talkService.getTalkById(id);
     Model model = new Model(talk);
     setResponsePage(new EditOrViewTalk().doAction(model));
   }
 }
Esempio n. 2
0
 @Override
 protected Page<TalkModel> getItems(PageRequest request) {
   Page<TalkModel> list = talkService.getMyTalks(KonferenzSession.context(), request);
   return list;
 }