Skip to content

Commit e4d8359

Browse files
committed
Updated sources
1 parent a12c163 commit e4d8359

Some content is hidden

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

53 files changed

+629
-958
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# GroupDocs.Annotation Cloud SDK for Java
2+
23
This repository contains GroupDocs.Annotation Cloud SDK for Java source code. This SDK allows you to work with GroupDocs.Annotation Cloud REST APIs in your Java applications.
34

45
## Requirements
@@ -37,7 +38,7 @@ Add following repository and dependency to your project's POM
3738
<dependency>
3839
<groupId>com.groupdocs</groupId>
3940
<artifactId>groupdocs-annotation-cloud</artifactId>
40-
<version>19.5</version>
41+
<version>20.10</version>
4142
<scope>compile</scope>
4243
</dependency>
4344
```
@@ -46,11 +47,13 @@ Add following repository and dependency to your project's POM
4647

4748
At first generate the JAR by executing:
4849

49-
mvn package
50+
```shell
51+
mvn package
52+
```
5053

5154
Then manually install the following JARs:
5255

53-
* target/groupdocs-annotation-cloud-19.5.jar
56+
* target/groupdocs-annotation-cloud-20.10.jar
5457
* target/lib/*.jar
5558

5659
## Getting Started
@@ -87,6 +90,17 @@ public class AnnotateApiExample {
8790
```
8891

8992
## Licensing
93+
9094
All GroupDocs.Annotation Cloud SDKs are licensed under [MIT License](LICENSE).
9195

