1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="AssetEntryLocalServiceUtil.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 AssetEntryLocalService} 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       AssetEntryLocalService
37   * @generated
38   */
39  public class AssetEntryLocalServiceUtil {
40      public static com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
41          com.liferay.portlet.asset.model.AssetEntry assetEntry)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addAssetEntry(assetEntry);
44      }
45  
46      public static com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
47          long entryId) {
48          return getService().createAssetEntry(entryId);
49      }
50  
51      public static void deleteAssetEntry(long entryId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteAssetEntry(entryId);
55      }
56  
57      public static void deleteAssetEntry(
58          com.liferay.portlet.asset.model.AssetEntry assetEntry)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteAssetEntry(assetEntry);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
76          long entryId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getAssetEntry(entryId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getAssetEntries(start, end);
86      }
87  
88      public static int getAssetEntriesCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getAssetEntriesCount();
91      }
92  
93      public static com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
94          com.liferay.portlet.asset.model.AssetEntry assetEntry)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateAssetEntry(assetEntry);
97      }
98  
99      public static com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
100         com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getService().updateAssetEntry(assetEntry, merge);
103     }
104 
105     public static void deleteEntry(
106         com.liferay.portlet.asset.model.AssetEntry entry)
107         throws com.liferay.portal.kernel.exception.SystemException {
108         getService().deleteEntry(entry);
109     }
110 
111     public static void deleteEntry(long entryId)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException {
114         getService().deleteEntry(entryId);
115     }
116 
117     public static void deleteEntry(java.lang.String className, long classPK)
118         throws com.liferay.portal.kernel.exception.SystemException {
119         getService().deleteEntry(className, classPK);
120     }
121 
122     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
123         long companyId, int start, int end)
124         throws com.liferay.portal.kernel.exception.SystemException {
125         return getService().getCompanyEntries(companyId, start, end);
126     }
127 
128     public static int getCompanyEntriesCount(long companyId)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getService().getCompanyEntriesCount(companyId);
131     }
132 
133     public static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
134         long companyId, int start, int end, java.lang.String languageId)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getService()
137                    .getCompanyEntryDisplays(companyId, start, end, languageId);
138     }
139 
140     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
141         com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
142         throws com.liferay.portal.kernel.exception.SystemException {
143         return getService().getEntries(entryQuery);
144     }
145 
146     public static int getEntriesCount(
147         com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
148         throws com.liferay.portal.kernel.exception.SystemException {
149         return getService().getEntriesCount(entryQuery);
150     }
151 
152     public static com.liferay.portlet.asset.model.AssetEntry getEntry(
153         long entryId)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return getService().getEntry(entryId);
157     }
158 
159     public static com.liferay.portlet.asset.model.AssetEntry getEntry(
160         java.lang.String className, long classPK)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         return getService().getEntry(className, classPK);
164     }
165 
166     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
167         java.lang.String className, boolean asc, int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException {
169         return getService().getTopViewedEntries(className, asc, start, end);
170     }
171 
172     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
173         java.lang.String[] className, boolean asc, int start, int end)
174         throws com.liferay.portal.kernel.exception.SystemException {
175         return getService().getTopViewedEntries(className, asc, start, end);
176     }
177 
178     public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
179         java.lang.String className, long classPK)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getService().incrementViewCounter(className, classPK);
182     }
183 
184     public static com.liferay.portal.kernel.search.Hits search(long companyId,
185         java.lang.String portletId, java.lang.String keywords, int start,
186         int end) throws com.liferay.portal.kernel.exception.SystemException {
187         return getService().search(companyId, portletId, keywords, start, end);
188     }
189 
190     public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
191         long companyId, java.lang.String portletId, java.lang.String keywords,
192         java.lang.String languageId, int start, int end)
193         throws com.liferay.portal.kernel.exception.SystemException {
194         return getService()
195                    .searchEntryDisplays(companyId, portletId, keywords,
196             languageId, start, end);
197     }
198 
199     public static int searchEntryDisplaysCount(long companyId,
200         java.lang.String portletId, java.lang.String keywords,
201         java.lang.String languageId)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         return getService()
204                    .searchEntryDisplaysCount(companyId, portletId, keywords,
205             languageId);
206     }
207 
208     public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
209         long userId, long groupId, java.lang.String className, long classPK,
210         long[] categoryIds, java.lang.String[] tagNames)
211         throws com.liferay.portal.kernel.exception.PortalException,
212             com.liferay.portal.kernel.exception.SystemException {
213         return getService()
214                    .updateEntry(userId, groupId, className, classPK,
215             categoryIds, tagNames);
216     }
217 
218     public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
219         long userId, long groupId, java.lang.String className, long classPK,
220         long[] categoryIds, java.lang.String[] tagNames, boolean visible,
221         java.util.Date startDate, java.util.Date endDate,
222         java.util.Date publishDate, java.util.Date expirationDate,
223         java.lang.String mimeType, java.lang.String title,
224         java.lang.String description, java.lang.String summary,
225         java.lang.String url, int height, int width,
226         java.lang.Integer priority, boolean sync)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException {
229         return getService()
230                    .updateEntry(userId, groupId, className, classPK,
231             categoryIds, tagNames, visible, startDate, endDate, publishDate,
232             expirationDate, mimeType, title, description, summary, url, height,
233             width, priority, sync);
234     }
235 
236     public static com.liferay.portlet.asset.model.AssetEntry updateVisible(
237         java.lang.String className, long classPK, boolean visible)
238         throws com.liferay.portal.kernel.exception.PortalException,
239             com.liferay.portal.kernel.exception.SystemException {
240         return getService().updateVisible(className, classPK, visible);
241     }
242 
243     public static void validate(java.lang.String className, long[] categoryIds,
244         java.lang.String[] tagNames)
245         throws com.liferay.portal.kernel.exception.PortalException {
246         getService().validate(className, categoryIds, tagNames);
247     }
248 
249     public static AssetEntryLocalService getService() {
250         if (_service == null) {
251             _service = (AssetEntryLocalService)PortalBeanLocatorUtil.locate(AssetEntryLocalService.class.getName());
252         }
253 
254         return _service;
255     }
256 
257     public void setService(AssetEntryLocalService service) {
258         _service = service;
259     }
260 
261     private static AssetEntryLocalService _service;
262 }