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

DataBiosphere / consent / #5817

02 May 2025 01:06PM UTC coverage: 78.733% (-1.3%) from 80.036%
#5817

push

web-flow
DT-1595 Remove unused endpoints (#2507)

2 of 2 new or added lines in 1 file covered. (100.0%)

159 existing lines in 7 files now uncovered.

10029 of 12738 relevant lines covered (78.73%)

0.79 hits per line

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

57.14
/src/main/java/org/broadinstitute/consent/http/models/dto/DatasetDTO.java
1
package org.broadinstitute.consent.http.models.dto;
2

3
import com.fasterxml.jackson.annotation.JsonProperty;
4
import java.sql.Date;
5
import java.sql.Timestamp;
6
import java.util.ArrayList;
7
import java.util.List;
8
import java.util.Objects;
9
import org.broadinstitute.consent.http.models.DataUse;
10
import org.broadinstitute.consent.http.models.Dataset;
11

12
@Deprecated
13
public class DatasetDTO {
14

15
  @JsonProperty
16
  private String datasetName;
17

18
  @JsonProperty
19
  private Integer dacId;
20

21
  @JsonProperty
22
  private Integer datasetId;
23

24
  @JsonProperty
25
  private String consentId;
26

27
  @JsonProperty
28
  private Boolean deletable;
29

30
  @JsonProperty
31
  private List<DatasetPropertyDTO> properties;
32

33
  @JsonProperty
34
  private Boolean isAssociatedToDataOwners;
35

36
  @JsonProperty
37
  private Boolean updateAssociationToDataOwnerAllowed;
38

39
  @JsonProperty
40
  private String alias;
41

42
  @JsonProperty
43
  private String objectId;
44

45
  @JsonProperty
46
  private Date createDate;
47

48
  @JsonProperty
49
  private Integer createUserId;
50

51
  @JsonProperty
52
  private Timestamp updateDate;
53

54
  @JsonProperty
55
  private Integer updateUserId;
56

57
  @JsonProperty
58
  public DataUse dataUse;
59

60
  public DatasetDTO() {
1✔
61
  }
1✔
62

63
  public String getDatasetName() {
64
    return datasetName;
×
65
  }
66

67
  public void setDatasetName(String datasetName) {
68
    this.datasetName = datasetName;
×
69
  }
×
70

71
  public Integer getDacId() {
UNCOV
72
    return dacId;
×
73
  }
74

75
  public void setDacId(Integer dacId) {
76
    this.dacId = dacId;
1✔
77
  }
1✔
78

79
  public DatasetDTO(List<DatasetPropertyDTO> properties) {
1✔
80
    this.properties = properties;
1✔
81
  }
1✔
82

83
  public String getConsentId() {
84
    return consentId;
×
85
  }
86

87
  public void setConsentId(String consentId) {
88
    this.consentId = consentId;
×
89
  }
×
90

91
  public Boolean getDeletable() {
92
    return deletable;
×
93
  }
94

95
  public void setDeletable(Boolean deletable) {
96
    this.deletable = deletable;
×
97
  }
×
98

99
  public String getPropertyValue(String propertyName) {
100
    return properties.get(properties.indexOf(new DatasetPropertyDTO(propertyName, "")))
×
101
        .getPropertyValue();
×
102
  }
103

104
  public List<DatasetPropertyDTO> getProperties() {
105
    return properties;
1✔
106
  }
107

108
  public void setProperties(List<DatasetPropertyDTO> properties) {
109
    this.properties = properties;
1✔
110
  }
1✔
111

112
  public Boolean getIsAssociatedToDataOwners() {
113
    return isAssociatedToDataOwners;
×
114
  }
115

116
  public void setIsAssociatedToDataOwners(Boolean isAssociatedToDataOwners) {
117
    this.isAssociatedToDataOwners = isAssociatedToDataOwners;
×
118
  }
×
119

120
  public Boolean getUpdateAssociationToDataOwnerAllowed() {
121
    return updateAssociationToDataOwnerAllowed;
×
122
  }
123

124
  public void setUpdateAssociationToDataOwnerAllowed(Boolean updateAssociationToDataOwnerAllowed) {
125
    this.updateAssociationToDataOwnerAllowed = updateAssociationToDataOwnerAllowed;
×
126
  }
×
127

128
  public void setDatasetId(Integer datasetId) {
129
    this.datasetId = datasetId;
1✔
130
  }
1✔
131

132
  public Integer getDatasetId() {
133
    return datasetId;
1✔
134
  }
135

136
  public void setAlias(Integer alias) {
137
    this.alias = Dataset.parseAliasToIdentifier(alias);
1✔
138
  }
1✔
139

140
  public String getAlias() {
141
    return alias;
×
142
  }
143

144
  public String getObjectId() {
145
    return objectId;
×
146
  }
147

148
  public void setObjectId(String objectId) {
149
    this.objectId = objectId;
1✔
150
  }
1✔
151

152
  public Date getCreateDate() {
153
    return createDate;
×
154
  }
155

156
  public void setCreateDate(Date createDate) {
157
    this.createDate = createDate;
1✔
158
  }
1✔
159

160
  public Integer getCreateUserId() {
161
    return createUserId;
×
162
  }
163

164
  public void setCreateUserId(Integer createUserId) {
165
    this.createUserId = createUserId;
1✔
166
  }
1✔
167

168
  public Timestamp getUpdateDate() {
169
    return updateDate;
×
170
  }
171

172
  public void setUpdateDate(Timestamp updateDate) {
173
    this.updateDate = updateDate;
1✔
174
  }
1✔
175

176
  public Integer getUpdateUserId() {
177
    return updateUserId;
×
178
  }
179

180
  public void setUpdateUserId(Integer updateUserId) {
181
    this.updateUserId = updateUserId;
1✔
182
  }
1✔
183

184
  public void addProperty(DatasetPropertyDTO property) {
185
    if (this.getProperties() == null) {
1✔
186
      this.setProperties(new ArrayList<>());
×
187
    }
188
    this.getProperties().add(property);
1✔
189
  }
1✔
190

191
  public DataUse getDataUse() {
192
    return dataUse;
×
193
  }
194

195
  public void setDataUse(DataUse dataUse) {
196
    this.dataUse = dataUse;
1✔
197
  }
1✔
198

199
  @Override
200
  public boolean equals(Object o) {
201
    if (this == o) {
1✔
202
      return true;
1✔
203
    }
204
    if (o == null || getClass() != o.getClass()) {
1✔
205
      return false;
×
206
    }
207
    DatasetDTO that = (DatasetDTO) o;
1✔
208
    return datasetId.equals(that.datasetId);
1✔
209
  }
210

211
  @Override
212
  public int hashCode() {
213
    return Objects.hash(datasetId);
1✔
214
  }
215
}
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