@Override
 protected Void doExecute(PartakeConnection con, IPartakeDAOs daos)
     throws DAOException, PartakeException {
   IEventSearchService searchService = PartakeApp.getEventSearchService();
   EventDAOFacade.recreateEventIndex(con, daos, searchService);
   return null;
 }
Beispiel #2
0
  @Override
  protected Void doExecute(PartakeConnection con, IPartakeDAOs daos)
      throws DAOException, PartakeException {
    event = daos.getEventAccess().find(con, eventId);
    if (event == null) throw new PartakeException(UserErrorCode.INVALID_EVENT_ID);
    if (!EventEditPermission.check(event, user))
      throw new PartakeException(UserErrorCode.FORBIDDEN_EVENT_EDIT);

    event = new Event(event);
    updateEvent(con, daos);

    event.setModifiedAt(TimeUtil.getCurrentDateTime());
    EventDAOFacade.modify(con, daos, event);

    tickets = daos.getEventTicketAccess().findEventTicketsByEventId(con, eventId);

    return null;
  }