Skip to content

Commit 57259fd

Browse files
[TASKSCLOUD-861] - Deployed new 24.10 version.
1 parent 38b6ba0 commit 57259fd

12 files changed

+811
-10
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ 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.10
36+
- Enhanced reading data from Primavera-specific task's properties.
37+
3538
## Enhancements in Version 24.4
3639
- Added new ability to get views information.
3740
- Possibility to modify table text styles for Gantt Chart views.
@@ -79,7 +82,7 @@ Add this dependency to your project's POM:
7982
<dependency>
8083
<groupId>com.aspose</groupId>
8184
<artifactId>aspose-tasks-cloud</artifactId>
82-
<version>24.4.0</version>
85+
<version>24.10.0</version>
8386
</dependency>
8487
</dependencies>
8588
```

aspose-tasks-cloud-24.4.0.pom aspose-tasks-cloud-24.10.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>24.4.0</version>
7+
<version>24.10.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>24.4.0</version>
7+
<version>24.10.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class ApiClient {
7070
private String baseUrl = "https://api.aspose.cloud";
7171
private String authUrl = "";
7272
private String basePath = baseUrl + "/" + apiVersion;
73-
private String clientVersion = "24.4.0";
73+
private String clientVersion = "24.10.0";
7474
private boolean debugging = false;
7575
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
7676
private String tempFolderPath = null;

src/main/java/com/aspose/tasks/cloud/model/Calendar.java

+25-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
@ApiModel(description = "Represents a calendar used in a project.")
4949

5050
public class Calendar {
51+
@SerializedName("Guid")
52+
private String guid = null;
53+
5154
@SerializedName("Name")
5255
private String name = null;
5356

@@ -66,6 +69,24 @@ public class Calendar {
6669
@SerializedName("IsBaselineCalendar")
6770
private Boolean isBaselineCalendar = null;
6871

72+
public Calendar guid(String guid) {
73+
this.guid = guid;
74+
return this;
75+
}
76+
77+
/**
78+
* Gets calendar&#39;s Guid.
79+
* @return guid
80+
**/
81+
@ApiModelProperty(value = "Gets calendar's Guid.")
82+
public String getGuid() {
83+
return guid;
84+
}
85+
86+
public void setGuid(String guid) {
87+
this.guid = guid;
88+
}
89+
6990
public Calendar name(String name) {
7091
this.name = name;
7192
return this;
@@ -192,7 +213,8 @@ public boolean equals(java.lang.Object o) {
192213
return false;
193214
}
194215
Calendar calendar = (Calendar) o;
195-
return Objects.equals(this.name, calendar.name) &&
216+
return Objects.equals(this.guid, calendar.guid) &&
217+
Objects.equals(this.name, calendar.name) &&
196218
Objects.equals(this.uid, calendar.uid) &&
197219
Objects.equals(this.days, calendar.days) &&
198220
Objects.equals(this.isBaseCalendar, calendar.isBaseCalendar) &&
@@ -202,7 +224,7 @@ public boolean equals(java.lang.Object o) {
202224

203225
@Override
204226
public int hashCode() {
205-
return Objects.hash(name, uid, days, isBaseCalendar, baseCalendar, isBaselineCalendar);
227+
return Objects.hash(guid, name, uid, days, isBaseCalendar, baseCalendar, isBaselineCalendar);
206228
}
207229

208230

@@ -211,6 +233,7 @@ public String toString() {
211233
StringBuilder sb = new StringBuilder();
212234
sb.append("class Calendar {\n");
213235

236+
sb.append(" guid: ").append(toIndentedString(guid)).append("\n");
214237
sb.append(" name: ").append(toIndentedString(name)).append("\n");
215238
sb.append(" uid: ").append(toIndentedString(uid)).append("\n");
216239
sb.append(" days: ").append(toIndentedString(days)).append("\n");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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 type of Primavera activity.
43+
*/
44+
@JsonAdapter(PrimaveraActivityType.Adapter.class)
45+
public enum PrimaveraActivityType {
46+
47+
NONE("None"),
48+
49+
STARTMILESTONE("StartMilestone"),
50+
51+
FINISHMILESTONE("FinishMilestone"),
52+
53+
TASKDEPENDENT("TaskDependent"),
54+
55+
RESOURCEDEPENDENT("ResourceDependent"),
56+
57+
LEVELOFEFFORT("LevelOfEffort"),
58+
59+
WBSSUMMARY("WbsSummary");
60+
61+
private String value;
62+
63+
PrimaveraActivityType(String value) {
64+
this.value = value;
65+
}
66+
67+
public String getValue() {
68+
return value;
69+
}
70+
71+
@Override
72+
public String toString() {
73+
return String.valueOf(value);
74+
}
75+
76+
public static PrimaveraActivityType fromValue(String text) {
77+
for (PrimaveraActivityType b : PrimaveraActivityType.values()) {
78+
if (String.valueOf(b.value).equals(text)) {
79+
return b;
80+
}
81+
}
82+
return null;
83+
}
84+
85+
public static class Adapter extends TypeAdapter<PrimaveraActivityType> {
86+
@Override
87+
public void write(final JsonWriter jsonWriter, final PrimaveraActivityType enumeration) throws IOException {
88+
jsonWriter.value(enumeration.getValue());
89+
}
90+
91+
@Override
92+
public PrimaveraActivityType read(final JsonReader jsonReader) throws IOException {
93+
String value = jsonReader.nextString();
94+
return PrimaveraActivityType.fromValue(String.valueOf(value));
95+
}
96+
}
97+
}
98+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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 duration type of Primavera activity.
43+
*/
44+
@JsonAdapter(PrimaveraDurationType.Adapter.class)
45+
public enum PrimaveraDurationType {
46+
47+
NONE("None"),
48+
49+
FIXEDDURATIONUNITS("FixedDurationUnits"),
50+
51+
FIXEDDURATIONUNITSTIME("FixedDurationUnitsTime"),
52+
53+
FIXEDUNITS("FixedUnits"),
54+
55+
FIXEDUNITSTIME("FixedUnitsTime");
56+
57+
private String value;
58+
59+
PrimaveraDurationType(String value) {
60+
this.value = value;
61+
}
62+
63+
public String getValue() {
64+
return value;
65+
}
66+
67+
@Override
68+
public String toString() {
69+
return String.valueOf(value);
70+
}
71+
72+
public static PrimaveraDurationType fromValue(String text) {
73+
for (PrimaveraDurationType b : PrimaveraDurationType.values()) {
74+
if (String.valueOf(b.value).equals(text)) {
75+
return b;
76+
}
77+
}
78+
return null;
79+
}
80+
81+
public static class Adapter extends TypeAdapter<PrimaveraDurationType> {
82+
@Override
83+
public void write(final JsonWriter jsonWriter, final PrimaveraDurationType enumeration) throws IOException {
84+
jsonWriter.value(enumeration.getValue());
85+
}
86+
87+
@Override
88+
public PrimaveraDurationType read(final JsonReader jsonReader) throws IOException {
89+
String value = jsonReader.nextString();
90+
return PrimaveraDurationType.fromValue(String.valueOf(value));
91+
}
92+
}
93+
}
94+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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 value of &#39;% Complete Type&#39; field for Primavera activities.
43+
*/
44+
@JsonAdapter(PrimaveraPercentCompleteType.Adapter.class)
45+
public enum PrimaveraPercentCompleteType {
46+
47+
NONE("None"),
48+
49+
DURATION("Duration"),
50+
51+
PHYSICAL("Physical"),
52+
53+
UNITS("Units");
54+
55+
private String value;
56+
57+
PrimaveraPercentCompleteType(String value) {
58+
this.value = value;
59+
}
60+
61+
public String getValue() {
62+
return value;
63+
}
64+
65+
@Override
66+
public String toString() {
67+
return String.valueOf(value);
68+
}
69+
70+
public static PrimaveraPercentCompleteType fromValue(String text) {
71+
for (PrimaveraPercentCompleteType b : PrimaveraPercentCompleteType.values()) {
72+
if (String.valueOf(b.value).equals(text)) {
73+
return b;
74+
}
75+
}
76+
return null;
77+
}
78+
79+
public static class Adapter extends TypeAdapter<PrimaveraPercentCompleteType> {
80+
@Override
81+
public void write(final JsonWriter jsonWriter, final PrimaveraPercentCompleteType enumeration) throws IOException {
82+
jsonWriter.value(enumeration.getValue());
83+
}
84+
85+
@Override
86+
public PrimaveraPercentCompleteType read(final JsonReader jsonReader) throws IOException {
87+
String value = jsonReader.nextString();
88+
return PrimaveraPercentCompleteType.fromValue(String.valueOf(value));
89+
}
90+
}
91+
}
92+

0 commit comments

Comments
 (0)