|
34 | 34 | import org.apache.cloudstack.api.response.EventResponse; |
35 | 35 | import org.apache.cloudstack.api.response.HostResponse; |
36 | 36 | import org.apache.cloudstack.api.response.InstanceGroupResponse; |
| 37 | +import org.apache.cloudstack.api.response.ObjectStoreResponse; |
37 | 38 | import org.apache.cloudstack.api.response.ProjectAccountResponse; |
38 | 39 | import org.apache.cloudstack.api.response.ProjectInvitationResponse; |
39 | 40 | import org.apache.cloudstack.api.response.ProjectResponse; |
|
55 | 56 | import com.cloud.api.query.dao.DiskOfferingJoinDao; |
56 | 57 | import com.cloud.api.query.dao.DomainRouterJoinDao; |
57 | 58 | import com.cloud.api.query.dao.HostJoinDao; |
| 59 | +import com.cloud.api.query.dao.ImageDataStoreJoinDao; |
58 | 60 | import com.cloud.api.query.dao.InstanceGroupJoinDao; |
59 | 61 | import com.cloud.api.query.dao.ProjectAccountJoinDao; |
60 | 62 | import com.cloud.api.query.dao.ProjectInvitationJoinDao; |
|
73 | 75 | import com.cloud.api.query.vo.DomainRouterJoinVO; |
74 | 76 | import com.cloud.api.query.vo.EventJoinVO; |
75 | 77 | import com.cloud.api.query.vo.HostJoinVO; |
| 78 | +import com.cloud.api.query.vo.ImageDataStoreJoinVO; |
76 | 79 | import com.cloud.api.query.vo.InstanceGroupJoinVO; |
77 | 80 | import com.cloud.api.query.vo.ProjectAccountJoinVO; |
78 | 81 | import com.cloud.api.query.vo.ProjectInvitationJoinVO; |
@@ -284,7 +287,7 @@ public class ApiDBUtils { |
284 | 287 | static NetworkModel _networkModel; |
285 | 288 | static NetworkManager _networkMgr; |
286 | 289 | static TemplateManager _templateMgr; |
287 | | - |
| 290 | + |
288 | 291 | static StatsCollector _statsCollector; |
289 | 292 |
|
290 | 293 | static AccountDao _accountDao; |
@@ -362,6 +365,7 @@ public class ApiDBUtils { |
362 | 365 | static HostJoinDao _hostJoinDao; |
363 | 366 | static VolumeJoinDao _volJoinDao; |
364 | 367 | static StoragePoolJoinDao _poolJoinDao; |
| 368 | + static ImageDataStoreJoinDao _imageStoreJoinDao; |
365 | 369 | static AccountJoinDao _accountJoinDao; |
366 | 370 | static AsyncJobJoinDao _jobJoinDao; |
367 | 371 |
|
@@ -466,6 +470,7 @@ public class ApiDBUtils { |
466 | 470 | @Inject private HostJoinDao hostJoinDao; |
467 | 471 | @Inject private VolumeJoinDao volJoinDao; |
468 | 472 | @Inject private StoragePoolJoinDao poolJoinDao; |
| 473 | + @Inject private ImageDataStoreJoinDao imageStoreJoinDao; |
469 | 474 | @Inject private AccountJoinDao accountJoinDao; |
470 | 475 | @Inject private AsyncJobJoinDao jobJoinDao; |
471 | 476 |
|
@@ -566,6 +571,7 @@ void init() { |
566 | 571 | _hostJoinDao = hostJoinDao; |
567 | 572 | _volJoinDao = volJoinDao; |
568 | 573 | _poolJoinDao = poolJoinDao; |
| 574 | + _imageStoreJoinDao = imageStoreJoinDao; |
569 | 575 | _accountJoinDao = accountJoinDao; |
570 | 576 | _jobJoinDao = jobJoinDao; |
571 | 577 |
|
@@ -1535,6 +1541,18 @@ public static List<StoragePoolJoinVO> newStoragePoolView(StoragePool vr){ |
1535 | 1541 | return _poolJoinDao.newStoragePoolView(vr); |
1536 | 1542 | } |
1537 | 1543 |
|
| 1544 | + public static ObjectStoreResponse newImageStoreResponse(ImageDataStoreJoinVO vr) { |
| 1545 | + return _imageStoreJoinDao.newObjectStoreResponse(vr); |
| 1546 | + } |
| 1547 | + |
| 1548 | + public static ObjectStoreResponse fillImageStoreDetails(ObjectStoreResponse vrData, ImageDataStoreJoinVO vr){ |
| 1549 | + return _imageStoreJoinDao.setObjectStoreResponse(vrData, vr); |
| 1550 | + } |
| 1551 | + |
| 1552 | + public static List<ImageDataStoreJoinVO> newImageStoreView(ObjectStore vr){ |
| 1553 | + return _imageStoreJoinDao.newObjectStoreView(vr); |
| 1554 | + } |
| 1555 | + |
1538 | 1556 |
|
1539 | 1557 | public static AccountResponse newAccountResponse(AccountJoinVO ve) { |
1540 | 1558 | return _accountJoinDao.newAccountResponse(ve); |
@@ -1579,7 +1597,7 @@ public static ZoneResponse newDataCenterResponse(DataCenterJoinVO dc, Boolean sh |
1579 | 1597 | public static DataCenterJoinVO newDataCenterView(DataCenter dc){ |
1580 | 1598 | return _dcJoinDao.newDataCenterView(dc); |
1581 | 1599 | } |
1582 | | - |
| 1600 | + |
1583 | 1601 | public static Map<String, String> findHostDetailsById(long hostId){ |
1584 | 1602 | return _hostDetailsDao.findDetails(hostId); |
1585 | 1603 | } |
|
0 commit comments