Skip to content

Commit ff52c89

Browse files
authored
Remove gxClassR dependency from CloudStorage libs (#872)
* Remove gxClassR dependency from CloudStorage * Remove gxClassR dependency from CloudStorage * Remove gxClassR dependency from CloudStorage * Remove gxClassR dependencies * Remove gxClassR dependencies * Fix IBMStorage * Fix: ExternalProviderIBM * Add Statr Method * Minor improvements * Minor improvements
1 parent a4265eb commit ff52c89

File tree

14 files changed

+50
-44
lines changed

14 files changed

+50
-44
lines changed

gxcloudstorage-awss3-v1/pom.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
<artifactId>gxcloudstorage-awss3-v1</artifactId>
1414
<name>GeneXus AWS S3 (V1) Cloud Storage</name>
1515

16-
<dependencies>
17-
<dependency>
18-
<groupId>${project.groupId}</groupId>
19-
<artifactId>gxclassR</artifactId>
20-
<version>${project.version}</version>
21-
</dependency>
16+
<dependencies>
17+
<dependency>
18+
<groupId>${project.groupId}</groupId>
19+
<artifactId>gxclassR</artifactId>
20+
<version>${project.version}</version>
21+
<scope>test</scope>
22+
</dependency>
2223
<dependency>
2324
<groupId>com.genexus</groupId>
2425
<artifactId>gxcloudstorage-common</artifactId>

gxcloudstorage-awss3-v1/src/main/java/com/genexus/db/driver/ExternalProviderS3V1.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.apache.logging.log4j.Logger;
99
import org.apache.logging.log4j.LogManager;
1010
import com.amazonaws.HttpMethod;
11-
import com.genexus.Application;
1211
import com.genexus.util.GXService;
1312
import com.genexus.util.StorageUtils;
1413
import com.genexus.StructSdtMessages_Message;
@@ -29,6 +28,7 @@
2928
import java.util.Date;
3029
import java.util.List;
3130

31+
3232
public class ExternalProviderS3V1 extends ExternalProviderBase implements ExternalProvider {
3333
private static Logger logger = LogManager.getLogger(ExternalProviderS3V1.class);
3434

@@ -74,10 +74,6 @@ public String getName(){
7474
return NAME;
7575
}
7676

77-
public ExternalProviderS3V1(String service) throws Exception{
78-
this(Application.getGXServices().get(service));
79-
}
80-
8177
public ExternalProviderS3V1() throws Exception{
8278
super();
8379
initialize();

gxcloudstorage-awss3-v2/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<groupId>${project.groupId}</groupId>
1919
<artifactId>gxclassR</artifactId>
2020
<version>${project.version}</version>
21+
<scope>test</scope>
2122
</dependency>
2223
<dependency>
2324
<groupId>com.genexus</groupId>

gxcloudstorage-awss3-v2/src/main/java/com/genexus/db/driver/ExternalProviderS3V2.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.apache.logging.log4j.Logger;
2020
import org.apache.logging.log4j.LogManager;
2121

22-
import com.genexus.Application;
2322
import com.genexus.util.GXService;
2423
import com.genexus.util.StorageUtils;
2524
import com.genexus.StructSdtMessages_Message;
@@ -80,10 +79,6 @@ public String getName() {
8079
return NAME;
8180
}
8281

83-
public ExternalProviderS3V2(String service) throws Exception {
84-
this(Application.getGXServices().get(service));
85-
}
86-
8782
public ExternalProviderS3V2() throws Exception {
8883
super();
8984
initialize();

gxcloudstorage-azureblob/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<groupId>${project.groupId}</groupId>
1919
<artifactId>gxclassR</artifactId>
2020
<version>${project.version}</version>
21+
<scope>test</scope>
2122
</dependency>
2223
<dependency>
2324
<groupId>com.genexus</groupId>

gxcloudstorage-azureblob/src/main/java/com/genexus/db/driver/ExternalProviderAzureStorage.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.genexus.db.driver;
22

3-
import com.genexus.Application;
43
import com.genexus.StructSdtMessages_Message;
54
import com.genexus.util.GXService;
65
import com.genexus.util.StorageUtils;
@@ -47,9 +46,6 @@ public class ExternalProviderAzureStorage extends ExternalProviderBase implement
4746
private String privateContainerName;
4847
private String publicContainerName;
4948

50-
public ExternalProviderAzureStorage(String service) throws Exception {
51-
this(Application.getGXServices().get(service));
52-
}
5349

5450
private void init() throws Exception {
5551
try {

gxcloudstorage-common/pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,24 @@
1616
<dependencies>
1717
<dependency>
1818
<groupId>${project.groupId}</groupId>
19-
<artifactId>gxclassR</artifactId>
19+
<artifactId>gxcommon</artifactId>
2020
<version>${project.version}</version>
2121
</dependency>
22+
<dependency>
23+
<groupId>org.apache.logging.log4j</groupId>
24+
<artifactId>log4j-core</artifactId>
25+
<version>${log4j.version}</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.apache.logging.log4j</groupId>
29+
<artifactId>log4j-api</artifactId>
30+
<version>${log4j.version}</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.apache.logging.log4j</groupId>
34+
<artifactId>log4j-api</artifactId>
35+
<version>${log4j.version}</version>
36+
</dependency>
2237
</dependencies>
2338

2439
</project>

gxcloudstorage-common/src/main/java/com/genexus/db/driver/ExternalProviderBase.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ public ExternalProviderBase(GXService s) {
3232
init();
3333
}
3434

35+
36+
/**
37+
* Starts the necessary processes required for the usage of an External Object.
38+
* This method ensures that the Provider is installed correctly before any
39+
* operations are performed. It should be called at the beginning to set up
40+
* the environment for the External Object.
41+
*/
42+
public void start() {
43+
44+
}
45+
3546
private void init() {
3647
String aclS = getPropertyValue(DEFAULT_ACL, DEFAULT_ACL_DEPRECATED, "");
3748
if (aclS.length() > 0) {

gxcloudstorage-googlecloudstorage/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<groupId>${project.groupId}</groupId>
1919
<artifactId>gxclassR</artifactId>
2020
<version>${project.version}</version>
21+
<scope>test</scope>
2122
</dependency>
2223
<dependency>
2324
<groupId>com.genexus</groupId>

gxcloudstorage-googlecloudstorage/src/main/java/com/genexus/db/driver/ExternalProviderGoogle.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.genexus.db.driver;
22

3-
import com.genexus.Application;
43
import com.genexus.StructSdtMessages_Message;
54
import com.genexus.util.GXService;
65
import com.genexus.util.StorageUtils;
@@ -57,10 +56,6 @@ public ExternalProviderGoogle() throws Exception{
5756
initialize();
5857
}
5958

60-
public ExternalProviderGoogle(String service) throws Exception{
61-
this(Application.getGXServices().get(service));
62-
}
63-
6459
public ExternalProviderGoogle(GXService providerService) throws Exception{
6560
super(providerService);
6661
initialize();

0 commit comments

Comments
 (0)