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

box / box-java-sdk / #6090

21 Jan 2026 06:13PM UTC coverage: 12.891% (-0.02%) from 12.907%
#6090

Pull #1687

github

web-flow
Merge 7da886642 into 04f02f3a1
Pull Request #1687: fix(boxsdkgen): add missing tag to API resources (box/box-openapi#580)

0 of 90 new or added lines in 4 files covered. (0.0%)

164 existing lines in 4 files now uncovered.

8374 of 64960 relevant lines covered (12.89%)

0.13 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.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
@JsonFilter("nullablePropertyFilter")
10
public class FileFullPermissionsField extends SerializableObject {
11

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

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

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

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

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

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

39
  /** Specifies if the user can place annotations on this file. */
40
  @JsonProperty("can_annotate")
41
  protected final boolean canAnnotate;
42

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

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

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

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

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

63
  /** Specifies if the user can apply a watermark to this file. */
64
  @JsonProperty("can_apply_watermark")
65
  protected Boolean canApplyWatermark;
66

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

95
  protected FileFullPermissionsField(Builder builder) {
NEW
UNCOV
96
    super();
×
NEW
UNCOV
97
    this.canDelete = builder.canDelete;
×
NEW
UNCOV
98
    this.canDownload = builder.canDownload;
×
NEW
99
    this.canInviteCollaborator = builder.canInviteCollaborator;
×
NEW
UNCOV
100
    this.canRename = builder.canRename;
×
NEW
UNCOV
101
    this.canSetShareAccess = builder.canSetShareAccess;
×
NEW
UNCOV
102
    this.canShare = builder.canShare;
×
NEW
103
    this.canAnnotate = builder.canAnnotate;
×
NEW
UNCOV
104
    this.canComment = builder.canComment;
×
NEW
UNCOV
105
    this.canPreview = builder.canPreview;
×
NEW
UNCOV
106
    this.canUpload = builder.canUpload;
×
NEW
107
    this.canViewAnnotationsAll = builder.canViewAnnotationsAll;
×
NEW
UNCOV
108
    this.canViewAnnotationsSelf = builder.canViewAnnotationsSelf;
×
NEW
UNCOV
109
    this.canApplyWatermark = builder.canApplyWatermark;
×
NEW
UNCOV
110
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
111
  }
×
112

113
  public boolean getCanDelete() {
UNCOV
114
    return canDelete;
×
115
  }
116

117
  public boolean getCanDownload() {
UNCOV
118
    return canDownload;
×
119
  }
120

121
  public boolean getCanInviteCollaborator() {
UNCOV
122
    return canInviteCollaborator;
×
123
  }
124

125
  public boolean getCanRename() {
UNCOV
126
    return canRename;
×
127
  }
128

129
  public boolean getCanSetShareAccess() {
UNCOV
130
    return canSetShareAccess;
×
131
  }
132

133
  public boolean getCanShare() {
UNCOV
134
    return canShare;
×
135
  }
136

137
  public boolean getCanAnnotate() {
UNCOV
138
    return canAnnotate;
×
139
  }
140

141
  public boolean getCanComment() {
UNCOV
142
    return canComment;
×
143
  }
144

145
  public boolean getCanPreview() {
146
    return canPreview;
×
147
  }
148

149
  public boolean getCanUpload() {
150
    return canUpload;
×
151
  }
152

153
  public boolean getCanViewAnnotationsAll() {
154
    return canViewAnnotationsAll;
×
155
  }
156

157
  public boolean getCanViewAnnotationsSelf() {
158
    return canViewAnnotationsSelf;
×
159
  }
160

161
  public Boolean getCanApplyWatermark() {
NEW
UNCOV
162
    return canApplyWatermark;
×
163
  }
164

165
  @Override
166
  public boolean equals(Object o) {
167
    if (this == o) {
×
168
      return true;
×
169
    }
170
    if (o == null || getClass() != o.getClass()) {
×
171
      return false;
×
172
    }
173
    FileFullPermissionsField casted = (FileFullPermissionsField) o;
×
174
    return Objects.equals(canDelete, casted.canDelete)
×
175
        && Objects.equals(canDownload, casted.canDownload)
×
UNCOV
176
        && Objects.equals(canInviteCollaborator, casted.canInviteCollaborator)
×
UNCOV
177
        && Objects.equals(canRename, casted.canRename)
×
UNCOV
178
        && Objects.equals(canSetShareAccess, casted.canSetShareAccess)
×
UNCOV
179
        && Objects.equals(canShare, casted.canShare)
×
180
        && Objects.equals(canAnnotate, casted.canAnnotate)
×
UNCOV
181
        && Objects.equals(canComment, casted.canComment)
×
UNCOV
182
        && Objects.equals(canPreview, casted.canPreview)
×
UNCOV
183
        && Objects.equals(canUpload, casted.canUpload)
×
UNCOV
184
        && Objects.equals(canViewAnnotationsAll, casted.canViewAnnotationsAll)
×
NEW
UNCOV
185
        && Objects.equals(canViewAnnotationsSelf, casted.canViewAnnotationsSelf)
×
NEW
UNCOV
186
        && Objects.equals(canApplyWatermark, casted.canApplyWatermark);
×
187
  }
188

189
  @Override
190
  public int hashCode() {
UNCOV
191
    return Objects.hash(
×
UNCOV
192
        canDelete,
×
UNCOV
193
        canDownload,
×
UNCOV
194
        canInviteCollaborator,
×
UNCOV
195
        canRename,
×
UNCOV
196
        canSetShareAccess,
×
UNCOV
197
        canShare,
×
UNCOV
198
        canAnnotate,
×
UNCOV
199
        canComment,
×
UNCOV
200
        canPreview,
×
UNCOV
201
        canUpload,
×
UNCOV
202
        canViewAnnotationsAll,
×
NEW
UNCOV
203
        canViewAnnotationsSelf,
×
204
        canApplyWatermark);
205
  }
206

207
  @Override
208
  public String toString() {
UNCOV
209
    return "FileFullPermissionsField{"
×
210
        + "canDelete='"
211
        + canDelete
212
        + '\''
213
        + ", "
214
        + "canDownload='"
215
        + canDownload
216
        + '\''
217
        + ", "
218
        + "canInviteCollaborator='"
219
        + canInviteCollaborator
220
        + '\''
221
        + ", "
222
        + "canRename='"
223
        + canRename
224
        + '\''
225
        + ", "
226
        + "canSetShareAccess='"
227
        + canSetShareAccess
228
        + '\''
229
        + ", "
230
        + "canShare='"
231
        + canShare
232
        + '\''
233
        + ", "
234
        + "canAnnotate='"
235
        + canAnnotate
236
        + '\''
237
        + ", "
238
        + "canComment='"
239
        + canComment
240
        + '\''
241
        + ", "
242
        + "canPreview='"
243
        + canPreview
244
        + '\''
245
        + ", "
246
        + "canUpload='"
247
        + canUpload
248
        + '\''
249
        + ", "
250
        + "canViewAnnotationsAll='"
251
        + canViewAnnotationsAll
252
        + '\''
253
        + ", "
254
        + "canViewAnnotationsSelf='"
255
        + canViewAnnotationsSelf
256
        + '\''
257
        + ", "
258
        + "canApplyWatermark='"
259
        + canApplyWatermark
260
        + '\''
261
        + "}";
262
  }
263

264
  public static class Builder extends NullableFieldTracker {
265

266
    protected final boolean canDelete;
267

268
    protected final boolean canDownload;
269

270
    protected final boolean canInviteCollaborator;
271

272
    protected final boolean canRename;
273

274
    protected final boolean canSetShareAccess;
275

276
    protected final boolean canShare;
277

278
    protected final boolean canAnnotate;
279

280
    protected final boolean canComment;
281

282
    protected final boolean canPreview;
283

284
    protected final boolean canUpload;
285

286
    protected final boolean canViewAnnotationsAll;
287

288
    protected final boolean canViewAnnotationsSelf;
289

290
    protected Boolean canApplyWatermark;
291

292
    public Builder(
293
        boolean canDelete,
294
        boolean canDownload,
295
        boolean canInviteCollaborator,
296
        boolean canRename,
297
        boolean canSetShareAccess,
298
        boolean canShare,
299
        boolean canAnnotate,
300
        boolean canComment,
301
        boolean canPreview,
302
        boolean canUpload,
303
        boolean canViewAnnotationsAll,
304
        boolean canViewAnnotationsSelf) {
NEW
UNCOV
305
      super();
×
NEW
UNCOV
306
      this.canDelete = canDelete;
×
NEW
UNCOV
307
      this.canDownload = canDownload;
×
NEW
UNCOV
308
      this.canInviteCollaborator = canInviteCollaborator;
×
NEW
UNCOV
309
      this.canRename = canRename;
×
NEW
UNCOV
310
      this.canSetShareAccess = canSetShareAccess;
×
NEW
UNCOV
311
      this.canShare = canShare;
×
NEW
UNCOV
312
      this.canAnnotate = canAnnotate;
×
NEW
UNCOV
313
      this.canComment = canComment;
×
NEW
UNCOV
314
      this.canPreview = canPreview;
×
NEW
UNCOV
315
      this.canUpload = canUpload;
×
NEW
UNCOV
316
      this.canViewAnnotationsAll = canViewAnnotationsAll;
×
NEW
UNCOV
317
      this.canViewAnnotationsSelf = canViewAnnotationsSelf;
×
NEW
UNCOV
318
    }
×
319

320
    public Builder canApplyWatermark(Boolean canApplyWatermark) {
NEW
UNCOV
321
      this.canApplyWatermark = canApplyWatermark;
×
NEW
UNCOV
322
      return this;
×
323
    }
324

325
    public FileFullPermissionsField build() {
NEW
UNCOV
326
      return new FileFullPermissionsField(this);
×
327
    }
328
  }
329
}
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