This is an automated email from the ASF dual-hosted git repository.

ofuks pushed a commit to branch bucket-browser-gcp
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/bucket-browser-gcp by this 
push:
     new 416556b  bucket browser azure configs
416556b is described below

commit 416556b2c8d9e15ed520863f1dee8bb35c949b3f
Author: Oleh Fuks <olegfuk...@gmail.com>
AuthorDate: Tue Apr 28 18:31:22 2020 +0300

    bucket browser azure configs
---
 .../dlab/backendapi/modules/ProductionModule.java  |  3 ++
 .../backendapi/modules/ProvisioningDevModule.java  |  9 ++--
 .../service/impl/azure/BucketServiceAzureImpl.java | 48 ++++++++++++++++++++++
 3 files changed, 57 insertions(+), 3 deletions(-)

diff --git 
a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java
 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java
index 6ba8505..3aac3cd 100644
--- 
a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java
+++ 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java
@@ -35,6 +35,7 @@ import 
com.epam.dlab.backendapi.service.impl.CheckInactivityServiceImpl;
 import com.epam.dlab.backendapi.service.impl.ProjectServiceImpl;
 import com.epam.dlab.backendapi.service.impl.RestoreCallbackHandlerServiceImpl;
 import com.epam.dlab.backendapi.service.impl.aws.BucketServiceAwsImpl;
+import com.epam.dlab.backendapi.service.impl.azure.BucketServiceAzureImpl;
 import com.epam.dlab.backendapi.service.impl.gcp.BucketServiceGcpImpl;
 import com.epam.dlab.cloud.CloudProvider;
 import com.epam.dlab.constants.ServiceConsts;
@@ -81,6 +82,8 @@ public class ProductionModule extends 
ModuleBase<ProvisioningServiceApplicationC
                        
bind(BucketService.class).to(BucketServiceGcpImpl.class);
                } else if (configuration.getCloudProvider() == 
CloudProvider.AWS) {
                        
bind(BucketService.class).to(BucketServiceAwsImpl.class);
+               } else if (configuration.getCloudProvider() == 
CloudProvider.AZURE) {
+                       
bind(BucketService.class).to(BucketServiceAzureImpl.class);
                }
        }
 }
diff --git 
a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProvisioningDevModule.java
 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProvisioningDevModule.java
index f4bbed5..d4ec683 100644
--- 
a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProvisioningDevModule.java
+++ 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProvisioningDevModule.java
@@ -38,6 +38,7 @@ import 
com.epam.dlab.backendapi.service.impl.CheckInactivityServiceImpl;
 import com.epam.dlab.backendapi.service.impl.ProjectServiceImpl;
 import com.epam.dlab.backendapi.service.impl.RestoreCallbackHandlerServiceImpl;
 import com.epam.dlab.backendapi.service.impl.aws.BucketServiceAwsImpl;
+import com.epam.dlab.backendapi.service.impl.azure.BucketServiceAzureImpl;
 import com.epam.dlab.backendapi.service.impl.gcp.BucketServiceGcpImpl;
 import com.epam.dlab.cloud.CloudProvider;
 import com.epam.dlab.constants.ServiceConsts;
@@ -85,9 +86,11 @@ public class ProvisioningDevModule extends 
ModuleBase<ProvisioningServiceApplica
         bind(ProjectService.class).to(ProjectServiceImpl.class);
                if (configuration.getCloudProvider() == CloudProvider.GCP) {
                        
bind(BucketService.class).to(BucketServiceGcpImpl.class);
-               } else if (configuration.getCloudProvider() == 
CloudProvider.AWS) {
-                       
bind(BucketService.class).to(BucketServiceAwsImpl.class);
-               }
+        } else if (configuration.getCloudProvider() == CloudProvider.AWS) {
+            bind(BucketService.class).to(BucketServiceAwsImpl.class);
+        } else if (configuration.getCloudProvider() == CloudProvider.AZURE) {
+            bind(BucketService.class).to(BucketServiceAzureImpl.class);
+        }
     }
 
        /**
diff --git 
a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/service/impl/azure/BucketServiceAzureImpl.java
 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/service/impl/azure/BucketServiceAzureImpl.java
new file mode 100644
index 0000000..0799b8e
--- /dev/null
+++ 
b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/service/impl/azure/BucketServiceAzureImpl.java
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package com.epam.dlab.backendapi.service.impl.azure;
+
+import com.epam.dlab.backendapi.service.BucketService;
+import com.epam.dlab.dto.bucket.BucketDTO;
+
+import java.io.InputStream;
+import java.util.List;
+
+public class BucketServiceAzureImpl implements BucketService {
+    @Override
+    public List<BucketDTO> getObjects(String bucket) {
+        return null;
+    }
+
+    @Override
+    public void uploadObject(String bucket, String object, InputStream stream) 
{
+
+    }
+
+    @Override
+    public byte[] downloadObject(String bucket, String object) {
+        return new byte[0];
+    }
+
+    @Override
+    public void deleteObject(String bucket, String object) {
+
+    }
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org

Reply via email to