Skip to content

v0.2.51..v0.2.52 changeset FolderRecord.java

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-services/src/main/java/hoot/services/controllers/osm/map/FolderRecord.java b/hoot-services/src/main/java/hoot/services/controllers/osm/map/FolderRecord.java
index 6e94815..64ace76 100644
--- a/hoot-services/src/main/java/hoot/services/controllers/osm/map/FolderRecord.java
+++ b/hoot-services/src/main/java/hoot/services/controllers/osm/map/FolderRecord.java
@@ -26,6 +26,12 @@
  */
 package hoot.services.controllers.osm.map;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+
+
 /**
  * Model class for the Hootenanny folder record
  */
@@ -36,6 +42,10 @@ public class FolderRecord {
     private String name;
     private long userId;
     private boolean isPublic;
+    private Timestamp createdAt;
+
+    @JsonIgnore
+    public static final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
 
     public FolderRecord() {}
 
@@ -74,7 +84,16 @@ public class FolderRecord {
     public void setPublic(Boolean publicCol) {
         isPublic = publicCol.booleanValue();
     }
+
     public boolean getPublic() {
         return isPublic;
     }
-}
\ No newline at end of file
+
+    public void setCreatedAt(Timestamp createdAt) {
+        this.createdAt = createdAt;
+    }
+
+    public String getCreatedAt() {
+        return format.format(this.createdAt);
+    }
+}
Clone this wiki locally