Skip to content

Commit 79c30e7

Browse files
committed
Release Aspose.Cells Cloud SDK 24.9.0
1 parent b7a82c9 commit 79c30e7

31 files changed

+804
-78
lines changed

Examples/Example_DeleteFile.java renamed to Examples/Example_PostAddTextContent.java

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import java.io.File;
1111
import java.util.HashMap;
1212

13-
public class ExampleDeleteFile {
13+
public class ExamplePostAddTextContent {
1414
private CellsApi api;
15-
public ExampleDeleteFile(){
15+
public ExamplePostAddTextContent(){
1616
try {
1717
api = new CellsApi(
1818
System.getenv("CellsCloudClientId"),
@@ -29,8 +29,8 @@ public void Run(){
2929
try{
3030
String remoteFolder = "TestData/In";
3131

32-
String localName = "Book1.xlsx";
33-
String remoteName = "Book1.xlsx";
32+
String localName = "BookText.xlsx";
33+
String remoteName = "BookText.xlsx";
3434

3535
UploadFileRequest uploadFileRequest = new UploadFileRequest();
3636
uploadFileRequest.setPath( remoteFolder + "/" + remoteName );
@@ -40,14 +40,31 @@ public void Run(){
4040
uploadFileRequest.setUploadFiles(files);
4141
cellsApi.uploadFile(uploadFileRequest);
4242

43-
DeleteFileRequest request = new DeleteFileRequest();
44-
request.setPath(remoteFolder + "/" + remoteName);
43+
PostAddTextContentRequest request = new PostAddTextContentRequest();
44+
AddTextOptions addTextOptions = new AddTextOptions();
45+
DataSource dataSource = new DataSource();
46+
dataSource.setDataSourceType("CloudFileSystem");
4547

46-
request.setStorageName("");
4748

48-
request.setVersionId("");
49+
dataSource.setDataPath("BookText.xlsx");
4950

50-
this.api.deleteFile(request);
51+
addTextOptions.setDataSource(dataSource);
52+
53+
54+
addTextOptions.setText("Aspose.Cells Cloud is an excellent product.");
55+
56+
57+
addTextOptions.setWorksheet("202401");
58+
59+
60+
addTextOptions.setSelectPoistion("AtTheBeginning");
61+
62+
63+
addTextOptions.setSkipEmptyCells(true);
64+
65+
request.setAddTextOptions(addTextOptions);
66+
67+
this.api.postAddTextContent(request);
5168

5269
} catch (ApiException e) {
5370
// TODO Auto-generated catch block

Examples/Example_PostTrimContent.java

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
package com.aspose.cloud.cells.api;
2+
3+
import com.aspose.cloud.cells.client.*;
4+
import com.aspose.cloud.cells.model.*;
5+
import com.aspose.cloud.cells.request.*;
6+
7+
import org.junit.Test;
8+
import java.util.ArrayList;
9+
import java.util.List;
10+
import java.io.File;
11+
import java.util.HashMap;
12+
13+
public class ExamplePostTrimContent {
14+
private CellsApi api;
15+
public ExamplePostTrimContent(){
16+
try {
17+
api = new CellsApi(
18+
System.getenv("CellsCloudClientId"),
19+
System.getenv("CellsCloudClientSecret"),
20+
"v3.0",
21+
System.getenv("CellsCloudApiBaseUrl")
22+
);
23+
} catch (ApiException e) {
24+
e.printStackTrace();
25+
}
26+
}
27+
28+
public void Run(){
29+
try{
30+
String remoteFolder = "TestData/In";
31+
32+
String localName = "BookText.xlsx";
33+
String remoteName = "BookText.xlsx";
34+
35+
UploadFileRequest uploadFileRequest = new UploadFileRequest();
36+
uploadFileRequest.setPath( remoteFolder + "/" + remoteName );
37+
uploadFileRequest.setStorageName( "");
38+
HashMap<String,File> files = new HashMap<String,File>();
39+
files.put( localName , new File(localName ));
40+
uploadFileRequest.setUploadFiles(files);
41+
cellsApi.uploadFile(uploadFileRequest);
42+
43+
PostTrimContentRequest request = new PostTrimContentRequest();
44+
TrimContentOptions trimContentOptions = new TrimContentOptions();
45+
DataSource dataSource = new DataSource();
46+
dataSource.setDataSourceType("CloudFileSystem");
47+
48+
49+
dataSource.setDataPath("BookText.xlsx");
50+
51+
trimContentOptions.setDataSource(dataSource);
52+
53+
54+
trimContentOptions.setTrimLeading(true);
55+
56+
57+
trimContentOptions.setTrimTrailing(true);
58+
59+
60+
trimContentOptions.setTrimSpaceBetweenWordTo1(true);
61+
62+
63+
trimContentOptions.setRemoveAllLineBreaks(true);
64+
65+
66+
ScopeOptions scopeOptions = new ScopeOptions();
67+
scopeOptions.setScope("EntireWorkbook");
68+
69+
trimContentOptions.setScopeOptions(scopeOptions);
70+
71+
request.setTrimContentOptions(trimContentOptions);
72+
73+
this.api.postTrimContent(request);
74+
75+
} catch (ApiException e) {
76+
// TODO Auto-generated catch block
77+
e.printStackTrace();
78+
}
79+
}
80+
}

Examples/Example_MoveFile.java renamed to Examples/Example_PostUpdateWordCase.java

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import java.io.File;
1111
import java.util.HashMap;
1212

13-
public class ExampleMoveFile {
13+
public class ExamplePostUpdateWordCase {
1414
private CellsApi api;
15-
public ExampleMoveFile(){
15+
public ExamplePostUpdateWordCase(){
1616
try {
1717
api = new CellsApi(
1818
System.getenv("CellsCloudClientId"),
@@ -29,8 +29,8 @@ public void Run(){
2929
try{
3030
String remoteFolder = "TestData/In";
3131

32-
String localName = "Book1.xlsx";
33-
String remoteName = "Book1.xlsx";
32+
String localName = "BookText.xlsx";
33+
String remoteName = "BookText.xlsx";
3434

3535
UploadFileRequest uploadFileRequest = new UploadFileRequest();
3636
uploadFileRequest.setPath( remoteFolder + "/" + remoteName );
@@ -40,18 +40,28 @@ public void Run(){
4040
uploadFileRequest.setUploadFiles(files);
4141
cellsApi.uploadFile(uploadFileRequest);
4242

43-
MoveFileRequest request = new MoveFileRequest();
44-
request.setSrcPath(remoteFolder + "/" + remoteName);
43+
PostUpdateWordCaseRequest request = new PostUpdateWordCaseRequest();
44+
WordCaseOptions wordCaseOptions = new WordCaseOptions();
45+
DataSource dataSource = new DataSource();
46+
dataSource.setDataSourceType("CloudFileSystem");
4547

46-
request.setDestPath("OutResult/" + remoteName);
4748

48-
request.setSrcStorageName("");
49+
dataSource.setDataPath("BookText.xlsx");
4950

50-
request.setDestStorageName("");
51+
wordCaseOptions.setDataSource(dataSource);
5152

52-
request.setVersionId("");
5353

54-
this.api.moveFile(request);
54+
wordCaseOptions.setWordCaseType("None");
55+
56+
57+
ScopeOptions scopeOptions = new ScopeOptions();
58+
scopeOptions.setScope("EntireWorkbook");
59+
60+
wordCaseOptions.setScopeOptions(scopeOptions);
61+
62+
request.setWordCaseOptions(wordCaseOptions);
63+
64+
this.api.postUpdateWordCase(request);
5565

5666
} catch (ApiException e) {
5767
// TODO Auto-generated catch block

Examples/Example_PostWorkbookDataDeduplication.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public void Run(){
4444
request.setName(remoteName);
4545

4646
DeduplicationRegion deduplicationRegion = new DeduplicationRegion();
47+
48+
ArrayList<Range> deduplicationRegionRanges = new ArrayList<Range>();
49+
deduplicationRegion.setRanges(deduplicationRegionRanges);
50+
4751
request.setDeduplicationRegion(deduplicationRegion);
4852

4953
request.setFolder(remoteFolder);

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-java/24.8)
1+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-java)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-java/24.9)
22

33
# Java package for Aspose.Cells Cloud
44

@@ -17,11 +17,12 @@ Enhance your Java applications with the [Aspose.Cells Cloud](https://products.as
1717
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
1818
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
1919

20-
## Feature & Enhancements in Version 24.8
20+
## Feature & Enhancements in Version 24.9
2121

2222
Full list of issues covering all changes in this release:
2323

24-
- Add the text trim feature on Cells Cloud Services.
24+
- Add word case function for TextProcessingController.
25+
- Support to export Worksheet to HTML with cell address or id.
2526

2627
## Support file format
2728

@@ -110,6 +111,10 @@ File response = cellsApi.putConvertWorkbook(request);
110111

111112
# Release history version
112113

114+
## Enhancements in Version 24.8
115+
116+
- Add the text trim feature on Cells Cloud Services.
117+
113118
## Enhancements in Version 24.7
114119

115120
- Add a new feature about adding text content.

TestData/BookText.xlsx

12.7 KB
Binary file not shown.

docs/api/post-update-word-case.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# **postUpdateWordCase API**
2+
3+
4+
5+
```bash
6+
7+
POST http://api.aspose.cloud/v3.0//cells/updatewordcase
8+
9+
```
10+
11+
## The request parameters of **postUpdateWordCase** API are:
12+
13+
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
14+
| :- | :- | :- |:- |
15+
|wordCaseOptions|Class|Body||
16+
17+
18+
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/TextProcessingController/PostUpdateWordCase) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/api/put-convert-workbook.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ PUT http://api.aspose.cloud/v3.0//cells/convert
2222
|region|String|Query|The regional settings for workbook.|
2323
|pageWideFitOnPerSheet|Boolean|Query|The page wide fit on worksheet.|
2424
|pageTallFitOnPerSheet|Boolean|Query|The page tall fit on worksheet.|
25+
|sheetName|String|Query||
26+
|pageIndex|Integer|Query||
2527

2628

2729
The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/ConversionController/PutConvertWorkbook) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

docs/api/put-workbook-background.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ PUT http://api.aspose.cloud/v3.0//cells/{name}/background
1414
| :- | :- | :- |:- |
1515
|name|String|Path|The file name.|
1616
|picPath|String|Query|The picture full path.|
17+
|imageAdaptOption|String|Query||
1718
|folder|String|Query|The folder where the file is situated.|
1819
|storageName|String|Query|The storage name where the file is situated.|
1920
|File|File|FormData|File to upload|

docs/api/put-worksheet-background.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ PUT http://api.aspose.cloud/v3.0//cells/{name}/worksheets/{sheetName}/background
1515
|name|String|Path|The file name.|
1616
|sheetName|String|Path|The worksheet name.|
1717
|picPath|String|Query|picture full filename.|
18+
|imageAdaptOption|String|Query||
1819
|folder|String|Query|The folder where the file is situated.|
1920
|storageName|String|Query|The storage name where the file is situated.|
2021
|File|File|FormData|File to upload|

0 commit comments

Comments
 (0)