1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="TagsAssetServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link TagsAssetService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       TagsAssetService
45   * @generated
46   */
47  public class TagsAssetServiceUtil {
48      public static void deleteAsset(long assetId)
49          throws com.liferay.portal.PortalException,
50              com.liferay.portal.SystemException {
51          getService().deleteAsset(assetId);
52      }
53  
54      public static com.liferay.portlet.tags.model.TagsAsset getAsset(
55          long assetId)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException {
58          return getService().getAsset(assetId);
59      }
60  
61      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
62          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
63          boolean andOperator, java.lang.String orderByCol1,
64          java.lang.String orderByCol2, java.lang.String orderByType1,
65          java.lang.String orderByType2, boolean excludeZeroViewCount,
66          java.util.Date publishDate, java.util.Date expirationDate, int start,
67          int end)
68          throws com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException {
70          return getService()
71                     .getAssets(groupId, classNameIds, entryIds, notEntryIds,
72              andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
73              excludeZeroViewCount, publishDate, expirationDate, start, end);
74      }
75  
76      public static int getAssetsCount(long groupId, long[] classNameIds,
77          long[] entryIds, long[] notEntryIds, boolean andOperator,
78          boolean excludeZeroViewCount, java.util.Date publishDate,
79          java.util.Date expirationDate)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return getService()
83                     .getAssetsCount(groupId, classNameIds, entryIds,
84              notEntryIds, andOperator, excludeZeroViewCount, publishDate,
85              expirationDate);
86      }
87  
88      public static java.lang.String getAssetsRSS(long groupId,
89          long[] classNameIds, long[] entryIds, long[] notEntryIds,
90          boolean andOperator, java.lang.String orderByCol1,
91          java.lang.String orderByCol2, java.lang.String orderByType1,
92          java.lang.String orderByType2, boolean excludeZeroViewCount,
93          java.util.Date publishDate, java.util.Date expirationDate, 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 {
98          return getService()
99                     .getAssetsRSS(groupId, classNameIds, entryIds, notEntryIds,
100             andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
101             excludeZeroViewCount, publishDate, expirationDate, max, type,
102             version, displayStyle, feedURL, entryURL);
103     }
104 
105     public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
106         java.lang.String languageId) {
107         return getService().getAssetTypes(languageId);
108     }
109 
110     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
111         long companyId, int start, int end, java.lang.String languageId)
112         throws com.liferay.portal.SystemException {
113         return getService()
114                    .getCompanyAssetDisplays(companyId, start, end, languageId);
115     }
116 
117     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
118         long companyId, int start, int end)
119         throws com.liferay.portal.SystemException {
120         return getService().getCompanyAssets(companyId, start, end);
121     }
122 
123     public static int getCompanyAssetsCount(long companyId)
124         throws com.liferay.portal.SystemException {
125         return getService().getCompanyAssetsCount(companyId);
126     }
127 
128     public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
129         java.lang.String type, double version, java.lang.String displayStyle,
130         java.lang.String feedURL, java.lang.String entryURL)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return getService()
134                    .getCompanyAssetsRSS(companyId, max, type, version,
135             displayStyle, feedURL, entryURL);
136     }
137 
138     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
139         java.lang.String className, long classPK)
140         throws com.liferay.portal.SystemException {
141         return getService().incrementViewCounter(className, classPK);
142     }
143 
144     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
145         long companyId, java.lang.String portletId, java.lang.String keywords,
146         java.lang.String languageId, int start, int end)
147         throws com.liferay.portal.SystemException {
148         return getService()
149                    .searchAssetDisplays(companyId, portletId, keywords,
150             languageId, start, end);
151     }
152 
153     public static int searchAssetDisplaysCount(long companyId,
154         java.lang.String portletId, java.lang.String keywords,
155         java.lang.String languageId) throws com.liferay.portal.SystemException {
156         return getService()
157                    .searchAssetDisplaysCount(companyId, portletId, keywords,
158             languageId);
159     }
160 
161     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
162         long groupId, java.lang.String className, long classPK,
163         java.lang.String[] categoryNames, java.lang.String[] entryNames,
164         boolean visible, java.util.Date startDate, java.util.Date endDate,
165         java.util.Date publishDate, java.util.Date expirationDate,
166         java.lang.String mimeType, java.lang.String title,
167         java.lang.String description, java.lang.String summary,
168         java.lang.String url, int height, int width, java.lang.Integer priority)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException {
171         return getService()
172                    .updateAsset(groupId, className, classPK, categoryNames,
173             entryNames, visible, startDate, endDate, publishDate,
174             expirationDate, mimeType, title, description, summary, url, height,
175             width, priority);
176     }
177 
178     public static TagsAssetService getService() {
179         if (_service == null) {
180             _service = (TagsAssetService)PortalBeanLocatorUtil.locate(TagsAssetService.class.getName());
181         }
182 
183         return _service;
184     }
185 
186     public void setService(TagsAssetService service) {
187         _service = service;
188     }
189 
190     private static TagsAssetService _service;
191 }