001
014
015 package com.liferay.portlet.expando.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.expando.service.ExpandoColumnServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class ExpandoColumnServiceSoap {
067 public static com.liferay.portlet.expando.model.ExpandoColumnSoap addColumn(
068 long tableId, java.lang.String name, int type)
069 throws RemoteException {
070 try {
071 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.addColumn(tableId,
072 name, type);
073
074 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
075 }
076 catch (Exception e) {
077 _log.error(e, e);
078
079 throw new RemoteException(e.getMessage());
080 }
081 }
082
083 public static com.liferay.portlet.expando.model.ExpandoColumnSoap addColumn(
084 long tableId, java.lang.String name, int type,
085 java.lang.Object defaultData) throws RemoteException {
086 try {
087 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.addColumn(tableId,
088 name, type, defaultData);
089
090 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
091 }
092 catch (Exception e) {
093 _log.error(e, e);
094
095 throw new RemoteException(e.getMessage());
096 }
097 }
098
099 public static void deleteColumn(long columnId) throws RemoteException {
100 try {
101 ExpandoColumnServiceUtil.deleteColumn(columnId);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static com.liferay.portlet.expando.model.ExpandoColumnSoap updateColumn(
111 long columnId, java.lang.String name, int type)
112 throws RemoteException {
113 try {
114 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateColumn(columnId,
115 name, type);
116
117 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 public static com.liferay.portlet.expando.model.ExpandoColumnSoap updateColumn(
127 long columnId, java.lang.String name, int type,
128 java.lang.Object defaultData) throws RemoteException {
129 try {
130 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateColumn(columnId,
131 name, type, defaultData);
132
133 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137
138 throw new RemoteException(e.getMessage());
139 }
140 }
141
142 public static com.liferay.portlet.expando.model.ExpandoColumnSoap updateTypeSettings(
143 long columnId, java.lang.String typeSettings) throws RemoteException {
144 try {
145 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateTypeSettings(columnId,
146 typeSettings);
147
148 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
149 }
150 catch (Exception e) {
151 _log.error(e, e);
152
153 throw new RemoteException(e.getMessage());
154 }
155 }
156
157 private static Log _log = LogFactoryUtil.getLog(ExpandoColumnServiceSoap.class);
158 }