package ca.corefacility.bioinformatics.irida.service.workflow;

import java.util.List;
import java.util.UUID;

import ca.corefacility.bioinformatics.irida.model.workflow.submission.IridaWorkflowNamedParameters;
import ca.corefacility.bioinformatics.irida.service.CRUDService;

/**
 * Service for interacting with named parameter sets.
 * 
 *
 */
public interface WorkflowNamedParametersService extends CRUDService<Long, IridaWorkflowNamedParameters> {

	/**
	 * Get the named parameters saved for the specified workflow.
	 * 
	 * @param workflowId
	 *            the workflow ID to load parameters for.
	 * @return the collection of named workflow parameter sets for the specified
	 *         workflow.
	 */
	public List<IridaWorkflowNamedParameters> findNamedParametersForWorkflow(final UUID workflowId);
}

@@ -104,16 +104,82 @@
 .UUID;%0A%0A
+import org.springframework.security.access.prepost.PreAuthorize;%0A%0A
 import c
@@ -767,16 +767,55 @@
 w.%0A%09 */%0A
+%09@PreAuthorize(%22hasRole('ROLE_USER')%22)%0A
 %09public 

Add permissions to WorkflowNamedParametersService.