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 jomm.dao.impl.AbstractDao; |
5 | import jomm.dao.impl.AbstractDao; |
5 | import org.json.JSONArray; |
6 | import org.json.JSONArray; |
6 | import org.json.JSONException; |
7 | import org.json.JSONException; |
7 | import org.json.JSONObject; |
8 | import org.json.JSONObject; |
8 | import pt.estgp.estgweb.domain.dao.DaoFactory; |
9 | import pt.estgp.estgweb.domain.dao.DaoFactory; |
Line 47... | Line 48... | ||
47 | if(getCloseDate() != null) |
48 | if(getCloseDate() != null) |
48 | return DatesWebUtils.getStringFromDate(getCloseDate()); |
49 | return DatesWebUtils.getStringFromDate(getCloseDate()); |
49 | return ""; |
50 | return ""; |
50 | } |
51 | } |
51 | 52 | ||
52 | static Genson gensonSerialize = new Genson.Builder() |
53 | static Genson gensonSerialize = new GensonBuilder() |
53 | .exclude(5+0%2Fdocs%2Fapi+Object">Object.class) |
54 | .exclude(5+0%2Fdocs%2Fapi+Object">Object.class) |
54 | .include(1.5.0/docs/api/java/lang/Boolean.html">Boolean.class) |
55 | .include(1.5.0/docs/api/java/lang/Boolean.html">Boolean.class) |
55 | .include(1.5.0/docs/api/java/lang/Integer.html">Integer.class) |
56 | .include(1.5.0/docs/api/java/lang/Integer.html">Integer.class) |
56 | .include(1.5.0/docs/api/java/lang/Long.html">Long.class) |
57 | .include(1.5.0/docs/api/java/lang/Long.html">Long.class) |
57 | .include(1.5.0/docs/api/java/lang/Double.html">Double.class) |
58 | .include(1.5.0/docs/api/java/lang/Double.html">Double.class) |
Line 83... | Line 84... | ||
83 | .exclude("repositoryFileVersions",RepositoryFile.class) |
84 | .exclude("repositoryFileVersions",RepositoryFile.class) |
84 | .exclude("sourceModule",RepositoryFile.class) |
85 | .exclude("sourceModule",RepositoryFile.class) |
85 | .create(); |
86 | .create(); |
86 | 87 | ||
87 | 88 | ||
88 | static Genson gensonDeserialize = new Genson.Builder() |
89 | static Genson gensonDeserialize = new GensonBuilder() |
89 | .exclude(5+0%2Fdocs%2Fapi+Object">Object.class) |
90 | .exclude(5+0%2Fdocs%2Fapi+Object">Object.class) |
90 | //.include(ArrayList.class) |
91 | //.include(ArrayList.class) |
91 | //.include(Set.class) |
92 | //.include(Set.class) |
92 | //.include(List.class) |
93 | //.include(List.class) |
93 | .include(1.5.0/docs/api/java/lang/Boolean.html">Boolean.class) |
94 | .include(1.5.0/docs/api/java/lang/Boolean.html">Boolean.class) |