use of org.talend.dataprep.qa.dto.PreparationDetails in project data-prep by Talend.
the class ActionStep method getActionsFromStoredAction.
/**
* Recover a list of {@link Action} corresponding to a stored {@link Action} type in a given preparation.
*
* @param preparationId the preparation id.
* @param storedAction the stored {@link Action} type.
* @return a {@link List} of {@link Action} that looks like the given storedAction.
* @throws IOException
*/
private List<Action> getActionsFromStoredAction(String preparationId, Action storedAction) throws IOException {
PreparationDetails prepDet = getPreparationDetails(preparationId);
prepDet.updateActionIds();
return prepDet.actions.stream().filter(action -> //
action.action.equals(storedAction.action) && //
action.parameters.equals(storedAction.parameters)).collect(Collectors.toList());
}
Aggregations