Skip to content

Commit 38b6ba0

Browse files
[TASKSCLOUD-842] - Deployed new 24.4 version.
1 parent 232581a commit 38b6ba0

25 files changed

+6411
-8
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
3232
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
3333

3434

35+
## Enhancements in Version 24.4
36+
- Added new ability to get views information.
37+
- Possibility to modify table text styles for Gantt Chart views.
38+
3539
## Enhancements in Version 22.12
3640
- Added new ability to read Primavera-specific task's properties.
3741
- Provided the ability to read more document properties.
@@ -75,7 +79,7 @@ Add this dependency to your project's POM:
7579
<dependency>
7680
<groupId>com.aspose</groupId>
7781
<artifactId>aspose-tasks-cloud</artifactId>
78-
<version>22.12.0</version>
82+
<version>24.4.0</version>
7983
</dependency>
8084
</dependencies>
8185
```

aspose-tasks-cloud-22.12.0.pom aspose-tasks-cloud-24.4.0.pom

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-tasks-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>aspose-tasks-cloud</name>
7-
<version>22.12.0</version>
7+
<version>24.4.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Tasks Cloud Java SDK</description>
1010
<scm>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-tasks-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>aspose-tasks-cloud</name>
7-
<version>22.12.0</version>
7+
<version>24.4.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Tasks Cloud Java SDK</description>
1010
<scm>

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

+21-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ public class ApiClient {
6868

6969
private String apiVersion = "v3.0";
7070
private String baseUrl = "https://api.aspose.cloud";
71+
private String authUrl = "";
7172
private String basePath = baseUrl + "/" + apiVersion;
72-
private String clientVersion = "22.12.0";
73+
private String clientVersion = "24.4.0";
7374
private boolean debugging = false;
7475
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
7576
private String tempFolderPath = null;
@@ -93,6 +94,18 @@ public ApiClient(String appSid, String appKey, String baseUrl) {
9394
}
9495
}
9596

97+
public ApiClient(String appSid, String appKey, String baseUrl, String authUrl) {
98+
this();
99+
this.appSid = appSid;
100+
this.appKey = appKey;
101+
if (baseUrl != null) {
102+
this.setBaseUrl(baseUrl);
103+
}
104+
if (authUrl != null) {
105+
this.authUrl = authUrl;
106+
}
107+
}
108+
96109
/*
97110
* Constructor for ApiClient
98111
*/
@@ -1067,7 +1080,13 @@ public void requestToken() throws ApiException
10671080
.addEncoded("client_secret", getAppKey())
10681081
.build();
10691082

1070-
String url = baseUrl + "/connect/token";
1083+
String url;
1084+
if(authUrl.isEmpty()) {
1085+
url = baseUrl + "/connect/token";
1086+
} else {
1087+
url = authUrl;
1088+
}
1089+
10711090
Request request = new Request.Builder()
10721091
.url(url)
10731092
.post(requestBody)

src/main/java/com/aspose/tasks/cloud/api/TasksApi.java

+867
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose">
4+
* Copyright (c) 2021 Aspose.Tasks 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.tasks.cloud.model;
29+
30+
import java.util.Objects;
31+
import java.util.Arrays;
32+
import io.swagger.annotations.ApiModel;
33+
import com.google.gson.annotations.SerializedName;
34+
35+
import java.io.IOException;
36+
import com.google.gson.TypeAdapter;
37+
import com.google.gson.annotations.JsonAdapter;
38+
import com.google.gson.stream.JsonReader;
39+
import com.google.gson.stream.JsonWriter;
40+
41+
/**
42+
* Specifies the background pattern.
43+
*/
44+
@JsonAdapter(BackgroundPattern.Adapter.class)
45+
public enum BackgroundPattern {
46+
47+
HOLLOW("Hollow"),
48+
49+
SOLIDFILL("SolidFill"),
50+
51+
LIGHTFILL("LightFill"),
52+
53+
MEDIUMFILL("MediumFill"),
54+
55+
DARKFILL("DarkFill"),
56+
57+
DIAGONALLEFT("DiagonalLeft"),
58+
59+
DIAGONALRIGHT("DiagonalRight"),
60+
61+
DARKDIAGONALLEFT("DarkDiagonalLeft"),
62+
63+
DARKDIAGONALRIGHT("DarkDiagonalRight"),
64+
65+
THINVERTICALSTRIPE("ThinVerticalStripe"),
66+
67+
MEDIUMVERTICALSTRIPE("MediumVerticalStripe"),
68+
69+
LIGHTDITHER("LightDither"),
70+
71+
MEDIUMDITHER("MediumDither"),
72+
73+
DARKDITHER("DarkDither");
74+
75+
private String value;
76+
77+
BackgroundPattern(String value) {
78+
this.value = value;
79+
}
80+
81+
public String getValue() {
82+
return value;
83+
}
84+
85+
@Override
86+
public String toString() {
87+
return String.valueOf(value);
88+
}
89+
90+
public static BackgroundPattern fromValue(String text) {
91+
for (BackgroundPattern b : BackgroundPattern.values()) {
92+
if (String.valueOf(b.value).equals(text)) {
93+
return b;
94+
}
95+
}
96+
return null;
97+
}
98+
99+
public static class Adapter extends TypeAdapter<BackgroundPattern> {
100+
@Override
101+
public void write(final JsonWriter jsonWriter, final BackgroundPattern enumeration) throws IOException {
102+
jsonWriter.value(enumeration.getValue());
103+
}
104+
105+
@Override
106+
public BackgroundPattern read(final JsonReader jsonReader) throws IOException {
107+
String value = jsonReader.nextString();
108+
return BackgroundPattern.fromValue(String.valueOf(value));
109+
}
110+
}
111+
}
112+

0 commit comments

Comments
 (0)