Skip to content

Commit

Permalink
Merge pull request #369 from pahnjy/develop
Browse files Browse the repository at this point in the history
ServiceModel create API 수정 #367
  • Loading branch information
pahnjy authored Feb 7, 2017
2 parents a4db12a + 0cea71a commit 49bf227
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public String registerProfile(Profile profile) {
logger.debug("Profile = " + profile.toString());
ResponseMessage responseMessage = ResponseMessage.newResponseMessage();
if(profile.getId() == null){
profile.setId("pr-make-"+ UUIDConverter.shortUUID(UUID.randomUUID().toString().toCharArray()));
profile.setId("!!pr-make-"+ UUIDConverter.shortUUID(UUID.randomUUID().toString().toCharArray()));
}
// ProfileStore profileStore = ProfileMapStore.getInstance();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public class ServiceModel {
* format : yyyymmddhhmm
* ex : '201608250930'
*/
private String createTime;
private long createTime;

/**
* ServiceModel 변경 시간
* format : yyyymmddhhmm
* ex : '201608250930'
*/
private String modifiedTime;
private long modifiedTime;

/**
* ServiceModel 실행 위치
Expand All @@ -57,7 +57,7 @@ public class ServiceModel {
public ServiceModel() {
}

public ServiceModel(String id, String name, List<String> serviceIdList, String createTime, String modifiedTime, String location, String description) {
public ServiceModel(String id, String name, List<String> serviceIdList, long createTime, long modifiedTime, String location, String description) {
this.id = id;
this.name = name;
this.serviceIdList = serviceIdList;
Expand Down Expand Up @@ -91,19 +91,19 @@ public void setId(String id) {
this.id = id;
}

public String getCreateTime() {
public long getCreateTime() {
return createTime;
}

public void setCreateTime(String createTime) {
public void setCreateTime(long createTime) {
this.createTime = createTime;
}

public String getModifiedTime() {
public long getModifiedTime() {
return modifiedTime;
}

public void setModifiedTime(String modifiedTime) {
public void setModifiedTime(long modifiedTime) {
this.modifiedTime = modifiedTime;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ public String registerServiceModel(ServiceModel serviceModel) {
return null;
}
if(serviceModel.getId() == null){
serviceModel.setId("sm-make-"+ UUIDConverter.shortUUID(UUID.randomUUID().toString().toCharArray()));
serviceModel.setId("!!sm-make-"+ UUIDConverter.shortUUID(UUID.randomUUID().toString().toCharArray()));
}
if(serviceModel.getDescription() == null){
serviceModel.setDescription(serviceModel.getName() + "CVO");
}
long time = System.currentTimeMillis();
serviceModel.setCreateTime(time);
serviceModel.setModifiedTime(time);
logger.debug("ServiceModel = " + serviceModel);
ResponseMessage responseMessage = ResponseMessage.newResponseMessage();
// ServiceModelStore serviceModelStore = ServiceModelMapStore.getInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class ServiceModelTransFormObject {
private String id;
private String name;
private List<String> serviceIdList;
private String createTime;
private String modifiedTime;
private long createTime;
private long modifiedTime;
private String location;
private String sessionId;
private String description;
Expand Down Expand Up @@ -41,19 +41,19 @@ public void setId(String id) {
this.id = id;
}

public String getCreateTime() {
public long getCreateTime() {
return createTime;
}

public void setCreateTime(String createTime) {
public void setCreateTime(long createTime) {
this.createTime = createTime;
}

public String getModifiedTime() {
public long getModifiedTime() {
return modifiedTime;
}

public void setModifiedTime(String modifiedTime) {
public void setModifiedTime(long modifiedTime) {
this.modifiedTime = modifiedTime;
}

Expand Down Expand Up @@ -96,7 +96,7 @@ public ServiceModelTransFormObject(String name, List<String> serviceIdList , Str
this.location = location;
}

public ServiceModelTransFormObject(String id, String name, List<String> serviceIdList, String createTime, String modifiedTime, String location, String sessionId, String description) {
public ServiceModelTransFormObject(String id, String name, List<String> serviceIdList, long createTime, long modifiedTime, String location, String sessionId, String description) {
this.id = id;
this.name = name;
this.serviceIdList = serviceIdList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public class ServiceModelDataObject {
private String id;
private String name;
private List<String> serviceIdList;
private String createTime;
private String modifiedTime;
private long createTime;
private long modifiedTime;
private String location;
private String description;

Expand Down Expand Up @@ -43,19 +43,19 @@ public void setId(String id) {
this.id = id;
}

public String getCreateTime() {
public long getCreateTime() {
return createTime;
}

public void setCreateTime(String createTime) {
public void setCreateTime(long createTime) {
this.createTime = createTime;
}

public String getModifiedTime() {
public long getModifiedTime() {
return modifiedTime;
}

public void setModifiedTime(String modifiedTime) {
public void setModifiedTime(long modifiedTime) {
this.modifiedTime = modifiedTime;
}

Expand Down Expand Up @@ -84,7 +84,7 @@ public ServiceModelDataObject(String id, String name, List<String> serviceIdList
this.serviceIdList = serviceIdList;
}

public ServiceModelDataObject(String id, String name, List<String> serviceIdList, String createTime, String modifiedTime, String location, String description) {
public ServiceModelDataObject(String id, String name, List<String> serviceIdList, long createTime, long modifiedTime, String location, String description) {
this.id = id;
this.name = name;
this.serviceIdList = serviceIdList;
Expand Down

0 comments on commit 49bf227

Please sign in to comment.