From 3d75bf2242f0b09cc36496691ef408d7e76db670 Mon Sep 17 00:00:00 2001 From: kishan Date: Fri, 27 Jan 2012 17:52:50 +0530 Subject: [PATCH] Bug 12649: Added new param path to listDomains respone Status 12649: resolved fixed Reviewed-By: Nitin --- api/src/com/cloud/api/response/DomainResponse.java | 11 +++++++++++ server/src/com/cloud/api/ApiResponseHelper.java | 1 + 2 files changed, 12 insertions(+) diff --git a/api/src/com/cloud/api/response/DomainResponse.java b/api/src/com/cloud/api/response/DomainResponse.java index f1242705b71..9aac534ba5d 100644 --- a/api/src/com/cloud/api/response/DomainResponse.java +++ b/api/src/com/cloud/api/response/DomainResponse.java @@ -43,6 +43,9 @@ public class DomainResponse extends BaseResponse { @SerializedName(ApiConstants.NETWORK_DOMAIN) @Param(description="the network domain") private String networkDomain; + @SerializedName(ApiConstants.PATH) @Param(description="the path of the domain") + private String path; + public Long getId() { return id; } @@ -94,5 +97,13 @@ public class DomainResponse extends BaseResponse { public void setNetworkDomain(String networkDomain) { this.networkDomain = networkDomain; } + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } } diff --git a/server/src/com/cloud/api/ApiResponseHelper.java b/server/src/com/cloud/api/ApiResponseHelper.java index 9c57d887384..c36ffe81987 100755 --- a/server/src/com/cloud/api/ApiResponseHelper.java +++ b/server/src/com/cloud/api/ApiResponseHelper.java @@ -353,6 +353,7 @@ public class ApiResponseHelper implements ResponseGenerator { domainResponse.setLevel(domain.getLevel()); domainResponse.setNetworkDomain(domain.getNetworkDomain()); domainResponse.setParentDomainId(domain.getParent()); + domainResponse.setPath(domain.getPath()); if (domain.getParent() != null) { domainResponse.setParentDomainName(ApiDBUtils.findDomainById(domain.getParent()).getName()); }