• 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

76.92
/src/main/java/com/smartsheet/api/models/UserProfile.java
1
package com.smartsheet.api.models;
2

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

23
import java.util.List;
24

25
/**
26
 * A profile object that contains the basic fields that most profiles will contain.
27
 * @see <a href="http://help.smartsheet.com/customer/portal/articles/520100-user-types">User Types Help</a>
28
 */
29
public class UserProfile extends UserModel {
1✔
30

31
    /**
32
     * Represents the user's customer account
33
     */
34
    private Account account;
35

36
    /**
37
     * Represents groups this user belongs to
38
     */
39
    private List<Group> groups;
40

41
    /**
42
     * Represents the user's locale
43
     */
44
    private String locale;
45

46
    /**
47
     * Represents the user's time zone
48
     */
49
    private String timeZone;
50

51
    /**
52
     * Gets the account
53
     * @return the account
54
     */
55
    public Account getAccount() {
56
        return account;
1✔
57
    }
58

59
    /**
60
     * Sets the account
61
     * @param account the account
62
     */
63
    public UserProfile setAccount(Account account) {
64
        this.account = account;
1✔
65
        return this;
1✔
66
    }
67

68
    /**
69
     * Gets the groups list
70
     * @return the groups list
71
     */
72
    public List<Group> getGroups() {
73
        return groups;
×
74
    }
75

76
    /**
77
     * Sets the groups list
78
     * @param groups the list of groups
79
     */
80
    public UserProfile setGroups(List<Group> groups) {
81
        this.groups = groups;
×
82
        return this;
×
83
    }
84

85
    /**
86
     * Gets the locale
87
     * @return the locale
88
     */
89
    public String getLocale() {
90
        return locale;
1✔
91
    }
92

93
    /**
94
     * Sets the locale
95
     * @param locale the locale
96
     */
97
    public UserProfile setLocale(String locale) {
98
        this.locale = locale;
1✔
99
        return this;
1✔
100
    }
101

102
    /**
103
     * Gets the time zone
104
     * @return the time zone
105
     */
106
    public String getTimeZone() {
107
        return timeZone;
1✔
108
    }
109

110
    /**
111
     * Sets the time zone
112
     * @param timeZone the time zone
113
     */
114
    public UserProfile setTimeZone(String timeZone) {
115
        this.timeZone = timeZone;
1✔
116
        return this;
1✔
117
    }
118
}
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