1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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;
24  
25  
26  /**
27   * <a href="TagsAssetLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.tags.service.TagsAssetLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.tags.service.TagsAssetLocalService
45   *
46   */
47  public class TagsAssetLocalServiceUtil {
48      public static com.liferay.portlet.tags.model.TagsAsset addTagsAsset(
49          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
50          throws com.liferay.portal.SystemException {
51          return getService().addTagsAsset(tagsAsset);
52      }
53  
54      public static com.liferay.portlet.tags.model.TagsAsset createTagsAsset(
55          long assetId) {
56          return getService().createTagsAsset(assetId);
57      }
58  
59      public static void deleteTagsAsset(long assetId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteTagsAsset(assetId);
63      }
64  
65      public static void deleteTagsAsset(
66          com.liferay.portlet.tags.model.TagsAsset tagsAsset)
67          throws com.liferay.portal.SystemException {
68          getService().deleteTagsAsset(tagsAsset);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.tags.model.TagsAsset getTagsAsset(
84          long assetId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getTagsAsset(assetId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getTagsAssets(start, end);
93      }
94  
95      public static int getTagsAssetsCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getTagsAssetsCount();
98      }
99  
100     public static com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
101         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
102         throws com.liferay.portal.SystemException {
103         return getService().updateTagsAsset(tagsAsset);
104     }
105 
106     public static void deleteAsset(long assetId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         getService().deleteAsset(assetId);
110     }
111 
112     public static void deleteAsset(java.lang.String className, long classPK)
113         throws com.liferay.portal.SystemException {
114         getService().deleteAsset(className, classPK);
115     }
116 
117     public static void deleteAsset(
118         com.liferay.portlet.tags.model.TagsAsset asset)
119         throws com.liferay.portal.SystemException {
120         getService().deleteAsset(asset);
121     }
122 
123     public static com.liferay.portlet.tags.model.TagsAsset getAsset(
124         long assetId)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return getService().getAsset(assetId);
128     }
129 
130     public static com.liferay.portlet.tags.model.TagsAsset getAsset(
131         java.lang.String className, long classPK)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         return getService().getAsset(className, classPK);
135     }
136 
137     public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
138         java.lang.String languageId) {
139         return getService().getAssetTypes(languageId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
143         long[] entryIds, long[] notEntryIds, boolean andOperator,
144         boolean excludeZeroViewCount, int start, int end)
145         throws com.liferay.portal.SystemException {
146         return getService()
147                    .getAssets(entryIds, notEntryIds, andOperator,
148             excludeZeroViewCount, start, end);
149     }
150 
151     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
152         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
153         boolean andOperator, boolean excludeZeroViewCount, int start, int end)
154         throws com.liferay.portal.SystemException {
155         return getService()
156                    .getAssets(groupId, classNameIds, entryIds, notEntryIds,
157             andOperator, excludeZeroViewCount, start, end);
158     }
159 
160     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
161         long[] entryIds, long[] notEntryIds, boolean andOperator,
162         boolean excludeZeroViewCount, java.util.Date publishDate,
163         java.util.Date expirationDate, int start, int end)
164         throws com.liferay.portal.SystemException {
165         return getService()
166                    .getAssets(entryIds, notEntryIds, andOperator,
167             excludeZeroViewCount, publishDate, expirationDate, start, end);
168     }
169 
170     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
171         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
172         boolean andOperator, boolean excludeZeroViewCount,
173         java.util.Date publishDate, java.util.Date expirationDate, int start,
174         int end) throws com.liferay.portal.SystemException {
175         return getService()
176                    .getAssets(groupId, classNameIds, entryIds, notEntryIds,
177             andOperator, excludeZeroViewCount, publishDate, expirationDate,
178             start, end);
179     }
180 
181     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
182         long[] entryIds, long[] notEntryIds, boolean andOperator,
183         java.lang.String orderByCol1, java.lang.String orderByCol2,
184         java.lang.String orderByType1, java.lang.String orderByType2,
185         boolean excludeZeroViewCount, java.util.Date publishDate,
186         java.util.Date expirationDate, int start, int end)
187         throws com.liferay.portal.SystemException {
188         return getService()
189                    .getAssets(entryIds, notEntryIds, andOperator, orderByCol1,
190             orderByCol2, orderByType1, orderByType2, excludeZeroViewCount,
191             publishDate, expirationDate, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
195         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
196         boolean andOperator, java.lang.String orderByCol1,
197         java.lang.String orderByCol2, java.lang.String orderByType1,
198         java.lang.String orderByType2, boolean excludeZeroViewCount,
199         java.util.Date publishDate, java.util.Date expirationDate, int start,
200         int end) throws com.liferay.portal.SystemException {
201         return getService()
202                    .getAssets(groupId, classNameIds, entryIds, notEntryIds,
203             andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
204             excludeZeroViewCount, publishDate, expirationDate, start, end);
205     }
206 
207     public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
208         boolean andOperator, boolean excludeZeroViewCount)
209         throws com.liferay.portal.SystemException {
210         return getService()
211                    .getAssetsCount(entryIds, notEntryIds, andOperator,
212             excludeZeroViewCount);
213     }
214 
215     public static int getAssetsCount(long groupId, long[] entryIds,
216         long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
217         throws com.liferay.portal.SystemException {
218         return getService()
219                    .getAssetsCount(groupId, entryIds, notEntryIds, andOperator,
220             excludeZeroViewCount);
221     }
222 
223     public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
224         boolean andOperator, boolean excludeZeroViewCount,
225         java.util.Date publishDate, java.util.Date expirationDate)
226         throws com.liferay.portal.SystemException {
227         return getService()
228                    .getAssetsCount(entryIds, notEntryIds, andOperator,
229             excludeZeroViewCount, publishDate, expirationDate);
230     }
231 
232     public static int getAssetsCount(long groupId, long[] classNameIds,
233         long[] entryIds, long[] notEntryIds, boolean andOperator,
234         boolean excludeZeroViewCount, java.util.Date publishDate,
235         java.util.Date expirationDate)
236         throws com.liferay.portal.SystemException {
237         return getService()
238                    .getAssetsCount(groupId, classNameIds, entryIds,
239             notEntryIds, andOperator, excludeZeroViewCount, publishDate,
240             expirationDate);
241     }
242 
243     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
244         long companyId, int start, int end, java.lang.String languageId)
245         throws com.liferay.portal.SystemException {
246         return getService()
247                    .getCompanyAssetDisplays(companyId, start, end, languageId);
248     }
249 
250     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
251         long companyId, int start, int end)
252         throws com.liferay.portal.SystemException {
253         return getService().getCompanyAssets(companyId, start, end);
254     }
255 
256     public static int getCompanyAssetsCount(long companyId)
257         throws com.liferay.portal.SystemException {
258         return getService().getCompanyAssetsCount(companyId);
259     }
260 
261     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
262         java.lang.String className, boolean asc, int start, int end)
263         throws com.liferay.portal.SystemException {
264         return getService().getTopViewedAssets(className, asc, start, end);
265     }
266 
267     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
268         java.lang.String[] className, boolean asc, int start, int end)
269         throws com.liferay.portal.SystemException {
270         return getService().getTopViewedAssets(className, asc, start, end);
271     }
272 
273     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
274         java.lang.String className, long classPK)
275         throws com.liferay.portal.SystemException {
276         return getService().incrementViewCounter(className, classPK);
277     }
278 
279     public static com.liferay.portal.kernel.search.Hits search(long companyId,
280         java.lang.String portletId, java.lang.String keywords, int start,
281         int end) throws com.liferay.portal.SystemException {
282         return getService().search(companyId, portletId, keywords, start, end);
283     }
284 
285     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
286         long companyId, java.lang.String portletId, java.lang.String keywords,
287         java.lang.String languageId, int start, int end)
288         throws com.liferay.portal.SystemException {
289         return getService()
290                    .searchAssetDisplays(companyId, portletId, keywords,
291             languageId, start, end);
292     }
293 
294     public static int searchAssetDisplaysCount(long companyId,
295         java.lang.String portletId, java.lang.String keywords,
296         java.lang.String languageId) throws com.liferay.portal.SystemException {
297         return getService()
298                    .searchAssetDisplaysCount(companyId, portletId, keywords,
299             languageId);
300     }
301 
302     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
303         long userId, long groupId, java.lang.String className, long classPK,
304         java.lang.String[] categoryNames, java.lang.String[] entryNames)
305         throws com.liferay.portal.PortalException,
306             com.liferay.portal.SystemException {
307         return getService()
308                    .updateAsset(userId, groupId, className, classPK,
309             categoryNames, entryNames);
310     }
311 
312     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
313         long userId, long groupId, java.lang.String className, long classPK,
314         java.lang.String[] categoryNames, java.lang.String[] entryNames,
315         boolean visible, java.util.Date startDate, java.util.Date endDate,
316         java.util.Date publishDate, java.util.Date expirationDate,
317         java.lang.String mimeType, java.lang.String title,
318         java.lang.String description, java.lang.String summary,
319         java.lang.String url, int height, int width, java.lang.Integer priority)
320         throws com.liferay.portal.PortalException,
321             com.liferay.portal.SystemException {
322         return getService()
323                    .updateAsset(userId, groupId, className, classPK,
324             categoryNames, entryNames, visible, startDate, endDate,
325             publishDate, expirationDate, mimeType, title, description, summary,
326             url, height, width, priority);
327     }
328 
329     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
330         long userId, long groupId, java.lang.String className, long classPK,
331         java.lang.String[] categoryNames, java.lang.String[] entryNames,
332         boolean visible, java.util.Date startDate, java.util.Date endDate,
333         java.util.Date publishDate, java.util.Date expirationDate,
334         java.lang.String mimeType, java.lang.String title,
335         java.lang.String description, java.lang.String summary,
336         java.lang.String url, int height, int width,
337         java.lang.Integer priority, boolean sync)
338         throws com.liferay.portal.PortalException,
339             com.liferay.portal.SystemException {
340         return getService()
341                    .updateAsset(userId, groupId, className, classPK,
342             categoryNames, entryNames, visible, startDate, endDate,
343             publishDate, expirationDate, mimeType, title, description, summary,
344             url, height, width, priority, sync);
345     }
346 
347     public static com.liferay.portlet.tags.model.TagsAsset updateVisible(
348         java.lang.String className, long classPK, boolean visible)
349         throws com.liferay.portal.PortalException,
350             com.liferay.portal.SystemException {
351         return getService().updateVisible(className, classPK, visible);
352     }
353 
354     public static void validate(java.lang.String className,
355         java.lang.String[] entryNames)
356         throws com.liferay.portal.PortalException {
357         getService().validate(className, entryNames);
358     }
359 
360     public static TagsAssetLocalService getService() {
361         if (_service == null) {
362             throw new RuntimeException("TagsAssetLocalService is not set");
363         }
364 
365         return _service;
366     }
367 
368     public void setService(TagsAssetLocalService service) {
369         _service = service;
370     }
371 
372     private static TagsAssetLocalService _service;
373 }