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

box / box-java-sdk / #6093

23 Jan 2026 12:07PM UTC coverage: 12.883% (-0.02%) from 12.907%
#6093

push

github

web-flow
feat(boxsdkgen): Add watermarking permissions and sources information (box/box-openapi#579) (#1686)

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

16 existing lines in 9 files now uncovered.

8368 of 64953 relevant lines covered (12.88%)

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/folderfull/FolderFullPermissionsField.java
1
package com.box.sdkgen.schemas.folderfull;
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 FolderFullPermissionsField 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 upload into this folder. */
40
  @JsonProperty("can_upload")
41
  protected final boolean canUpload;
42

43
  /** Specifies if the user can apply a watermark to this folder and its contents. */
44
  @JsonProperty("can_apply_watermark")
45
  protected Boolean canApplyWatermark;
46

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

65
  protected FolderFullPermissionsField(Builder builder) {
NEW
66
    super();
×
NEW
67
    this.canDelete = builder.canDelete;
×
NEW
68
    this.canDownload = builder.canDownload;
×
NEW
69
    this.canInviteCollaborator = builder.canInviteCollaborator;
×
NEW
70
    this.canRename = builder.canRename;
×
NEW
71
    this.canSetShareAccess = builder.canSetShareAccess;
×
NEW
72
    this.canShare = builder.canShare;
×
NEW
73
    this.canUpload = builder.canUpload;
×
NEW
74
    this.canApplyWatermark = builder.canApplyWatermark;
×
NEW
75
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
76
  }
×
77

78
  public boolean getCanDelete() {
79
    return canDelete;
×
80
  }
81

82
  public boolean getCanDownload() {
83
    return canDownload;
×
84
  }
85

86
  public boolean getCanInviteCollaborator() {
87
    return canInviteCollaborator;
×
88
  }
89

90
  public boolean getCanRename() {
91
    return canRename;
×
92
  }
93

94
  public boolean getCanSetShareAccess() {
95
    return canSetShareAccess;
×
96
  }
97

98
  public boolean getCanShare() {
99
    return canShare;
×
100
  }
101

102
  public boolean getCanUpload() {
103
    return canUpload;
×
104
  }
105

106
  public Boolean getCanApplyWatermark() {
NEW
107
    return canApplyWatermark;
×
108
  }
109

110
  @Override
111
  public boolean equals(Object o) {
112
    if (this == o) {
×
113
      return true;
×
114
    }
115
    if (o == null || getClass() != o.getClass()) {
×
116
      return false;
×
117
    }
118
    FolderFullPermissionsField casted = (FolderFullPermissionsField) o;
×
119
    return Objects.equals(canDelete, casted.canDelete)
×
120
        && Objects.equals(canDownload, casted.canDownload)
×
121
        && Objects.equals(canInviteCollaborator, casted.canInviteCollaborator)
×
122
        && Objects.equals(canRename, casted.canRename)
×
123
        && Objects.equals(canSetShareAccess, casted.canSetShareAccess)
×
124
        && Objects.equals(canShare, casted.canShare)
×
NEW
125
        && Objects.equals(canUpload, casted.canUpload)
×
NEW
126
        && Objects.equals(canApplyWatermark, casted.canApplyWatermark);
×
127
  }
128

129
  @Override
130
  public int hashCode() {
131
    return Objects.hash(
×
132
        canDelete,
×
133
        canDownload,
×
134
        canInviteCollaborator,
×
135
        canRename,
×
136
        canSetShareAccess,
×
137
        canShare,
×
NEW
138
        canUpload,
×
139
        canApplyWatermark);
140
  }
141

142
  @Override
143
  public String toString() {
144
    return "FolderFullPermissionsField{"
×
145
        + "canDelete='"
146
        + canDelete
147
        + '\''
148
        + ", "
149
        + "canDownload='"
150
        + canDownload
151
        + '\''
152
        + ", "
153
        + "canInviteCollaborator='"
154
        + canInviteCollaborator
155
        + '\''
156
        + ", "
157
        + "canRename='"
158
        + canRename
159
        + '\''
160
        + ", "
161
        + "canSetShareAccess='"
162
        + canSetShareAccess
163
        + '\''
164
        + ", "
165
        + "canShare='"
166
        + canShare
167
        + '\''
168
        + ", "
169
        + "canUpload='"
170
        + canUpload
171
        + '\''
172
        + ", "
173
        + "canApplyWatermark='"
174
        + canApplyWatermark
175
        + '\''
176
        + "}";
177
  }
178

179
  public static class Builder extends NullableFieldTracker {
180

181
    protected final boolean canDelete;
182

183
    protected final boolean canDownload;
184

185
    protected final boolean canInviteCollaborator;
186

187
    protected final boolean canRename;
188

189
    protected final boolean canSetShareAccess;
190

191
    protected final boolean canShare;
192

193
    protected final boolean canUpload;
194

195
    protected Boolean canApplyWatermark;
196

197
    public Builder(
198
        boolean canDelete,
199
        boolean canDownload,
200
        boolean canInviteCollaborator,
201
        boolean canRename,
202
        boolean canSetShareAccess,
203
        boolean canShare,
204
        boolean canUpload) {
NEW
205
      super();
×
NEW
206
      this.canDelete = canDelete;
×
NEW
207
      this.canDownload = canDownload;
×
NEW
208
      this.canInviteCollaborator = canInviteCollaborator;
×
NEW
209
      this.canRename = canRename;
×
NEW
210
      this.canSetShareAccess = canSetShareAccess;
×
NEW
211
      this.canShare = canShare;
×
NEW
212
      this.canUpload = canUpload;
×
NEW
213
    }
×
214

215
    public Builder canApplyWatermark(Boolean canApplyWatermark) {
NEW
216
      this.canApplyWatermark = canApplyWatermark;
×
NEW
217
      return this;
×
218
    }
219

220
    public FolderFullPermissionsField build() {
NEW
221
      return new FolderFullPermissionsField(this);
×
222
    }
223
  }
224
}
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