92-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/annotation/java) | [Docs](https://docs.groupdocs.cloud/annotation/) | [Demos](https://products.groupdocs.app/annotation/family) | [API Reference](https://apireference.groupdocs.cloud/annotation/) | [Examples](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java-samples) | [Blog](https://blog.groupdocs.cloud/category/annotation/) | [Free Support](https://forum.groupdocs.cloud/c/annotation) | [Free Trial](https://purchase.groupdocs.cloud/trial)
96+
## Resources
97+
98+
+[**Website**](https://www.groupdocs.cloud)
99+
+[**Product Home**](https://products.groupdocs.cloud/annotation/cloud)
100+
+[**Documentation**](https://docs.groupdocs.cloud/annotation/)
101+
+[**Free Support Forum**](https://forum.groupdocs.cloud/c/annotation)
102+
+[**Blog**](https://blog.groupdocs.cloud/category/groupdocs-annotation-cloud-product-family)
103+
104+
## Contact Us
105+
106+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/annotation).

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>groupdocs-annotation-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>groupdocs-annotation-cloud</name>
8-
<version>19.5</version>
8+
<version>20.10</version>
99
<url>https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java</url>
1010
<description>Java library for communicating with the GroupDocs.Annotation Cloud API</description>
1111
<scm>
@@ -33,9 +33,9 @@
3333

3434
<repositories>
3535
<repository>
36-
<id>maven.aspose.cloud</id>
37-
<name>maven.aspose.cloud</name>
38-
<url>https://repository.aspose.cloud/repo/</url>
36+
<id>maven.groupdocs.cloud</id>
37+
<name>maven.groupdocs.cloud</name>
38+
<url>https://repository.groupdocs.cloud/repo/</url>
3939
</repository>
4040
</repositories>
4141

@@ -340,7 +340,7 @@
340340
<gson-version>2.8.1</gson-version>
341341
<threetenbp-version>1.3.5</threetenbp-version>
342342
<maven-plugin-version>1.0.0</maven-plugin-version>
343-
<junit-version>4.12</junit-version>
343+
<junit-version>4.13.1</junit-version>
344344
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
345345
</properties>
346346
</project>

simplified-pom.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
<repositories>
3232
<repository>
33-
<id>maven.aspose.cloud</id>
34-
<name>maven.aspose.cloud</name>
35-
<url>https://repository.aspose.cloud/repo/</url>
33+
<id>maven.groupdocs.cloud</id>
34+
<name>maven.groupdocs.cloud</name>
35+
<url>https://repository.groupdocs.cloud/repo/</url>
3636
</repository>
3737
</repositories>
3838

src/main/java/com/groupdocs/cloud/annotation/api/AnnotateApi.java

Lines changed: 1 addition & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="AnnotateApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -456,130 +456,6 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
456456
apiClient.executeAsync(call, localVarReturnType, callback);
457457
return call;
458458
}
459-
/**
460-
* Build call for getPdf
461-
* @param request The request model
462-
* @param progressListener Progress listener
463-
* @param progressRequestListener Progress request listener
464-
* @return Call to execute
465-
* @throws ApiException If fail to serialize the request body object
466-
*/
467-
public com.squareup.okhttp.Call getPdfCall(GetPdfRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
468-
Object localVarPostBody = null;
469-
470-
// create path and map variables
471-
String localVarPath = "/annotation/pdf";
472-
473-
List<Pair> localVarQueryParams = new ArrayList<Pair>();
474-
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
475-
if (request.getfilePath() != null)
476-
localVarQueryParams.addAll(apiClient.parameterToPair("filePath", request.getfilePath()));
477-
478-
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
479-
480-
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
481-
482-
final String[] localVarAccepts = {
483-
"application/json"
484-
};
485-
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
486-
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
487-
488-
final String[] localVarContentTypes = {
489-
"application/json"
490-
};
491-
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
492-
localVarHeaderParams.put("Content-Type", localVarContentType);
493-
494-
if(progressListener != null) {
495-
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
496-
@Override
497-
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
498-
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
499-
return originalResponse.newBuilder()
500-
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
501-
.build();
502-
}
503-
});
504-
}
505-
506-
String[] localVarAuthNames = new String[] { "JWT" };
507-
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
508-
}
509-
510-
@SuppressWarnings("rawtypes")
511-
private com.squareup.okhttp.Call getPdfValidateBeforeCall(GetPdfRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
512-
513-
// verify the required parameter 'filePath' is set
514-
if (request.getfilePath() == null) {
515-
throw new ApiException("Missing the required parameter 'filePath' when calling getPdf(Async)");
516-
}
517-
518-
519-
com.squareup.okhttp.Call call = getPdfCall(request, progressListener, progressRequestListener);
520-
return call;
521-
522-
}
523-
524-
/**
525-
* Retrieves PDF version of document
526-
*
527-
* @param request The request model
528-
* @return File
529-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
530-
*/
531-
public File getPdf(GetPdfRequest request) throws ApiException {
532-
ApiResponse<File> resp = getPdfWithHttpInfo(request);
533-
return resp.getData();
534-
}
535-
536-
/**
537-
* Retrieves PDF version of document
538-
*
539-
* @param request The request model
540-
* @return ApiResponse&lt;File&gt;
541-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
542-
*/
543-
public ApiResponse<File> getPdfWithHttpInfo(GetPdfRequest request) throws ApiException {
544-
com.squareup.okhttp.Call call = getPdfValidateBeforeCall(request, null, null);
545-
Type localVarReturnType = new TypeToken<File>(){}.getType();
546-
return apiClient.execute(call, localVarReturnType);
547-
}
548-
549-
/**
550-
* Retrieves PDF version of document (asynchronously)
551-
*
552-
* @param request The request model
553-
* @param callback The callback to be executed when the API call finishes
554-
* @return The request call
555-
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
556-
*/
557-
public com.squareup.okhttp.Call getPdfAsync(GetPdfRequest request, final ApiCallback<File> callback) throws ApiException {
558-
559-
ProgressResponseBody.ProgressListener progressListener = null;
560-
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
561-
562-
if (callback != null) {
563-
progressListener = new ProgressResponseBody.ProgressListener() {
564-
@Override
565-
public void update(long bytesRead, long contentLength, boolean done) {
566-
callback.onDownloadProgress(bytesRead, contentLength, done);
567-
}
568-
};
569-
570-
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
571-
@Override
572-
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
573-
callback.onUploadProgress(bytesWritten, contentLength, done);
574-
}
575-
};
576-
}
577-
578-
com.squareup.okhttp.Call call = getPdfValidateBeforeCall(request, progressListener, progressRequestListener);
579-
Type localVarReturnType = new TypeToken<File>(){}.getType();
580-
apiClient.executeAsync(call, localVarReturnType, callback);
581-
return call;
582-
}
583459
/**
584460
* Build call for postAnnotations
585461
* @param request The request model

src/main/java/com/groupdocs/cloud/annotation/api/FileApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="FileApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -643,7 +643,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
643643
}
644644

645645
String[] localVarAuthNames = new String[] { "JWT" };
646-
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
646+
return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
647647
}
648648

649649
@SuppressWarnings("rawtypes")

src/main/java/com/groupdocs/cloud/annotation/api/FolderApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="FolderApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -257,7 +257,7 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
257257
}
258258

259259
String[] localVarAuthNames = new String[] { "JWT" };
260-
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
260+
return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
261261
}
262262

263263
@SuppressWarnings("rawtypes")

src/main/java/com/groupdocs/cloud/annotation/api/InfoApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="InfoApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/annotation/api/PreviewApi.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="PreviewApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -216,18 +216,18 @@ public com.squareup.okhttp.Call getPagesCall(GetPagesRequest request, final Prog
216216
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
217217
if (request.getfilePath() != null)
218218
localVarQueryParams.addAll(apiClient.parameterToPair("filePath", request.getfilePath()));
219-
if (request.getcountPagesToConvert() != null)
220-
localVarQueryParams.addAll(apiClient.parameterToPair("countPagesToConvert", request.getcountPagesToConvert()));
221-
if (request.getpageNumber() != null)
222-
localVarQueryParams.addAll(apiClient.parameterToPair("pageNumber", request.getpageNumber()));
223219
if (request.getpageNumbersToConvert() != null)
224220
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "pageNumbersToConvert", request.getpageNumbersToConvert()));
221+
if (request.getformat() != null)
222+
localVarQueryParams.addAll(apiClient.parameterToPair("format", request.getformat()));
223+
if (request.getwidth() != null)
224+
localVarQueryParams.addAll(apiClient.parameterToPair("width", request.getwidth()));
225+
if (request.getheight() != null)
226+
localVarQueryParams.addAll(apiClient.parameterToPair("height", request.getheight()));
225227
if (request.getwithoutAnnotations() != null)
226228
localVarQueryParams.addAll(apiClient.parameterToPair("withoutAnnotations", request.getwithoutAnnotations()));
227-
if (request.getenableCaching() != null)
228-
localVarQueryParams.addAll(apiClient.parameterToPair("enableCaching", request.getenableCaching()));
229-
if (request.getcacheStoragePath() != null)
230-
localVarQueryParams.addAll(apiClient.parameterToPair("cacheStoragePath", request.getcacheStoragePath()));
229+
if (request.getrenderComments() != null)
230+
localVarQueryParams.addAll(apiClient.parameterToPair("renderComments", request.getrenderComments()));
231231
if (request.getpassword() != null)
232232
localVarQueryParams.addAll(apiClient.parameterToPair("password", request.getpassword()));
233233

src/main/java/com/groupdocs/cloud/annotation/api/StorageApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* --------------------------------------------------------------------------------------------------------------------
33
* <copyright company="Aspose Pty Ltd" file="StorageApi.java">
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 Aspose Pty Ltd
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/main/java/com/groupdocs/cloud/annotation/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public ApiClient(Configuration configuration) {
9797
this.json = new JSON();
9898

9999
// Set default User-Agent.
100-
setUserAgent("java-sdk/19.5");
100+
setUserAgent("java-sdk/20.10");
101101

102102
// Set connection timeout
103103
setConnectTimeout(configuration.getTimeout());

0 commit comments

Comments
 (0)