Skip to content

Commit

Permalink
[TASKSCLOUD-861] - Deployed new 24.10 version.
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanAndreychikov committed Oct 28, 2024
1 parent 38b6ba0 commit 57259fd
Show file tree
Hide file tree
Showing 12 changed files with 811 additions and 10 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG


## Enhancements in Version 24.10
- Enhanced reading data from Primavera-specific task's properties.

## Enhancements in Version 24.4
- Added new ability to get views information.
- Possibility to modify table text styles for Gantt Chart views.
Expand Down Expand Up @@ -79,7 +82,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-tasks-cloud</artifactId>
<version>24.4.0</version>
<version>24.10.0</version>
</dependency>
</dependencies>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>aspose-tasks-cloud</artifactId>
<packaging>jar</packaging>
<name>aspose-tasks-cloud</name>
<version>24.4.0</version>
<version>24.10.0</version>
<url>https://www.aspose.cloud/</url>
<description>Aspose Tasks Cloud Java SDK</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>aspose-tasks-cloud</artifactId>
<packaging>jar</packaging>
<name>aspose-tasks-cloud</name>
<version>24.4.0</version>
<version>24.10.0</version>
<url>https://www.aspose.cloud/</url>
<description>Aspose Tasks Cloud Java SDK</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/aspose/tasks/cloud/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class ApiClient {
private String baseUrl = "https://api.aspose.cloud";
private String authUrl = "";
private String basePath = baseUrl + "/" + apiVersion;
private String clientVersion = "24.4.0";
private String clientVersion = "24.10.0";
private boolean debugging = false;
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
private String tempFolderPath = null;
Expand Down
27 changes: 25 additions & 2 deletions src/main/java/com/aspose/tasks/cloud/model/Calendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
@ApiModel(description = "Represents a calendar used in a project.")

public class Calendar {
@SerializedName("Guid")
private String guid = null;

@SerializedName("Name")
private String name = null;

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

public Calendar guid(String guid) {
this.guid = guid;
return this;
}

/**
* Gets calendar&#39;s Guid.
* @return guid
**/
@ApiModelProperty(value = "Gets calendar's Guid.")
public String getGuid() {
return guid;
}

public void setGuid(String guid) {
this.guid = guid;
}

public Calendar name(String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -192,7 +213,8 @@ public boolean equals(java.lang.Object o) {
return false;
}
Calendar calendar = (Calendar) o;
return Objects.equals(this.name, calendar.name) &&
return Objects.equals(this.guid, calendar.guid) &&
Objects.equals(this.name, calendar.name) &&
Objects.equals(this.uid, calendar.uid) &&
Objects.equals(this.days, calendar.days) &&
Objects.equals(this.isBaseCalendar, calendar.isBaseCalendar) &&
Expand All @@ -202,7 +224,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(name, uid, days, isBaseCalendar, baseCalendar, isBaselineCalendar);
return Objects.hash(guid, name, uid, days, isBaseCalendar, baseCalendar, isBaselineCalendar);
}


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

sb.append(" guid: ").append(toIndentedString(guid)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" uid: ").append(toIndentedString(uid)).append("\n");
sb.append(" days: ").append(toIndentedString(days)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* --------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2021 Aspose.Tasks Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* </summary>
* --------------------------------------------------------------------------------
*/

package com.aspose.tasks.cloud.model;

import java.util.Objects;
import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import com.google.gson.annotations.SerializedName;

import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
* Specifies type of Primavera activity.
*/
@JsonAdapter(PrimaveraActivityType.Adapter.class)
public enum PrimaveraActivityType {

NONE("None"),

STARTMILESTONE("StartMilestone"),

FINISHMILESTONE("FinishMilestone"),

TASKDEPENDENT("TaskDependent"),

RESOURCEDEPENDENT("ResourceDependent"),

LEVELOFEFFORT("LevelOfEffort"),

WBSSUMMARY("WbsSummary");

private String value;

PrimaveraActivityType(String value) {
this.value = value;
}

public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

public static PrimaveraActivityType fromValue(String text) {
for (PrimaveraActivityType b : PrimaveraActivityType.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}

public static class Adapter extends TypeAdapter<PrimaveraActivityType> {
@Override
public void write(final JsonWriter jsonWriter, final PrimaveraActivityType enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}

@Override
public PrimaveraActivityType read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return PrimaveraActivityType.fromValue(String.valueOf(value));
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* --------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2021 Aspose.Tasks Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* </summary>
* --------------------------------------------------------------------------------
*/

package com.aspose.tasks.cloud.model;

import java.util.Objects;
import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import com.google.gson.annotations.SerializedName;

import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
* Specifies duration type of Primavera activity.
*/
@JsonAdapter(PrimaveraDurationType.Adapter.class)
public enum PrimaveraDurationType {

NONE("None"),

FIXEDDURATIONUNITS("FixedDurationUnits"),

FIXEDDURATIONUNITSTIME("FixedDurationUnitsTime"),

FIXEDUNITS("FixedUnits"),

FIXEDUNITSTIME("FixedUnitsTime");

private String value;

PrimaveraDurationType(String value) {
this.value = value;
}

public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

public static PrimaveraDurationType fromValue(String text) {
for (PrimaveraDurationType b : PrimaveraDurationType.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}

public static class Adapter extends TypeAdapter<PrimaveraDurationType> {
@Override
public void write(final JsonWriter jsonWriter, final PrimaveraDurationType enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}

@Override
public PrimaveraDurationType read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return PrimaveraDurationType.fromValue(String.valueOf(value));
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* --------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2021 Aspose.Tasks Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* </summary>
* --------------------------------------------------------------------------------
*/

package com.aspose.tasks.cloud.model;

import java.util.Objects;
import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import com.google.gson.annotations.SerializedName;

import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
* Specifies value of &#39;% Complete Type&#39; field for Primavera activities.
*/
@JsonAdapter(PrimaveraPercentCompleteType.Adapter.class)
public enum PrimaveraPercentCompleteType {

NONE("None"),

DURATION("Duration"),

PHYSICAL("Physical"),

UNITS("Units");

private String value;

PrimaveraPercentCompleteType(String value) {
this.value = value;
}

public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

public static PrimaveraPercentCompleteType fromValue(String text) {
for (PrimaveraPercentCompleteType b : PrimaveraPercentCompleteType.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}

public static class Adapter extends TypeAdapter<PrimaveraPercentCompleteType> {
@Override
public void write(final JsonWriter jsonWriter, final PrimaveraPercentCompleteType enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}

@Override
public PrimaveraPercentCompleteType read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return PrimaveraPercentCompleteType.fromValue(String.valueOf(value));
}
}
}

Loading

0 comments on commit 57259fd

Please sign in to comment.