com.liferay.portlet.expando.service.http
Class ExpandoColumnServiceJSON

java.lang.Object
  extended by com.liferay.portlet.expando.service.http.ExpandoColumnServiceJSON

public class ExpandoColumnServiceJSON
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides a JSON utility for the com.liferay.portlet.expando.service.ExpandoColumnServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it is difficult for JSON to support certain types.

ServiceBuilder follows certain rules in translating the methods. For example, if the method in the service utility returns a java.util.List, that is translated to a org.json.JSONArray. If the method in the service utility returns a com.liferay.portlet.expando.model.ExpandoColumn, that is translated to a org.json.JSONObject. Methods that JSON cannot safely use are skipped. The logic for the translation is encapsulated in com.liferay.portlet.expando.service.http.ExpandoColumnJSONSerializer.

This allows you to call the the backend services directly from JavaScript. See portal-web/docroot/html/portlet/tags_admin/unpacked.js for a reference of how that portlet uses the generated JavaScript in portal-web/docroot/html/js/service.js to call the backend services directly from JavaScript.

The JSON utility is only generated for remote services.

Author:
Brian Wing Shun Chan
See Also:
ExpandoColumnServiceUtil, ExpandoColumnJSONSerializer

Constructor Summary
ExpandoColumnServiceJSON()
           
 
Method Summary
static org.json.JSONObject addColumn(long tableId, java.lang.String name, int type)
           
static void deleteColumn(long columnId)
           
static void deleteColumns(long tableId)
           
static void deleteColumns(long classNameId, java.lang.String tableName)
           
static void deleteColumns(java.lang.String className, java.lang.String tableName)
           
static org.json.JSONObject getColumn(long columnId)
           
static org.json.JSONObject getColumn(long tableId, java.lang.String name)
           
static org.json.JSONObject getColumn(long classNameId, java.lang.String tableName, java.lang.String name)
           
static org.json.JSONObject getColumn(java.lang.String className, java.lang.String tableName, java.lang.String name)
           
static org.json.JSONArray getColumns(long tableId)
           
static org.json.JSONArray getColumns(long classNameId, java.lang.String tableName)
           
static org.json.JSONArray getColumns(java.lang.String className, java.lang.String tableName)
           
static int getColumnsCount(long tableId)
           
static int getColumnsCount(long classNameId, java.lang.String tableName)
           
static int getColumnsCount(java.lang.String className, java.lang.String tableName)
           
static org.json.JSONObject getDefaultTableColumn(long classNameId, java.lang.String name)
           
static org.json.JSONObject getDefaultTableColumn(java.lang.String className, java.lang.String name)
           
static org.json.JSONArray getDefaultTableColumns(long classNameId)
           
static org.json.JSONArray getDefaultTableColumns(java.lang.String className)
           
static int getDefaultTableColumnsCount(long classNameId)
           
static int getDefaultTableColumnsCount(java.lang.String className)
           
static org.json.JSONObject updateColumn(long columnId, java.lang.String name, int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandoColumnServiceJSON

public ExpandoColumnServiceJSON()
Method Detail

addColumn

public static org.json.JSONObject addColumn(long tableId,
                                            java.lang.String name,
                                            int type)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException,
                                            com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteColumn

public static void deleteColumn(long columnId)
                         throws java.rmi.RemoteException,
                                com.liferay.portal.SystemException,
                                com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteColumns

public static void deleteColumns(long tableId)
                          throws java.rmi.RemoteException,
                                 com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteColumns

public static void deleteColumns(java.lang.String className,
                                 java.lang.String tableName)
                          throws java.rmi.RemoteException,
                                 com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteColumns

public static void deleteColumns(long classNameId,
                                 java.lang.String tableName)
                          throws java.rmi.RemoteException,
                                 com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getColumn

public static org.json.JSONObject getColumn(long columnId)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException,
                                            com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getColumn

public static org.json.JSONObject getColumn(long tableId,
                                            java.lang.String name)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException,
                                            com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getColumn

public static org.json.JSONObject getColumn(java.lang.String className,
                                            java.lang.String tableName,
                                            java.lang.String name)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException,
                                            com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getColumn

public static org.json.JSONObject getColumn(long classNameId,
                                            java.lang.String tableName,
                                            java.lang.String name)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException,
                                            com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getColumns

public static org.json.JSONArray getColumns(long tableId)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getColumns

public static org.json.JSONArray getColumns(java.lang.String className,
                                            java.lang.String tableName)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getColumns

public static org.json.JSONArray getColumns(long classNameId,
                                            java.lang.String tableName)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getColumnsCount

public static int getColumnsCount(long tableId)
                           throws java.rmi.RemoteException,
                                  com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getColumnsCount

public static int getColumnsCount(java.lang.String className,
                                  java.lang.String tableName)
                           throws java.rmi.RemoteException,
                                  com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getColumnsCount

public static int getColumnsCount(long classNameId,
                                  java.lang.String tableName)
                           throws java.rmi.RemoteException,
                                  com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getDefaultTableColumn

public static org.json.JSONObject getDefaultTableColumn(java.lang.String className,
                                                        java.lang.String name)
                                                 throws java.rmi.RemoteException,
                                                        com.liferay.portal.SystemException,
                                                        com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getDefaultTableColumn

public static org.json.JSONObject getDefaultTableColumn(long classNameId,
                                                        java.lang.String name)
                                                 throws java.rmi.RemoteException,
                                                        com.liferay.portal.SystemException,
                                                        com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getDefaultTableColumns

public static org.json.JSONArray getDefaultTableColumns(java.lang.String className)
                                                 throws java.rmi.RemoteException,
                                                        com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getDefaultTableColumns

public static org.json.JSONArray getDefaultTableColumns(long classNameId)
                                                 throws java.rmi.RemoteException,
                                                        com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getDefaultTableColumnsCount

public static int getDefaultTableColumnsCount(java.lang.String className)
                                       throws java.rmi.RemoteException,
                                              com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getDefaultTableColumnsCount

public static int getDefaultTableColumnsCount(long classNameId)
                                       throws java.rmi.RemoteException,
                                              com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

updateColumn

public static org.json.JSONObject updateColumn(long columnId,
                                               java.lang.String name,
                                               int type)
                                        throws java.rmi.RemoteException,
                                               com.liferay.portal.SystemException,
                                               com.liferay.portal.PortalException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException