1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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  /**
33   * <a href="TagsEntryServiceSoap.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * <p>
41   * This class provides a SOAP utility for the
42   * {@link com.liferay.portlet.tags.service.TagsEntryServiceUtil} service utility. The
43   * static methods of this class calls the same methods of the service utility.
44   * However, the signatures are different because it is difficult for SOAP to
45   * support certain types.
46   * </p>
47   *
48   * <p>
49   * ServiceBuilder follows certain rules in translating the methods. For example,
50   * if the method in the service utility returns a {@link java.util.List}, that
51   * is translated to an array of {@link com.liferay.portlet.tags.model.TagsEntrySoap}.
52   * If the method in the service utility returns a
53   * {@link com.liferay.portlet.tags.model.TagsEntry}, that is translated to a
54   * {@link com.liferay.portlet.tags.model.TagsEntrySoap}. Methods that SOAP cannot
55   * safely wire are skipped.
56   * </p>
57   *
58   * <p>
59   * The benefits of using the SOAP utility is that it is cross platform
60   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
61   * even Perl, to call the generated services. One drawback of SOAP is that it is
62   * slow because it needs to serialize all calls into a text format (XML).
63   * </p>
64   *
65   * <p>
66   * You can see a list of services at
67   * http://localhost:8080/tunnel-web/secure/axis. Set the property
68   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
69   * security.
70   * </p>
71   *
72   * <p>
73   * The SOAP utility is only generated for remote services.
74   * </p>
75   *
76   * @author    Brian Wing Shun Chan
77   * @see       TagsEntryServiceHttp
78   * @see       com.liferay.portlet.tags.model.TagsEntrySoap
79   * @see       com.liferay.portlet.tags.service.TagsEntryServiceUtil
80   * @generated
81   */
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 }