use of org.apache.cloudstack.api.response.DomainResponse in project cloudstack by apache.
the class UpdateDomainCmd method execute.
@Override
public void execute() {
CallContext.current().setEventDetails("Domain Id: " + getId());
Domain domain = _regionService.updateDomain(this);
if (domain != null) {
DomainResponse response = _responseGenerator.createDomainResponse(domain);
response.setResponseName(getCommandName());
this.setResponseObject(response);
} else {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to update domain");
}
}
Aggregations