Skip to content

Commit 6aa5667

Browse files
SDK regenerated by CI server [ci skip]
1 parent 28c1b89 commit 6aa5667

File tree

8 files changed

+468
-19
lines changed

8 files changed

+468
-19
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ 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 22.7
17+
18+
- Expand 'AppendDocument' API method to support 'ImageEntryList' for directly appending images to documents and another images.
19+
20+
1621
## Enhancements in Version 22.6
1722

1823
- Added 'DeleteBookmark' and 'DeleteBookmarkOnline' API methods for delete bookmarks by name from the document.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="BaseEntry.java">
4+
* Copyright (c) 2022 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package com.aspose.words.cloud.model;
29+
30+
import java.util.Objects;
31+
import java.util.Arrays;
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
import java.io.IOException;
35+
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.model.*;
37+
import com.google.gson.TypeAdapter;
38+
import com.google.gson.annotations.JsonAdapter;
39+
import com.google.gson.annotations.SerializedName;
40+
import com.google.gson.stream.JsonReader;
41+
import com.google.gson.stream.JsonWriter;
42+
import io.swagger.annotations.ApiModel;
43+
import io.swagger.annotations.ApiModelProperty;
44+
45+
/**
46+
* Represents a entry which will be appended to the original resource document.
47+
*/
48+
@ApiModel(description = "Represents a entry which will be appended to the original resource document.")
49+
public class BaseEntry {
50+
@SerializedName("Href")
51+
protected String href;
52+
/**
53+
* Gets or sets the path to entry to append at the server.
54+
* @return href
55+
**/
56+
@ApiModelProperty(value = "Gets or sets the path to entry to append at the server.")
57+
public String getHref() {
58+
return href;
59+
}
60+
61+
public BaseEntry href(String href) {
62+
this.href = href;
63+
return this;
64+
}
65+
66+
public void setHref(String href) {
67+
this.href = href;
68+
}
69+
70+
71+
public BaseEntry() {
72+
this.href = null;
73+
}
74+
75+
@Override
76+
public boolean equals(java.lang.Object o) {
77+
if (this == o) {
78+
return true;
79+
}
80+
if (o == null || getClass() != o.getClass()) {
81+
return false;
82+
}
83+
84+
BaseEntry baseEntry = (BaseEntry) o;
85+
return
86+
Objects.equals(this.href, baseEntry.href);
87+
}
88+
89+
@Override
90+
public int hashCode() {
91+
return Objects.hash(href);
92+
}
93+
94+
@Override
95+
public String toString() {
96+
StringBuilder sb = new StringBuilder();
97+
sb.append("class BaseEntry {\n");
98+
sb.append(" href: ").append(toIndentedString(getHref())).append("\n");
99+
sb.append("}");
100+
return sb.toString();
101+
}
102+
103+
/**
104+
* Convert the given object to string with each line indented by 4 spaces
105+
* (except the first line).
106+
*/
107+
private String toIndentedString(java.lang.Object o) {
108+
if (o == null) {
109+
return "null";
110+
}
111+
return o.toString().replace("\n", "\n ");
112+
}
113+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="BaseEntryList.java">
4+
* Copyright (c) 2022 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package com.aspose.words.cloud.model;
29+
30+
import java.util.Objects;
31+
import java.util.Arrays;
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
import java.io.IOException;
35+
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.model.*;
37+
import com.google.gson.TypeAdapter;
38+
import com.google.gson.annotations.JsonAdapter;
39+
import com.google.gson.annotations.SerializedName;
40+
import com.google.gson.stream.JsonReader;
41+
import com.google.gson.stream.JsonWriter;
42+
import io.swagger.annotations.ApiModel;
43+
import io.swagger.annotations.ApiModelProperty;
44+
45+
/**
46+
* Represents a list of entries which will be appended to the original resource entry.
47+
*/
48+
@ApiModel(description = "Represents a list of entries which will be appended to the original resource entry.")
49+
public abstract class BaseEntryList {
50+
51+
public BaseEntryList() {
52+
}
53+
54+
@Override
55+
public boolean equals(java.lang.Object o) {
56+
if (this == o) {
57+
return true;
58+
}
59+
if (o == null || getClass() != o.getClass()) {
60+
return false;
61+
}
62+
63+
return true;
64+
}
65+
66+
@Override
67+
public int hashCode() {
68+
return Objects.hash();
69+
}
70+
71+
@Override
72+
public String toString() {
73+
StringBuilder sb = new StringBuilder();
74+
sb.append("class BaseEntryList {\n");
75+
sb.append("}");
76+
return sb.toString();
77+
}
78+
79+
/**
80+
* Convert the given object to string with each line indented by 4 spaces
81+
* (except the first line).
82+
*/
83+
private String toIndentedString(java.lang.Object o) {
84+
if (o == null) {
85+
return "null";
86+
}
87+
return o.toString().replace("\n", "\n ");
88+
}
89+
}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* Represents a list of documents which will be appended to the original resource document.
4747
*/
4848
@ApiModel(description = "Represents a list of documents which will be appended to the original resource document.")
49-
public class DocumentEntryList {
49+
public class DocumentEntryList extends BaseEntryList {
5050
@SerializedName("ApplyBaseDocumentHeadersAndFootersToAppendingDocuments")
5151
protected Boolean applyBaseDocumentHeadersAndFootersToAppendingDocuments;
5252

@@ -100,6 +100,7 @@ public void setDocumentEntries(List<DocumentEntry> documentEntries) {
100100

101101

102102
public DocumentEntryList() {
103+
super();
103104
this.applyBaseDocumentHeadersAndFootersToAppendingDocuments = null;
104105
this.documentEntries = null;
105106
}
@@ -116,12 +117,13 @@ public boolean equals(java.lang.Object o) {
116117
DocumentEntryList documentEntryList = (DocumentEntryList) o;
117118
return
118119
Objects.equals(this.applyBaseDocumentHeadersAndFootersToAppendingDocuments, documentEntryList.applyBaseDocumentHeadersAndFootersToAppendingDocuments) &&
119-
Objects.equals(this.documentEntries, documentEntryList.documentEntries);
120+
Objects.equals(this.documentEntries, documentEntryList.documentEntries) &&
121+
super.equals(o);
120122
}
121123

122124
@Override
123125
public int hashCode() {
124-
return Objects.hash(applyBaseDocumentHeadersAndFootersToAppendingDocuments, documentEntries);
126+
return Objects.hash(applyBaseDocumentHeadersAndFootersToAppendingDocuments, documentEntries, super.hashCode());
125127
}
126128

127129
@Override
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="ImageEntry.java">
4+
* Copyright (c) 2022 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package com.aspose.words.cloud.model;
29+
30+
import java.util.Objects;
31+
import java.util.Arrays;
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
import java.io.IOException;
35+
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.model.*;
37+
import com.google.gson.TypeAdapter;
38+
import com.google.gson.annotations.JsonAdapter;
39+
import com.google.gson.annotations.SerializedName;
40+
import com.google.gson.stream.JsonReader;
41+
import com.google.gson.stream.JsonWriter;
42+
import io.swagger.annotations.ApiModel;
43+
import io.swagger.annotations.ApiModelProperty;
44+
45+
/**
46+
* Represents a image which will be appended to the original resource image or document.
47+
*/
48+
@ApiModel(description = "Represents a image which will be appended to the original resource image or document.")
49+
public class ImageEntry extends BaseEntry {
50+
51+
public ImageEntry() {
52+
super();
53+
}
54+
55+
@Override
56+
public boolean equals(java.lang.Object o) {
57+
if (this == o) {
58+
return true;
59+
}
60+
if (o == null || getClass() != o.getClass()) {
61+
return false;
62+
}
63+
64+
return super.equals(o);
65+
}
66+
67+
@Override
68+
public int hashCode() {
69+
return Objects.hash(super.hashCode());
70+
}
71+
72+
@Override
73+
public String toString() {
74+
StringBuilder sb = new StringBuilder();
75+
sb.append("class ImageEntry {\n");
76+
sb.append(" href: ").append(toIndentedString(getHref())).append("\n");
77+
sb.append("}");
78+
return sb.toString();
79+
}
80+
81+
/**
82+
* Convert the given object to string with each line indented by 4 spaces
83+
* (except the first line).
84+
*/
85+
private String toIndentedString(java.lang.Object o) {
86+
if (o == null) {
87+
return "null";
88+
}
89+
return o.toString().replace("\n", "\n ");
90+
}
91+
}

0 commit comments

Comments
 (0)