365868564f
git-svn-id: http://google-refine.googlecode.com/svn/branches/split-refactor@905 7d457c2a-affb-35e4-300a-418c747d4874
29 lines
854 B
Java
29 lines
854 B
Java
package com.metaweb.gridworks.commands.project;
|
|
|
|
import java.io.IOException;
|
|
|
|
import javax.servlet.ServletException;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import com.metaweb.gridworks.ProjectManager;
|
|
import com.metaweb.gridworks.commands.Command;
|
|
|
|
public class DeleteProjectCommand extends Command {
|
|
@Override
|
|
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
|
throws ServletException, IOException {
|
|
|
|
try {
|
|
long projectID = Long.parseLong(request.getParameter("project"));
|
|
|
|
ProjectManager.singleton.deleteProject(projectID);
|
|
|
|
respond(response, "{ \"code\" : \"ok\" }");
|
|
|
|
} catch (Exception e) {
|
|
respondException(response, e);
|
|
}
|
|
}
|
|
}
|