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