• 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/filefull/FileFullPermissionsField.java
1
package com.box.sdkgen.schemas.filefull;
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 FileFullPermissionsField 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 place annotations on this file. */
39
  @JsonProperty("can_annotate")
40
  protected final boolean canAnnotate;
41

42
  /** Specifies if the user can place comments on this file. */
43
  @JsonProperty("can_comment")
44
  protected final boolean canComment;
45

46
  /** Specifies if the user can preview this file. */
47
  @JsonProperty("can_preview")
48
  protected final boolean canPreview;
49

50
  /** Specifies if the user can upload a new version of this file. */
51
  @JsonProperty("can_upload")
52
  protected final boolean canUpload;
53

54
  /** Specifies if the user view all annotations placed on this file. */
55
  @JsonProperty("can_view_annotations_all")
56
  protected final boolean canViewAnnotationsAll;
57

58
  /** Specifies if the user view annotations placed by themselves on this file. */
59
  @JsonProperty("can_view_annotations_self")
60
  protected final boolean canViewAnnotationsSelf;
61

62
  public FileFullPermissionsField(
63
      @JsonProperty("can_delete") boolean canDelete,
64
      @JsonProperty("can_download") boolean canDownload,
65
      @JsonProperty("can_invite_collaborator") boolean canInviteCollaborator,
66
      @JsonProperty("can_rename") boolean canRename,
67
      @JsonProperty("can_set_share_access") boolean canSetShareAccess,
68
      @JsonProperty("can_share") boolean canShare,
69
      @JsonProperty("can_annotate") boolean canAnnotate,
70
      @JsonProperty("can_comment") boolean canComment,
71
      @JsonProperty("can_preview") boolean canPreview,
72
      @JsonProperty("can_upload") boolean canUpload,
73
      @JsonProperty("can_view_annotations_all") boolean canViewAnnotationsAll,
74
      @JsonProperty("can_view_annotations_self") boolean canViewAnnotationsSelf) {
75
    super();
×
76
    this.canDelete = canDelete;
×
77
    this.canDownload = canDownload;
×
78
    this.canInviteCollaborator = canInviteCollaborator;
×
79
    this.canRename = canRename;
×
80
    this.canSetShareAccess = canSetShareAccess;
×
81
    this.canShare = canShare;
×
82
    this.canAnnotate = canAnnotate;
×
83
    this.canComment = canComment;
×
84
    this.canPreview = canPreview;
×
85
    this.canUpload = canUpload;
×
86
    this.canViewAnnotationsAll = canViewAnnotationsAll;
×
87
    this.canViewAnnotationsSelf = canViewAnnotationsSelf;
×
88
  }
×
89

90
  public boolean getCanDelete() {
91
    return canDelete;
×
92
  }
93

94
  public boolean getCanDownload() {
95
    return canDownload;
×
96
  }
97

98
  public boolean getCanInviteCollaborator() {
99
    return canInviteCollaborator;
×
100
  }
101

102
  public boolean getCanRename() {
103
    return canRename;
×
104
  }
105

106
  public boolean getCanSetShareAccess() {
107
    return canSetShareAccess;
×
108
  }
109

110
  public boolean getCanShare() {
111
    return canShare;
×
112
  }
113

114
  public boolean getCanAnnotate() {
115
    return canAnnotate;
×
116
  }
117

118
  public boolean getCanComment() {
119
    return canComment;
×
120
  }
121

122
  public boolean getCanPreview() {
123
    return canPreview;
×
124
  }
125

126
  public boolean getCanUpload() {
127
    return canUpload;
×
128
  }
129

130
  public boolean getCanViewAnnotationsAll() {
131
    return canViewAnnotationsAll;
×
132
  }
133

134
  public boolean getCanViewAnnotationsSelf() {
135
    return canViewAnnotationsSelf;
×
136
  }
137

138
  @Override
139
  public boolean equals(Object o) {
140
    if (this == o) {
×
141
      return true;
×
142
    }
143
    if (o == null || getClass() != o.getClass()) {
×
144
      return false;
×
145
    }
146
    FileFullPermissionsField casted = (FileFullPermissionsField) o;
×
147
    return Objects.equals(canDelete, casted.canDelete)
×
148
        && Objects.equals(canDownload, casted.canDownload)
×
149
        && Objects.equals(canInviteCollaborator, casted.canInviteCollaborator)
×
150
        && Objects.equals(canRename, casted.canRename)
×
151
        && Objects.equals(canSetShareAccess, casted.canSetShareAccess)
×
152
        && Objects.equals(canShare, casted.canShare)
×
153
        && Objects.equals(canAnnotate, casted.canAnnotate)
×
154
        && Objects.equals(canComment, casted.canComment)
×
155
        && Objects.equals(canPreview, casted.canPreview)
×
156
        && Objects.equals(canUpload, casted.canUpload)
×
157
        && Objects.equals(canViewAnnotationsAll, casted.canViewAnnotationsAll)
×
158
        && Objects.equals(canViewAnnotationsSelf, casted.canViewAnnotationsSelf);
×
159
  }
160

161
  @Override
162
  public int hashCode() {
163
    return Objects.hash(
×
164
        canDelete,
×
165
        canDownload,
×
166
        canInviteCollaborator,
×
167
        canRename,
×
168
        canSetShareAccess,
×
169
        canShare,
×
170
        canAnnotate,
×
171
        canComment,
×
172
        canPreview,
×
173
        canUpload,
×
174
        canViewAnnotationsAll,
×
175
        canViewAnnotationsSelf);
×
176
  }
177

178
  @Override
179
  public String toString() {
180
    return "FileFullPermissionsField{"
×
181
        + "canDelete='"
182
        + canDelete
183
        + '\''
184
        + ", "
185
        + "canDownload='"
186
        + canDownload
187
        + '\''
188
        + ", "
189
        + "canInviteCollaborator='"
190
        + canInviteCollaborator
191
        + '\''
192
        + ", "
193
        + "canRename='"
194
        + canRename
195
        + '\''
196
        + ", "
197
        + "canSetShareAccess='"
198
        + canSetShareAccess
199
        + '\''
200
        + ", "
201
        + "canShare='"
202
        + canShare
203
        + '\''
204
        + ", "
205
        + "canAnnotate='"
206
        + canAnnotate
207
        + '\''
208
        + ", "
209
        + "canComment='"
210
        + canComment
211
        + '\''
212
        + ", "
213
        + "canPreview='"
214
        + canPreview
215
        + '\''
216
        + ", "
217
        + "canUpload='"
218
        + canUpload
219
        + '\''
220
        + ", "
221
        + "canViewAnnotationsAll='"
222
        + canViewAnnotationsAll
223
        + '\''
224
        + ", "
225
        + "canViewAnnotationsSelf='"
226
        + canViewAnnotationsSelf
227
        + '\''
228
        + "}";
229
  }
230
}
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