Skip to content

Commit 8a866b1

Browse files
Merge branch 'master' into release
2 parents b2692d6 + e4b179f commit 8a866b1

File tree

404 files changed

+10503
-965
lines changed

Some content is hidden

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

404 files changed

+10503
-965
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@ This repository contains Aspose.Words Cloud SDK for Java source code. This SDK a
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 23.12
17+
18+
- Properties Name, Text, StartRange, EndRange marked as required for InsertBookmark operation.
19+
- Implemented DeleteOfficeMathObjects operation to delete all office math objects from document.
20+
- Parameter ProtectionRequest was removed from the UnprotectDocument operation. Now removing protection from a document does not require a password.
21+
- Model ProtectionRequest marked as deprecated, please use ProtectionRequestV2 instead for perform ProtectDocument operation. To change the password or protection type of protected document, the old password is no required.
22+
23+
24+
## Enhancements in Version 23.11
25+
26+
- Support of required properties in models.
27+
- Property StyleName marked as required for InsertStyle operation.
28+
- Property StyleName marked as required for CopyStyle operation.
29+
- Property StyleName marked as required for ApplyStyleToDocumentElement operation.
30+
- Properties SdtType and Level marked as required for InsertStructuredDocumentTag operation.
31+
- Property Text marked as required for InsertParagraphoperation.
32+
- Property Value marked as required for CreateOrUpdateDocumentProperty operation.
33+
- Property NewValue marked as required for ReplaceText operation.
34+
- Property Text marked as required for ReplaceWithText operation.
35+
36+
1637
## Enhancements in Version 23.9
1738

1839
- Support for class inheritance in responses from the server.
@@ -296,7 +317,7 @@ Add this dependency to your project's POM:
296317
<dependency>
297318
<groupId>com.aspose</groupId>
298319
<artifactId>aspose-words-cloud</artifactId>
299-
<version>23.10.0</version>
320+
<version>23.12.0</version>
300321
</dependency>
301322
</dependencies>
302323
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-words-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>AsposeWordsCloud</name>
7-
<version>23.10.0</version>
7+
<version>23.12.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Words Java SDK</description>
1010
<scm>

