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.TagsAssetServiceUtil;
29  
30  import java.rmi.RemoteException;
31  
32  /**
33   * <a href="TagsAssetServiceSoap.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.TagsAssetServiceUtil} 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.TagsAssetSoap}.
52   * If the method in the service utility returns a
53   * {@link com.liferay.portlet.tags.model.TagsAsset}, that is translated to a
54   * {@link com.liferay.portlet.tags.model.TagsAssetSoap}. 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       TagsAssetServiceHttp
78   * @see       com.liferay.portlet.tags.model.TagsAssetSoap
79   * @see       com.liferay.portlet.tags.service.TagsAssetServiceUtil
80   * @generated
81   */
82  public class TagsAssetServiceSoap {
83      public static void deleteAsset(long assetId) throws RemoteException {
84          try {
85              TagsAssetServiceUtil.deleteAsset(assetId);
86          }
87          catch (Exception e) {
88              _log.error(e, e);
89  
90              throw new RemoteException(e.getMessage());
91          }
92      }
93  
94      public static com.liferay.portlet.tags.model.TagsAssetSoap getAsset(
95          long assetId) throws RemoteException {
96          try {
97              com.liferay.portlet.tags.model.TagsAsset returnValue = TagsAssetServiceUtil.getAsset(assetId);
98  
99              return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModel(returnValue);
100         }
101         catch (Exception e) {
102             _log.error(e, e);
103 
104             throw new RemoteException(e.getMessage());
105         }
106     }
107 
108     public static java.lang.String getAssetsRSS(long groupId,
109         long[] classNameIds, long[] entryIds, long[] notEntryIds,
110         boolean andOperator, java.lang.String orderByCol1,
111         java.lang.String orderByCol2, java.lang.String orderByType1,
112         java.lang.String orderByType2, boolean excludeZeroViewCount,
113         java.util.Date publishDate, java.util.Date expirationDate, int max,
114         java.lang.String type, double version, java.lang.String displayStyle,
115         java.lang.String feedURL, java.lang.String entryURL)
116         throws RemoteException {
117         try {
118             java.lang.String returnValue = TagsAssetServiceUtil.getAssetsRSS(groupId,
119                     classNameIds, entryIds, notEntryIds, andOperator,
120                     orderByCol1, orderByCol2, orderByType1, orderByType2,
121                     excludeZeroViewCount, publishDate, expirationDate, max,
122                     type, version, displayStyle, feedURL, entryURL);
123 
124             return 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.TagsAssetType[] getAssetTypes(
134         java.lang.String languageId) throws RemoteException {
135         try {
136             com.liferay.portlet.tags.model.TagsAssetType[] returnValue = TagsAssetServiceUtil.getAssetTypes(languageId);
137 
138             return returnValue;
139         }
140         catch (Exception e) {
141             _log.error(e, e);
142 
143             throw new RemoteException(e.getMessage());
144         }
145     }
146 
147     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
148         long companyId, int start, int end, java.lang.String languageId)
149         throws RemoteException {
150         try {
151             com.liferay.portlet.tags.model.TagsAssetDisplay[] returnValue = TagsAssetServiceUtil.getCompanyAssetDisplays(companyId,
152                     start, end, languageId);
153 
154             return returnValue;
155         }
156         catch (Exception e) {
157             _log.error(e, e);
158 
159             throw new RemoteException(e.getMessage());
160         }
161     }
162 
163     public static com.liferay.portlet.tags.model.TagsAssetSoap[] getCompanyAssets(
164         long companyId, int start, int end) throws RemoteException {
165         try {
166             java.util.List<com.liferay.portlet.tags.model.TagsAsset> returnValue =
167                 TagsAssetServiceUtil.getCompanyAssets(companyId, start, end);
168 
169             return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModels(returnValue);
170         }
171         catch (Exception e) {
172             _log.error(e, e);
173 
174             throw new RemoteException(e.getMessage());
175         }
176     }
177 
178     public static int getCompanyAssetsCount(long companyId)
179         throws RemoteException {
180         try {
181             int returnValue = TagsAssetServiceUtil.getCompanyAssetsCount(companyId);
182 
183             return returnValue;
184         }
185         catch (Exception e) {
186             _log.error(e, e);
187 
188             throw new RemoteException(e.getMessage());
189         }
190     }
191 
192     public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
193         java.lang.String type, double version, java.lang.String displayStyle,
194         java.lang.String feedURL, java.lang.String entryURL)
195         throws RemoteException {
196         try {
197             java.lang.String returnValue = TagsAssetServiceUtil.getCompanyAssetsRSS(companyId,
198                     max, type, version, displayStyle, feedURL, entryURL);
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 com.liferay.portlet.tags.model.TagsAssetSoap incrementViewCounter(
210         java.lang.String className, long classPK) throws RemoteException {
211         try {
212             com.liferay.portlet.tags.model.TagsAsset returnValue = TagsAssetServiceUtil.incrementViewCounter(className,
213                     classPK);
214 
215             return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModel(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.TagsAssetDisplay[] searchAssetDisplays(
225         long companyId, java.lang.String portletId, java.lang.String keywords,
226         java.lang.String languageId, int start, int end)
227         throws RemoteException {
228         try {
229             com.liferay.portlet.tags.model.TagsAssetDisplay[] returnValue = TagsAssetServiceUtil.searchAssetDisplays(companyId,
230                     portletId, keywords, languageId, start, end);
231 
232             return returnValue;
233         }
234         catch (Exception e) {
235             _log.error(e, e);
236 
237             throw new RemoteException(e.getMessage());
238         }
239     }
240 
241     public static int searchAssetDisplaysCount(long companyId,
242         java.lang.String portletId, java.lang.String keywords,
243         java.lang.String languageId) throws RemoteException {
244         try {
245             int returnValue = TagsAssetServiceUtil.searchAssetDisplaysCount(companyId,
246                     portletId, keywords, languageId);
247 
248             return returnValue;
249         }
250         catch (Exception e) {
251             _log.error(e, e);
252 
253             throw new RemoteException(e.getMessage());
254         }
255     }
256 
257     public static com.liferay.portlet.tags.model.TagsAssetSoap updateAsset(
258         long groupId, java.lang.String className, long classPK,
259         java.lang.String[] entryNames, java.util.Date startDate,
260         java.util.Date endDate, java.util.Date publishDate,
261         java.util.Date expirationDate, java.lang.String mimeType,
262         java.lang.String title, java.lang.String description,
263         java.lang.String summary, java.lang.String url, int height, int width,
264         java.lang.Integer priority) throws RemoteException {
265         try {
266             com.liferay.portlet.tags.model.TagsAsset returnValue = TagsAssetServiceUtil.updateAsset(groupId,
267                     className, classPK, entryNames, startDate, endDate,
268                     publishDate, expirationDate, mimeType, title, description,
269                     summary, url, height, width, priority);
270 
271             return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModel(returnValue);
272         }
273         catch (Exception e) {
274             _log.error(e, e);
275 
276             throw new RemoteException(e.getMessage());
277         }
278     }
279 
280     private static Log _log = LogFactoryUtil.getLog(TagsAssetServiceSoap.class);
281 }