| /** |
| * Copyright (C) 2011 Citrix Systems, Inc. All rights reserved |
| * |
| * This software is licensed under the GNU General Public License v3 or later. |
| * |
| * It is free software: you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation, either version 3 of the License, or any later version. |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License |
| * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| * |
| */ |
| package com.cloud.user; |
| |
| import java.util.List; |
| import java.util.Set; |
| |
| import com.cloud.domain.Domain; |
| import com.cloud.domain.DomainVO; |
| |
| public interface DomainManager extends DomainService { |
| Set<Long> getDomainChildrenIds(String parentDomainPath); |
| |
| Domain createDomain(String name, Long parentId, Long ownerId, String networkDomain); |
| |
| /** |
| * find the domain by its path |
| * |
| * @param domainPath |
| * the path to use to lookup a domain |
| * @return domainVO the domain with the matching path, or null if no domain with the given path exists |
| */ |
| DomainVO findDomainByPath(String domainPath); |
| |
| Set<Long> getDomainParentIds(long domainId); |
| |
| boolean removeDomain(long domainId); |
| |
| List<? extends Domain> findInactiveDomains(); |
| |
| boolean deleteDomain(DomainVO domain, Boolean cleanup); |
| |
| } |