Skip to content

Commit 2fee896

Browse files
Add 'PathInProject' property to 'ItemAttributes'.
1 parent 627aba7 commit 2fee896

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

datamanagement/src/main/java/com/autodesk/aps/datamanagement/model/ItemAttributes.java

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
ItemAttributes.JSON_PROPERTY_RESERVED_TIME,
5252
ItemAttributes.JSON_PROPERTY_RESERVED_USER_ID,
5353
ItemAttributes.JSON_PROPERTY_RESERVED_USER_NAME,
54-
ItemAttributes.JSON_PROPERTY_EXTENSION
54+
ItemAttributes.JSON_PROPERTY_EXTENSION,
55+
ItemAttributes.JSON_PROPERTY_PATH_IN_PROJECT
5556
})
5657
@JsonTypeName("ItemAttributes")
5758
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -96,6 +97,9 @@ public class ItemAttributes {
9697
public static final String JSON_PROPERTY_EXTENSION = "extension";
9798
private ItemExtensionWithSchemaLink extension;
9899

100+
public static final String JSON_PROPERTY_PATH_IN_PROJECT = "pathInProject";
101+
private String pathInProject;
102+
99103
public ItemAttributes displayName(String displayName) {
100104

101105
this.displayName = displayName;
@@ -435,6 +439,31 @@ public ItemExtensionWithSchemaLink getExtension() {
435439
@JsonInclude(value = JsonInclude.Include.ALWAYS)
436440
public void setExtension(ItemExtensionWithSchemaLink extension) {
437441
this.extension = extension;
442+
}
443+
444+
public ItemAttributes pathInProject(String pathInProject) {
445+
446+
this.pathInProject = pathInProject;
447+
return this;
448+
}
449+
450+
/**
451+
* The relative path of the item starting from the root folder of the project.
452+
*
453+
* @return pathInProject
454+
**/
455+
@Schema(required = true, description = "The relative path of the item starting from the root folder of the project.")
456+
@JsonProperty(JSON_PROPERTY_PATH_IN_PROJECT)
457+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
458+
459+
public String getPathInProject() {
460+
return pathInProject;
461+
}
462+
463+
@JsonProperty(JSON_PROPERTY_PATH_IN_PROJECT)
464+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
465+
public void setPathInProject(String pathInProject) {
466+
this.pathInProject = pathInProject;
438467
}
439468

440469
@Override
@@ -458,13 +487,14 @@ public boolean equals(Object o) {
458487
Objects.equals(this.reservedTime, itemAttributes.reservedTime) &&
459488
Objects.equals(this.reservedUserId, itemAttributes.reservedUserId) &&
460489
Objects.equals(this.reservedUserName, itemAttributes.reservedUserName) &&
461-
Objects.equals(this.extension, itemAttributes.extension);
490+
Objects.equals(this.extension, itemAttributes.extension) &&
491+
Objects.equals(this.pathInProject, itemAttributes.pathInProject);
462492
}
463493

464494
@Override
465495
public int hashCode() {
466496
return Objects.hash(displayName, createTime, createUserId, createUserName, lastModifiedTime, lastModifiedUserId,
467-
lastModifiedUserName, hidden, reserved, reservedTime, reservedUserId, reservedUserName, extension);
497+
lastModifiedUserName, hidden, reserved, reservedTime, reservedUserId, reservedUserName, extension, pathInProject);
468498
}
469499

470500
@Override
@@ -484,6 +514,7 @@ public String toString() {
484514
sb.append(" reservedUserId: ").append(toIndentedString(reservedUserId)).append("\n");
485515
sb.append(" reservedUserName: ").append(toIndentedString(reservedUserName)).append("\n");
486516
sb.append(" extension: ").append(toIndentedString(extension)).append("\n");
517+
sb.append(" pathInProject: ").append(toIndentedString(pathInProject)).append("\n");
487518
sb.append("}");
488519
return sb.toString();
489520
}

0 commit comments

Comments
 (0)