Commit 96695317 authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Minor nit

parent fc032bec
package org.opengroup.osdu.workflow.api;
import java.util.List;
import org.opengroup.osdu.workflow.model.CreateWorkflowRequest;
import org.opengroup.osdu.workflow.model.WorkflowMetadata;
import org.opengroup.osdu.workflow.model.WorkflowRole;
import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.prepost.PreAuthorize;
......@@ -17,8 +20,6 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/v1/workflow")
public class WorkflowManagerApi {
......@@ -43,7 +44,7 @@ public class WorkflowManagerApi {
*/
@GetMapping("/{workflow_name}")
@PreAuthorize("@authorizationFilter.hasPermission('" + WorkflowRole.VIEWER + "','" + WorkflowRole.CREATOR + "','" + WorkflowRole.ADMIN + "')")
public WorkflowMetadata getWorkflowByName(@PathVariable("workflow_name") final String workflowName) {
public WorkflowMetadata getWorkflowByName(@PathVariable("workflow_name") final String workflowName) {
return workflowManagerService.getWorkflowByName(workflowName);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment