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

smartsheet / smartsheet-java-sdk / #43

24 Aug 2023 10:26PM UTC coverage: 50.427% (-0.02%) from 50.442%
#43

push

github-actions

web-flow
Fix Checkstyle violations in api/models Classes (#57)

This will fix ~900 violations

189 of 189 new or added lines in 59 files covered. (100.0%)

3423 of 6788 relevant lines covered (50.43%)

0.5 hits per line

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

0.0
/src/main/java/com/smartsheet/api/models/Sight.java
1
package com.smartsheet.api.models;
2

3
import com.smartsheet.api.models.enums.AccessLevel;
4

5
import java.util.Date;
6
import java.util.List;
7

8
/*
9
 * #[license]
10
 * Smartsheet SDK for Java
11
 * %%
12
 * Copyright (C) 2023 Smartsheet
13
 * %%
14
 * Licensed under the Apache License, Version 2.0 (the "License");
15
 * you may not use this file except in compliance with the License.
16
 * You may obtain a copy of the License at
17
 *
18
 *      http://www.apache.org/licenses/LICENSE-2.0
19
 *
20
 * Unless required by applicable law or agreed to in writing, software
21
 * distributed under the License is distributed on an "AS IS" BASIS,
22
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
 * See the License for the specific language governing permissions and
24
 * limitations under the License.
25
 * %[license]
26
 */
27

28
public class Sight extends NamedModel<Long> {
×
29

30
    /**
31
     * Number of columns that the Sight contains
32
     */
33
    private Integer columnCount;
34

35
    /**
36
     * Array of Widget objects
37
     */
38
    private List<Widget> widgets;
39

40
    /**
41
     * Indicates whether the User has marked the Sight as a favorite
42
     */
43
    private Boolean favorite;
44

45
    /**
46
     * User's permissions on the Sight.
47
     */
48
    private AccessLevel accessLevel;
49

50
    /**
51
     * URL that represents a direct link to the Sight
52
     */
53
    private String permalink;
54

55
    /**
56
     * Time of creation
57
     */
58
    private Date createdAt;
59

60
    /**
61
     * Time last modified
62
     */
63
    private Date modifiedAt;
64

65
    /**
66
     * Represents the source of the sheet.
67
     */
68
    private Source source;
69

70
    /**
71
     * A workspace object, limited to only Id and Name
72
     */
73
    private Workspace workspace;
74

75
    /**
76
     * The background color of the Sight
77
     */
78
    private String backgroundColor;
79

80
    /**
81
     * Provide an 'override' of setName (returns Sight not NamedModel)
82
     *
83
     * @param name the new name
84
     */
85
    public Sight setName(String name) {
86
        super.setName(name);
×
87
        return this;
×
88
    }
89

90
    /**
91
     * Get the number of columns that the Sight contains
92
     *
93
     * @return columnCount
94
     */
95
    public Integer getColumnCount() {
96
        return columnCount;
×
97
    }
98

99
    /**
100
     * Set the number of columns that the Sight contains
101
     */
102
    public Sight setColumnCount(Integer columnCount) {
103
        this.columnCount = columnCount;
×
104
        return this;
×
105
    }
106

107
    /**
108
     * Get the array of Sight widgets
109
     *
110
     * @return array of widgets
111
     */
112
    public List<Widget> getWidgets() {
113
        return widgets;
×
114
    }
115

116
    /**
117
     * Set the array of Sight widgets
118
     */
119
    public Sight setWidgets(List<Widget> widgets) {
120
        this.widgets = widgets;
×
121
        return this;
×
122
    }
123

124
    /**
125
     * Get flag indicating whether the user has marked the Sight as a favorite
126
     *
127
     * @return favorite flag
128
     */
129
    public Boolean getFavorite() {
130
        return favorite;
×
131
    }
132

133
    /**
134
     * Set flag indicating whether the user has marked the Sight as a favorite
135
     */
136
    public Sight setFavorite(Boolean favorite) {
137
        this.favorite = favorite;
×
138
        return this;
×
139
    }
140

141
    /**
142
     * User's permissions on the Sight (OWNDER, ADMIN, VIEWER)
143
     *
144
     * @return accessLevel
145
     */
146
    public AccessLevel getAccessLevel() {
147
        return accessLevel;
×
148
    }
149

150
    /**
151
     * Set User's permissions on the Sight
152
     */
153
    public Sight setAccessLevel(AccessLevel accessLevel) {
154
        this.accessLevel = accessLevel;
×
155
        return this;
×
156
    }
157

158
    /**
159
     * URL that represents a direct link to the Sight
160
     *
161
     * @return permalink
162
     */
163
    public String getPermalink() {
164
        return permalink;
×
165
    }
166

167
    /**
168
     * Set URL pointing to a direct link to the Sight
169
     */
170
    public Sight setPermalink(String permalink) {
171
        this.permalink = permalink;
×
172
        return this;
×
173
    }
174

175
    /**
176
     * Get time of Sight creation
177
     *
178
     * @return createdAt (Date)
179
     */
180
    public Date getCreatedAt() {
181
        return createdAt;
×
182
    }
183

184
    /**
185
     * Set time of Sight creation
186
     */
187
    public Sight setCreatedAt(Date createdAt) {
188
        this.createdAt = createdAt;
×
189
        return this;
×
190
    }
191

192
    /**
193
     * Get time of last modification
194
     *
195
     * @return modifiedAt (Date)
196
     */
197
    public Date getModifiedAt() {
198
        return modifiedAt;
×
199
    }
200

201
    /**
202
     * Set time of last modification
203
     */
204
    public Sight setModifiedAt(Date modifiedAt) {
205
        this.modifiedAt = modifiedAt;
×
206
        return this;
×
207
    }
208

209
    /**
210
     * Gets the source.
211
     *
212
     * @return the source
213
     */
214
    public Source getSource() {
215
        return source;
×
216
    }
217

218
    /**
219
     * Sets the source.
220
     *
221
     * @param source the source
222
     */
223
    public Sight setSource(Source source) {
224
        this.source = source;
×
225
        return this;
×
226
    }
227

228
    /**
229
     * A workspace object limited to only id and name
230
     *
231
     * @return workspace
232
     */
233
    public Workspace getWorkspace() {
234
        return workspace;
×
235
    }
236

237
    /**
238
     * Set workspace object for this Sight (limited to only id and name)
239
     */
240
    public Sight setWorkspace(Workspace workspace) {
241
        this.workspace = workspace;
×
242
        return this;
×
243
    }
244

245
    /**
246
     * Get the background color of the Sight
247
     *
248
     * @return the background color
249
     */
250
    public String getBackgroundColor() {
251
        return backgroundColor;
×
252
    }
253

254
    /**
255
     * Set the background color of the Sight
256
     *
257
     * @param backgroundColor the background color
258
     */
259
    public Sight setBackgroundColor(String backgroundColor) {
260
        this.backgroundColor = backgroundColor;
×
261
        return this;
×
262
    }
263
}
264

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