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