1
22
23 package com.liferay.portlet.tags.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.tags.service.TagsEntryServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
83 public class TagsEntryServiceSoap {
84 public static com.liferay.portlet.tags.model.TagsEntrySoap addEntry(
85 java.lang.String name) throws RemoteException {
86 try {
87 com.liferay.portlet.tags.model.TagsEntry returnValue = TagsEntryServiceUtil.addEntry(name);
88
89 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModel(returnValue);
90 }
91 catch (Exception e) {
92 _log.error(e, e);
93
94 throw new RemoteException(e.getMessage());
95 }
96 }
97
98 public static com.liferay.portlet.tags.model.TagsEntrySoap addEntry(
99 java.lang.String name, java.lang.String[] properties)
100 throws RemoteException {
101 try {
102 com.liferay.portlet.tags.model.TagsEntry returnValue = TagsEntryServiceUtil.addEntry(name,
103 properties);
104
105 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModel(returnValue);
106 }
107 catch (Exception e) {
108 _log.error(e, e);
109
110 throw new RemoteException(e.getMessage());
111 }
112 }
113
114 public static void deleteEntry(long entryId) throws RemoteException {
115 try {
116 TagsEntryServiceUtil.deleteEntry(entryId);
117 }
118 catch (Exception e) {
119 _log.error(e, e);
120
121 throw new RemoteException(e.getMessage());
122 }
123 }
124
125 public static com.liferay.portlet.tags.model.TagsEntrySoap[] getEntries(
126 java.lang.String className, long classPK) throws RemoteException {
127 try {
128 java.util.List<com.liferay.portlet.tags.model.TagsEntry> returnValue =
129 TagsEntryServiceUtil.getEntries(className, classPK);
130
131 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModels(returnValue);
132 }
133 catch (Exception e) {
134 _log.error(e, e);
135
136 throw new RemoteException(e.getMessage());
137 }
138 }
139
140 public static com.liferay.portlet.tags.model.TagsEntrySoap[] getEntries(
141 long groupId, long companyId, long classNameId, java.lang.String name)
142 throws RemoteException {
143 try {
144 java.util.List<com.liferay.portlet.tags.model.TagsEntry> returnValue =
145 TagsEntryServiceUtil.getEntries(groupId, companyId,
146 classNameId, name);
147
148 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModels(returnValue);
149 }
150 catch (Exception e) {
151 _log.error(e, e);
152
153 throw new RemoteException(e.getMessage());
154 }
155 }
156
157 public static void mergeEntries(long fromEntryId, long toEntryId)
158 throws RemoteException {
159 try {
160 TagsEntryServiceUtil.mergeEntries(fromEntryId, toEntryId);
161 }
162 catch (Exception e) {
163 _log.error(e, e);
164
165 throw new RemoteException(e.getMessage());
166 }
167 }
168
169 public static com.liferay.portlet.tags.model.TagsEntrySoap[] search(
170 long companyId, java.lang.String name, java.lang.String[] properties)
171 throws RemoteException {
172 try {
173 java.util.List<com.liferay.portlet.tags.model.TagsEntry> returnValue =
174 TagsEntryServiceUtil.search(companyId, name, properties);
175
176 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModels(returnValue);
177 }
178 catch (Exception e) {
179 _log.error(e, e);
180
181 throw new RemoteException(e.getMessage());
182 }
183 }
184
185 public static com.liferay.portlet.tags.model.TagsEntrySoap[] search(
186 long companyId, java.lang.String name, java.lang.String[] properties,
187 int begin, int end) throws RemoteException {
188 try {
189 java.util.List<com.liferay.portlet.tags.model.TagsEntry> returnValue =
190 TagsEntryServiceUtil.search(companyId, name, properties, begin,
191 end);
192
193 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModels(returnValue);
194 }
195 catch (Exception e) {
196 _log.error(e, e);
197
198 throw new RemoteException(e.getMessage());
199 }
200 }
201
202 public static com.liferay.portal.kernel.json.JSONArrayWrapper searchAutocomplete(
203 long companyId, java.lang.String name, java.lang.String[] properties,
204 int begin, int end) throws RemoteException {
205 try {
206 com.liferay.portal.kernel.json.JSONArrayWrapper returnValue = TagsEntryServiceUtil.searchAutocomplete(companyId,
207 name, properties, begin, end);
208
209 return returnValue;
210 }
211 catch (Exception e) {
212 _log.error(e, e);
213
214 throw new RemoteException(e.getMessage());
215 }
216 }
217
218 public static int searchCount(long companyId, java.lang.String name,
219 java.lang.String[] properties) throws RemoteException {
220 try {
221 int returnValue = TagsEntryServiceUtil.searchCount(companyId, name,
222 properties);
223
224 return returnValue;
225 }
226 catch (Exception e) {
227 _log.error(e, e);
228
229 throw new RemoteException(e.getMessage());
230 }
231 }
232
233 public static com.liferay.portlet.tags.model.TagsEntrySoap updateEntry(
234 long entryId, java.lang.String name) throws RemoteException {
235 try {
236 com.liferay.portlet.tags.model.TagsEntry returnValue = TagsEntryServiceUtil.updateEntry(entryId,
237 name);
238
239 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModel(returnValue);
240 }
241 catch (Exception e) {
242 _log.error(e, e);
243
244 throw new RemoteException(e.getMessage());
245 }
246 }
247
248 public static com.liferay.portlet.tags.model.TagsEntrySoap updateEntry(
249 long entryId, java.lang.String name, java.lang.String[] properties)
250 throws RemoteException {
251 try {
252 com.liferay.portlet.tags.model.TagsEntry returnValue = TagsEntryServiceUtil.updateEntry(entryId,
253 name, properties);
254
255 return com.liferay.portlet.tags.model.TagsEntrySoap.toSoapModel(returnValue);
256 }
257 catch (Exception e) {
258 _log.error(e, e);
259
260 throw new RemoteException(e.getMessage());
261 }
262 }
263
264 private static Log _log = LogFactoryUtil.getLog(TagsEntryServiceSoap.class);
265 }