use of org.apache.nifi.admin.dao.ActionDAO in project nifi by apache.
the class GetActionsAction method execute.
@Override
public History execute(DAOFactory daoFactory) {
ActionDAO actionDao = daoFactory.getActionDAO();
// find all matching history
History history = actionDao.findActions(query);
history.setLastRefreshed(new Date());
return history;
}
use of org.apache.nifi.admin.dao.ActionDAO in project nifi by apache.
the class PurgeActionsAction method execute.
@Override
public Void execute(DAOFactory daoFactory) {
ActionDAO actionDao = daoFactory.getActionDAO();
// remove the corresponding actions
actionDao.deleteActions(end);
// create a purge action
actionDao.createAction(purgeAction);
return null;
}