From a172e08629c598289b4c7f26a04ada7775955353 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 12 Sep 2023 08:45:44 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EA=B3=A0=EA=B4=80=EB=A6=AC=EC=9E=90?= =?UTF-8?q?=20=EB=A9=94=EC=9D=B8=ED=99=94=EB=A9=B4=20=EC=88=98=EC=A0=95(?= =?UTF-8?q?=EC=84=9C=EB=B2=84=20=ED=8C=8C=EC=9D=BC=20=ED=98=84=ED=99=A9=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/UserController.java | 15 ++++ .../fims/cmmn/DirectoryStructureToJson.java | 63 ++++++++++++++ .../WEB-INF/jsp/fims/superUser-main.jsp | 84 ++++++++++++++++++- 3 files changed, 160 insertions(+), 2 deletions(-) create mode 100644 src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index cbbf4347..32e24608 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -1,5 +1,7 @@ package cokr.xit.fims.base; +import java.io.File; + import javax.annotation.Resource; import org.springframework.stereotype.Controller; @@ -7,6 +9,8 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.user.ManagedUser; +import cokr.xit.fims.cmmn.DirectoryStructureToJson; +import cokr.xit.fims.cmmn.DirectoryStructureToJson.Node; import cokr.xit.interfaces.smg.service.bean.SmgServiceBean; @Controller @@ -48,4 +52,15 @@ public class UserController extends cokr.xit.base.user.web.UserController getDirList(File node){ + List children=new ArrayList<>(); + for(File n : node.listFiles()){ + children.add(getNode(n)); + } + return children; + } + + public static class Node { + private String text; + private String type; + private List children; + + public Node() { } + + public Node(String text, String location, String type, List children) { + this.text = text; + this.type = type; + this.children = children; + } + + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public List getChildren() { + return children; + } + + public void setChildren(List children) { + this.children = children; + } + } +} diff --git a/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp index c7511fff..2aab945f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp @@ -1,13 +1,14 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> +" />
최고관리자 메뉴
-
+
@@ -16,25 +17,104 @@
+
+
+
+ +
+
+
+
+
+ +
+ +
+ \ No newline at end of file