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

smartsheet / smartsheet-java-sdk / #45

29 Aug 2023 04:23PM UTC coverage: 50.55%. Remained the same
#45

push

github-actions

web-flow
Make the license header consistent and add checkstyle rule (#63)

* Make the license header consistent and add checkstyle rule

* Make the file license come before the package

* Remove Smartsheet SDK for Java from every file

3448 of 6821 relevant lines covered (50.55%)

0.51 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
/*
2
 * Copyright (C) 2023 Smartsheet
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.smartsheet.api.models;
18

19
import com.smartsheet.api.models.enums.AccessLevel;
20

21
import java.util.Date;
22
import java.util.List;
23

24
public class Sight extends NamedModel<Long> {
×
25

26
    /**
27
     * Number of columns that the Sight contains
28
     */
29
    private Integer columnCount;
30

31
    /**
32
     * Array of Widget objects
33
     */
34
    private List<Widget> widgets;
35

36
    /**
37
     * Indicates whether the User has marked the Sight as a favorite
38
     */
39
    private Boolean favorite;
40

41
    /**
42
     * User's permissions on the Sight.
43
     */
44
    private AccessLevel accessLevel;
45

46
    /**
47
     * URL that represents a direct link to the Sight
48
     */
49
    private String permalink;
50

51
    /**
52
     * Time of creation
53
     */
54
    private Date createdAt;
55

56
    /**
57
     * Time last modified
58
     */
59
    private Date modifiedAt;
60

61
    /**
62
     * Represents the source of the sheet.
63
     */
64
    private Source source;
65

66
    /**
67
     * A workspace object, limited to only Id and Name
68
     */
69
    private Workspace workspace;
70

71
    /**
72
     * The background color of the Sight
73
     */
74
    private String backgroundColor;
75

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

86
    /**
87
     * Get the number of columns that the Sight contains
88
     *
89
     * @return columnCount
90
     */
91
    public Integer getColumnCount() {
92
        return columnCount;
×
93
    }
94

95
    /**
96
     * Set the number of columns that the Sight contains
97
     */
98
    public Sight setColumnCount(Integer columnCount) {
99
        this.columnCount = columnCount;
×
100
        return this;
×
101
    }
102

103
    /**
104
     * Get the array of Sight widgets
105
     *
106
     * @return array of widgets
107
     */
108
    public List<Widget> getWidgets() {
109
        return widgets;
×
110
    }
111

112
    /**
113
     * Set the array of Sight widgets
114
     */
115
    public Sight setWidgets(List<Widget> widgets) {
116
        this.widgets = widgets;
×
117
        return this;
×
118
    }
119

120
    /**
121
     * Get flag indicating whether the user has marked the Sight as a favorite
122
     *
123
     * @return favorite flag
124
     */
125
    public Boolean getFavorite() {
126
        return favorite;
×
127
    }
128

129
    /**
130
     * Set flag indicating whether the user has marked the Sight as a favorite
131
     */
132
    public Sight setFavorite(Boolean favorite) {
133
        this.favorite = favorite;
×
134
        return this;
×
135
    }
136

137
    /**
138
     * User's permissions on the Sight (OWNDER, ADMIN, VIEWER)
139
     *
140
     * @return accessLevel
141
     */
142
    public AccessLevel getAccessLevel() {
143
        return accessLevel;
×
144
    }
145

146
    /**
147
     * Set User's permissions on the Sight
148
     */
149
    public Sight setAccessLevel(AccessLevel accessLevel) {
150
        this.accessLevel = accessLevel;
×
151
        return this;
×
152
    }
153

154
    /**
155
     * URL that represents a direct link to the Sight
156
     *
157
     * @return permalink
158
     */
159
    public String getPermalink() {
160
        return permalink;
×
161
    }
162

163
    /**
164
     * Set URL pointing to a direct link to the Sight
165
     */
166
    public Sight setPermalink(String permalink) {
167
        this.permalink = permalink;
×
168
        return this;
×
169
    }
170

171
    /**
172
     * Get time of Sight creation
173
     *
174
     * @return createdAt (Date)
175
     */
176
    public Date getCreatedAt() {
177
        return createdAt;
×
178
    }
179

180
    /**
181
     * Set time of Sight creation
182
     */
183
    public Sight setCreatedAt(Date createdAt) {
184
        this.createdAt = createdAt;
×
185
        return this;
×
186
    }
187

188
    /**
189
     * Get time of last modification
190
     *
191
     * @return modifiedAt (Date)
192
     */
193
    public Date getModifiedAt() {
194
        return modifiedAt;
×
195
    }
196

197
    /**
198
     * Set time of last modification
199
     */
200
    public Sight setModifiedAt(Date modifiedAt) {
201
        this.modifiedAt = modifiedAt;
×
202
        return this;
×
203
    }
204

205
    /**
206
     * Gets the source.
207
     *
208
     * @return the source
209
     */
210
    public Source getSource() {
211
        return source;
×
212
    }
213

214
    /**
215
     * Sets the source.
216
     *
217
     * @param source the source
218
     */
219
    public Sight setSource(Source source) {
220
        this.source = source;
×
221
        return this;
×
222
    }
223

224
    /**
225
     * A workspace object limited to only id and name
226
     *
227
     * @return workspace
228
     */
229
    public Workspace getWorkspace() {
230
        return workspace;
×
231
    }
232

233
    /**
234
     * Set workspace object for this Sight (limited to only id and name)
235
     */
236
    public Sight setWorkspace(Workspace workspace) {
237
        this.workspace = workspace;
×
238
        return this;
×
239
    }
240

241
    /**
242
     * Get the background color of the Sight
243
     *
244
     * @return the background color
245
     */
246
    public String getBackgroundColor() {
247
        return backgroundColor;
×
248
    }
249

250
    /**
251
     * Set the background color of the Sight
252
     *
253
     * @param backgroundColor the background color
254
     */
255
    public Sight setBackgroundColor(String backgroundColor) {
256
        this.backgroundColor = backgroundColor;
×
257
        return this;
×
258
    }
259
}
260

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

© 2025 Coveralls, Inc