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 com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
107         com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
108         throws com.liferay.portal.SystemException {
109         return getService().updateTagsAsset(tagsAsset, merge);
110     }
111 
112     public static void deleteAsset(long assetId)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException {
115         getService().deleteAsset(assetId);
116     }
117 
118     public static void deleteAsset(java.lang.String className, long classPK)
119         throws com.liferay.portal.SystemException {
120         getService().deleteAsset(className, classPK);
121     }
122 
123     public static void deleteAsset(
124         com.liferay.portlet.tags.model.TagsAsset asset)
125         throws com.liferay.portal.SystemException {
126         getService().deleteAsset(asset);
127     }
128 
129     public static com.liferay.portlet.tags.model.TagsAsset getAsset(
130         long assetId)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return getService().getAsset(assetId);
134     }
135 
136     public static com.liferay.portlet.tags.model.TagsAsset getAsset(
137         java.lang.String className, long classPK)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         return getService().getAsset(className, classPK);
141     }
142 
143     public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
144         java.lang.String languageId) {
145         return getService().getAssetTypes(languageId);
146     }
147 
148     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
149         long[] entryIds, long[] notEntryIds, boolean andOperator,
150         boolean excludeZeroViewCount, int start, int end)
151         throws com.liferay.portal.SystemException {
152         return getService()
153                    .getAssets(entryIds, notEntryIds, andOperator,
154             excludeZeroViewCount, start, end);
155     }
156 
157     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
158         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
159         boolean andOperator, boolean excludeZeroViewCount, int start, int end)
160         throws com.liferay.portal.SystemException {
161         return getService()
162                    .getAssets(groupId, classNameIds, entryIds, notEntryIds,
163             andOperator, excludeZeroViewCount, start, end);
164     }
165 
166     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
167         long[] entryIds, long[] notEntryIds, boolean andOperator,
168         boolean excludeZeroViewCount, java.util.Date publishDate,
169         java.util.Date expirationDate, int start, int end)
170         throws com.liferay.portal.SystemException {
171         return getService()
172                    .getAssets(entryIds, notEntryIds, andOperator,
173             excludeZeroViewCount, publishDate, expirationDate, start, end);
174     }
175 
176     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
177         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
178         boolean andOperator, boolean excludeZeroViewCount,
179         java.util.Date publishDate, java.util.Date expirationDate, int start,
180         int end) throws com.liferay.portal.SystemException {
181         return getService()
182                    .getAssets(groupId, classNameIds, entryIds, notEntryIds,
183             andOperator, excludeZeroViewCount, publishDate, expirationDate,
184             start, end);
185     }
186 
187     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
188         long[] entryIds, long[] notEntryIds, boolean andOperator,
189         java.lang.String orderByCol1, java.lang.String orderByCol2,
190         java.lang.String orderByType1, java.lang.String orderByType2,
191         boolean excludeZeroViewCount, java.util.Date publishDate,
192         java.util.Date expirationDate, int start, int end)
193         throws com.liferay.portal.SystemException {
194         return getService()
195                    .getAssets(entryIds, notEntryIds, andOperator, orderByCol1,
196             orderByCol2, orderByType1, orderByType2, excludeZeroViewCount,
197             publishDate, expirationDate, start, end);
198     }
199 
200     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
201         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
202         boolean andOperator, java.lang.String orderByCol1,
203         java.lang.String orderByCol2, java.lang.String orderByType1,
204         java.lang.String orderByType2, boolean excludeZeroViewCount,
205         java.util.Date publishDate, java.util.Date expirationDate, int start,
206         int end) throws com.liferay.portal.SystemException {
207         return getService()
208                    .getAssets(groupId, classNameIds, entryIds, notEntryIds,
209             andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
210             excludeZeroViewCount, publishDate, expirationDate, start, end);
211     }
212 
213     public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
214         boolean andOperator, boolean excludeZeroViewCount)
215         throws com.liferay.portal.SystemException {
216         return getService()
217                    .getAssetsCount(entryIds, notEntryIds, andOperator,
218             excludeZeroViewCount);
219     }
220 
221     public static int getAssetsCount(long groupId, long[] entryIds,
222         long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
223         throws com.liferay.portal.SystemException {
224         return getService()
225                    .getAssetsCount(groupId, entryIds, notEntryIds, andOperator,
226             excludeZeroViewCount);
227     }
228 
229     public static int getAssetsCount(long[] entryIds, long[] notEntryIds,
230         boolean andOperator, boolean excludeZeroViewCount,
231         java.util.Date publishDate, java.util.Date expirationDate)
232         throws com.liferay.portal.SystemException {
233         return getService()
234                    .getAssetsCount(entryIds, notEntryIds, andOperator,
235             excludeZeroViewCount, publishDate, expirationDate);
236     }
237 
238     public static int getAssetsCount(long groupId, long[] classNameIds,
239         long[] entryIds, long[] notEntryIds, boolean andOperator,
240         boolean excludeZeroViewCount, java.util.Date publishDate,
241         java.util.Date expirationDate)
242         throws com.liferay.portal.SystemException {
243         return getService()
244                    .getAssetsCount(groupId, classNameIds, entryIds,
245             notEntryIds, andOperator, excludeZeroViewCount, publishDate,
246             expirationDate);
247     }
248 
249     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
250         long companyId, int start, int end, java.lang.String languageId)
251         throws com.liferay.portal.SystemException {
252         return getService()
253                    .getCompanyAssetDisplays(companyId, start, end, languageId);
254     }
255 
256     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
257         long companyId, int start, int end)
258         throws com.liferay.portal.SystemException {
259         return getService().getCompanyAssets(companyId, start, end);
260     }
261 
262     public static int getCompanyAssetsCount(long companyId)
263         throws com.liferay.portal.SystemException {
264         return getService().getCompanyAssetsCount(companyId);
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 java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
274         java.lang.String[] className, boolean asc, int start, int end)
275         throws com.liferay.portal.SystemException {
276         return getService().getTopViewedAssets(className, asc, start, end);
277     }
278 
279     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
280         java.lang.String className, long classPK)
281         throws com.liferay.portal.SystemException {
282         return getService().incrementViewCounter(className, classPK);
283     }
284 
285     public static com.liferay.portal.kernel.search.Hits search(long companyId,
286         java.lang.String portletId, java.lang.String keywords, int start,
287         int end) throws com.liferay.portal.SystemException {
288         return getService().search(companyId, portletId, keywords, start, end);
289     }
290 
291     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
292         long companyId, java.lang.String portletId, java.lang.String keywords,
293         java.lang.String languageId, int start, int end)
294         throws com.liferay.portal.SystemException {
295         return getService()
296                    .searchAssetDisplays(companyId, portletId, keywords,
297             languageId, start, end);
298     }
299 
300     public static int searchAssetDisplaysCount(long companyId,
301         java.lang.String portletId, java.lang.String keywords,
302         java.lang.String languageId) throws com.liferay.portal.SystemException {
303         return getService()
304                    .searchAssetDisplaysCount(companyId, portletId, keywords,
305             languageId);
306     }
307 
308     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
309         long userId, long groupId, java.lang.String className, long classPK,
310         java.lang.String[] entryNames)
311         throws com.liferay.portal.PortalException,
312             com.liferay.portal.SystemException {
313         return getService()
314                    .updateAsset(userId, groupId, className, classPK, entryNames);
315     }
316 
317     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
318         long userId, long groupId, java.lang.String className, long classPK,
319         java.lang.String[] entryNames, java.util.Date startDate,
320         java.util.Date endDate, java.util.Date publishDate,
321         java.util.Date expirationDate, java.lang.String mimeType,
322         java.lang.String title, java.lang.String description,
323         java.lang.String summary, java.lang.String url, int height, int width,
324         java.lang.Integer priority)
325         throws com.liferay.portal.PortalException,
326             com.liferay.portal.SystemException {
327         return getService()
328                    .updateAsset(userId, groupId, className, classPK,
329             entryNames, startDate, endDate, publishDate, expirationDate,
330             mimeType, title, description, summary, url, height, width, priority);
331     }
332 
333     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
334         long userId, long groupId, java.lang.String className, long classPK,
335         java.lang.String[] entryNames, java.util.Date startDate,
336         java.util.Date endDate, java.util.Date publishDate,
337         java.util.Date expirationDate, java.lang.String mimeType,
338         java.lang.String title, java.lang.String description,
339         java.lang.String summary, java.lang.String url, int height, int width,
340         java.lang.Integer priority, boolean sync)
341         throws com.liferay.portal.PortalException,
342             com.liferay.portal.SystemException {
343         return getService()
344                    .updateAsset(userId, groupId, className, classPK,
345             entryNames, startDate, endDate, publishDate, expirationDate,
346             mimeType, title, description, summary, url, height, width,
347             priority, sync);
348     }
349 
350     public static void validate(java.lang.String className,
351         java.lang.String[] entryNames)
352         throws com.liferay.portal.PortalException {
353         getService().validate(className, entryNames);
354     }
355 
356     public static TagsAssetLocalService getService() {
357         if (_service == null) {
358             throw new RuntimeException("TagsAssetLocalService is not set");
359         }
360 
361         return _service;
362     }
363 
364     public void setService(TagsAssetLocalService service) {
365         _service = service;
366     }
367 
368     private static TagsAssetLocalService _service;
369 }