Skip to content

Commit

Permalink
Aspose.Cells Cloud SDK 22.6
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Jun 28, 2022
1 parent 2cd6131 commit ecb9e3a
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 44 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ Android Cloud SDK wraps Aspose.Cells Cloud API. The SDK enhances your Android ap
- Leverage the power of named ranges.


## Feature & Enhancements in Version 22.5
## Feature & Enhancements in Version 22.6

- Add a new API for getting barcode description.
- Improve save as api.
- Improve clear objects api.


## Read & Write Spreadsheet Formats
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = 'com.aspose'
project.version = '22.5'
project.version = '22.6'

buildscript {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,29 @@ public void cellsPostClearObjectsApiTest() throws ApiException {
HashMap<String,File> fileMap = new HashMap<String,File>();
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
FilesResult response = api.postClearObjects(fileMap, "chart");
FilesResult response = api.postClearObjects(fileMap, "chart",null,null);

// TODO: test validations
}

@Test
public void cellsPostClearObjectsApiOnlySheetTest() throws ApiException {

HashMap<String,File> fileMap = new HashMap<String,File>();
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
fileMap.put(BOOK1 ,CellsApiUtil.GetFileHolder(BOOK1) );
FilesResult response = api.postClearObjects(fileMap, "chart","Sheet1",null);

// TODO: test validations
}
@Test
public void cellsPostClearObjectsApiOutPdfTest() throws ApiException {

HashMap<String,File> fileMap = new HashMap<String,File>();
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
fileMap.put(BOOK1 ,CellsApiUtil.GetFileHolder(BOOK1) );
FilesResult response = api.postClearObjects(fileMap, "chart","Sheet1","pdf");

// TODO: test validations
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void cellsSaveAsPostDocumentSaveAsTest() throws ApiException {
Boolean isAutoFitColumns = false;
String folder = TEMPFOLDER;
CellsApiUtil.Upload(api, folder , name);
SaveResponse response = api.cellsSaveAsPostDocumentSaveAs(name, saveOptions, folder + "/"+ newfilename, isAutoFitRows, isAutoFitColumns, folder,null,null,null);
SaveResponse response = api.cellsSaveAsPostDocumentSaveAs(name, saveOptions, folder + "/"+ newfilename, isAutoFitRows, isAutoFitColumns, folder,null,null,null,true);

// TODO: test validations
}
Expand All @@ -100,7 +100,7 @@ public void cellsSaveAsPostDocumentSaveAsMDTest() throws ApiException {
Boolean isAutoFitColumns = false;
String folder = TEMPFOLDER;
CellsApiUtil.Upload(api, folder , name);
SaveResponse response = api.cellsSaveAsPostDocumentSaveAs(name, saveOptions, folder + "/"+ newfilename, isAutoFitRows, isAutoFitColumns, folder,null,null,null);
SaveResponse response = api.cellsSaveAsPostDocumentSaveAs(name, saveOptions, folder + "/"+ newfilename, isAutoFitRows, isAutoFitColumns, folder,null,null,null,true);

// TODO: test validations
}
Expand Down
128 changes: 102 additions & 26 deletions src/main/java/com/aspose/cloud/cells/api/CellsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -15455,23 +15455,6 @@ public CellsCloudResponse cellsPageSetupPostPageSetup(String name, String sheetN
return resp.getData();
}

/**
* Update Page Setup information.
*
* @param name (required)
* @param sheetName (required)
* @param pageSetup (optional)
* @param folder (optional)
* @param storageName storage name. (optional)
* @return ApiResponse&lt;CellsCloudResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<CellsCloudResponse> cellsPageSetupPostPageSetupWithHttpInfo(String name, String sheetName, PageSetup pageSetup, String folder, String storageName) throws ApiException {
com.squareup.okhttp.Call call = cellsPageSetupPostPageSetupValidateBeforeCall(name, sheetName, pageSetup, folder, storageName, null, null);
Type localVarReturnType = new TypeToken<CellsCloudResponse>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

/**
* Update Page Setup information. (asynchronously)
*
Expand Down Expand Up @@ -15598,6 +15581,96 @@ private com.squareup.okhttp.Call cellsPictureGetExtractBarcodesValidateBeforeCal

}

/**
* Get chart area border info.
*
* @param name Workbook name. (required)
* @param sheetName Worksheet name. (required)
* @param pictureIndex The picture index. (required)
* @param folder Workbook folder. (optional)
* @param storageName storage name. (optional)
* @return BarcodeResponseList
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public BarcodeResponseList cellsPictureGetExtractBarcodes(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException {
ApiResponse<BarcodeResponseList> resp = cellsPictureGetExtractBarcodesWithHttpInfo(name, sheetName, pictureIndex, folder, storageName);
return resp.getData();
}

/**
* Get chart area border info.
*
* @param name Workbook name. (required)
* @param sheetName Worksheet name. (required)
* @param pictureIndex The picture index. (required)
* @param folder Workbook folder. (optional)
* @param storageName storage name. (optional)
* @return ApiResponse&lt;BarcodeResponseList&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<BarcodeResponseList> cellsPictureGetExtractBarcodesWithHttpInfo(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException {
com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, null, null);
Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

/**
* Get chart area border info. (asynchronously)
*
* @param name Workbook name. (required)
* @param sheetName Worksheet name. (required)
* @param pictureIndex The picture index. (required)
* @param folder Workbook folder. (optional)
* @param storageName storage name. (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call cellsPictureGetExtractBarcodesAsync(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ApiCallback<BarcodeResponseList> callback) throws ApiException {

ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;

if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};

progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}

com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}


/**
* Update Page Setup information.
*
* @param name (required)
* @param sheetName (required)
* @param pageSetup (optional)
* @param folder (optional)
* @param storageName storage name. (optional)
* @return ApiResponse&lt;CellsCloudResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<CellsCloudResponse> cellsPageSetupPostPageSetupWithHttpInfo(String name, String sheetName, PageSetup pageSetup, String folder, String storageName) throws ApiException {
com.squareup.okhttp.Call call = cellsPageSetupPostPageSetupValidateBeforeCall(name, sheetName, pageSetup, folder, storageName, null, null);
Type localVarReturnType = new TypeToken<CellsCloudResponse>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

/**
* Build call for cellsPicturesDeleteWorksheetPicture
* @param name The workbook name. (required)
Expand Down Expand Up @@ -27903,7 +27976,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsCall(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
public com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsCall(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters, boolean checkExcelRestriction, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = saveOptions;

// create path and map variables
Expand All @@ -27923,6 +27996,9 @@ public com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsCall(String name, S
localVarQueryParams.addAll(apiClient.parameterToPairs("", "storageName", storageName));
if (outStorageName != null)
localVarQueryParams.addAll(apiClient.parameterToPairs("", "outStorageName", outStorageName));
if (!checkExcelRestriction)
localVarQueryParams.addAll(apiClient.parameterToPairs("", "checkExcelRestriction", checkExcelRestriction));

if(extendedQueryParameters!=null){
for (String key : extendedQueryParameters.keySet()) {
localVarQueryParams.addAll(apiClient.parameterToPairs("", key, extendedQueryParameters.get(key)));
Expand Down Expand Up @@ -27961,15 +28037,15 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
}

@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsValidateBeforeCall(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsValidateBeforeCall(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters, boolean checkExcelRestriction,final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {

// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling cellsSaveAsPostDocumentSaveAs(Async)");
}


com.squareup.okhttp.Call call = cellsSaveAsPostDocumentSaveAsCall(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = cellsSaveAsPostDocumentSaveAsCall(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters,checkExcelRestriction, progressListener, progressRequestListener);
return call;


Expand All @@ -27992,8 +28068,8 @@ private com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsValidateBeforeCall
* @return SaveResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public SaveResponse cellsSaveAsPostDocumentSaveAs(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters) throws ApiException {
ApiResponse<SaveResponse> resp = cellsSaveAsPostDocumentSaveAsWithHttpInfo(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters);
public SaveResponse cellsSaveAsPostDocumentSaveAs(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters,boolean checkExcelRestriction) throws ApiException {
ApiResponse<SaveResponse> resp = cellsSaveAsPostDocumentSaveAsWithHttpInfo(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters,checkExcelRestriction);
return resp.getData();
}

Expand All @@ -28011,8 +28087,8 @@ public SaveResponse cellsSaveAsPostDocumentSaveAs(String name, SaveOptions saveO
* @return ApiResponse&lt;SaveResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<SaveResponse> cellsSaveAsPostDocumentSaveAsWithHttpInfo(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters) throws ApiException {
com.squareup.okhttp.Call call = cellsSaveAsPostDocumentSaveAsValidateBeforeCall(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters, null, null);
public ApiResponse<SaveResponse> cellsSaveAsPostDocumentSaveAsWithHttpInfo(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters,boolean checkExcelRestriction) throws ApiException {
com.squareup.okhttp.Call call = cellsSaveAsPostDocumentSaveAsValidateBeforeCall(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters,checkExcelRestriction, null, null);
Type localVarReturnType = new TypeToken<SaveResponse>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
Expand All @@ -28032,7 +28108,7 @@ public ApiResponse<SaveResponse> cellsSaveAsPostDocumentSaveAsWithHttpInfo(Strin
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsAsync(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters, final ApiCallback<SaveResponse> callback) throws ApiException {
public com.squareup.okhttp.Call cellsSaveAsPostDocumentSaveAsAsync(String name, SaveOptions saveOptions, String newfilename, Boolean isAutoFitRows, Boolean isAutoFitColumns, String folder, String storageName, String outStorageName,HashMap<String,String> extendedQueryParameters,boolean checkExcelRestriction, final ApiCallback<SaveResponse> callback) throws ApiException {

ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
Expand All @@ -28053,7 +28129,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
};
}

com.squareup.okhttp.Call call = cellsSaveAsPostDocumentSaveAsValidateBeforeCall(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = cellsSaveAsPostDocumentSaveAsValidateBeforeCall(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder, storageName, outStorageName,extendedQueryParameters,checkExcelRestriction, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<SaveResponse>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
Expand Down
Loading

0 comments on commit ecb9e3a

Please sign in to comment.