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