Skip to content

Commit b114c22

Browse files
authored
EPMRPP-111517 || Refactor OwnedResource class to include 'locked' (#26)
1 parent 1b70666 commit b114c22

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main/java/com/epam/ta/reportportal/ws/reporting/OwnedResource.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@
2525
import jakarta.validation.constraints.Size;
2626
import lombok.Getter;
2727
import lombok.Setter;
28+
import lombok.ToString;
2829

2930
/**
30-
* Base entity for sharable resources. This resource should contains owner in response.
31+
* Base entity for sharable resources. This resource should contain owner in response.
3132
*
3233
* @author Aliaksei_Makayed
3334
*/
3435
@Setter
3536
@Getter
3637
@JsonInclude(Include.NON_NULL)
38+
@ToString
3739
public class OwnedResource {
3840

3941
@JsonProperty(value = "owner")
@@ -42,10 +44,7 @@ public class OwnedResource {
4244
@Size(min = MIN_DESCRIPTION, max = MAX_ENTITY_DESCRIPTION)
4345
private String description;
4446

45-
@Override
46-
public String toString() {
47-
return "OwnedResource{" + "owner='" + owner + '\''
48-
+ ", description='" + description + '\''
49-
+ '}';
50-
}
47+
@JsonProperty(value = "locked")
48+
private boolean locked;
49+
5150
}

0 commit comments

Comments
 (0)