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
83 public class ExpandoColumnServiceSoap {
84 public static com.liferay.portlet.expando.model.ExpandoColumnSoap addColumn(
85 long tableId, java.lang.String name, int type)
86 throws RemoteException {
87 try {
88 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.addColumn(tableId,
89 name, type);
90
91 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
92 }
93 catch (Exception e) {
94 _log.error(e, e);
95
96 throw new RemoteException(e.getMessage());
97 }
98 }
99
100 public static com.liferay.portlet.expando.model.ExpandoColumnSoap addColumn(
101 long tableId, java.lang.String name, int type,
102 java.lang.Object defaultData) throws RemoteException {
103 try {
104 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.addColumn(tableId,
105 name, type, defaultData);
106
107 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
108 }
109 catch (Exception e) {
110 _log.error(e, e);
111
112 throw new RemoteException(e.getMessage());
113 }
114 }
115
116 public static void deleteColumn(long columnId) throws RemoteException {
117 try {
118 ExpandoColumnServiceUtil.deleteColumn(columnId);
119 }
120 catch (Exception e) {
121 _log.error(e, e);
122
123 throw new RemoteException(e.getMessage());
124 }
125 }
126
127 public static com.liferay.portlet.expando.model.ExpandoColumnSoap updateColumn(
128 long columnId, java.lang.String name, int type)
129 throws RemoteException {
130 try {
131 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateColumn(columnId,
132 name, type);
133
134 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
135 }
136 catch (Exception e) {
137 _log.error(e, e);
138
139 throw new RemoteException(e.getMessage());
140 }
141 }
142
143 public static com.liferay.portlet.expando.model.ExpandoColumnSoap updateColumn(
144 long columnId, java.lang.String name, int type,
145 java.lang.Object defaultData) throws RemoteException {
146 try {
147 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateColumn(columnId,
148 name, type, defaultData);
149
150 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
151 }
152 catch (Exception e) {
153 _log.error(e, e);
154
155 throw new RemoteException(e.getMessage());
156 }
157 }
158
159 public static com.liferay.portlet.expando.model.ExpandoColumnSoap updateTypeSettings(
160 long columnId, java.lang.String typeSettings) throws RemoteException {
161 try {
162 com.liferay.portlet.expando.model.ExpandoColumn returnValue = ExpandoColumnServiceUtil.updateTypeSettings(columnId,
163 typeSettings);
164
165 return com.liferay.portlet.expando.model.ExpandoColumnSoap.toSoapModel(returnValue);
166 }
167 catch (Exception e) {
168 _log.error(e, e);
169
170 throw new RemoteException(e.getMessage());
171 }
172 }
173
174 private static Log _log = LogFactoryUtil.getLog(ExpandoColumnServiceSoap.class);
175 }