コード例 #1
0
 protected ActionCommand[] doGetPopUpCommands() {
   if (BookingFactory.getInstance().getApplicationFacade().isInRole(IRoleDefinitions.SUPERUSER)) {
     return new ActionCommand[] {newCommand, editCommand, copyCommand, deleteCommand};
   } else {
     return new ActionCommand[] {};
   }
 }
コード例 #2
0
 protected Map getSelectableItems() {
   //    return bean.getSelectableItems();
   return BookingFactory.getInstance().getDataProvider().getSelectableItems();
 }