Rev 1814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1814 | Rev 1827 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | package pt.estgp.estgweb.domain; |
1 | package pt.estgp.estgweb.domain; |
2 | 2 | ||
3 | import com.owlike.genson.Genson; |
3 | import com.owlike.genson.Genson; |
4 | import com.owlike.genson.GensonBuilder; |
4 | import com.owlike.genson.GensonBuilder; |
5 | import org.json.JSONArray; |
- | |
6 | import org.json.JSONException; |
5 | import org.json.JSONException; |
7 | import org.json.JSONObject; |
6 | import org.json.JSONObject; |
8 | import pt.estgp.estgweb.services.virtualfilesystem.dto.VfsAbstractPageContentDto; |
- | |
9 | 7 | ||
10 | import java.io.IOException; |
8 | import java.io.IOException; |
11 | import java.io.Serializable; |
9 | import java.io.Serializable; |
12 | import java.util.ArrayList; |
- | |
13 | import java.util.List; |
10 | import java.util.List; |
14 | import java.util.Set; |
11 | import java.util.Set; |
15 | 12 | ||
16 | /** |
13 | /** |
17 | * Created by jorgemachado on 03/02/16. |
14 | * Created by jorgemachado on 03/02/16. |
Line 112... | Line 109... | ||
112 | 109 | ||
113 | public JSONObject toJsonObject() throws JSONException { |
110 | public JSONObject toJsonObject() throws JSONException { |
114 | return new JSONObject(toJson()); |
111 | return new JSONObject(toJson()); |
115 | } |
112 | } |
116 | 113 | ||
- | 114 | /* |
|
117 | public static JSONArray toJsonArray(List<PageSectionImpl> itemGroup) throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException { |
115 | public static JSONArray toJsonArray(List<PageSectionImpl> itemGroup) throws IOException, JSONException { |
118 | return new JSONArray(genson.serialize(itemGroup)); |
116 | return new JSONArray(genson.serialize(itemGroup)); |
119 | } |
117 | }*/ |
120 | 118 | ||
121 | /*public String getPath(){ |
119 | /*public String getPath(){ |
122 | if(getParent()==null) |
120 | if(getParent()==null) |
123 | return getSlug(); |
121 | return getSlug(); |
124 | else |
122 | else |