1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  /**
25   * <a href="TagsEntryServiceSoap.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * <p>
33   * This class provides a SOAP utility for the
34   * {@link com.liferay.portlet.tags.service.TagsEntryServiceUtil} service utility. The
35   * static methods of this class calls the same methods of the service utility.
36   * However, the signatures are different because it is difficult for SOAP to
37   * support certain types.
38   * </p>
39   *
40   * <p>
41   * ServiceBuilder follows certain rules in translating the methods. For example,
42   * if the method in the service utility returns a {@link java.util.List}, that
43   * is translated to an array of {@link com.liferay.portlet.tags.model.TagsEntrySoap}.
44   * If the method in the service utility returns a
45   * {@link com.liferay.portlet.tags.model.TagsEntry}, that is translated to a
46   * {@link com.liferay.portlet.tags.model.TagsEntrySoap}. Methods that SOAP cannot
47   * safely wire are skipped.
48   * </p>
49   *
50   * <p>
51   * The benefits of using the SOAP utility is that it is cross platform
52   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
53   * even Perl, to call the generated services. One drawback of SOAP is that it is
54   * slow because it needs to serialize all calls into a text format (XML).
55   * </p>
56   *
57   * <p>
58   * You can see a list of services at
59   * http://localhost:8080/tunnel-web/secure/axis. Set the property
60   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
61   * security.
62   * </p>
63   *
64   * <p>
65   * The SOAP utility is only generated for remote services.
66   * </p>
67   *
68   * @author    Brian Wing Shun Chan
69   * @see       TagsEntryServiceHttp
70   * @see       com.liferay.portlet.tags.model.TagsEntrySoap
71   * @see       com.liferay.portlet.tags.service.TagsEntryServiceUtil
72   * @generated
73   */
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 }