Skip to content

Commit ad89f25

Browse files
committed
Minor additions to the Contribution DOM
1 parent dbe178c commit ad89f25

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

commons/src/main/java/org/wikimedia/commons/Media.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,18 @@ public long getDataLength() {
7474
return dataLength;
7575
}
7676

77+
public void setDataLength(long dataLength) {
78+
this.dataLength = dataLength;
79+
}
80+
7781
public Date getDateCreated() {
7882
return dateCreated;
7983
}
8084

85+
public void setDateCreated(Date date) {
86+
this.dateCreated = date;
87+
}
88+
8189
public Date getDateUploaded() {
8290
return dateUploaded;
8391
}

commons/src/main/java/org/wikimedia/commons/contributions/Contribution.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void setImageUrl(String imageUrl) {
176176
this.imageUrl = imageUrl;
177177
}
178178

179-
private Contribution() {
179+
public Contribution() {
180180
// Empty constructor for being constructed by our static methods
181181
}
182182

@@ -206,6 +206,10 @@ public void setSource(String source) {
206206
this.source = source;
207207
}
208208

209+
public void setLocalUri(Uri localUri) {
210+
this.localUri = localUri;
211+
}
212+
209213

210214
public static class Table {
211215
public static final String TABLE_NAME = "contributions";

0 commit comments

Comments
 (0)