mirror of https://github.com/apache/cloudstack.git
Bug 12649: Added new param path to listDomains respone
Status 12649: resolved fixed Reviewed-By: Nitin
This commit is contained in:
parent
d79c7d2c47
commit
3d75bf2242
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue