コード例 #1
0
 @Override
 protected Void doExecute(PartakeConnection con, IPartakeDAOs daos)
     throws DAOException, PartakeException {
   IEventSearchService searchService = PartakeApp.getEventSearchService();
   EventDAOFacade.recreateEventIndex(con, daos, searchService);
   return null;
 }
コード例 #2
0
ファイル: ModifyAPI.java プロジェクト: gensan/partake
  @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;
  }