Mercurial > hg > Members > nobuyasu > jungle-network
diff src/main/java/app/bbs/thinks/ShowMatrix.java @ 171:df063cf6f3b5
add Delete Node Method
author | tatsuki |
---|---|
date | Wed, 30 Jul 2014 10:57:19 +0900 |
parents | 2403b9a4416f |
children | d483caeabffc |
line wrap: on
line diff
--- a/src/main/java/app/bbs/thinks/ShowMatrix.java Wed Jul 30 10:20:01 2014 +0900 +++ b/src/main/java/app/bbs/thinks/ShowMatrix.java Wed Jul 30 10:57:19 2014 +0900 @@ -13,21 +13,21 @@ public class ShowMatrix extends HttpServlet { /** - * - */ + * edit Node Path is rename editNodePath + **/ private static final long serialVersionUID = 1L; private final NetworkBulletinBoard bbs; private final String createBoardMessagePath; - private final String editMessagePath; + private final String editNodePath; private final String showMatrixPath; private final String createAttributePath; private final String editAttributePath; private final String deleteAttributePath; private final String deleteNodePath; private static final String PARAM_BOARD_NAME = "bname"; - + private static final String PARAM_BOARD_UUID = "uuid"; public ShowMatrix(NetworkBulletinBoard _bbs, - String _createBoardMessagePath, String _editMessagePath, + String _createBoardMessagePath, String _editNodePath, String _showMatrixPath, String _createAttributePath, String _editAttributePath, String _deleteAttributePath, String _deleteNodePath, ThreadPool thp) { bbs = _bbs; deleteAttributePath = _deleteAttributePath; @@ -36,12 +36,12 @@ editAttributePath = _editAttributePath; showMatrixPath = _showMatrixPath; createBoardMessagePath = _createBoardMessagePath; - editMessagePath = _editMessagePath; + editNodePath = _editNodePath; } public void doGet(HttpServletRequest _req, HttpServletResponse _res) { final String bname = _req.getParameter(PARAM_BOARD_NAME); - String nodeNum = _req.getParameter("uuid"); + String nodeNum = _req.getParameter(PARAM_BOARD_UUID); String nodeName = _req.getParameter("nodeName"); try { printBoard(bname, nodeNum, nodeName, _res.getWriter()); @@ -80,7 +80,9 @@ for (BoardMessage msg : bbs.getFolder(_bname, nodeNum)) { _pw.write("<small><a href=" + showMatrixPath + "?bname=" + _bname + "&uuid=" + nodeNum + "/" + msg.getUUID() + "&nodeName=" + msg.getMessage() + ">" + msg.getMessage() + "</a></small>"); _pw.write(" "); - _pw.write("<small><a href='" + editMessagePath + "?bname=" + _bname + "&uuid=" + nodeNum + "/"+ msg.getUUID() + "'>edit</a><br><br></small>"); + _pw.write("<small><a href='" + editNodePath + "?bname=" + _bname + "&uuid=" + nodeNum + "/"+ msg.getUUID() + "'>edit</a></small>"); + _pw.write(" "); + _pw.write("<small><a href='" + deleteNodePath + "?bname=" + _bname + "&path=" + nodeNum + "&id=" + msg.getUUID() + "'>delete</a><br><br></small>"); }