Search in sources :

Example 26 with Domain

use of com.cloud.legacymodel.domain.Domain in project cosmic by MissionCriticalCloud.

the class QueryManagerImpl method listHAWorkers.

@Override
public ListResponse<HAWorkerResponse> listHAWorkers(final ListHAWorkersCmd cmd) {
    final ListResponse<HAWorkerResponse> haWorkerList = new ListResponse<>();
    final List<HaWorkVO> haWorkers = _haDao.listAll();
    final List<HAWorkerResponse> haWorkerResponses = new ArrayList<>();
    haWorkers.stream().filter(haWorker -> {
        final Account account = CallContext.current().getCallingAccount();
        if (account.getDomainId() == Domain.ROOT_DOMAIN) {
            return cmd.getId() == null || (cmd.getId() != null && cmd.getId() == haWorker.getId());
        }
        // Not a root administrator, check if the user owns the virtual machine
        final VirtualMachine virtualMachine = _vmInstanceDao.findByIdIncludingRemoved(haWorker.getInstanceId());
        return virtualMachine != null && virtualMachine.getDomainId() == account.getDomainId() && (cmd.getId() == null || (cmd.getId() != null && haWorker.getId() == cmd.getId()));
    }).forEach(haWorker -> {
        final HAWorkerResponse haWorkerResponse = new HAWorkerResponse();
        haWorkerResponse.setObjectName("haworker");
        haWorkerResponse.setId(haWorker.getId());
        haWorkerResponse.setType(haWorker.getWorkType());
        haWorkerResponse.setCreated(haWorker.getCreated());
        haWorkerResponse.setStep(haWorker.getStep());
        haWorkerResponse.setTaken(haWorker.getDateTaken());
        haWorkerResponse.setState(haWorker.getPreviousState());
        final VirtualMachine virtualMachine = _vmInstanceDao.findByIdIncludingRemoved(haWorker.getInstanceId());
        if (virtualMachine != null) {
            haWorkerResponse.setVirtualMachineId(virtualMachine.getUuid());
            haWorkerResponse.setVirtualMachineName(virtualMachine.getInstanceName());
            haWorkerResponse.setVirtualMachineState(virtualMachine.getState());
            final Domain domain = _domainDao.findById(virtualMachine.getDomainId());
            if (domain != null) {
                haWorkerResponse.setDomainId(domain.getUuid());
                haWorkerResponse.setDomainName(domain.getName());
            }
        }
        final Host host = _hostDao.findById(haWorker.getHostId());
        if (host != null) {
            haWorkerResponse.setHypervisor(host.getName());
        }
        if (haWorker.getServerId() != null) {
            final ManagementServerHost managementServerHost = _mgmtServerHostDao.findByMsid(haWorker.getServerId());
            if (managementServerHost != null) {
                haWorkerResponse.setManagementServerName(managementServerHost.getName());
            }
        }
        haWorkerResponses.add(haWorkerResponse);
    });
    haWorkerList.setResponses(haWorkerResponses);
    return haWorkerList;
}
Also used : ServiceOfferingJoinVO(com.cloud.api.query.vo.ServiceOfferingJoinVO) ListDiskOfferingsCmd(com.cloud.api.command.user.offering.ListDiskOfferingsCmd) StringUtils(org.apache.commons.lang.StringUtils) HostDao(com.cloud.host.dao.HostDao) ListHostsCmd(com.cloud.api.command.admin.host.ListHostsCmd) HostTagVO(com.cloud.api.query.vo.HostTagVO) ListProjectResourcesCriteria(com.cloud.projects.Project.ListProjectResourcesCriteria) DomainManager(com.cloud.user.DomainManager) PermissionDeniedException(com.cloud.legacymodel.exceptions.PermissionDeniedException) Map(java.util.Map) AllocationState(com.cloud.model.enumeration.AllocationState) UserResponse(com.cloud.api.response.UserResponse) ProjectAccountJoinVO(com.cloud.api.query.vo.ProjectAccountJoinVO) ACLType(com.cloud.legacymodel.acl.ControlledEntity.ACLType) ListUsersCmd(com.cloud.api.command.admin.user.ListUsersCmd) ProjectInvitation(com.cloud.projects.ProjectInvitation) ProjectManager(com.cloud.projects.ProjectManager) ResourceTagVO(com.cloud.tags.ResourceTagVO) Project(com.cloud.projects.Project) ServiceOfferingVO(com.cloud.service.ServiceOfferingVO) ListAccountsCmd(com.cloud.api.command.user.account.ListAccountsCmd) ListVMsCmdByAdmin(com.cloud.api.command.admin.vm.ListVMsCmdByAdmin) ProjectInvitationJoinVO(com.cloud.api.query.vo.ProjectInvitationJoinVO) ManagerBase(com.cloud.utils.component.ManagerBase) TemplateState(com.cloud.engine.subsystem.api.storage.TemplateState) VMTemplateDao(com.cloud.storage.dao.VMTemplateDao) QueryService(com.cloud.query.QueryService) DataCenterJoinVO(com.cloud.api.query.vo.DataCenterJoinVO) ListVMGroupsCmd(com.cloud.api.command.user.vmgroup.ListVMGroupsCmd) ResourceMetaDataService(com.cloud.server.ResourceMetaDataService) AffinityGroupVMMapDao(com.cloud.affinity.dao.AffinityGroupVMMapDao) ImageStoreJoinVO(com.cloud.api.query.vo.ImageStoreJoinVO) SearchCriteria(com.cloud.utils.db.SearchCriteria) DomainRouterVO(com.cloud.vm.DomainRouterVO) DomainRouterJoinDao(com.cloud.api.query.dao.DomainRouterJoinDao) ProjectAccountResponse(com.cloud.api.response.ProjectAccountResponse) ListVMsCmd(com.cloud.api.command.user.vm.ListVMsCmd) ResourceTag(com.cloud.server.ResourceTag) ListTemplatesCmdByAdmin(com.cloud.api.command.admin.template.ListTemplatesCmdByAdmin) HostJoinVO(com.cloud.api.query.vo.HostJoinVO) HAWorkerResponse(com.cloud.api.response.HAWorkerResponse) HighAvailabilityManager(com.cloud.ha.HighAvailabilityManager) ListVolumesCmd(com.cloud.api.command.user.volume.ListVolumesCmd) DomainJoinDao(com.cloud.api.query.dao.DomainJoinDao) UserVmDao(com.cloud.vm.dao.UserVmDao) NicDao(com.cloud.vm.dao.NicDao) ProjectResponse(com.cloud.api.response.ProjectResponse) Volume(com.cloud.legacymodel.storage.Volume) Date(java.util.Date) StorageTagVO(com.cloud.api.query.vo.StorageTagVO) UserVmJoinVO(com.cloud.api.query.vo.UserVmJoinVO) StorageTagResponse(com.cloud.api.response.StorageTagResponse) ManagementServerHost(com.cloud.cluster.ManagementServerHost) ResourceObjectType(com.cloud.server.ResourceTag.ResourceObjectType) DiskOfferingResponse(com.cloud.api.response.DiskOfferingResponse) ListTagsCmd(com.cloud.api.command.user.tag.ListTagsCmd) InstanceGroupJoinVO(com.cloud.api.query.vo.InstanceGroupJoinVO) CloudAuthenticationException(com.cloud.legacymodel.exceptions.CloudAuthenticationException) VMInstanceVO(com.cloud.vm.VMInstanceVO) ListResourceDetailsCmd(com.cloud.api.command.user.volume.ListResourceDetailsCmd) NicVO(com.cloud.vm.NicVO) Collectors(java.util.stream.Collectors) HypervisorType(com.cloud.model.enumeration.HypervisorType) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) DomainResponse(com.cloud.api.response.DomainResponse) ListIsosCmdByAdmin(com.cloud.api.command.admin.iso.ListIsosCmdByAdmin) HaWorkVO(com.cloud.ha.HaWorkVO) DedicatedResourceVO(com.cloud.dc.DedicatedResourceVO) HostTagDao(com.cloud.api.query.dao.HostTagDao) ProjectAccountJoinDao(com.cloud.api.query.dao.ProjectAccountJoinDao) AffinityGroupDomainMapDao(com.cloud.affinity.dao.AffinityGroupDomainMapDao) EventJoinDao(com.cloud.event.dao.EventJoinDao) NetworkDetailsDao(com.cloud.network.dao.NetworkDetailsDao) StoragePoolJoinDao(com.cloud.api.query.dao.StoragePoolJoinDao) TemplateType(com.cloud.legacymodel.storage.TemplateType) Inject(javax.inject.Inject) HashSet(java.util.HashSet) VolumeJoinVO(com.cloud.api.query.vo.VolumeJoinVO) ManagementServerHostDao(com.cloud.cluster.dao.ManagementServerHostDao) ListWhoHasThisMacCmd(com.cloud.api.command.admin.cloudops.ListWhoHasThisMacCmd) AsyncJobJoinVO(com.cloud.api.query.vo.AsyncJobJoinVO) AsyncJobJoinDao(com.cloud.api.query.dao.AsyncJobJoinDao) Ternary(com.cloud.legacymodel.utils.Ternary) IPAddressVO(com.cloud.network.dao.IPAddressVO) ListDomainsCmdByAdmin(com.cloud.api.command.admin.domain.ListDomainsCmdByAdmin) ServiceOfferingResponse(com.cloud.api.response.ServiceOfferingResponse) IPAddressDao(com.cloud.network.dao.IPAddressDao) ListWhoHasThisIpCmd(com.cloud.api.command.admin.cloudops.ListWhoHasThisIpCmd) WhoHasThisAddressResponse(com.cloud.api.response.WhoHasThisAddressResponse) VMTemplateVO(com.cloud.storage.VMTemplateVO) StorageTagDao(com.cloud.api.query.dao.StorageTagDao) Logger(org.slf4j.Logger) Pair(com.cloud.legacymodel.utils.Pair) ListIsosCmd(com.cloud.api.command.user.iso.ListIsosCmd) ListAsyncJobsCmd(com.cloud.api.command.user.job.ListAsyncJobsCmd) ListHAWorkersCmd(com.cloud.api.command.admin.cloudops.ListHAWorkersCmd) NicSecondaryIpVO(com.cloud.vm.dao.NicSecondaryIpVO) ListStorageTagsCmd(com.cloud.api.command.admin.storage.ListStorageTagsCmd) ListSecondaryStagingStoresCmd(com.cloud.api.command.admin.storage.ListSecondaryStagingStoresCmd) ConfigKey(com.cloud.framework.config.ConfigKey) UserVmJoinDao(com.cloud.api.query.dao.UserVmJoinDao) InvalidParameterValueException(com.cloud.legacymodel.exceptions.InvalidParameterValueException) ProjectJoinVO(com.cloud.api.query.vo.ProjectJoinVO) AccountResponse(com.cloud.api.response.AccountResponse) BaseListProjectAndAccountResourcesCmd(com.cloud.api.BaseListProjectAndAccountResourcesCmd) DataStore(com.cloud.engine.subsystem.api.storage.DataStore) ListServiceOfferingsCmd(com.cloud.api.command.user.offering.ListServiceOfferingsCmd) ServiceOfferingDao(com.cloud.service.dao.ServiceOfferingDao) ListTemplatesCmd(com.cloud.api.command.user.template.ListTemplatesCmd) Host(com.cloud.legacymodel.dc.Host) DataStoreDriver(com.cloud.engine.subsystem.api.storage.DataStoreDriver) AsyncJobResponse(com.cloud.api.response.AsyncJobResponse) EventJoinVO(com.cloud.api.query.vo.EventJoinVO) State(com.cloud.legacymodel.storage.VirtualMachineTemplate.State) ResourceManager(com.cloud.resource.ResourceManager) ListAffinityGroupsCmd(com.cloud.api.command.user.affinitygroup.ListAffinityGroupsCmd) HostJoinDao(com.cloud.api.query.dao.HostJoinDao) ProjectJoinDao(com.cloud.api.query.dao.ProjectJoinDao) ScopeType(com.cloud.storage.ScopeType) Set(java.util.Set) StoragePoolJoinVO(com.cloud.api.query.vo.StoragePoolJoinVO) ResponseView(com.cloud.api.ResponseObject.ResponseView) DataStoreCapabilities(com.cloud.engine.subsystem.api.storage.DataStoreCapabilities) DomainJoinVO(com.cloud.api.query.vo.DomainJoinVO) ImageStoreJoinDao(com.cloud.api.query.dao.ImageStoreJoinDao) ServiceOfferingJoinDao(com.cloud.api.query.dao.ServiceOfferingJoinDao) AccountDao(com.cloud.user.dao.AccountDao) StoragePoolResponse(com.cloud.api.response.StoragePoolResponse) ZoneResponse(com.cloud.api.response.ZoneResponse) ResourceDetailResponse(com.cloud.api.response.ResourceDetailResponse) ResourceTagResponse(com.cloud.api.response.ResourceTagResponse) VirtualMachine(com.cloud.legacymodel.vm.VirtualMachine) CallContext(com.cloud.context.CallContext) ListEventsCmd(com.cloud.api.command.user.event.ListEventsCmd) ListProjectsCmd(com.cloud.api.command.user.project.ListProjectsCmd) DiskOfferingJoinDao(com.cloud.api.query.dao.DiskOfferingJoinDao) ArrayList(java.util.ArrayList) AffinityGroupJoinDao(com.cloud.api.query.dao.AffinityGroupJoinDao) ConfigurationDao(com.cloud.framework.config.dao.ConfigurationDao) AccountJoinDao(com.cloud.api.query.dao.AccountJoinDao) VolumeJoinDao(com.cloud.api.query.dao.VolumeJoinDao) ResourceDetail(com.cloud.api.ResourceDetail) VMInstanceDao(com.cloud.vm.dao.VMInstanceDao) DomainRouterDao(com.cloud.vm.dao.DomainRouterDao) ImageStoreResponse(com.cloud.api.response.ImageStoreResponse) Op(com.cloud.utils.db.SearchCriteria.Op) AffinityGroupResponse(com.cloud.affinity.AffinityGroupResponse) ProjectDao(com.cloud.projects.dao.ProjectDao) InstanceGroupJoinDao(com.cloud.api.query.dao.InstanceGroupJoinDao) DiskOfferingJoinVO(com.cloud.api.query.vo.DiskOfferingJoinVO) ListZonesCmdByAdmin(com.cloud.api.command.admin.zone.ListZonesCmdByAdmin) ResourceTagDao(com.cloud.tags.dao.ResourceTagDao) ListResponse(com.cloud.api.response.ListResponse) AffinityGroupDomainMapVO(com.cloud.affinity.AffinityGroupDomainMapVO) AffinityGroupJoinVO(com.cloud.api.query.vo.AffinityGroupJoinVO) EventResponse(com.cloud.api.response.EventResponse) ProjectAccountDao(com.cloud.projects.dao.ProjectAccountDao) InstanceGroupResponse(com.cloud.api.response.InstanceGroupResponse) HostTagResponse(com.cloud.api.response.HostTagResponse) AccountManager(com.cloud.user.AccountManager) DataCenterDetailsDao(com.cloud.dc.dao.DataCenterDetailsDao) NicSecondaryIpDao(com.cloud.vm.dao.NicSecondaryIpDao) ListRoutersCmd(com.cloud.api.command.admin.router.ListRoutersCmd) LoggerFactory(org.slf4j.LoggerFactory) ListAccountsCmdByAdmin(com.cloud.api.command.admin.account.ListAccountsCmdByAdmin) Func(com.cloud.utils.db.SearchCriteria.Func) Filter(com.cloud.utils.db.Filter) UserAccountJoinDao(com.cloud.api.query.dao.UserAccountJoinDao) JoinBuilder(com.cloud.utils.db.JoinBuilder) DataStoreRole(com.cloud.model.enumeration.DataStoreRole) DomainDao(com.cloud.domain.dao.DomainDao) ResourceTagJoinDao(com.cloud.api.query.dao.ResourceTagJoinDao) ProjectInvitationResponse(com.cloud.api.response.ProjectInvitationResponse) TemplateResponse(com.cloud.api.response.TemplateResponse) ListStoragePoolsCmd(com.cloud.api.command.admin.storage.ListStoragePoolsCmd) DedicatedResourceDao(com.cloud.dc.dao.DedicatedResourceDao) DataStoreManager(com.cloud.engine.subsystem.api.storage.DataStoreManager) DataCenterJoinDao(com.cloud.api.query.dao.DataCenterJoinDao) DomainRouterResponse(com.cloud.api.response.DomainRouterResponse) List(java.util.List) ImageFormat(com.cloud.model.enumeration.ImageFormat) TaggedResourceService(com.cloud.server.TaggedResourceService) ListProjectInvitationsCmd(com.cloud.api.command.user.project.ListProjectInvitationsCmd) VolumeResponse(com.cloud.api.response.VolumeResponse) ListDomainsCmd(com.cloud.api.command.admin.domain.ListDomainsCmd) SearchBuilder(com.cloud.utils.db.SearchBuilder) UserAccountJoinVO(com.cloud.api.query.vo.UserAccountJoinVO) Configurable(com.cloud.framework.config.Configurable) NetworkDao(com.cloud.network.dao.NetworkDao) Domain(com.cloud.legacymodel.domain.Domain) HostResponse(com.cloud.api.response.HostResponse) TemplateJoinVO(com.cloud.api.query.vo.TemplateJoinVO) UserVmDetailsDao(com.cloud.vm.dao.UserVmDetailsDao) ListZonesCmd(com.cloud.api.command.user.zone.ListZonesCmd) AffinityGroupVMMapVO(com.cloud.affinity.AffinityGroupVMMapVO) ListProjectAccountsCmd(com.cloud.api.command.user.account.ListProjectAccountsCmd) Network(com.cloud.legacymodel.network.Network) ResourceTagJoinVO(com.cloud.api.query.vo.ResourceTagJoinVO) DomainRouterJoinVO(com.cloud.api.query.vo.DomainRouterJoinVO) ListImageStoresCmd(com.cloud.api.command.admin.storage.ListImageStoresCmd) Account(com.cloud.legacymodel.user.Account) UserVmResponse(com.cloud.api.response.UserVmResponse) DateUtil(com.cloud.utils.DateUtil) TemplateJoinDao(com.cloud.api.query.dao.TemplateJoinDao) UserVmVO(com.cloud.vm.UserVmVO) Component(org.springframework.stereotype.Component) ListHostTagsCmd(com.cloud.api.command.admin.host.ListHostTagsCmd) ListVolumesCmdByAdmin(com.cloud.api.command.admin.volume.ListVolumesCmdByAdmin) ProjectInvitationJoinDao(com.cloud.api.query.dao.ProjectInvitationJoinDao) VpcDao(com.cloud.network.vpc.dao.VpcDao) AccountJoinVO(com.cloud.api.query.vo.AccountJoinVO) DomainVO(com.cloud.domain.DomainVO) Vpc(com.cloud.legacymodel.network.vpc.Vpc) HighAvailabilityDao(com.cloud.ha.dao.HighAvailabilityDao) TemplateFilter(com.cloud.legacymodel.storage.VirtualMachineTemplate.TemplateFilter) Account(com.cloud.legacymodel.user.Account) ListResponse(com.cloud.api.response.ListResponse) ArrayList(java.util.ArrayList) ManagementServerHost(com.cloud.cluster.ManagementServerHost) Host(com.cloud.legacymodel.dc.Host) ManagementServerHost(com.cloud.cluster.ManagementServerHost) HAWorkerResponse(com.cloud.api.response.HAWorkerResponse) HaWorkVO(com.cloud.ha.HaWorkVO) Domain(com.cloud.legacymodel.domain.Domain) VirtualMachine(com.cloud.legacymodel.vm.VirtualMachine)

