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;