1
22
23 package com.liferay.portlet.expando.service.http;
24
25 import com.liferay.portlet.expando.service.ExpandoTableServiceUtil;
26
27 import org.json.JSONArray;
28 import org.json.JSONObject;
29
30
74 public class ExpandoTableServiceJSON {
75 public static JSONObject addDefaultTable(java.lang.String className)
76 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
77 com.liferay.portal.PortalException {
78 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.addDefaultTable(className);
79
80 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
81 }
82
83 public static JSONObject addDefaultTable(long classNameId)
84 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
85 com.liferay.portal.PortalException {
86 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.addDefaultTable(classNameId);
87
88 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
89 }
90
91 public static JSONObject addTable(java.lang.String className,
92 java.lang.String name)
93 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
94 com.liferay.portal.PortalException {
95 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.addTable(className,
96 name);
97
98 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
99 }
100
101 public static JSONObject addTable(long classNameId, java.lang.String name)
102 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
103 com.liferay.portal.PortalException {
104 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.addTable(classNameId,
105 name);
106
107 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
108 }
109
110 public static void deleteTable(long tableId)
111 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
112 com.liferay.portal.PortalException {
113 ExpandoTableServiceUtil.deleteTable(tableId);
114 }
115
116 public static void deleteTable(java.lang.String className,
117 java.lang.String name)
118 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
119 com.liferay.portal.PortalException {
120 ExpandoTableServiceUtil.deleteTable(className, name);
121 }
122
123 public static void deleteTable(long classNameId, java.lang.String name)
124 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
125 com.liferay.portal.PortalException {
126 ExpandoTableServiceUtil.deleteTable(classNameId, name);
127 }
128
129 public static void deleteTables(java.lang.String className)
130 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
131 com.liferay.portal.PortalException {
132 ExpandoTableServiceUtil.deleteTables(className);
133 }
134
135 public static void deleteTables(long classNameId)
136 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
137 com.liferay.portal.PortalException {
138 ExpandoTableServiceUtil.deleteTables(classNameId);
139 }
140
141 public static JSONObject getDefaultTable(java.lang.String className)
142 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
143 com.liferay.portal.PortalException {
144 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.getDefaultTable(className);
145
146 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
147 }
148
149 public static JSONObject getDefaultTable(long classNameId)
150 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
151 com.liferay.portal.PortalException {
152 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.getDefaultTable(classNameId);
153
154 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
155 }
156
157 public static JSONObject getTable(long tableId)
158 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
159 com.liferay.portal.PortalException {
160 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.getTable(tableId);
161
162 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
163 }
164
165 public static JSONObject getTable(java.lang.String className,
166 java.lang.String name)
167 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
168 com.liferay.portal.PortalException {
169 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.getTable(className,
170 name);
171
172 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
173 }
174
175 public static JSONObject getTable(long classNameId, java.lang.String name)
176 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
177 com.liferay.portal.PortalException {
178 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.getTable(classNameId,
179 name);
180
181 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
182 }
183
184 public static JSONArray getTables(java.lang.String className)
185 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
186 com.liferay.portal.PortalException {
187 java.util.List<com.liferay.portlet.expando.model.ExpandoTable> returnValue =
188 ExpandoTableServiceUtil.getTables(className);
189
190 return ExpandoTableJSONSerializer.toJSONArray(returnValue);
191 }
192
193 public static JSONArray getTables(long classNameId)
194 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
195 com.liferay.portal.PortalException {
196 java.util.List<com.liferay.portlet.expando.model.ExpandoTable> returnValue =
197 ExpandoTableServiceUtil.getTables(classNameId);
198
199 return ExpandoTableJSONSerializer.toJSONArray(returnValue);
200 }
201
202 public static JSONObject updateTable(long tableId, java.lang.String name)
203 throws java.rmi.RemoteException, com.liferay.portal.SystemException,
204 com.liferay.portal.PortalException {
205 com.liferay.portlet.expando.model.ExpandoTable returnValue = ExpandoTableServiceUtil.updateTable(tableId,
206 name);
207
208 return ExpandoTableJSONSerializer.toJSONObject(returnValue);
209 }
210 }