Example 27 with Domain

use of com.cloud.legacymodel.domain.Domain in project cosmic by MissionCriticalCloud.

the class ApiResponseHelper method createAffinityGroupResponse.

@Override
public AffinityGroupResponse createAffinityGroupResponse(final AffinityGroup group) {
    final AffinityGroupResponse response = new AffinityGroupResponse();
    final Account account = ApiDBUtils.findAccountById(group.getAccountId());
    response.setId(group.getUuid());
    response.setAccountName(account.getAccountName());
    response.setName(group.getName());
    response.setType(group.getType());
    response.setDescription(group.getDescription());
    final Domain domain = ApiDBUtils.findDomainById(account.getDomainId());
    if (domain != null) {
        response.setDomainId(domain.getUuid());
        response.setDomainName(domain.getName());
    }
    response.setObjectName("affinitygroup");
    return response;
}
Also used : UserAccount(com.cloud.legacymodel.user.UserAccount) Account(com.cloud.legacymodel.user.Account) AffinityGroupResponse(com.cloud.affinity.AffinityGroupResponse) Domain(com.cloud.legacymodel.domain.Domain)

Example 28 with Domain

use of com.cloud.legacymodel.domain.Domain in project cosmic by MissionCriticalCloud.

the class ApiResponseHelper method createPhysicalNetworkResponse.

