View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.web;
17  
18  
19  import javax.servlet.ServletException;
20  import javax.servlet.http.HttpServlet;
21  import javax.servlet.http.HttpServletRequest;
22  import javax.servlet.http.HttpServletResponse;
23  import java.io.IOException;
24  
25  /**
26  * Created by IntelliJ IDEA.
27  * User: peris
28  * Date: 6/12/11
29  * Time: 1:06 PM
30  * To change this template use File | Settings | File Templates.
31  */
32  public class UpdateNodeServlet extends HttpServlet {
33      private static final String RESULTS_JSP =
34              "/updateNodeResults.jsp";
35  
36      @Override
37      protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
38  //        String oldNodeName = req.getParameter("oleNodeName");
39  //        String newNodeName = req.getParameter("newNodeName");
40  //        String result;
41  //        try {
42  //            result = getDocumentStoreContentManager().updateNodeName(oldNodeName, newNodeName);
43  //        } catch (OleException e) {
44  //            result = e.getMessage();
45  //        }
46  //        RequestDispatcher rd = getServletContext().getRequestDispatcher(RESULTS_JSP);
47  //        req.setAttribute("result", result);
48  //        rd.forward(req, resp);
49      }
50  }