067763cc1abca523dd693d21dd8bcd656921bf87
[so.git] / adapters / mso-adapter-utils / src / main / java / org / onap / so / openstack / utils / MsoKeystoneV3Utils.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.openstack.utils;
22
23 import java.util.Map;
24
25 import org.onap.so.db.catalog.beans.CloudIdentity;
26 import org.onap.so.openstack.beans.MsoTenant;
27 import org.onap.so.openstack.exceptions.MsoCloudSiteNotFound;
28 import org.onap.so.openstack.exceptions.MsoException;
29 import org.springframework.stereotype.Component;
30
31 @Component
32 public class MsoKeystoneV3Utils extends MsoTenantUtils {
33
34         @Override
35         public String createTenant(String tenantName, String cloudSiteId, Map<String, String> metadata, boolean backout)
36                         throws MsoException {
37                 throw new UnsupportedOperationException();
38         }
39
40         @Override
41         public MsoTenant queryTenant(String tenantId, String cloudSiteId) throws MsoException, MsoCloudSiteNotFound {
42                 throw new UnsupportedOperationException();
43         }
44
45         @Override
46         public MsoTenant queryTenantByName(String tenantName, String cloudSiteId)
47                         throws MsoException, MsoCloudSiteNotFound {
48                 throw new UnsupportedOperationException();
49         }
50
51         @Override
52         public boolean deleteTenant(String tenantId, String cloudSiteId) throws MsoException {
53                 throw new UnsupportedOperationException();
54         }
55
56         @Override
57         public String getKeystoneUrl(String regionId, CloudIdentity cloudIdentity) throws MsoException {
58                 return cloudIdentity.getIdentityUrl();
59         }
60
61 }