1
22
23 package com.liferay.portlet.expando.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.expando.service.ExpandoColumnServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
82 public class ExpandoColumnServiceSoap {
83 public static com.liferay.portlet.expando.model.ExpandoColumnSoap addColumn(
84 long tableId, java.lang.String name, int type)
85 throws RemoteException {
86 try {
87 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.addColumn(tableId,
88 name, type);
89
90 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
91 }
92 catch (Exception e) {
93 _log.error(e, e);
94
95 throw new RemoteException(e.getMessage());
96 }
97 }
98
99 public static com.liferay.portlet.expando.model.ExpandoColumnSoap addColumn(
100 long tableId, java.lang.String name, int type,
101 java.lang.Object defaultData) throws RemoteException {
102 try {
103 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.addColumn(tableId,
104 name, type, defaultData);
105
106 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
107 }
108 catch (Exception e) {
109 _log.error(e, e);
110
111 throw new RemoteException(e.getMessage());
112 }
113 }
114
115 public static void deleteColumn(long columnId) throws RemoteException {
116 try {
117 ExpandoColumnServiceUtil.deleteColumn(columnId);
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 throws RemoteException {
129 try {
130 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateColumn(columnId,
131 name, type);
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 updateColumn(
143 long columnId, java.lang.String name, int type,
144 java.lang.Object defaultData) throws RemoteException {
145 try {
146 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateColumn(columnId,
147 name, type, defaultData);
148
149 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
150 }
151 catch (Exception e) {
152 _log.error(e, e);
153
154 throw new RemoteException(e.getMessage());
155 }
156 }
157
158 public static com.liferay.portlet.expando.model.ExpandoColumnSoap updateTypeSettings(
159 long columnId, java.lang.String typeSettings) throws RemoteException {
160 try {
161 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateTypeSettings(columnId,
162 typeSettings);
163
164 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
165 }
166 catch (Exception e) {
167 _log.error(e, e);
168
169 throw new RemoteException(e.getMessage());
170 }
171 }
172
173 private static Log _log = LogFactoryUtil.getLog(ExpandoColumnServiceSoap.class);
174 }