From 4d98dc59b00c03e6a04b318ebdd63f78ee0d2d66 Mon Sep 17 00:00:00 2001 From: Melvin Date: Tue, 7 Feb 2017 17:43:59 +0900 Subject: [PATCH] =?UTF-8?q?ServiceModel=20Component=20=EC=97=B0=EB=8F=99?= =?UTF-8?q?=20Data=20=EB=B3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../icbms/so/servicemodel/logic/ServiceModelLogicImpl.java | 3 +++ .../so/servicemodel/pr/ServiceModelTransFormObject.java | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/logic/ServiceModelLogicImpl.java b/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/logic/ServiceModelLogicImpl.java index bec16f3f..4d4ae1a6 100644 --- a/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/logic/ServiceModelLogicImpl.java +++ b/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/logic/ServiceModelLogicImpl.java @@ -56,6 +56,9 @@ public String registerServiceModel(ServiceModel serviceModel) { if(serviceModel.getId() == null){ serviceModel.setId("sm-make-"+ UUIDConverter.shortUUID(UUID.randomUUID().toString().toCharArray())); } + if(serviceModel.getDescription() == null){ + serviceModel.setDescription(serviceModel.getName() + "CVO"); + } logger.debug("ServiceModel = " + serviceModel); ResponseMessage responseMessage = ResponseMessage.newResponseMessage(); // ServiceModelStore serviceModelStore = ServiceModelMapStore.getInstance(); diff --git a/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/pr/ServiceModelTransFormObject.java b/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/pr/ServiceModelTransFormObject.java index 6c315644..43fd1f0e 100644 --- a/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/pr/ServiceModelTransFormObject.java +++ b/so-servicemodel/src/main/java/com/pineone/icbms/so/servicemodel/pr/ServiceModelTransFormObject.java @@ -90,6 +90,12 @@ public ServiceModelTransFormObject(String id, String name, List serviceI this.serviceIdList = serviceIdList; } + public ServiceModelTransFormObject(String name, List serviceIdList , String location) { + this.name = name; + this.serviceIdList = serviceIdList; + this.location = location; + } + public ServiceModelTransFormObject(String id, String name, List serviceIdList, String createTime, String modifiedTime, String location, String sessionId, String description) { this.id = id; this.name = name;