Adding Comment

feature/appm-store/pbac
nishadi 7 years ago
parent c00345e7d7
commit a0ef2dbafe

@ -18,33 +18,46 @@
*/ */
package org.wso2.carbon.device.application.mgt.common; package org.wso2.carbon.device.application.mgt.common;
import java.sql.Timestamp;
import java.util.Date;
/** /**
* Represents a comment for an {@link Application}. * Represents a comment for an {@link Application}.
*/ */
public class Comment { public class Comment {
private String id; private int id;
private String comment; private String comment;
private int rating;
//TODO: Pagination, comment ID for child //TODO: Pagination, comment ID for child
private Comment parent; private int parent;
private int tenantId;
private String createdBy; private String createdBy;
private String createdAt; private Timestamp createdAt;
private String modifiedAt; private String modifiedBy;
private Application application; private Timestamp modifiedAt;
public String getId() { // private Application application;
public int getTenantId() {
return tenantId;
}
public void setTenantId(int tenantId) {
this.tenantId = tenantId;
}
public int getId() {
return id; return id;
} }
public void setId(String id) { public void setId(int id) {
this.id = id; this.id = id;
} }
@ -56,19 +69,11 @@ public class Comment {
this.comment = comment; this.comment = comment;
} }
public int getRating() { public int getParent() {
return rating;
}
public void setRating(int rating) {
this.rating = rating;
}
public Comment getParent() {
return parent; return parent;
} }
public void setParent(Comment parent) { public void setParent(int parent) {
this.parent = parent; this.parent = parent;
} }
@ -80,27 +85,39 @@ public class Comment {
this.createdBy = createdBy; this.createdBy = createdBy;
} }
public String getCreatedAt() { public Timestamp getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(String createdAt) { public void setCreatedAt(Timestamp createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public String getModifiedAt() { public String getModifiedBy() {
return modifiedAt; return modifiedBy;
} }
public void setModifiedAt(String modifiedAt) { public void setModifiedBy(String modifiedBy) {
this.modifiedAt = modifiedAt; this.modifiedBy = modifiedBy;
} }
public Application getApplication() { public Timestamp getModifiedAt() {
return application; return modifiedAt;
} }
public void setApplication(Application application) { public void setModifiedAt(Timestamp modifiedAt) {
this.application = application; this.modifiedAt = modifiedAt;
} }
// public Application getApplication() {
// return application;
// }
//
// public void setApplication(Application application) {
// this.application = application;
// }
} }

Loading…
Cancel
Save