Skip to content

Commit 59dd562

Browse files
[TASKSCLOUD-964] - Deployed new 25.11 version.
1 parent eb77908 commit 59dd562

File tree

6 files changed

+206
-6
lines changed

6 files changed

+206
-6
lines changed

README.md

Lines changed: 4 additions & 1 deletion
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 25.11
36+
- Enhanced reading data from Primavera-specific task's properties.
37+
3538
## Enhancements in Version 25.8
3639
- Added new ability to level tasks for the resources.
3740
- Provided the ability to clear leveling delay that was previously added to the tasks during resource leveling.
@@ -91,7 +94,7 @@ Add this dependency to your project's POM:
9194
<dependency>
9295
<groupId>com.aspose</groupId>
9396
<artifactId>aspose-tasks-cloud</artifactId>
94-
<version>25.10.0</version>
97+
<version>25.11.0</version>
9598
</dependency>
9699
</dependencies>
97100
```

aspose-tasks-cloud-25.10.0.pom renamed to aspose-tasks-cloud-25.11.0.pom

Lines changed: 1 addition & 1 deletion
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>25.10.0</version>
7+
<version>25.11.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Tasks Cloud Java SDK</description>
1010
<scm>

pom.xml

Lines changed: 1 addition & 1 deletion
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>25.10.0</version>
7+
<version>25.11.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

Lines changed: 1 addition & 1 deletion
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 = "25.10.0";
73+
private String clientVersion = "25.11.0";
7474
private boolean debugging = false;
7575
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
7676
private String tempFolderPath = null;
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 a type of activity&#39;s constraint.
43+
*/
44+
@JsonAdapter(PrimaveraConstraintType.Adapter.class)
45+
public enum PrimaveraConstraintType {
46+
47+
NONE("None"),
48+
49+
FINISHON("FinishOn"),
50+
51+
FINISHONORAFTER("FinishOnOrAfter"),
52+
53+
FINISHONORBEFORE("FinishOnOrBefore"),
54+
55+
MANDATORYFINISH("MandatoryFinish"),
56+
57+
MANDATORYSTART("MandatoryStart"),
58+
59+
STARTON("StartOn"),
60+
61+
STARTONORAFTER("StartOnOrAfter"),
62+
63+
STARTONORBEFORE("StartOnOrBefore"),
64+
65+
ASLATEASPOSSIBLE("AsLateAsPossible");
66+
67+
private String value;
68+
69+
PrimaveraConstraintType(String value) {
70+
this.value = value;
71+
}
72+
73+
public String getValue() {
74+
return value;
75+
}
76+
77+
@Override
78+
public String toString() {
79+
return String.valueOf(value);
80+
}
81+
82+
public static PrimaveraConstraintType fromValue(String text) {
83+
for (PrimaveraConstraintType b : PrimaveraConstraintType.values()) {
84+
if (String.valueOf(b.value).equals(text)) {
85+
return b;
86+
}
87+
}
88+
return null;
89+
}
90+
91+
public static class Adapter extends TypeAdapter<PrimaveraConstraintType> {
92+
@Override
93+
public void write(final JsonWriter jsonWriter, final PrimaveraConstraintType enumeration) throws IOException {
94+
jsonWriter.value(enumeration.getValue());
95+
}
96+
97+
@Override
98+
public PrimaveraConstraintType read(final JsonReader jsonReader) throws IOException {
99+
String value = jsonReader.nextString();
100+
return PrimaveraConstraintType.fromValue(String.valueOf(value));
101+
}
102+
}
103+
}
104+

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

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.util.Objects;
3131
import java.util.Arrays;
3232
import com.aspose.tasks.cloud.model.PrimaveraActivityType;
33+
import com.aspose.tasks.cloud.model.PrimaveraConstraintType;
3334
import com.aspose.tasks.cloud.model.PrimaveraDurationType;
3435
import com.aspose.tasks.cloud.model.PrimaveraPercentCompleteType;
3536
import com.google.gson.TypeAdapter;
@@ -142,6 +143,18 @@ public class PrimaveraTaskProperties {
142143
@SerializedName("BudgetedExpenseCost")
143144
private BigDecimal budgetedExpenseCost = null;
144145

146+
@SerializedName("PrimaryConstraintType")
147+
private PrimaveraConstraintType primaryConstraintType = null;
148+
149+
@SerializedName("PrimaryConstraintDate")
150+
private OffsetDateTime primaryConstraintDate = null;
151+
152+
@SerializedName("SecondaryConstraintType")
153+
private PrimaveraConstraintType secondaryConstraintType = null;
154+
155+
@SerializedName("SecondaryConstraintDate")
156+
private OffsetDateTime secondaryConstraintDate = null;
157+
145158
public PrimaveraTaskProperties sequenceNumber(Integer sequenceNumber) {
146159
this.sequenceNumber = sequenceNumber;
147160
return this;
@@ -700,6 +713,78 @@ public void setBudgetedExpenseCost(BigDecimal budgetedExpenseCost) {
700713
this.budgetedExpenseCost = budgetedExpenseCost;
701714
}
702715

716+
public PrimaveraTaskProperties primaryConstraintType(PrimaveraConstraintType primaryConstraintType) {
717+
this.primaryConstraintType = primaryConstraintType;
718+
return this;
719+
}
720+
721+
/**
722+
* Gets a type of primary constraint.
723+
* @return primaryConstraintType
724+
**/
725+
@ApiModelProperty(required = true, value = "Gets a type of primary constraint.")
726+
public PrimaveraConstraintType getPrimaryConstraintType() {
727+
return primaryConstraintType;
728+
}
729+
730+
public void setPrimaryConstraintType(PrimaveraConstraintType primaryConstraintType) {
731+
this.primaryConstraintType = primaryConstraintType;
732+
}
733+
734+
public PrimaveraTaskProperties primaryConstraintDate(OffsetDateTime primaryConstraintDate) {
735+
this.primaryConstraintDate = primaryConstraintDate;
736+
return this;
737+
}
738+
739+
/**
740+
* Gets the date of primary constraint.
741+
* @return primaryConstraintDate
742+
**/
743+
@ApiModelProperty(required = true, value = "Gets the date of primary constraint.")
744+
public OffsetDateTime getPrimaryConstraintDate() {
745+
return primaryConstraintDate;
746+
}
747+
748+
public void setPrimaryConstraintDate(OffsetDateTime primaryConstraintDate) {
749+
this.primaryConstraintDate = primaryConstraintDate;
750+
}
751+
752+
public PrimaveraTaskProperties secondaryConstraintType(PrimaveraConstraintType secondaryConstraintType) {
753+
this.secondaryConstraintType = secondaryConstraintType;
754+
return this;
755+
}
756+
757+
/**
758+
* Gets a type of secondary constraint.
759+
* @return secondaryConstraintType
760+
**/
761+
@ApiModelProperty(required = true, value = "Gets a type of secondary constraint.")
762+
public PrimaveraConstraintType getSecondaryConstraintType() {
763+
return secondaryConstraintType;
764+
}
765+
766+
public void setSecondaryConstraintType(PrimaveraConstraintType secondaryConstraintType) {
767+
this.secondaryConstraintType = secondaryConstraintType;
768+
}
769+
770+
public PrimaveraTaskProperties secondaryConstraintDate(OffsetDateTime secondaryConstraintDate) {
771+
this.secondaryConstraintDate = secondaryConstraintDate;
772+
return this;
773+
}
774+
775+
/**
776+
* Gets the date of secondary constraint.
777+
* @return secondaryConstraintDate
778+
**/
779+
@ApiModelProperty(required = true, value = "Gets the date of secondary constraint.")
780+
public OffsetDateTime getSecondaryConstraintDate() {
781+
return secondaryConstraintDate;
782+
}
783+
784+
public void setSecondaryConstraintDate(OffsetDateTime secondaryConstraintDate) {
785+
this.secondaryConstraintDate = secondaryConstraintDate;
786+
}
787+
703788

704789
@Override
705790
public boolean equals(java.lang.Object o) {
@@ -740,12 +825,16 @@ public boolean equals(java.lang.Object o) {
740825
Objects.equals(this.budgetedLaborCost, primaveraTaskProperties.budgetedLaborCost) &&
741826
Objects.equals(this.budgetedNonlaborCost, primaveraTaskProperties.budgetedNonlaborCost) &&
742827
Objects.equals(this.budgetedMaterialCost, primaveraTaskProperties.budgetedMaterialCost) &&
743-
Objects.equals(this.budgetedExpenseCost, primaveraTaskProperties.budgetedExpenseCost);
828+
Objects.equals(this.budgetedExpenseCost, primaveraTaskProperties.budgetedExpenseCost) &&
829+
Objects.equals(this.primaryConstraintType, primaveraTaskProperties.primaryConstraintType) &&
830+
Objects.equals(this.primaryConstraintDate, primaveraTaskProperties.primaryConstraintDate) &&
831+
Objects.equals(this.secondaryConstraintType, primaveraTaskProperties.secondaryConstraintType) &&
832+
Objects.equals(this.secondaryConstraintDate, primaveraTaskProperties.secondaryConstraintDate);
744833
}
745834

746835
@Override
747836
public int hashCode() {
748-
return Objects.hash(sequenceNumber, activityId, remainingEarlyFinish, remainingEarlyStart, remainingLateStart, remainingLateFinish, rawDurationType, rawActivityType, rawCompletePercentType, rawStatus, durationPercentComplete, physicalPercentComplete, actualNonLaborUnits, actualLaborUnits, unitsPercentComplete, remainingLaborUnits, remainingNonLaborUnits, durationType, activityType, percentCompleteType, actualLaborCost, actualNonlaborCost, actualMaterialCost, actualExpenseCost, remainingExpenseCost, actualTotalCost, budgetedTotalCost, budgetedLaborCost, budgetedNonlaborCost, budgetedMaterialCost, budgetedExpenseCost);
837+
return Objects.hash(sequenceNumber, activityId, remainingEarlyFinish, remainingEarlyStart, remainingLateStart, remainingLateFinish, rawDurationType, rawActivityType, rawCompletePercentType, rawStatus, durationPercentComplete, physicalPercentComplete, actualNonLaborUnits, actualLaborUnits, unitsPercentComplete, remainingLaborUnits, remainingNonLaborUnits, durationType, activityType, percentCompleteType, actualLaborCost, actualNonlaborCost, actualMaterialCost, actualExpenseCost, remainingExpenseCost, actualTotalCost, budgetedTotalCost, budgetedLaborCost, budgetedNonlaborCost, budgetedMaterialCost, budgetedExpenseCost, primaryConstraintType, primaryConstraintDate, secondaryConstraintType, secondaryConstraintDate);
749838
}
750839

751840

@@ -785,6 +874,10 @@ public String toString() {
785874
sb.append(" budgetedNonlaborCost: ").append(toIndentedString(budgetedNonlaborCost)).append("\n");
786875
sb.append(" budgetedMaterialCost: ").append(toIndentedString(budgetedMaterialCost)).append("\n");
787876
sb.append(" budgetedExpenseCost: ").append(toIndentedString(budgetedExpenseCost)).append("\n");
877+
sb.append(" primaryConstraintType: ").append(toIndentedString(primaryConstraintType)).append("\n");
878+
sb.append(" primaryConstraintDate: ").append(toIndentedString(primaryConstraintDate)).append("\n");
879+
sb.append(" secondaryConstraintType: ").append(toIndentedString(secondaryConstraintType)).append("\n");
880+
sb.append(" secondaryConstraintDate: ").append(toIndentedString(secondaryConstraintDate)).append("\n");
788881
sb.append("}");
789882
return sb.toString();
790883
}

0 commit comments

Comments
 (0)