Example #1
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;
  }