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="TagsAssetServiceUtil.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 TagsAssetService} 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       TagsAssetService
37   * @generated
38   */
39  public class TagsAssetServiceUtil {
40      public static void deleteAsset(long assetId)
41          throws com.liferay.portal.PortalException,
42              com.liferay.portal.SystemException {
43          getService().deleteAsset(assetId);
44      }
45  
46      public static com.liferay.portlet.tags.model.TagsAsset getAsset(
47          long assetId)
48          throws com.liferay.portal.PortalException,
49              com.liferay.portal.SystemException {
50          return getService().getAsset(assetId);
51      }
52  
53      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
54          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
55          boolean andOperator, java.lang.String orderByCol1,
56          java.lang.String orderByCol2, java.lang.String orderByType1,
57          java.lang.String orderByType2, boolean excludeZeroViewCount,
58          java.util.Date publishDate, java.util.Date expirationDate, int start,
59          int end)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          return getService()
63                     .getAssets(groupId, classNameIds, entryIds, notEntryIds,
64              andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
65              excludeZeroViewCount, publishDate, expirationDate, start, end);
66      }
67  
68      public static int getAssetsCount(long groupId, long[] classNameIds,
69          long[] entryIds, long[] notEntryIds, boolean andOperator,
70          boolean excludeZeroViewCount, java.util.Date publishDate,
71          java.util.Date expirationDate)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException {
74          return getService()
75                     .getAssetsCount(groupId, classNameIds, entryIds,
76              notEntryIds, andOperator, excludeZeroViewCount, publishDate,
77              expirationDate);
78      }
79  
80      public static java.lang.String getAssetsRSS(long groupId,
81          long[] classNameIds, long[] entryIds, long[] notEntryIds,
82          boolean andOperator, java.lang.String orderByCol1,
83          java.lang.String orderByCol2, java.lang.String orderByType1,
84          java.lang.String orderByType2, boolean excludeZeroViewCount,
85          java.util.Date publishDate, java.util.Date expirationDate, int max,
86          java.lang.String type, double version, java.lang.String displayStyle,
87          java.lang.String feedURL, java.lang.String entryURL)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException {
90          return getService()
91                     .getAssetsRSS(groupId, classNameIds, entryIds, notEntryIds,
92              andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
93              excludeZeroViewCount, publishDate, expirationDate, max, type,
94              version, displayStyle, feedURL, entryURL);
95      }
96  
97      public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
98          java.lang.String languageId) {
99          return getService().getAssetTypes(languageId);
100     }
101 
102     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
103         long companyId, int start, int end, java.lang.String languageId)
104         throws com.liferay.portal.SystemException {
105         return getService()
106                    .getCompanyAssetDisplays(companyId, start, end, languageId);
107     }
108 
109     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
110         long companyId, int start, int end)
111         throws com.liferay.portal.SystemException {
112         return getService().getCompanyAssets(companyId, start, end);
113     }
114 
115     public static int getCompanyAssetsCount(long companyId)
116         throws com.liferay.portal.SystemException {
117         return getService().getCompanyAssetsCount(companyId);
118     }
119 
120     public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
121         java.lang.String type, double version, java.lang.String displayStyle,
122         java.lang.String feedURL, java.lang.String entryURL)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         return getService()
126                    .getCompanyAssetsRSS(companyId, max, type, version,
127             displayStyle, feedURL, entryURL);
128     }
129 
130     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
131         java.lang.String className, long classPK)
132         throws com.liferay.portal.SystemException {
133         return getService().incrementViewCounter(className, classPK);
134     }
135 
136     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
137         long companyId, java.lang.String portletId, java.lang.String keywords,
138         java.lang.String languageId, int start, int end)
139         throws com.liferay.portal.SystemException {
140         return getService()
141                    .searchAssetDisplays(companyId, portletId, keywords,
142             languageId, start, end);
143     }
144 
145     public static int searchAssetDisplaysCount(long companyId,
146         java.lang.String portletId, java.lang.String keywords,
147         java.lang.String languageId) throws com.liferay.portal.SystemException {
148         return getService()
149                    .searchAssetDisplaysCount(companyId, portletId, keywords,
150             languageId);
151     }
152 
153     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
154         long groupId, java.lang.String className, long classPK,
155         java.lang.String[] categoryNames, java.lang.String[] entryNames,
156         boolean visible, java.util.Date startDate, java.util.Date endDate,
157         java.util.Date publishDate, java.util.Date expirationDate,
158         java.lang.String mimeType, java.lang.String title,
159         java.lang.String description, java.lang.String summary,
160         java.lang.String url, int height, int width, java.lang.Integer priority)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         return getService()
164                    .updateAsset(groupId, className, classPK, categoryNames,
165             entryNames, visible, startDate, endDate, publishDate,
166             expirationDate, mimeType, title, description, summary, url, height,
167             width, priority);
168     }
169 
170     public static TagsAssetService getService() {
171         if (_service == null) {
172             _service = (TagsAssetService)PortalBeanLocatorUtil.locate(TagsAssetService.class.getName());
173         }
174 
175         return _service;
176     }
177 
178     public void setService(TagsAssetService service) {
179         _service = service;
180     }
181 
182     private static TagsAssetService _service;
183 }