Index: web-module/src/main/java/egovframework/api/arms/module_armsscheduler/component/ArmsSchedulerUtil.java =================================================================== diff -u -rd7698afe04b9bc7fdcca30f52ccc39a8f9b1b2c1 -r2e055ae035a195f71c6fc5194c10831d56ab48e8 --- web-module/src/main/java/egovframework/api/arms/module_armsscheduler/component/ArmsSchedulerUtil.java (.../ArmsSchedulerUtil.java) (revision d7698afe04b9bc7fdcca30f52ccc39a8f9b1b2c1) +++ web-module/src/main/java/egovframework/api/arms/module_armsscheduler/component/ArmsSchedulerUtil.java (.../ArmsSchedulerUtil.java) (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -96,25 +96,8 @@ logger.info("===============[ End 요구사항 이슈 타입 셋팅 ]==============="); } - public void set_ReqAdd_toJiraReqIssue() throws IOException, URISyntaxException { + public void set_jiraIssueStatus_toStatic() throws IOException, URISyntaxException { final JiraRestClient restClient = ArmsSchedulerUtil.getJiraRestClient(); - Issue test = restClient.getIssueClient().getIssue("test").claim(); - test.getIssueLinks(); - test.getSubtasks(); - test.getAssignee(); - test.getAffectedVersions(); - test.getChangelog(); - test.getComments(); - test.getCommentsUri(); - test.getCreationDate(); - test.getDescription(); - test.getDueDate(); - test.getIssueType(); - test.getResolution(); - test.getIssueLinks(); - test.getStatus(); - test.getUpdateDate(); - } Index: web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/UserPdServiceConnectController.java =================================================================== diff -u -r32b71e2da43218781d51046bf2a9a1cf247deddc -r2e055ae035a195f71c6fc5194c10831d56ab48e8 --- web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/UserPdServiceConnectController.java (.../UserPdServiceConnectController.java) (revision 32b71e2da43218781d51046bf2a9a1cf247deddc) +++ web-module/src/main/java/egovframework/api/arms/module_pdserviceconnect/controller/UserPdServiceConnectController.java (.../UserPdServiceConnectController.java) (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -13,20 +13,29 @@ import egovframework.api.arms.module_pdserviceconnect.model.PdServiceConnectDTO; import egovframework.api.arms.module_pdserviceconnect.service.PdServiceConnect; +import egovframework.api.arms.util.PropertiesReader; import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; +import egovframework.com.ext.jstree.springHibernate.core.util.Util_TitleChecker; +import egovframework.com.ext.jstree.springHibernate.core.validation.group.AddNode; +import egovframework.com.ext.jstree.springHibernate.core.validation.group.UpdateNode; 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.http.ResponseEntity; import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; import org.springframework.validation.BindingResult; +import org.springframework.validation.annotation.Validated; 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.client.RestTemplate; import org.springframework.web.servlet.ModelAndView; import javax.annotation.PostConstruct; +import javax.servlet.http.HttpServletRequest; import java.util.List; @Slf4j @@ -70,4 +79,57 @@ return modelAndView; } + @ResponseBody + @RequestMapping( + value = {"/addNode.do"}, + method = {RequestMethod.POST} + ) + public ModelAndView addNode(@Validated({AddNode.class}) PdServiceConnectDTO jsTreeHibernateSearchDTO, + BindingResult bindingResult, ModelMap model) throws Exception { + if (bindingResult.hasErrors()) { + throw new RuntimeException(); + } else { + jsTreeHibernateSearchDTO.setC_title(Util_TitleChecker.StringReplace(jsTreeHibernateSearchDTO.getC_title())); + + PdServiceConnectDTO returnVO = pdServiceConnect.addNode(jsTreeHibernateSearchDTO); + + PropertiesReader propertiesReader = new PropertiesReader("egovframework/egovProps/globals.properties"); + String armsUrl = "http://127.0.0.1:13131"; + String targetUrl = "/callback/api/arms/armsScheduler/forceExec/set_PdServiceVersion_toJiraProjectVersion.do"; + + RestTemplate restTemplate = new RestTemplate(); + ResponseEntity response = restTemplate.getForEntity(armsUrl + targetUrl, String.class); + logger.info("response = " + response); + + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", returnVO); + return modelAndView; + } + } + + @ResponseBody + @RequestMapping(value = "/updateNode.do") + public ModelAndView updateNode(@Validated(value = UpdateNode.class) PdServiceConnectDTO jsTreeHibernateSearchDTO, + BindingResult bindingResult, HttpServletRequest request, ModelMap model) throws Exception { + + if (bindingResult.hasErrors()) { + throw new RuntimeException(); + } + + pdServiceConnect.updateNode(jsTreeHibernateSearchDTO); + + PropertiesReader propertiesReader = new PropertiesReader("egovframework/egovProps/globals.properties"); + String armsUrl = "http://127.0.0.1:13131"; + String targetUrl = "/callback/api/arms/armsScheduler/forceExec/set_PdServiceVersion_toJiraProjectVersion.do"; + + RestTemplate restTemplate = new RestTemplate(); + ResponseEntity response = restTemplate.getForEntity(armsUrl + targetUrl, String.class); + logger.info("response = " + response); + + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", "UserPdServiceConnectController :: updateNode"); + return modelAndView; + } + + } Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/AdminPdServiceJiraStatController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/AdminPdServiceJiraStatController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/AdminPdServiceJiraStatController.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastat.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_pdservicejirastat.model.PdServiceJiraStatDTO; +import egovframework.api.arms.module_pdservicejirastat.service.PdServiceJiraStat; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-admin/api/arms/pdServiceJiraStat"}) +public class AdminPdServiceJiraStatController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJiraStat") + private PdServiceJiraStat pdServiceJiraStat; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJiraStat); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/AnonPdServiceJiraStatController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/AnonPdServiceJiraStatController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/AnonPdServiceJiraStatController.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastat.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_pdservicejirastat.model.PdServiceJiraStatDTO; +import egovframework.api.arms.module_pdservicejirastat.service.PdServiceJiraStat; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-anon/api/arms/pdServiceJiraStat"}) +public class AnonPdServiceJiraStatController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJiraStat") + private PdServiceJiraStat pdServiceJiraStat; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJiraStat); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/UserPdServiceJiraStatController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/UserPdServiceJiraStatController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/controller/UserPdServiceJiraStatController.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,53 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastat.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_pdservicejirastat.model.PdServiceJiraStatDTO; +import egovframework.api.arms.module_pdservicejirastat.service.PdServiceJiraStat; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-user/api/arms/pdServiceJiraStat"}) +public class UserPdServiceJiraStatController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJiraStat") + private PdServiceJiraStat pdServiceJiraStat; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJiraStat); + } + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/model/PdServiceJiraStatDTO.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/model/PdServiceJiraStatDTO.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/model/PdServiceJiraStatDTO.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,71 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastat.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_PDSERVICEJIRASTAT") +@SelectBeforeUpdate(value=true) +@DynamicInsert(value=true) +@DynamicUpdate(value=true) +@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) +@SequenceGenerator(name = "JsTreeSequence", sequenceName = "S_T_ARMS_PDSERVICEJIRASTAT", allocationSize = 1) +public class PdServiceJiraStatDTO extends JsTreeHibernateSearchDTO implements Serializable { + + public PdServiceJiraStatDTO() { + super(); + } + + public PdServiceJiraStatDTO(Boolean copyBooleanValue) { + super(); + this.copyBooleanValue = copyBooleanValue; + } + + //@Getter @Setter + + /* + * 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_pdservicejirastat/service/PdServiceJiraStat.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/service/PdServiceJiraStat.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/service/PdServiceJiraStat.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,20 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastat.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateService; + +public interface PdServiceJiraStat extends JsTreeHibernateService { + + + +} \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/service/PdServiceJiraStatImpl.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/service/PdServiceJiraStatImpl.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastat/service/PdServiceJiraStatImpl.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,22 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastat.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateServiceImpl; +import org.springframework.stereotype.Service; + +@Service("pdServiceJiraStat") +public class PdServiceJiraStatImpl extends JsTreeHibernateServiceImpl implements PdServiceJiraStat{ + + + +} \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/AdminPdServiceJiraStatLogController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/AdminPdServiceJiraStatLogController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/AdminPdServiceJiraStatLogController.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastatlog.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_pdservicejirastatlog.model.PdServiceJiraStatLogDTO; +import egovframework.api.arms.module_pdservicejirastatlog.service.PdServiceJiraStatLog; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-admin/api/arms/pdServiceJiraStatLog"}) +public class AdminPdServiceJiraStatLogController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJiraStatLog") + private PdServiceJiraStatLog pdServiceJiraStatLog; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJiraStatLog); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/AnonPdServiceJiraStatLogController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/AnonPdServiceJiraStatLogController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/AnonPdServiceJiraStatLogController.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,51 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastatlog.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_pdservicejirastatlog.model.PdServiceJiraStatLogDTO; +import egovframework.api.arms.module_pdservicejirastatlog.service.PdServiceJiraStatLog; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-anon/api/arms/pdServiceJiraStatLog"}) +public class AnonPdServiceJiraStatLogController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJiraStatLog") + private PdServiceJiraStatLog pdServiceJiraStatLog; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJiraStatLog); + } + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/UserPdServiceJiraStatLogController.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/UserPdServiceJiraStatLogController.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/controller/UserPdServiceJiraStatLogController.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,53 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastatlog.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_pdservicejirastatlog.model.PdServiceJiraStatLogDTO; +import egovframework.api.arms.module_pdservicejirastatlog.service.PdServiceJiraStatLog; + +@Slf4j +@Controller +@RequestMapping(value = {"/auth-user/api/arms/pdServiceJiraStatLog"}) +public class UserPdServiceJiraStatLogController extends SHVAbstractController { + + @Autowired + @Qualifier("pdServiceJiraStatLog") + private PdServiceJiraStatLog pdServiceJiraStatLog; + + @PostConstruct + public void initialize() { + setJsTreeHibernateService(pdServiceJiraStatLog); + } + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + +} Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/model/PdServiceJiraStatLogDTO.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/model/PdServiceJiraStatLogDTO.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/model/PdServiceJiraStatLogDTO.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,71 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastatlog.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_PDSERVICEJIRASTATLOG") +@SelectBeforeUpdate(value=true) +@DynamicInsert(value=true) +@DynamicUpdate(value=true) +@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) +@SequenceGenerator(name = "JsTreeSequence", sequenceName = "S_T_ARMS_PDSERVICEJIRASTATLOG", allocationSize = 1) +public class PdServiceJiraStatLogDTO extends JsTreeHibernateSearchDTO implements Serializable { + + public PdServiceJiraStatLogDTO() { + super(); + } + + public PdServiceJiraStatLogDTO(Boolean copyBooleanValue) { + super(); + this.copyBooleanValue = copyBooleanValue; + } + + //@Getter @Setter + + /* + * 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_pdservicejirastatlog/service/PdServiceJiraStatLog.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/service/PdServiceJiraStatLog.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/service/PdServiceJiraStatLog.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,20 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastatlog.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateService; + +public interface PdServiceJiraStatLog extends JsTreeHibernateService { + + + +} \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/service/PdServiceJiraStatLogImpl.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/service/PdServiceJiraStatLogImpl.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/module_pdservicejirastatlog/service/PdServiceJiraStatLogImpl.java (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -0,0 +1,22 @@ +/* + * @author Dongmin.lee + * @since 2022-12-06 + * @version 22.12.06 + * @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_pdservicejirastatlog.service; + +import egovframework.com.ext.jstree.springHibernate.core.service.JsTreeHibernateServiceImpl; +import org.springframework.stereotype.Service; + +@Service("pdServiceJiraStatLog") +public class PdServiceJiraStatLogImpl extends JsTreeHibernateServiceImpl implements PdServiceJiraStatLog{ + + + +} \ No newline at end of file Index: web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java =================================================================== diff -u -r668413b38f5dc118f409ac4dd6f8f20be2b4e2aa -r2e055ae035a195f71c6fc5194c10831d56ab48e8 --- web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 668413b38f5dc118f409ac4dd6f8f20be2b4e2aa) +++ web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 2e055ae035a195f71c6fc5194c10831d56ab48e8) @@ -11,6 +11,12 @@ */ package egovframework.api.arms.module_reqadd.controller; +import com.atlassian.jira.rest.client.api.JiraRestClient; +import com.atlassian.jira.rest.client.api.domain.*; +import com.atlassian.jira.rest.client.api.domain.input.IssueInput; +import com.atlassian.jira.rest.client.api.domain.input.IssueInputBuilder; +import com.atlassian.util.concurrent.Promise; +import egovframework.api.arms.module_armsscheduler.component.ArmsSchedulerUtil; import egovframework.api.arms.module_filerepository.service.FileRepository; import egovframework.api.arms.module_filerepositorylog.model.FileRepositoryLogDTO; import egovframework.api.arms.module_filerepositorylog.service.FileRepositoryLog; @@ -48,6 +54,7 @@ import org.hibernate.criterion.Criterion; import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions; +import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -66,6 +73,7 @@ import javax.annotation.PostConstruct; import javax.servlet.http.HttpServletRequest; +import java.net.URI; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.*; @@ -299,7 +307,9 @@ PdServiceJiraVerDTO jiraVerDTOInfo = pdServiceJira.getNode(pdServiceJiraVerDTO); if( jiraVerDTOInfo == null ){ - //없다는 건.? + //없다는 건.? - 버전 정보 입력도 안하고 요구사항 부터 입력한거니까 + //개별 설정하겠다는 의도가 강하거나, 한거다. + //설정 정보 없음 알림. }else{ //있다는건. 매우 정상 ReqStatusDTO reqStatusDTO = new ReqStatusDTO(); @@ -314,71 +324,29 @@ reqStatusDTO.setC_version_name(versionDTO.getC_title()); reqStatusDTO.setC_jira_project_link(jiraDTOInfo.getC_id()); - reqStatusDTO.setC_jira_project_name(jiraDTOInfo.getC_jira_key()); + reqStatusDTO.setC_jira_project_name(jiraDTOInfo.getC_jira_name()); reqStatusDTO.setC_jira_project_key(jiraDTOInfo.getC_jira_key()); reqStatusDTO.setC_jira_project_url(jiraDTOInfo.getC_jira_link()); reqStatusDTO.setC_jira_version_link(jiraVerDTOInfo.getC_id()); reqStatusDTO.setC_jira_version_name(jiraVerDTOInfo.getC_jiraversion_name()); reqStatusDTO.setC_jira_version_url(jiraVerDTOInfo.getC_jiraversion_link()); + //REQADD 의 요구사항 아이디, 타이틀 + reqStatusDTO.setC_req_link(returnNode.getC_id().toString()); + reqStatusDTO.setC_req_name(returnNode.getC_title()); + String changeReqStatusTableName = changeReqTableName; //T_ARMS_REQADD_145 -> T_ARMS_REQSTATUS_145 changeReqStatusTableName = StringUtility.replace(changeReqStatusTableName, "T_ARMS_REQADD_", "T_ARMS_REQSTATUS_"); SessionUtil.setAttribute("addNode",changeReqStatusTableName); - ReqStatusDTO returnStatusNode = reqStatus.addNode(reqStatusDTO); + reqStatus.addNode(reqStatusDTO); SessionUtil.removeAttribute("addNode"); -// -// @Column(name = "c_req_link") -// private String c_req_link; -// -// @Column(name = "c_req_name") -// private String c_req_name; -// -// -// @Column(name = "c_jira_req_issue_link") -// private String c_jira_req_issue_link; -// -// @Column(name = "c_jira_req_issue_key") -// private String c_jira_req_issue_key; -// -// @Column(name = "c_jira_req_issue_id") -// private String c_jira_req_issue_id; -// -// -// @Column(name = "c_jira_req_priority_link") -// private Long c_jira_req_priority_link; -// -// @Column(name = "c_jira_req_priority_url") -// private String c_jira_req_priority_url; -// -// @Column(name = "c_jira_req_priority_name") -// private String c_jira_req_priority_name; -// -// -// @Column(name = "c_jira_req_status_link") -// private Long c_jira_req_status_link; -// -// @Column(name = "c_jira_req_status_url") -// private String c_jira_req_status_url; -// -// @Column(name = "c_jira_req_status_name") -// private String c_jira_req_status_name; -// -// -// @Lob -// @Column(name = "c_jira_req_linkingissue") -// private String c_jira_req_linkingissue; -// -// @Lob -// @Column(name = "c_jira_req_subtaskissue") -// private String c_jira_req_subtaskissue; - } }