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