Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.nan21.dnet.core.web.controller.workflow;
 
 import  javax.servlet.http.HttpServletRequest;
 import  javax.servlet.http.HttpServletResponse;
 
 import  org.springframework.stereotype.Controller;
 import  org.springframework.web.bind.annotation.RequestMapping;
 import  org.springframework.web.bind.annotation.RequestParam;
 import  org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping(value = "/deployment")
	@RequestMapping(value = "/delete")
	@ResponseBody
	public String delete(@RequestParam(value = "ids"String ids,
			@RequestParam(value = "cascade"Boolean cascade,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		try {
			this.prepareRequest(requestresponse);
			String[] idArray = ids.split(",");
			for (String deploymentId : idArray) {
				this.getWorkflowRepositoryService().deleteDeployment(
						deploymentIdcascade);
			}
			return "{'success':true}";
catch (Exception e) {
			return this.handleException(eresponse);
finally {
		}
	}
New to GrepCode? Check out our FAQ X