src/main/java/com/aspose/words/cloud/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class ApiClient {
5959
private String apiVersion = "v4.0";
6060
private String baseUrl = "https://api.aspose.cloud";
6161
private String basePath = baseUrl + "/" + apiVersion;
62-
private String clientVersion = "23.10";
62+
private String clientVersion = "23.12";
6363
private boolean debugging = false;
6464
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6565
private String tempFolderPath = null;

src/main/java/com/aspose/words/cloud/JSON.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ public static class ModelAdapterFactory implements TypeAdapterFactory {
582582
put("ProtectionData, _", com.aspose.words.cloud.model.ProtectionData.class);
583583
put("ProtectionDataResponse, _", com.aspose.words.cloud.model.ProtectionDataResponse.class);
584584
put("ProtectionRequest, _", com.aspose.words.cloud.model.ProtectionRequest.class);
585+
put("ProtectionRequestV2, _", com.aspose.words.cloud.model.ProtectionRequestV2.class);
585586
put("PsSaveOptionsData, _", com.aspose.words.cloud.model.PsSaveOptionsData.class);
586587
put("PublicKeyResponse, _", com.aspose.words.cloud.model.PublicKeyResponse.class);
587588
put("RangeDocument, _", com.aspose.words.cloud.model.RangeDocument.class);
@@ -656,6 +657,8 @@ public static class ModelAdapterFactory implements TypeAdapterFactory {
656657
put("TiffSaveOptionsData, _", com.aspose.words.cloud.model.TiffSaveOptionsData.class);
657658
put("TimeZoneInfoData, _", com.aspose.words.cloud.model.TimeZoneInfoData.class);
658659
put("UserInformation, _", com.aspose.words.cloud.model.UserInformation.class);
660+
put("WatermarkDataImage, _", com.aspose.words.cloud.model.WatermarkDataImage.class);
661+
put("WatermarkDataText, _", com.aspose.words.cloud.model.WatermarkDataText.class);
659662
put("WatermarkText, _", com.aspose.words.cloud.model.WatermarkText.class);
660663
put("WordMLSaveOptionsData, _", com.aspose.words.cloud.model.WordMLSaveOptionsData.class);
661664
put("WordsApiErrorResponse, _", com.aspose.words.cloud.model.WordsApiErrorResponse.class);

src/main/java/com/aspose/words/cloud/api/WordsApi.java

Lines changed: 303 additions & 6 deletions
Large diffs are not rendered by default.

src/main/java/com/aspose/words/cloud/model/ApiError.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.List;
3434
import java.io.IOException;
3535
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.ApiException;
3637
import com.aspose.words.cloud.model.*;
3738
import com.google.gson.TypeAdapter;
3839
import com.google.gson.annotations.JsonAdapter;
@@ -173,6 +174,21 @@ public ApiError() {
173174
public void getFilesContent(List<FileReference> resultFilesContent) {
174175
}
175176

177+
/*
178+
* Validate required properties.
179+
*
180+
* @throws ApiException If fails to validate required properties.
181+
*/
182+
@Override
183+
public void validate() throws ApiException {
184+
185+
if (this.innerError != null) {
186+
this.innerError.validate();
187+
}
188+
189+
190+
}
191+
176192
@Override
177193
public boolean equals(java.lang.Object o) {
178194
if (this == o) {

src/main/java/com/aspose/words/cloud/model/AvailableFontsResponse.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.List;
3434
import java.io.IOException;
3535
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.ApiException;
3637
import com.aspose.words.cloud.model.*;
3738
import com.google.gson.TypeAdapter;
3839
import com.google.gson.annotations.JsonAdapter;
@@ -155,6 +156,45 @@ public AvailableFontsResponse() {
155156
public void getFilesContent(List<FileReference> resultFilesContent) {
156157
}
157158

159+
/*
160+
* Validate required properties.
161+
*
162+
* @throws ApiException If fails to validate required properties.
163+
*/
164+
@Override
165+
public void validate() throws ApiException {
166+
super.validate();
167+
168+
if (this.additionalFonts != null) {
169+
for (ModelIfc elementAdditionalFonts : this.additionalFonts) {
170+
if (elementAdditionalFonts != null) {
171+
elementAdditionalFonts.validate();
172+
}
173+
}
174+
}
175+
176+
177+
178+
if (this.customFonts != null) {
179+
for (ModelIfc elementCustomFonts : this.customFonts) {
180+
if (elementCustomFonts != null) {
181+
elementCustomFonts.validate();
182+
}
183+
}
184+
}
185+
186+
187+
188+
if (this.systemFonts != null) {
189+
for (ModelIfc elementSystemFonts : this.systemFonts) {
190+
if (elementSystemFonts != null) {
191+
elementSystemFonts.validate();
192+
}
193+
}
194+
}
195+
196+
}
197+
158198
@Override
159199
public boolean equals(java.lang.Object o) {
160200
if (this == o) {

src/main/java/com/aspose/words/cloud/model/BaseEntry.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.List;
3434
import java.io.IOException;
3535
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.ApiException;
3637
import com.aspose.words.cloud.model.*;
3738
import com.google.gson.TypeAdapter;
3839
import com.google.gson.annotations.JsonAdapter;
@@ -85,6 +86,23 @@ public void getFilesContent(List<FileReference> resultFilesContent) {
8586

8687
}
8788

89+
/*
90+
* Validate required properties.
91+
*
92+
* @throws ApiException If fails to validate required properties.
93+
*/
94+
@Override
95+
public void validate() throws ApiException {
96+
if (this.fileReference == null) {
97+
throw new ApiException(400, "Property FileReference in BaseEntry is required.");
98+
}
99+
100+
if (this.fileReference != null) {
101+
this.fileReference.validate();
102+
}
103+
104+
}
105+
88106
@Override
89107
public boolean equals(java.lang.Object o) {
90108
if (this == o) {

src/main/java/com/aspose/words/cloud/model/BaseEntryList.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.List;
3434
import java.io.IOException;
3535
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.ApiException;
3637
import com.aspose.words.cloud.model.*;
3738
import com.google.gson.TypeAdapter;
3839
import com.google.gson.annotations.JsonAdapter;
@@ -60,6 +61,15 @@ public BaseEntryList() {
6061
public void getFilesContent(List<FileReference> resultFilesContent) {
6162
}
6263

64+
/*
65+
* Validate required properties.
66+
*
67+
* @throws ApiException If fails to validate required properties.
68+
*/
69+
@Override
70+
public void validate() throws ApiException {
71+
}
72+
6373
@Override
6474
public boolean equals(java.lang.Object o) {
6575
if (this == o) {

src/main/java/com/aspose/words/cloud/model/BmpSaveOptionsData.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.List;
3434
import java.io.IOException;
3535
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.ApiException;
3637
import com.aspose.words.cloud.model.*;
3738
import com.google.gson.TypeAdapter;
3839
import com.google.gson.annotations.JsonAdapter;
@@ -62,6 +63,16 @@ public BmpSaveOptionsData() {
6263
public void getFilesContent(List<FileReference> resultFilesContent) {
6364
}
6465

66+
/*
67+
* Validate required properties.
68+
*
69+
* @throws ApiException If fails to validate required properties.
70+
*/
71+
@Override
72+
public void validate() throws ApiException {
73+
super.validate();
74+
}
75+
6576
@Override
6677
public boolean equals(java.lang.Object o) {
6778
if (this == o) {

0 commit comments

Comments
 (0)