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