use of uk.ac.bbsrc.tgac.miso.core.data.workflow.Workflow.WorkflowName in project miso-lims by miso-lims.
the class DefaultWorkflowManager method beginWorkflow.
@Override
public Workflow beginWorkflow(String workflowNameString) throws IOException {
WorkflowName workflowName = WorkflowName.valueOf(workflowNameString);
Progress progress = new ProgressImpl();
progress.setWorkflowName(workflowName);
save(progress);
return workflowName.createWorkflow(progress);
}
use of uk.ac.bbsrc.tgac.miso.core.data.workflow.Workflow.WorkflowName in project miso-lims by miso-lims.
the class WorkflowRestController method addFavourite.
@PostMapping(value = "/favourites/add/{workflowName}")
@ResponseStatus(HttpStatus.NO_CONTENT)
@ResponseBody
public void addFavourite(@PathVariable WorkflowName workflowName) throws IOException {
User user = authorizationManager.getCurrentUser();
Set<WorkflowName> favouriteWorkflows = user.getFavouriteWorkflows();
favouriteWorkflows.add(workflowName);
userService.update(user);
}
use of uk.ac.bbsrc.tgac.miso.core.data.workflow.Workflow.WorkflowName in project miso-lims by miso-lims.
the class WorkflowRestController method removeFavourite.
@PostMapping(value = "/favourites/remove/{workflowName}")
@ResponseStatus(HttpStatus.NO_CONTENT)
@ResponseBody
public void removeFavourite(@PathVariable WorkflowName workflowName) throws IOException {
User user = authorizationManager.getCurrentUser();
Set<WorkflowName> favouriteWorkflows = user.getFavouriteWorkflows();
favouriteWorkflows.remove(workflowName);
userService.update(user);
}
Aggregations