@Override
public PhysicalNetworkResponse createPhysicalNetworkResponse(final PhysicalNetwork result) {
    final PhysicalNetworkResponse response = new PhysicalNetworkResponse();
    final DataCenter zone = ApiDBUtils.findZoneById(result.getDataCenterId());
    if (zone != null) {
        response.setZoneId(zone.getUuid());
    }
    response.setNetworkSpeed(result.getSpeed());
    response.setVlan(result.getVnetString());
    if (result.getDomainId() != null) {
        final Domain domain = ApiDBUtils.findDomainById(result.getDomainId());
        if (domain != null) {
            response.setDomainId(domain.getUuid());
        }
    }
    response.setId(result.getUuid());
    if (result.getBroadcastDomainRange() != null) {
        response.setBroadcastDomainRange(result.getBroadcastDomainRange().toString());
    }
    response.setIsolationMethods(result.getIsolationMethods());
    response.setTags(result.getTags());
    if (result.getState() != null) {
        response.setState(result.getState().toString());
    }
    response.setName(result.getName());
    response.setObjectName("physicalnetwork");
    return response;
}
Also used : DataCenter(com.cloud.legacymodel.dc.DataCenter) PhysicalNetworkResponse(com.cloud.api.response.PhysicalNetworkResponse) Domain(com.cloud.legacymodel.domain.Domain)

