use of org.apache.cloudstack.api.response.ResourceIconResponse in project cloudstack by apache.
the class ListIsosCmd method updateIsoResponse.
private void updateIsoResponse(List<TemplateResponse> response) {
for (TemplateResponse templateResponse : response) {
ResourceIcon resourceIcon = resourceIconManager.getByResourceTypeAndUuid(ResourceTag.ResourceObjectType.ISO, templateResponse.getId());
if (resourceIcon == null) {
continue;
}
ResourceIconResponse iconResponse = _responseGenerator.createResourceIconResponse(resourceIcon);
templateResponse.setResourceIconResponse(iconResponse);
}
}
use of org.apache.cloudstack.api.response.ResourceIconResponse in project cloudstack by apache.
the class ListTemplatesCmd method updateTemplateResponse.
private void updateTemplateResponse(List<TemplateResponse> response) {
for (TemplateResponse templateResponse : response) {
ResourceIcon resourceIcon = resourceIconManager.getByResourceTypeAndUuid(ResourceTag.ResourceObjectType.Template, templateResponse.getId());
if (resourceIcon == null) {
continue;
}
ResourceIconResponse iconResponse = _responseGenerator.createResourceIconResponse(resourceIcon);
templateResponse.setResourceIconResponse(iconResponse);
}
}
use of org.apache.cloudstack.api.response.ResourceIconResponse in project cloudstack by apache.
the class ListVPCsCmd method updateVpcResponse.
private void updateVpcResponse(List<VpcResponse> response) {
for (VpcResponse vpcResponse : response) {
ResourceIcon resourceIcon = resourceIconManager.getByResourceTypeAndUuid(ResourceTag.ResourceObjectType.Vpc, vpcResponse.getId());
if (resourceIcon == null) {
continue;
}
ResourceIconResponse iconResponse = _responseGenerator.createResourceIconResponse(resourceIcon);
vpcResponse.setResourceIconResponse(iconResponse);
}
}
Aggregations