• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullPermissionsField.java
1
package com.box.sdkgen.schemas.folderfull;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonFilter;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
@JsonFilter("nullablePropertyFilter")
9
public class FolderFullPermissionsField extends SerializableObject {
10

11
  /** Specifies if the current user can delete this item. */
12
  @JsonProperty("can_delete")
13
  protected final boolean canDelete;
14

15
  /** Specifies if the current user can download this item. */
16
  @JsonProperty("can_download")
17
  protected final boolean canDownload;
18

19
  /**
20
   * Specifies if the current user can invite new users to collaborate on this item, and if the user
21
   * can update the role of a user already collaborated on this item.
22
   */
23
  @JsonProperty("can_invite_collaborator")
24
  protected final boolean canInviteCollaborator;
25

26
  /** Specifies if the user can rename this item. */
27
  @JsonProperty("can_rename")
28
  protected final boolean canRename;
29

30
  /** Specifies if the user can change the access level of an existing shared link on this item. */
31
  @JsonProperty("can_set_share_access")
32
  protected final boolean canSetShareAccess;
33

34
  /** Specifies if the user can create a shared link for this item. */
35
  @JsonProperty("can_share")
36
  protected final boolean canShare;
37

38
  /** Specifies if the user can upload into this folder. */
39
  @JsonProperty("can_upload")
40
  protected final boolean canUpload;
41

42
  public FolderFullPermissionsField(
43
      @JsonProperty("can_delete") boolean canDelete,
44
      @JsonProperty("can_download") boolean canDownload,
45
      @JsonProperty("can_invite_collaborator") boolean canInviteCollaborator,
46
      @JsonProperty("can_rename") boolean canRename,
47
      @JsonProperty("can_set_share_access") boolean canSetShareAccess,
48
      @JsonProperty("can_share") boolean canShare,
49
      @JsonProperty("can_upload") boolean canUpload) {
50
    super();
×
51
    this.canDelete = canDelete;
×
52
    this.canDownload = canDownload;
×
53
    this.canInviteCollaborator = canInviteCollaborator;
×
54
    this.canRename = canRename;
×
55
    this.canSetShareAccess = canSetShareAccess;
×
56
    this.canShare = canShare;
×
57
    this.canUpload = canUpload;
×
58
  }
×
59

60
  public boolean getCanDelete() {
61
    return canDelete;
×
62
  }
63

64
  public boolean getCanDownload() {
65
    return canDownload;
×
66
  }
67

68
  public boolean getCanInviteCollaborator() {
69
    return canInviteCollaborator;
×
70
  }
71

72
  public boolean getCanRename() {
73
    return canRename;
×
74
  }
75

76
  public boolean getCanSetShareAccess() {
77
    return canSetShareAccess;
×
78
  }
79

80
  public boolean getCanShare() {
81
    return canShare;
×
82
  }
83

84
  public boolean getCanUpload() {
85
    return canUpload;
×
86
  }
87

88
  @Override
89
  public boolean equals(Object o) {
90
    if (this == o) {
×
91
      return true;
×
92
    }
93
    if (o == null || getClass() != o.getClass()) {
×
94
      return false;
×
95
    }
96
    FolderFullPermissionsField casted = (FolderFullPermissionsField) o;
×
97
    return Objects.equals(canDelete, casted.canDelete)
×
98
        && Objects.equals(canDownload, casted.canDownload)
×
99
        && Objects.equals(canInviteCollaborator, casted.canInviteCollaborator)
×
100
        && Objects.equals(canRename, casted.canRename)
×
101
        && Objects.equals(canSetShareAccess, casted.canSetShareAccess)
×
102
        && Objects.equals(canShare, casted.canShare)
×
103
        && Objects.equals(canUpload, casted.canUpload);
×
104
  }
105

106
  @Override
107
  public int hashCode() {
108
    return Objects.hash(
×
109
        canDelete,
×
110
        canDownload,
×
111
        canInviteCollaborator,
×
112
        canRename,
×
113
        canSetShareAccess,
×
114
        canShare,
×
115
        canUpload);
×
116
  }
117

118
  @Override
119
  public String toString() {
120
    return "FolderFullPermissionsField{"
×
121
        + "canDelete='"
122
        + canDelete
123
        + '\''
124
        + ", "
125
        + "canDownload='"
126
        + canDownload
127
        + '\''
128
        + ", "
129
        + "canInviteCollaborator='"
130
        + canInviteCollaborator
131
        + '\''
132
        + ", "
133
        + "canRename='"
134
        + canRename
135
        + '\''
136
        + ", "
137
        + "canSetShareAccess='"
138
        + canSetShareAccess
139
        + '\''
140
        + ", "
141
        + "canShare='"
142
        + canShare
143
        + '\''
144
        + ", "
145
        + "canUpload='"
146
        + canUpload
147
        + '\''
148
        + "}";
149
  }
150
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc