Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
ItemAttributes.JSON_PROPERTY_RESERVED_TIME,
ItemAttributes.JSON_PROPERTY_RESERVED_USER_ID,
ItemAttributes.JSON_PROPERTY_RESERVED_USER_NAME,
ItemAttributes.JSON_PROPERTY_EXTENSION
ItemAttributes.JSON_PROPERTY_EXTENSION,
ItemAttributes.JSON_PROPERTY_PATH_IN_PROJECT
})
@JsonTypeName("ItemAttributes")
@JsonIgnoreProperties(ignoreUnknown = true)
Expand Down Expand Up @@ -96,6 +97,9 @@ public class ItemAttributes {
public static final String JSON_PROPERTY_EXTENSION = "extension";
private ItemExtensionWithSchemaLink extension;

public static final String JSON_PROPERTY_PATH_IN_PROJECT = "pathInProject";
private String pathInProject;

public ItemAttributes displayName(String displayName) {

this.displayName = displayName;
Expand Down Expand Up @@ -437,6 +441,31 @@ public void setExtension(ItemExtensionWithSchemaLink extension) {
this.extension = extension;
}

public ItemAttributes pathInProject(String pathInProject) {

this.pathInProject = pathInProject;
return this;
}

/**
* The relative path of the item starting from the root folder of the project.
*
* @return pathInProject
**/
@Schema(required = true, description = "The relative path of the item starting from the root folder of the project.")
@JsonProperty(JSON_PROPERTY_PATH_IN_PROJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)

public String getPathInProject() {
return pathInProject;
}

@JsonProperty(JSON_PROPERTY_PATH_IN_PROJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPathInProject(String pathInProject) {
this.pathInProject = pathInProject;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -458,13 +487,14 @@ public boolean equals(Object o) {
Objects.equals(this.reservedTime, itemAttributes.reservedTime) &&
Objects.equals(this.reservedUserId, itemAttributes.reservedUserId) &&
Objects.equals(this.reservedUserName, itemAttributes.reservedUserName) &&
Objects.equals(this.extension, itemAttributes.extension);
Objects.equals(this.extension, itemAttributes.extension) &&
Objects.equals(this.pathInProject, itemAttributes.pathInProject);
}

@Override
public int hashCode() {
return Objects.hash(displayName, createTime, createUserId, createUserName, lastModifiedTime, lastModifiedUserId,
lastModifiedUserName, hidden, reserved, reservedTime, reservedUserId, reservedUserName, extension);
lastModifiedUserName, hidden, reserved, reservedTime, reservedUserId, reservedUserName, extension, pathInProject);
}

@Override
Expand All @@ -484,6 +514,7 @@ public String toString() {
sb.append(" reservedUserId: ").append(toIndentedString(reservedUserId)).append("\n");
sb.append(" reservedUserName: ").append(toIndentedString(reservedUserName)).append("\n");
sb.append(" extension: ").append(toIndentedString(extension)).append("\n");
sb.append(" pathInProject: ").append(toIndentedString(pathInProject)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down