Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-adapter-utils / src / main / java / org / onap / so / openstack / utils / MsoTenantUtilsFactory.java
index c5b93d9..514cb2e 100644 (file)
@@ -36,28 +36,28 @@ public class MsoTenantUtilsFactory {
 
     protected static Logger logger = LoggerFactory.getLogger(MsoTenantUtilsFactory.class);
     @Autowired
-       protected CloudConfig cloudConfig;
-       @Autowired
-       protected MsoKeystoneUtils keystoneUtils;
-       @Autowired
-       protected MsoKeystoneV3Utils keystoneV3Utils;
-       
-       // based on Cloud IdentityServerType returns ORM or KEYSTONE Utils
-       public MsoTenantUtils getTenantUtils(String cloudSiteId) throws MsoCloudSiteNotFound {
-               CloudSite cloudSite = cloudConfig.getCloudSite(cloudSiteId).orElseThrow(
-                               () -> new MsoCloudSiteNotFound(cloudSiteId));
-
-               return getTenantUtilsByServerType(cloudSite.getIdentityService().getIdentityServerType());
-       }
-
-       public MsoTenantUtils getTenantUtilsByServerType(ServerType serverType) {
-
-               MsoTenantUtils tenantU = null;
-               if (ServerType.KEYSTONE.equals(serverType)) {
-                       tenantU = keystoneUtils;
-               } else if (ServerType.KEYSTONE_V3.equals(serverType)) {
-                       tenantU = keystoneV3Utils;
-               }
-               return tenantU;
-       }
+    protected CloudConfig cloudConfig;
+    @Autowired
+    protected MsoKeystoneUtils keystoneUtils;
+    @Autowired
+    protected MsoKeystoneV3Utils keystoneV3Utils;
+
+    // based on Cloud IdentityServerType returns ORM or KEYSTONE Utils
+    public MsoTenantUtils getTenantUtils(String cloudSiteId) throws MsoCloudSiteNotFound {
+        CloudSite cloudSite =
+                cloudConfig.getCloudSite(cloudSiteId).orElseThrow(() -> new MsoCloudSiteNotFound(cloudSiteId));
+
+        return getTenantUtilsByServerType(cloudSite.getIdentityService().getIdentityServerType());
+    }
+
+    public MsoTenantUtils getTenantUtilsByServerType(ServerType serverType) {
+
+        MsoTenantUtils tenantU = null;
+        if (ServerType.KEYSTONE.equals(serverType)) {
+            tenantU = keystoneUtils;
+        } else if (ServerType.KEYSTONE_V3.equals(serverType)) {
+            tenantU = keystoneV3Utils;
+        }
+        return tenantU;
+    }
 }