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, java.rmi.RemoteException {
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, java.rmi.RemoteException {
50          return getService().getAsset(assetId);
51      }
52  
53      public static java.lang.String getAssetsRSS(long groupId,
54          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 max,
59          java.lang.String type, double version, java.lang.String displayStyle,
60          java.lang.String feedURL, java.lang.String entryURL)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException, java.rmi.RemoteException {
63          return getService()
64                     .getAssetsRSS(groupId, classNameIds, entryIds, notEntryIds,
65              andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
66              excludeZeroViewCount, publishDate, expirationDate, max, type,
67              version, displayStyle, feedURL, entryURL);
68      }
69  
70      public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
71          java.lang.String languageId) throws java.rmi.RemoteException {
72          return getService().getAssetTypes(languageId);
73      }
74  
75      public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
76          long companyId, int start, int end, java.lang.String languageId)
77          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
78          return getService()
79                     .getCompanyAssetDisplays(companyId, start, end, languageId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
83          long companyId, int start, int end)
84          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
85          return getService().getCompanyAssets(companyId, start, end);
86      }
87  
88      public static int getCompanyAssetsCount(long companyId)
89          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
90          return getService().getCompanyAssetsCount(companyId);
91      }
92  
93      public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
94          java.lang.String type, double version, java.lang.String displayStyle,
95          java.lang.String feedURL, java.lang.String entryURL)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException, java.rmi.RemoteException {
98          return getService()
99                     .getCompanyAssetsRSS(companyId, max, type, version,
100             displayStyle, feedURL, entryURL);
101     }
102 
103     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
104         java.lang.String className, long classPK)
105         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
106         return getService().incrementViewCounter(className, classPK);
107     }
108 
109     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
110         long companyId, java.lang.String portletId, java.lang.String keywords,
111         java.lang.String languageId, int start, int end)
112         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
113         return getService()
114                    .searchAssetDisplays(companyId, portletId, keywords,
115             languageId, start, end);
116     }
117 
118     public static int searchAssetDisplaysCount(long companyId,
119         java.lang.String portletId, java.lang.String keywords,
120         java.lang.String languageId)
121         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
122         return getService()
123                    .searchAssetDisplaysCount(companyId, portletId, keywords,
124             languageId);
125     }
126 
127     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
128         long groupId, java.lang.String className, long classPK,
129         java.lang.String[] entryNames, java.util.Date startDate,
130         java.util.Date endDate, java.util.Date publishDate,
131         java.util.Date expirationDate, java.lang.String mimeType,
132         java.lang.String title, java.lang.String description,
133         java.lang.String summary, java.lang.String url, int height, int width,
134         java.lang.Integer priority)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException, java.rmi.RemoteException {
137         return getService()
138                    .updateAsset(groupId, className, classPK, entryNames,
139             startDate, endDate, publishDate, expirationDate, mimeType, title,
140             description, summary, url, height, width, priority);
141     }
142 
143     public static TagsAssetService getService() {
144         if (_service == null) {
145             _service = (TagsAssetService)PortalBeanLocatorUtil.locate(TagsAssetService.class.getName());
146         }
147 
148         return _service;
149     }
150 
151     public void setService(TagsAssetService service) {
152         _service = service;
153     }
154 
155     private static TagsAssetService _service;
156 }