Index: pom.xml =================================================================== diff -u -rf41ba65b84ac704a0b3c88ac2094e32539165890 -r32b71e2da43218781d51046bf2a9a1cf247deddc --- pom.xml (.../pom.xml) (revision f41ba65b84ac704a0b3c88ac2094e32539165890) +++ pom.xml (.../pom.xml) (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -10,7 +10,7 @@ 4.0.0 313devgrp java-service-tree-framework-backend-server - 22.11.07 + 22.11.08 pom java-service-tree-framework Index: web-module/pom.xml =================================================================== diff -u -rf41ba65b84ac704a0b3c88ac2094e32539165890 -r32b71e2da43218781d51046bf2a9a1cf247deddc --- web-module/pom.xml (.../pom.xml) (revision f41ba65b84ac704a0b3c88ac2094e32539165890) +++ web-module/pom.xml (.../pom.xml) (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -7,7 +7,7 @@ 313devgrp java-service-tree-framework-backend-server - 22.11.07 + 22.11.08 ../pom.xml Index: web-module/src/main/java/egovframework/api/arms/module_pdservice/controller/UserPdServiceController.java =================================================================== diff -u -rf41ba65b84ac704a0b3c88ac2094e32539165890 -r32b71e2da43218781d51046bf2a9a1cf247deddc --- web-module/src/main/java/egovframework/api/arms/module_pdservice/controller/UserPdServiceController.java (.../UserPdServiceController.java) (revision f41ba65b84ac704a0b3c88ac2094e32539165890) +++ web-module/src/main/java/egovframework/api/arms/module_pdservice/controller/UserPdServiceController.java (.../UserPdServiceController.java) (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -17,16 +17,18 @@ import egovframework.api.arms.module_pdservice.service.PdService; import egovframework.api.arms.util.PropertiesReader; import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; -import egovframework.com.ext.jstree.support.util.ParameterParser; +import egovframework.com.ext.jstree.springHibernate.core.vo.JsTreeHibernateSearchDTO; import egovframework.com.utl.fcc.service.EgovFileUploadUtil; import egovframework.com.utl.fcc.service.EgovFormBasedFileVo; import lombok.extern.slf4j.Slf4j; +import org.hibernate.criterion.Order; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; +import org.springframework.ui.ModelMap; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartHttpServletRequest; @@ -199,17 +201,19 @@ return modelAndView; } - // 신규 제품(서비스) 등록시 - // 1. addNode 하고 - // 2. 화면에서 받아서 처리 한 후에 - // 3. 등록된 파일 리스트 등록 - - // 제품(서비스) 업데이트 시 - // 1. alterNode 하고 - // 2. 화면에서 ok 받으면 - // 3. 등록된 파일 리스트 등록 - - // 제품(서비스) 선택 시 - // 1. getNode 하고 - // 2. getFiles 하고 + @ResponseBody + @RequestMapping( + value = {"/getPdServiceMonitor.do"}, + method = {RequestMethod.GET} + ) + public ModelAndView getPdServiceMonitor(PdServiceDTO pdServiceDTO, ModelMap model, HttpServletRequest request) throws Exception { + pdServiceDTO.setOrder(Order.asc("c_id")); + List list = this.pdService.getChildNode(pdServiceDTO); + for (PdServiceDTO dto: list) { + dto.setC_contents("force empty"); + } + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", list); + return modelAndView; + } } \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/AdminPdServiceConnectController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/AdminPdServiceConnectController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/AdminPdServiceConnectController.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdserviceconnect.controller; + +import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; +import javax.annotation.PostConstruct; +import javax.servlet.http.HttpServletRequest; +import java.util.Comparator; +import java.util.List; +import java.util.NoSuchElementException; + +import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; + +import egovframework.api.arms.module_pdserviceconnect.model.PdServiceConnectDTO; +import egovframework.api.arms.module_pdserviceconnect.service.PdServiceConnect; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-admin/api/arms/pdServiceConnect"}) +public class AdminPdServiceConnectController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceConnect") + private PdServiceConnect pdServiceConnect; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceConnect); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/AnonPdServiceConnectController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/AnonPdServiceConnectController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/AnonPdServiceConnectController.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdserviceconnect.controller; + +import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; +import javax.annotation.PostConstruct; +import javax.servlet.http.HttpServletRequest; +import java.util.Comparator; +import java.util.List; +import java.util.NoSuchElementException; + +import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; + +import egovframework.api.arms.module_pdserviceconnect.model.PdServiceConnectDTO; +import egovframework.api.arms.module_pdserviceconnect.service.PdServiceConnect; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-anon/api/arms/pdServiceConnect"}) +public class AnonPdServiceConnectController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceConnect") + private PdServiceConnect pdServiceConnect; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceConnect); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/UserPdServiceConnectController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/UserPdServiceConnectController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/UserPdServiceConnectController.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,73 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdserviceconnect.controller; + +import egovframework.api.arms.module_pdserviceconnect.model.PdServiceConnectDTO; +import egovframework.api.arms.module_pdserviceconnect.service.PdServiceConnect; +import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; +import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; + +import javax.annotation.PostConstruct; +import java.util.List; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-user/api/arms/pdServiceConnect"}) +public class UserPdServiceConnectController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceConnect") + private PdServiceConnect pdServiceConnect; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceConnect); + } + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + + @ResponseBody + @RequestMapping(value = "/getExistNode.do", method = RequestMethod.GET) + public ModelAndView getExistNode(PdServiceConnectDTO pdServiceConnectDTO, + BindingResult bindingResult) throws Exception { + if (bindingResult.hasErrors()) + throw new RuntimeException(); + + //루트 노드를 기준으로 리스트를 검색 + PdServiceConnectDTO serviceConnectDTO = new PdServiceConnectDTO(); + serviceConnectDTO.setWhere("c_pdservice_id", pdServiceConnectDTO.getC_pdservice_id()); + serviceConnectDTO.setWhere("c_pdservice_version_id", pdServiceConnectDTO.getC_pdservice_version_id()); + List list = pdServiceConnect.getChildNode(serviceConnectDTO); + + for ( PdServiceConnectDTO dto : list){ + String replaceTxt = dto.getC_pdservice_jira_ids().replaceAll("\\[","").replaceAll("\\]",""); + replaceTxt = replaceTxt.replaceAll("\"",""); + dto.setC_pdservice_jira_ids(replaceTxt); + } + + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", list); + + return modelAndView; + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/model/PdServiceConnectDTO.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/model/PdServiceConnectDTO.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/model/PdServiceConnectDTO.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,113 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdserviceconnect.model; + +import org.hibernate.annotations.*; +import org.hibernate.annotations.Cache; +import javax.persistence.*; +import javax.persistence.Entity; +import javax.persistence.Table; +import java.io.Serializable; +import egovframework.com.ext.jstree.springHibernate.core.vo.JsTreeHibernateDTO; +import egovframework.com.ext.jstree.springHibernate.core.vo.JsTreeHibernateSearchDTO; + +@Entity +@Table(name = "T_ARMS_PDSERVICECONNECT") +@SelectBeforeUpdate(value=true) +@DynamicInsert(value=true) +@DynamicUpdate(value=true) +@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) +@SequenceGenerator(name = "JsTreeSequence", sequenceName = "S_ARMS_PDSERVICECONNECT", allocationSize = 1) +public class PdServiceConnectDTO extends JsTreeHibernateSearchDTO implements Serializable { + + public PdServiceConnectDTO() { + super(); + } + + public PdServiceConnectDTO(Boolean copyBooleanValue) { + super(); + this.copyBooleanValue = copyBooleanValue; + } + + //@Getter @Setter + private String c_contents; + + @Lob + @Column(name="C_CONTENTS") + public String getC_contents() { + return c_contents; + } + + public void setC_contents(String c_contents) { + this.c_contents = c_contents; + } + + private String c_pdservice_id; + private String c_pdservice_version_id; + private String c_pdservice_jira_ids; + + @Column(name="C_PDSERVICE_ID") + public String getC_pdservice_id() { + return c_pdservice_id; + } + + public void setC_pdservice_id(String c_pdservice_id) { + this.c_pdservice_id = c_pdservice_id; + } + + @Column(name="C_PDSERVICE_VERSION_ID") + public String getC_pdservice_version_id() { + return c_pdservice_version_id; + } + + public void setC_pdservice_version_id(String c_pdservice_version_id) { + this.c_pdservice_version_id = c_pdservice_version_id; + } + + @Column(name="C_PDSERVICE_JIRA_IDS") + public String getC_pdservice_jira_ids() { + return c_pdservice_jira_ids; + } + + public void setC_pdservice_jira_ids(String c_pdservice_jira_ids) { + this.c_pdservice_jira_ids = c_pdservice_jira_ids; + } + + /* + * Extend Bean Field + */ + private Boolean copyBooleanValue; + + @Transient + public Boolean getCopyBooleanValue() { + copyBooleanValue = false; + if (this.getCopy() == 0) { + copyBooleanValue = false; + } else { + copyBooleanValue = true; + } + return copyBooleanValue; + } + + public void setCopyBooleanValue(Boolean copyBooleanValue) { + this.copyBooleanValue = copyBooleanValue; + } + + @Override + public void setFieldFromNewInstance(T paramInstance) { + if( paramInstance instanceof JsTreeHibernateDTO){ + if(paramInstance.isCopied()) { + this.setC_title("copy_" + this.getC_title()); + } + } + } +} Index: web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/service/PdServiceConnect.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/service/PdServiceConnect.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/service/PdServiceConnect.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,20 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdserviceconnect.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateService; + +public interface PdServiceConnect extends JsTreeHibernateService { + + + +} \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/service/PdServiceConnectImpl.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/service/PdServiceConnectImpl.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/service/PdServiceConnectImpl.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,22 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdserviceconnect.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateServiceImpl; +import org.springframework.stereotype.Service; + +@Service("pdServiceConnect") +public class PdServiceConnectImpl extends JsTreeHibernateServiceImpl implements PdServiceConnect{ + + + +} \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/AdminPdServiceJiraController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/AdminPdServiceJiraController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/AdminPdServiceJiraController.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdservicejira.controller; + +import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; +import javax.annotation.PostConstruct; +import javax.servlet.http.HttpServletRequest; +import java.util.Comparator; +import java.util.List; +import java.util.NoSuchElementException; + +import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; + +import egovframework.api.arms.module_pdservicejira.model.PdServiceJiraDTO; +import egovframework.api.arms.module_pdservicejira.service.PdServiceJira; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-admin/api/arms/pdServiceJira"}) +public class AdminPdServiceJiraController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJira") + private PdServiceJira pdServiceJira; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJira); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/AnonPdServiceJiraController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/AnonPdServiceJiraController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/AnonPdServiceJiraController.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdservicejira.controller; + +import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; +import javax.annotation.PostConstruct; +import javax.servlet.http.HttpServletRequest; +import java.util.Comparator; +import java.util.List; +import java.util.NoSuchElementException; + +import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; + +import egovframework.api.arms.module_pdservicejira.model.PdServiceJiraDTO; +import egovframework.api.arms.module_pdservicejira.service.PdServiceJira; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-anon/api/arms/pdServiceJira"}) +public class AnonPdServiceJiraController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJira") + private PdServiceJira pdServiceJira; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJira); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/UserPdServiceJiraController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/UserPdServiceJiraController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejira/controller/UserPdServiceJiraController.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,53 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdservicejira.controller; + +import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; +import javax.annotation.PostConstruct; +import javax.servlet.http.HttpServletRequest; +import java.util.Comparator; +import java.util.List; +import java.util.NoSuchElementException; + +import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; + +import egovframework.api.arms.module_pdservicejira.model.PdServiceJiraDTO; +import egovframework.api.arms.module_pdservicejira.service.PdServiceJira; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-user/api/arms/pdServiceJira"}) +public class UserPdServiceJiraController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJira") + private PdServiceJira pdServiceJira; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJira); + } + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejira/model/PdServiceJiraDTO.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejira/model/PdServiceJiraDTO.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejira/model/PdServiceJiraDTO.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,205 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdservicejira.model; + +import org.hibernate.annotations.*; +import org.hibernate.annotations.Cache; +import javax.persistence.*; +import javax.persistence.Entity; +import javax.persistence.Table; +import java.io.Serializable; +import egovframework.com.ext.jstree.springHibernate.core.vo.JsTreeHibernateDTO; +import egovframework.com.ext.jstree.springHibernate.core.vo.JsTreeHibernateSearchDTO; + +@Entity +@Table(name = "T_ARMS_PDSERVICEJIRA") +@SelectBeforeUpdate(value=true) +@DynamicInsert(value=true) +@DynamicUpdate(value=true) +@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) +@SequenceGenerator(name = "JsTreeSequence", sequenceName = "S_ARMS_PDSERVICEJIRA", allocationSize = 1) +public class PdServiceJiraDTO extends JsTreeHibernateSearchDTO implements Serializable { + + public PdServiceJiraDTO() { + super(); + } + + public PdServiceJiraDTO(Boolean copyBooleanValue) { + super(); + this.copyBooleanValue = copyBooleanValue; + } + + //@Getter @Setter + private String c_contents; + + @Lob + @Column(name="C_CONTENTS") + public String getC_contents() { + return c_contents; + } + + public void setC_contents(String c_contents) { + this.c_contents = c_contents; + } + + private String c_jira_link; + private String c_jira_id; + private String c_jira_key; + private String c_jira_name; + + private String c_jira_avatar_48; + private String c_jira_avatar_32; + private String c_jira_avatar_24; + private String c_jira_avatar_16; + + private String c_jira_category_link; + private String c_jira_category_id; + private String c_jira_category_name; + private String c_jira_category_desc; + + @Column(name="C_JIRA_LINK") + public String getC_jira_link() { + return c_jira_link; + } + + public void setC_jira_link(String c_jira_link) { + this.c_jira_link = c_jira_link; + } + + @Column(name="C_JIRA_ID") + public String getC_jira_id() { + return c_jira_id; + } + + public void setC_jira_id(String c_jira_id) { + this.c_jira_id = c_jira_id; + } + + @Column(name="C_JIRA_KEY") + public String getC_jira_key() { + return c_jira_key; + } + + public void setC_jira_key(String c_jira_key) { + this.c_jira_key = c_jira_key; + } + + @Column(name="C_JIRA_NAME") + public String getC_jira_name() { + return c_jira_name; + } + + public void setC_jira_name(String c_jira_name) { + this.c_jira_name = c_jira_name; + } + + @Column(name="C_JIRA_AVATAR_48") + public String getC_jira_avatar_48() { + return c_jira_avatar_48; + } + + public void setC_jira_avatar_48(String c_jira_avatar_48) { + this.c_jira_avatar_48 = c_jira_avatar_48; + } + + @Column(name="C_JIRA_AVATAR_32") + public String getC_jira_avatar_32() { + return c_jira_avatar_32; + } + + public void setC_jira_avatar_32(String c_jira_avatar_32) { + this.c_jira_avatar_32 = c_jira_avatar_32; + } + + @Column(name="C_JIRA_AVATAR_24") + public String getC_jira_avatar_24() { + return c_jira_avatar_24; + } + + public void setC_jira_avatar_24(String c_jira_avatar_24) { + this.c_jira_avatar_24 = c_jira_avatar_24; + } + + @Column(name="C_JIRA_AVATAR_16") + public String getC_jira_avatar_16() { + return c_jira_avatar_16; + } + + public void setC_jira_avatar_16(String c_jira_avatar_16) { + this.c_jira_avatar_16 = c_jira_avatar_16; + } + + @Column(name="C_JIRA_CATEGORY_LINK") + public String getC_jira_category_link() { + return c_jira_category_link; + } + + public void setC_jira_category_link(String c_jira_category_link) { + this.c_jira_category_link = c_jira_category_link; + } + + @Column(name="C_JIRA_CATEGORY_ID") + public String getC_jira_category_id() { + return c_jira_category_id; + } + + public void setC_jira_category_id(String c_jira_category_id) { + this.c_jira_category_id = c_jira_category_id; + } + + @Column(name="C_JIRA_CATEGORY_NAME") + public String getC_jira_category_name() { + return c_jira_category_name; + } + + public void setC_jira_category_name(String c_jira_category_name) { + this.c_jira_category_name = c_jira_category_name; + } + + @Column(name="C_JIRA_CATEGORY_DESC") + public String getC_jira_category_desc() { + return c_jira_category_desc; + } + + public void setC_jira_category_desc(String c_jira_category_desc) { + this.c_jira_category_desc = c_jira_category_desc; + } + + /* + * Extend Bean Field + */ + private Boolean copyBooleanValue; + + @Transient + public Boolean getCopyBooleanValue() { + copyBooleanValue = false; + if (this.getCopy() == 0) { + copyBooleanValue = false; + } else { + copyBooleanValue = true; + } + return copyBooleanValue; + } + + public void setCopyBooleanValue(Boolean copyBooleanValue) { + this.copyBooleanValue = copyBooleanValue; + } + + @Override + public void setFieldFromNewInstance(T paramInstance) { + if( paramInstance instanceof JsTreeHibernateDTO){ + if(paramInstance.isCopied()) { + this.setC_title("copy_" + this.getC_title()); + } + } + } +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejira/service/PdServiceJira.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejira/service/PdServiceJira.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejira/service/PdServiceJira.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,20 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdservicejira.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateService; + +public interface PdServiceJira extends JsTreeHibernateService { + + + +} \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejira/service/PdServiceJiraImpl.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejira/service/PdServiceJiraImpl.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejira/service/PdServiceJiraImpl.java (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) @@ -0,0 +1,22 @@ +/* + * @author Dongmin.lee + * @since 2022-11-08 + * @version 22.11.08 + * @see
+ *  Copyright (C) 2007 by 313 DEV GRP, Inc - All Rights Reserved
+ *  Unauthorized copying of this file, via any medium is strictly prohibited
+ *  Proprietary and confidential
+ *  Written by 313 developer group <313@313.co.kr>, December 2010
+ * 
+ */ +package egovframework.api.arms.module_pdservicejira.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateServiceImpl; +import org.springframework.stereotype.Service; + +@Service("pdServiceJira") +public class PdServiceJiraImpl extends JsTreeHibernateServiceImpl implements PdServiceJira{ + + + +} \ No newline at end of file