• 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/SheetUserSettings.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
public class SheetUserSettings {
×
20

21
    /**
22
     * The ID of the filter currently applied to the sheet
23
     */
24
    private Long appliedSheetFilterId;
25

26
    /**
27
     * Identifies if the user has critical path enabled.
28
     */
29
    private Boolean criticalPathEnabled;
30

31
    /**
32
     * Identifies if the user has display summary tasks enabled.
33
     */
34
    private Boolean displaySummaryTasks;
35

36
    /**
37
     * Get the applied sheet filter ID
38
     *
39
     * @return the sheet filter ID
40
     */
41
    public Long getAppliedSheetFilterId() {
42
        return appliedSheetFilterId;
×
43
    }
44

45
    /**
46
     * Sets the applied sheet filter ID.
47
     *
48
     * @param appliedSheetFilterId the sheet filter ID
49
     */
50
    public SheetUserSettings setAppliedSheetFilterId(Long appliedSheetFilterId) {
51
        this.appliedSheetFilterId = appliedSheetFilterId;
×
52
        return this;
×
53
    }
54

55
    /**
56
     * True if the user has critical path enabled.
57
     *
58
     * @return criticalPathEnabled
59
     */
60
    public Boolean isCriticalPathEnabled() {
61
        return criticalPathEnabled;
×
62
    }
63

64
    /**
65
     * Sets the value for critical path enabled.
66
     *
67
     * @param criticalPathEnabled if the user has critical path enabled
68
     */
69
    public SheetUserSettings setCriticalPathEnabled(Boolean criticalPathEnabled) {
70
        this.criticalPathEnabled = criticalPathEnabled;
×
71
        return this;
×
72
    }
73

74
    /**
75
     * True if the user has display summary tasks enabled
76
     *
77
     * @return displaySummaryTasks
78
     */
79
    public Boolean isDisplaySummaryTasksEnabled() {
80
        return displaySummaryTasks;
×
81
    }
82

83
    /**
84
     * Sets the value for display summary tasks.
85
     */
86
    public SheetUserSettings setDisplaySummaryTasks(Boolean displaySummaryTasks) {
87
        this.displaySummaryTasks = displaySummaryTasks;
×
88
        return this;
×
89
    }
90

91
    /**
92
     * The Class AddUserSettingsBuilder.
93
     */
94
    public static class AddUserSettingsBuilder {
×
95
        /**
96
         * Identifies if the user has critical path enabled.
97
         */
98
        private Boolean criticalPathEnabled;
99

100
        /**
101
         * Identifies if the user has display summary tasks enabled.
102
         */
103
        private Boolean displaySummaryTasks;
104

105
        /**
106
         * True if the user has critical path enabled.
107
         *
108
         * @return criticalPathEnabled
109
         */
110
        public Boolean isCriticalPathEnabled() {
111
            return criticalPathEnabled;
×
112
        }
113

114
        /**
115
         * True if the user has display summary tasks enabled
116
         *
117
         * @return displaySummaryTasks;
118
         */
119
        public Boolean isDisplaySummaryTasksEnabled() {
120
            return displaySummaryTasks;
×
121
        }
122

123
        /**
124
         * Sets the value for critical path enabled.
125
         *
126
         * @param criticalPathEnabled if the user has critical path enabled
127
         * @return the builder
128
         */
129
        public AddUserSettingsBuilder setCriticalPathEnabled(Boolean criticalPathEnabled) {
130
            this.criticalPathEnabled = criticalPathEnabled;
×
131
            return this;
×
132
        }
133

134
        /**
135
         * Sets the value for display summary tasks.
136
         */
137
        public AddUserSettingsBuilder setDisplaySummaryTasks(Boolean displaySummaryTasks) {
138
            this.displaySummaryTasks = displaySummaryTasks;
×
139
            return this;
×
140
        }
141

142
        /**
143
         * Build a SheetUserSettings
144
         */
145
        public SheetUserSettings build() {
146
            SheetUserSettings sheetUserSettings = new SheetUserSettings();
×
147
            sheetUserSettings.criticalPathEnabled = criticalPathEnabled;
×
148
            sheetUserSettings.displaySummaryTasks = displaySummaryTasks;
×
149
            return sheetUserSettings;
×
150
        }
151
    }
152
}
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