blob: 7cf46ead87ef82013dfa4a2770cefdf4eb0cc4e0 [file] [log] [blame]
Ray Milkey140e4782015-04-24 11:25:13 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.xosintegration;
17
18import java.util.Set;
19
20public interface VoltTenantService {
21
22 /**
23 * Queries all the tenants.
24 *
25 * @return Set of all of the tenants
26 */
27 Set<VoltTenant> getAllTenants();
28
29 /**
30 * Removes a tenant given its ID.
31 *
32 * @param id if od tenant to remove.
33 */
34 void removeTenant(long id);
35
36 /**
37 * Creates a new tenant and adds it to the XOS instance.
38 *
39 * @param newTenant tenant to add
40 * @return the added tenant
41 */
42 VoltTenant addTenant(VoltTenant newTenant);
43
44 /**
45 * Gets a single tenant for the given ID.
46 *
47 * @param id ID of the tenant to fetch
48 * @return tenant that was fetched
49 */
50 VoltTenant getTenant(long id);
51}