コード例 #1
0
ファイル: EntryController.java プロジェクト: chimaerase/ice
  public boolean deleteHistory(String userId, long entryId, long historyId) {
    Entry entry = dao.get(entryId);
    if (entry == null) return false;

    authorization.expectWrite(userId, entry);
    Audit audit = auditDAO.get(historyId);
    if (audit == null) return true;

    auditDAO.delete(audit);
    return true;
  }