• 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/ReportPublish.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
/**
24
 * The ReportPublish object
25
 * @see <a href="http://smartsheet-platform.github.io/api-docs/?java#reportpublish-object">Publish Object</a>
26
 */
27
public class ReportPublish {
×
28

29
    /**
30
     * Represents the current publish status of the report.
31
     */
32
    private boolean readOnlyFullEnabled;
33

34
    /**
35
     * Indicates who can see the published report
36
     *    If "ALL", report is available to anyone who has the link.
37
     *    If "ORG", report is available only to members of the report owner's organization.
38
     */
39
    private String readOnlyFullAccessibleBy;
40

41
    /**
42
     * String containing the URL of the published report.
43
     */
44
    private String readOnlyFullUrl;
45

46
    /**
47
     * Flag to show or hide the left nav toolbar for the read only report.
48
     */
49
    private Boolean readOnlyFullShowToolbar;
50

51
    /**
52
     *  Default view for published report. (GRID, CARDS, CALENDAR)
53
     */
54
    private String readOnlyFullDefaultView;
55

56
    /**
57
    * Get the current publish status of a report
58
    *
59
    * @return read only publish status
60
    */
61
    public boolean getReadOnlyFullEnabled() {
62
        return readOnlyFullEnabled;
×
63
    }
64

65
    /**
66
     * If true, a rich version of the report is published
67
     *
68
     * @param readOnlyFullEnabled report publish status
69
     */
70
    public ReportPublish setReadOnlyFullEnabled(boolean readOnlyFullEnabled) {
71
        this.readOnlyFullEnabled = readOnlyFullEnabled;
×
72
        return this;
×
73
    }
74

75
    /**
76
     * Get who can see the published report. Only available when readOnlyFullEnabled = true
77
     *
78
     * @return String containing "ALL" - anyone, "ORG" - owner organization members
79
     */
80
    public String getReadOnlyFullAccessibleBy() {
81
        return readOnlyFullAccessibleBy;
×
82
    }
83

84
    /**
85
     * Set parameter indicating who can see the published report. Only valid when
86
     * readOnlyFullEnabled = true.
87
     *
88
     * @param readOnlyFullAccessibleBy - valid options are "ALL" and "ORG"
89
     */
90
    public ReportPublish setReadOnlyFullAccessibleBy(String readOnlyFullAccessibleBy) {
91
        this.readOnlyFullAccessibleBy = readOnlyFullAccessibleBy;
×
92
        return this;
×
93
    }
94

95
    /**
96
     * Get the URL of the published report. Valid only if readOnlyFullEnabled = true.
97
     *
98
     * @return String containing the URL of the published report.
99
     */
100
    public String getReadOnlyFullUrl() {
101
        return readOnlyFullUrl;
×
102
    }
103

104
    /**
105
     * Get the read only full show toolbar flag
106
     *
107
     * @return readOnlyFullShowToolbar
108
     */
109
    public Boolean getReadOnlyFullShowToolbar() {
110
        return readOnlyFullShowToolbar;
×
111
    }
112

113
    /**
114
     * Set the read only full show toolbar flag
115
     */
116
    public ReportPublish setReadOnlyFullShowToolbar(Boolean readOnlyFullShowToolbar) {
117
        this.readOnlyFullShowToolbar = readOnlyFullShowToolbar;
×
118
        return this;
×
119
    }
120

121
    /**
122
     * Get the read only full default view
123
     *
124
     * @return readOnlyFullDefaultView. Valid options are "GRID", "CARDS", "CALENDAR"
125
     */
126
    public String getReadOnlyFullDefaultView() {
127
        return readOnlyFullDefaultView;
×
128
    }
129

130
    /**
131
     * Set the read only full default view
132
     *
133
     * @param readOnlyFullDefaultView Valid options are "GRID", "CARDS", "CALENDAR"
134
     * @return the ReportPublish
135
     */
136
    public ReportPublish setReadOnlyFullDefaultView(String readOnlyFullDefaultView) {
137
        this.readOnlyFullDefaultView = readOnlyFullDefaultView;
×
138
        return this;
×
139
    }
140
}
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