|
26 | 26 | import org.apache.cloudstack.api.ApiConstants.VMDetails; |
27 | 27 | import org.apache.cloudstack.api.response.AccountResponse; |
28 | 28 | import org.apache.cloudstack.api.response.AsyncJobResponse; |
| 29 | +import org.apache.cloudstack.api.response.DiskOfferingResponse; |
29 | 30 | import org.apache.cloudstack.api.response.DomainRouterResponse; |
30 | 31 | import org.apache.cloudstack.api.response.EventResponse; |
31 | 32 | import org.apache.cloudstack.api.response.HostResponse; |
|
42 | 43 |
|
43 | 44 | import com.cloud.api.query.dao.AccountJoinDao; |
44 | 45 | import com.cloud.api.query.dao.AsyncJobJoinDao; |
| 46 | +import com.cloud.api.query.dao.DiskOfferingJoinDao; |
45 | 47 | import com.cloud.api.query.dao.DomainRouterJoinDao; |
46 | 48 | import com.cloud.api.query.dao.HostJoinDao; |
47 | 49 | import com.cloud.api.query.dao.InstanceGroupJoinDao; |
|
56 | 58 | import com.cloud.api.query.dao.VolumeJoinDao; |
57 | 59 | import com.cloud.api.query.vo.AccountJoinVO; |
58 | 60 | import com.cloud.api.query.vo.AsyncJobJoinVO; |
| 61 | +import com.cloud.api.query.vo.DiskOfferingJoinVO; |
59 | 62 | import com.cloud.api.query.vo.DomainRouterJoinVO; |
60 | 63 | import com.cloud.api.query.vo.EventJoinVO; |
61 | 64 | import com.cloud.api.query.vo.HostJoinVO; |
|
163 | 166 | import com.cloud.network.vpc.dao.StaticRouteDao; |
164 | 167 | import com.cloud.network.vpc.dao.VpcGatewayDao; |
165 | 168 | import com.cloud.network.vpc.dao.VpcOfferingDao; |
| 169 | +import com.cloud.offering.DiskOffering; |
166 | 170 | import com.cloud.offering.NetworkOffering; |
167 | 171 | import com.cloud.offering.ServiceOffering; |
168 | 172 | import com.cloud.offerings.NetworkOfferingVO; |
@@ -333,6 +337,7 @@ public class ApiDBUtils { |
333 | 337 | private static StoragePoolJoinDao _poolJoinDao; |
334 | 338 | private static AccountJoinDao _accountJoinDao; |
335 | 339 | private static AsyncJobJoinDao _jobJoinDao; |
| 340 | + private static DiskOfferingJoinDao _diskOfferingJoinDao; |
336 | 341 |
|
337 | 342 | private static PhysicalNetworkTrafficTypeDao _physicalNetworkTrafficTypeDao; |
338 | 343 | private static PhysicalNetworkServiceProviderDao _physicalNetworkServiceProviderDao; |
@@ -437,6 +442,7 @@ public class ApiDBUtils { |
437 | 442 | _vpcOfferingDao = locator.getDao(VpcOfferingDao.class); |
438 | 443 | _snapshotPolicyDao = locator.getDao(SnapshotPolicyDao.class); |
439 | 444 | _asyncJobDao = locator.getDao(AsyncJobDao.class); |
| 445 | + _diskOfferingJoinDao = locator.getDao(DiskOfferingJoinDao.class); |
440 | 446 |
|
441 | 447 | // Note: stats collector should already have been initialized by this time, otherwise a null instance is returned |
442 | 448 | _statsCollector = StatsCollector.getInstance(); |
@@ -1399,4 +1405,12 @@ public static AsyncJobResponse newAsyncJobResponse(AsyncJobJoinVO ve) { |
1399 | 1405 | public static AsyncJobJoinVO newAsyncJobView(AsyncJob e){ |
1400 | 1406 | return _jobJoinDao.newAsyncJobView(e); |
1401 | 1407 | } |
| 1408 | + |
| 1409 | + public static DiskOfferingResponse newDiskOfferingResponse(DiskOfferingJoinVO offering) { |
| 1410 | + return _diskOfferingJoinDao.newDiskOfferingResponse(offering); |
| 1411 | + } |
| 1412 | + |
| 1413 | + public static DiskOfferingJoinVO newDiskOfferingView(DiskOffering offering){ |
| 1414 | + return _diskOfferingJoinDao.newDiskOfferingView(offering); |
| 1415 | + } |
1402 | 1416 | } |
0 commit comments