Skip to content

Commit 0472bc3

Browse files
Merge pull request #35 from contentstack/next
Bug Fixes, Code Improvements and Support of NRP
2 parents 42d8620 + 1b91130 commit 0472bc3

File tree

139 files changed

+4533
-7830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+4533
-7830
lines changed

.env

Whitespace-only changes.

.github/workflows/secrets-scan.yml

-11
This file was deleted.

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ factoryConfiguration.json
88
### Eclipse ###
99

1010
.metadata
11-
.env
12-
.env/
1311
test-report/
1412
bin/
1513
coverage/

changelog.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
## v1.0.0
44

5-
### Jul 12, 2023
6-
- Bug Fixed For Unlocalize An Entry
5+
### Aug 01, 2023
6+
- Bug Fixed For un-localize An Entry
77
- Fixed Timeout Issue
8+
- #32 Fixed
89
- Code coverage improvements
910
- NRP support added
1011
- General improvements with minor breaking changes

pom.xml

+27-26
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.contentstack.sdk</groupId>
77
<artifactId>cms</artifactId>
@@ -30,19 +30,19 @@
3030

3131
<issueManagement>
3232
<system>GitHub Issues</system>
33-
<url>http://github.com/contentstack/contentstack-management-java/issues</url>
33+
<url>https://github.com/contentstack/contentstack-management-java/issues</url>
3434
</issueManagement>
3535

3636
<licenses>
3737
<license>
3838
<name>MIT</name>
39-
<url>http://www.opensource.org/licenses/mit-license.php</url>
39+
<url>https://www.opensource.org/licenses/mit-license.php</url>
4040
</license>
4141
</licenses>
4242

4343
<organization>
4444
<name>contentstack</name>
45-
<url>http://contentstack.com</url>
45+
<url>https://contentstack.com</url>
4646
</organization>
4747

4848
<developers>
@@ -61,20 +61,20 @@
6161
</developers>
6262

6363
<distributionManagement>
64-
<!-- <snapshotRepository>
64+
<snapshotRepository>
6565
<id>ossrh</id>
6666
<name>Apache Maven Packages Snapshot</name>
6767
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
68-
</snapshotRepository> -->
69-
<snapshotRepository>
68+
</snapshotRepository>
69+
<!-- <snapshotRepository>
7070
<id>github</id>
7171
<name>GitHub Apache Maven Packages</name>
7272
<url>https://maven.pkg.github.com/contentstack/contentstack-management-java</url>
73-
</snapshotRepository>
73+
</snapshotRepository> -->
7474
<repository>
7575
<id>ossrh</id>
7676
<name>Apache Maven Packages Release</name>
77-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
77+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
7878
</repository>
7979
</distributionManagement>
8080

@@ -171,6 +171,7 @@
171171
<version>1.1.1</version>
172172
<scope>compile</scope>
173173
</dependency>
174+
174175
</dependencies>
175176

176177

@@ -246,20 +247,20 @@
246247
<version>${maven-site-plugin.version}</version>
247248
</plugin>
248249

249-
<!-- <plugin>-->
250-
<!-- <groupId>org.apache.maven.plugins</groupId>-->
251-
<!-- <artifactId>maven-gpg-plugin</artifactId>-->
252-
<!-- <version>${maven-gpg-plugin.version}</version>-->
253-
<!-- <executions>-->
254-
<!-- <execution>-->
255-
<!-- <id>sign-artifacts</id>-->
256-
<!-- <phase>verify</phase>-->
257-
<!-- <goals>-->
258-
<!-- <goal>sign</goal>-->
259-
<!-- </goals>-->
260-
<!-- </execution>-->
261-
<!-- </executions>-->
262-
<!-- </plugin>-->
250+
<plugin>
251+
<groupId>org.apache.maven.plugins</groupId>
252+
<artifactId>maven-gpg-plugin</artifactId>
253+
<version>${maven-gpg-plugin.version}</version>
254+
<executions>
255+
<execution>
256+
<id>sign-artifacts</id>
257+
<phase>verify</phase>
258+
<goals>
259+
<goal>sign</goal>
260+
</goals>
261+
</execution>
262+
</executions>
263+
</plugin>
263264

264265
<plugin>
265266
<groupId>org.apache.maven.plugins</groupId>
@@ -323,7 +324,7 @@
323324

324325

325326
<!-- mvn pdf:pdf -->
326-
<!-- The Maven PDF Plugin allows you generate a PDF document of your documentation -->
327+
<!-- The Maven PDF Plugin allows you to generate a PDF document of your documentation -->
327328
<plugin>
328329
<groupId>org.apache.maven.plugins</groupId>
329330
<artifactId>maven-pdf-plugin</artifactId>
@@ -362,7 +363,7 @@
362363
</goals>
363364
</pluginExecutionFilter>
364365
<action>
365-
<ignore />
366+
<ignore/>
366367
</action>
367368
</pluginExecution>
368369
</pluginExecutions>
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
package com.contentstack.cms;
22

33
import org.jetbrains.annotations.NotNull;
4+
45
import java.util.HashMap;
56

67
/**
7-
* The interface Parametron.
8+
* The interface @{@link BaseImplementation}
89
*/
9-
public interface Parametron {
10+
public interface BaseImplementation {
1011

1112
/**
1213
* The function adds a parameter to a collection using a key-value pair.
13-
*
14+
*
1415
* @param <T> the type of the parameter
1516
* @param key A string representing the key of the parameter. It cannot be
1617
* null and must be
@@ -20,11 +21,11 @@ public interface Parametron {
2021
* object as its value.
2122
* @return The method is returning an object of type T.
2223
*/
23-
public <T> T addParam(@NotNull String key, @NotNull Object value);
24+
<T> T addParam(@NotNull String key, @NotNull Object value);
2425

2526
/**
2627
* The function adds a header with a key-value pair to a request.
27-
*
28+
*
2829
* @param <T> the type of the parameter
2930
* @param key The key parameter is a string that represents the name or
3031
* identifier of the header.
@@ -34,30 +35,30 @@ public interface Parametron {
3435
* header.
3536
* @return The method is returning an object of type T.
3637
*/
37-
public <T> T addHeader(@NotNull String key, @NotNull String value);
38+
<T> T addHeader(@NotNull String key, @NotNull String value);
3839

3940
/**
4041
* The function "addParams" takes a HashMap of String keys and Object values as
4142
* input and returns a
4243
* generic type T.
43-
*
44+
*
4445
* @param <T> the type of the parameter
4546
* @param params The "params" parameter is a HashMap that maps String keys to
4647
* Object values. It is
4748
* annotated with @NotNull, indicating that it cannot be null.
4849
* @return The method is returning an object of type T.
4950
*/
50-
public <T> T addParams(@NotNull HashMap<String, Object> params);
51+
<T> T addParams(@NotNull HashMap<String, Object> params);
5152

5253
/**
5354
* The function adds headers to a HashMap.
54-
*
55+
*
5556
* @param <T> the type of the parameter
5657
* @param headers A HashMap containing key-value pairs of headers, where the key
5758
* is a String
5859
* representing the header name and the value is a String
5960
* representing the header value.
6061
* @return The method is returning an object of type T.
6162
*/
62-
public <T> T addHeaders(@NotNull HashMap<String, String> headers);
63+
<T> T addHeaders(@NotNull HashMap<String, String> headers);
6364
}

0 commit comments

Comments
 (0)