Example 29 with Domain

use of com.cloud.legacymodel.domain.Domain in project cosmic by MissionCriticalCloud.

the class ApiResponseHelper method createSSHKeyPairResponse.

@Override
public SSHKeyPairResponse createSSHKeyPairResponse(final SSHKeyPair sshkeyPair, final boolean privatekey) {
    SSHKeyPairResponse response = new SSHKeyPairResponse(sshkeyPair.getName(), sshkeyPair.getFingerprint());
    if (privatekey) {
        response = new CreateSSHKeyPairResponse(sshkeyPair.getName(), sshkeyPair.getFingerprint(), sshkeyPair.getPrivateKey());
    }
    final Account account = ApiDBUtils.findAccountById(sshkeyPair.getAccountId());
    response.setAccountName(account.getAccountName());
    final Domain domain = ApiDBUtils.findDomainById(sshkeyPair.getDomainId());
    response.setDomainId(domain.getUuid());
    response.setDomainName(domain.getName());
    return response;
}
Also used : CreateSSHKeyPairResponse(com.cloud.api.response.CreateSSHKeyPairResponse) SSHKeyPairResponse(com.cloud.api.response.SSHKeyPairResponse) UserAccount(com.cloud.legacymodel.user.UserAccount) Account(com.cloud.legacymodel.user.Account) CreateSSHKeyPairResponse(com.cloud.api.response.CreateSSHKeyPairResponse) Domain(com.cloud.legacymodel.domain.Domain)

