|
217 | 217 | import com.cloud.api.query.vo.UserAccountJoinVO; |
218 | 218 | import com.cloud.api.query.vo.UserVmJoinVO; |
219 | 219 | import com.cloud.api.query.vo.VolumeJoinVO; |
220 | | -import com.cloud.cluster.ManagementServerHostPeerJoinVO; |
221 | 220 | import com.cloud.cluster.ManagementServerHostVO; |
222 | 221 | import com.cloud.cluster.dao.ManagementServerHostDao; |
223 | 222 | import com.cloud.cluster.dao.ManagementServerHostPeerJoinDao; |
|
351 | 350 | import com.cloud.vm.dao.UserVmDetailsDao; |
352 | 351 | import com.cloud.vm.dao.VMInstanceDao; |
353 | 352 |
|
354 | | -import org.apache.cloudstack.acl.ControlledEntity; |
355 | | -import org.apache.cloudstack.acl.ControlledEntity.ACLType; |
356 | | -import org.apache.cloudstack.acl.SecurityChecker; |
357 | | -import org.apache.cloudstack.affinity.AffinityGroupDomainMapVO; |
358 | | -import org.apache.cloudstack.affinity.AffinityGroupResponse; |
359 | | -import org.apache.cloudstack.affinity.AffinityGroupVMMapVO; |
360 | | -import org.apache.cloudstack.affinity.dao.AffinityGroupDomainMapDao; |
361 | | -import org.apache.cloudstack.affinity.dao.AffinityGroupVMMapDao; |
362 | | -import org.apache.cloudstack.api.ApiCommandResourceType; |
363 | | -import org.apache.cloudstack.api.ApiConstants; |
364 | | -import org.apache.cloudstack.api.BaseListProjectAndAccountResourcesCmd; |
365 | | -import org.apache.cloudstack.api.InternalIdentity; |
366 | | -import org.apache.cloudstack.api.ResourceDetail; |
367 | | -import org.apache.cloudstack.api.ResponseGenerator; |
368 | | -import org.apache.cloudstack.api.ResponseObject.ResponseView; |
369 | | -import org.apache.cloudstack.api.command.admin.account.ListAccountsCmdByAdmin; |
370 | | -import org.apache.cloudstack.api.command.admin.domain.ListDomainsCmd; |
371 | | -import org.apache.cloudstack.api.command.admin.domain.ListDomainsCmdByAdmin; |
372 | | -import org.apache.cloudstack.api.command.admin.host.ListHostTagsCmd; |
373 | | -import org.apache.cloudstack.api.command.admin.host.ListHostsCmd; |
374 | | -import org.apache.cloudstack.api.command.admin.internallb.ListInternalLBVMsCmd; |
375 | | -import org.apache.cloudstack.api.command.admin.iso.ListIsosCmdByAdmin; |
376 | | -import org.apache.cloudstack.api.command.admin.management.ListMgmtsCmd; |
377 | | -import org.apache.cloudstack.api.command.admin.resource.icon.ListResourceIconCmd; |
378 | | -import org.apache.cloudstack.api.command.admin.router.GetRouterHealthCheckResultsCmd; |
379 | | -import org.apache.cloudstack.api.command.admin.router.ListRoutersCmd; |
380 | | -import org.apache.cloudstack.api.command.admin.snapshot.ListSnapshotsCmdByAdmin; |
381 | | -import org.apache.cloudstack.api.command.admin.storage.ListImageStoresCmd; |
382 | | -import org.apache.cloudstack.api.command.admin.storage.ListObjectStoragePoolsCmd; |
383 | | -import org.apache.cloudstack.api.command.admin.storage.ListSecondaryStagingStoresCmd; |
384 | | -import org.apache.cloudstack.api.command.admin.storage.ListStoragePoolsCmd; |
385 | | -import org.apache.cloudstack.api.command.admin.storage.ListStorageTagsCmd; |
386 | | -import org.apache.cloudstack.api.command.admin.storage.heuristics.ListSecondaryStorageSelectorsCmd; |
387 | | -import org.apache.cloudstack.api.command.admin.template.ListTemplatesCmdByAdmin; |
388 | | -import org.apache.cloudstack.api.command.admin.user.ListUsersCmd; |
389 | | -import org.apache.cloudstack.api.command.admin.vm.ListAffectedVmsForStorageScopeChangeCmd; |
390 | | -import org.apache.cloudstack.api.command.admin.zone.ListZonesCmdByAdmin; |
391 | | -import org.apache.cloudstack.api.command.user.account.ListAccountsCmd; |
392 | | -import org.apache.cloudstack.api.command.user.account.ListProjectAccountsCmd; |
393 | | -import org.apache.cloudstack.api.command.user.address.ListQuarantinedIpsCmd; |
394 | | -import org.apache.cloudstack.api.command.user.affinitygroup.ListAffinityGroupsCmd; |
395 | | -import org.apache.cloudstack.api.command.user.bucket.ListBucketsCmd; |
396 | | -import org.apache.cloudstack.api.command.user.event.ListEventsCmd; |
397 | | -import org.apache.cloudstack.api.command.user.iso.ListIsosCmd; |
398 | | -import org.apache.cloudstack.api.command.user.job.ListAsyncJobsCmd; |
399 | | -import org.apache.cloudstack.api.command.user.offering.ListDiskOfferingsCmd; |
400 | | -import org.apache.cloudstack.api.command.user.offering.ListServiceOfferingsCmd; |
401 | | -import org.apache.cloudstack.api.command.user.project.ListProjectInvitationsCmd; |
402 | | -import org.apache.cloudstack.api.command.user.project.ListProjectsCmd; |
403 | | -import org.apache.cloudstack.api.command.user.resource.ListDetailOptionsCmd; |
404 | | -import org.apache.cloudstack.api.command.user.securitygroup.ListSecurityGroupsCmd; |
405 | | -import org.apache.cloudstack.api.command.user.snapshot.CopySnapshotCmd; |
406 | | -import org.apache.cloudstack.api.command.user.snapshot.ListSnapshotsCmd; |
407 | | -import org.apache.cloudstack.api.command.user.tag.ListTagsCmd; |
408 | | -import org.apache.cloudstack.api.command.user.template.ListTemplatesCmd; |
409 | | -import org.apache.cloudstack.api.command.user.template.ListVnfTemplatesCmd; |
410 | | -import org.apache.cloudstack.api.command.user.vm.ListVMsCmd; |
411 | | -import org.apache.cloudstack.api.command.user.vmgroup.ListVMGroupsCmd; |
412 | | -import org.apache.cloudstack.api.command.user.volume.ListResourceDetailsCmd; |
413 | | -import org.apache.cloudstack.api.command.user.volume.ListVolumesCmd; |
414 | | -import org.apache.cloudstack.api.command.user.zone.ListZonesCmd; |
415 | | -import org.apache.cloudstack.api.response.AccountResponse; |
416 | | -import org.apache.cloudstack.api.response.AsyncJobResponse; |
417 | | -import org.apache.cloudstack.api.response.BucketResponse; |
418 | | -import org.apache.cloudstack.api.response.DetailOptionsResponse; |
419 | | -import org.apache.cloudstack.api.response.DiskOfferingResponse; |
420 | | -import org.apache.cloudstack.api.response.DomainResponse; |
421 | | -import org.apache.cloudstack.api.response.DomainRouterResponse; |
422 | | -import org.apache.cloudstack.api.response.EventResponse; |
423 | | -import org.apache.cloudstack.api.response.HostResponse; |
424 | | -import org.apache.cloudstack.api.response.HostTagResponse; |
425 | | -import org.apache.cloudstack.api.response.ImageStoreResponse; |
426 | | -import org.apache.cloudstack.api.response.InstanceGroupResponse; |
427 | | -import org.apache.cloudstack.api.response.IpQuarantineResponse; |
428 | | -import org.apache.cloudstack.api.response.ListResponse; |
429 | | -import org.apache.cloudstack.api.response.ManagementServerResponse; |
430 | | -import org.apache.cloudstack.api.response.ObjectStoreResponse; |
431 | | -import org.apache.cloudstack.api.response.PeerManagementServerNodeResponse; |
432 | | -import org.apache.cloudstack.api.response.ProjectAccountResponse; |
433 | | -import org.apache.cloudstack.api.response.ProjectInvitationResponse; |
434 | | -import org.apache.cloudstack.api.response.ProjectResponse; |
435 | | -import org.apache.cloudstack.api.response.ResourceDetailResponse; |
436 | | -import org.apache.cloudstack.api.response.ResourceIconResponse; |
437 | | -import org.apache.cloudstack.api.response.ResourceTagResponse; |
438 | | -import org.apache.cloudstack.api.response.RouterHealthCheckResultResponse; |
439 | | -import org.apache.cloudstack.api.response.SecondaryStorageHeuristicsResponse; |
440 | | -import org.apache.cloudstack.api.response.SecurityGroupResponse; |
441 | | -import org.apache.cloudstack.api.response.ServiceOfferingResponse; |
442 | | -import org.apache.cloudstack.api.response.SnapshotResponse; |
443 | | -import org.apache.cloudstack.api.response.StoragePoolResponse; |
444 | | -import org.apache.cloudstack.api.response.StorageTagResponse; |
445 | | -import org.apache.cloudstack.api.response.TemplateResponse; |
446 | | -import org.apache.cloudstack.api.response.UserResponse; |
447 | | -import org.apache.cloudstack.api.response.UserVmResponse; |
448 | | -import org.apache.cloudstack.api.response.VirtualMachineResponse; |
449 | | -import org.apache.cloudstack.api.response.VolumeResponse; |
450 | | -import org.apache.cloudstack.api.response.ZoneResponse; |
451 | | -import org.apache.cloudstack.backup.BackupOfferingVO; |
452 | | -import org.apache.cloudstack.backup.dao.BackupOfferingDao; |
453 | | -import org.apache.cloudstack.context.CallContext; |
454 | | -import org.apache.cloudstack.engine.subsystem.api.storage.DataStore; |
455 | | -import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreCapabilities; |
456 | | -import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreDriver; |
457 | | -import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreManager; |
458 | | -import org.apache.cloudstack.engine.subsystem.api.storage.TemplateState; |
459 | | -import org.apache.cloudstack.framework.config.ConfigKey; |
460 | | -import org.apache.cloudstack.framework.config.Configurable; |
461 | | -import org.apache.cloudstack.framework.jobs.impl.AsyncJobVO; |
462 | | -import org.apache.cloudstack.outofbandmanagement.OutOfBandManagementVO; |
463 | | -import org.apache.cloudstack.outofbandmanagement.dao.OutOfBandManagementDao; |
464 | | -import org.apache.cloudstack.query.QueryService; |
465 | | -import org.apache.cloudstack.resourcedetail.DiskOfferingDetailVO; |
466 | | -import org.apache.cloudstack.resourcedetail.dao.DiskOfferingDetailsDao; |
467 | | -import org.apache.cloudstack.secstorage.HeuristicVO; |
468 | | -import org.apache.cloudstack.secstorage.dao.SecondaryStorageHeuristicDao; |
469 | | -import org.apache.cloudstack.secstorage.heuristics.Heuristic; |
470 | | -import org.apache.cloudstack.storage.datastore.db.ObjectStoreDao; |
471 | | -import org.apache.cloudstack.storage.datastore.db.ObjectStoreVO; |
472 | | -import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao; |
473 | | -import org.apache.cloudstack.storage.datastore.db.SnapshotDataStoreDao; |
474 | | -import org.apache.cloudstack.storage.datastore.db.SnapshotDataStoreVO; |
475 | | -import org.apache.cloudstack.storage.datastore.db.StoragePoolDetailVO; |
476 | | -import org.apache.cloudstack.storage.datastore.db.StoragePoolDetailsDao; |
477 | | -import org.apache.cloudstack.storage.datastore.db.StoragePoolVO; |
478 | | -import org.apache.cloudstack.storage.datastore.db.TemplateDataStoreDao; |
479 | | - |
480 | | -import org.apache.commons.collections.CollectionUtils; |
481 | | -import org.apache.commons.collections.MapUtils; |
482 | | - |
483 | | -import org.apache.commons.lang3.EnumUtils; |
484 | | -import org.apache.commons.lang3.StringUtils; |
485 | | - |
486 | | -import org.springframework.stereotype.Component; |
487 | | - |
488 | | -import javax.inject.Inject; |
489 | | -import java.lang.reflect.InvocationTargetException; |
490 | | -import java.lang.reflect.Method; |
491 | | -import java.util.ArrayList; |
492 | | -import java.util.Arrays; |
493 | | -import java.util.Collections; |
494 | | -import java.util.Date; |
495 | | -import java.util.HashMap; |
496 | | -import java.util.HashSet; |
497 | | -import java.util.List; |
498 | | -import java.util.ListIterator; |
499 | | -import java.util.Map; |
500 | | -import java.util.Set; |
501 | | -import java.util.UUID; |
502 | | -import java.util.stream.Collectors; |
503 | | -import java.util.stream.Stream; |
504 | | - |
505 | | -import static com.cloud.vm.VmDetailConstants.SSH_PUBLIC_KEY; |
506 | | - |
507 | 353 | @Component |
508 | 354 | public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements QueryService, Configurable { |
509 | 355 |
|
|
0 commit comments