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