Example 30 with Domain

use of com.cloud.legacymodel.domain.Domain in project cosmic by MissionCriticalCloud.

the class QueryManagerImpl method getVMInfo.

private void getVMInfo(final WhoHasThisAddressResponse response, final NicVO nicVO, final VMInstanceVO vm) {
    if (vm != null) {
        response.setVmName(vm.getHostName());
        response.setVmUuid(vm.getUuid());
        response.setVmType(nicVO.getVmType());
        final Domain domain = _domainDao.findById(vm.getDomainId());
        if (domain != null) {
            response.setDomainName(domain.getName());
            response.setDomainUuid(domain.getUuid());
        }
    }
}
Also used : Domain(com.cloud.legacymodel.domain.Domain)

Aggregations

Domain (com.cloud.legacymodel.domain.Domain)55 Account (com.cloud.legacymodel.user.Account)37 InvalidParameterValueException (com.cloud.legacymodel.exceptions.InvalidParameterValueException)20 UserAccount (com.cloud.legacymodel.user.UserAccount)19 ArrayList (java.util.ArrayList)16 PermissionDeniedException (com.cloud.legacymodel.exceptions.PermissionDeniedException)11 Project (com.cloud.projects.Project)11 DomainVO (com.cloud.domain.DomainVO)10 Network (com.cloud.legacymodel.network.Network)10 DomainResponse (com.cloud.api.response.DomainResponse)8 Pair (com.cloud.legacymodel.utils.Pair)7 PhysicalNetworkVO (com.cloud.network.dao.PhysicalNetworkVO)7 HostVO (com.cloud.host.HostVO)6 List (java.util.List)6 Filter (com.cloud.utils.db.Filter)5 HashSet (java.util.HashSet)5 Test (org.junit.Test)5 AffinityGroupResponse (com.cloud.affinity.AffinityGroupResponse)4 CloudAuthenticationException (com.cloud.legacymodel.exceptions.CloudAuthenticationException)4 NetworkVO (com.cloud.network.dao.NetworkVO)4