class HibernateFolderHistoryDAO extends HibernatePersistentObjectDAO<FolderHistory> implements FolderHistoryDAO {

	@Override
	public boolean store(FolderHistory entity) throws PersistenceException {
		// Write only if the history is enabled
		if (RunLevel.current().aspectEnabled(FolderHistory.ASPECT)) {
			boolean ret = super.store(entity);
			if (ret)
				EventCollector.get().newEvent(entity);
			return ret;
		} else
			return true;
	}

	private  HibernateFolderHistoryDAO();

}