1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.persistence;
24  
25  /**
26   * <a href="TagsAssetFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class TagsAssetFinderUtil {
32      public static int countAssets(long groupId, long[] classNameIds,
33          boolean excludeZeroViewCount, java.util.Date publishDate,
34          java.util.Date expirationDate)
35          throws com.liferay.portal.SystemException {
36          return getFinder()
37                     .countAssets(groupId, classNameIds, excludeZeroViewCount,
38              publishDate, expirationDate);
39      }
40  
41      public static int countByAndEntryIds(long groupId, long[] classNameIds,
42          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
43          java.util.Date publishDate, java.util.Date expirationDate)
44          throws com.liferay.portal.SystemException {
45          return getFinder()
46                     .countByAndEntryIds(groupId, classNameIds, entryIds,
47              notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
48      }
49  
50      public static int countByOrEntryIds(long groupId, long[] classNameIds,
51          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
52          java.util.Date publishDate, java.util.Date expirationDate)
53          throws com.liferay.portal.SystemException {
54          return getFinder()
55                     .countByOrEntryIds(groupId, classNameIds, entryIds,
56              notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
57      }
58  
59      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAssets(
60          long groupId, long[] classNameIds, java.lang.String orderByCol1,
61          java.lang.String orderByCol2, java.lang.String orderByType1,
62          java.lang.String orderByType2, boolean excludeZeroViewCount,
63          java.util.Date publishDate, java.util.Date expirationDate, int start,
64          int end) throws com.liferay.portal.SystemException {
65          return getFinder()
66                     .findAssets(groupId, classNameIds, orderByCol1, orderByCol2,
67              orderByType1, orderByType2, excludeZeroViewCount, publishDate,
68              expirationDate, start, end);
69      }
70  
71      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByAndEntryIds(
72          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
73          java.lang.String orderByCol1, java.lang.String orderByCol2,
74          java.lang.String orderByType1, java.lang.String orderByType2,
75          boolean excludeZeroViewCount, java.util.Date publishDate,
76          java.util.Date expirationDate, int start, int end)
77          throws com.liferay.portal.SystemException {
78          return getFinder()
79                     .findByAndEntryIds(groupId, classNameIds, entryIds,
80              notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
81              excludeZeroViewCount, publishDate, expirationDate, start, end);
82      }
83  
84      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
85          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
86          java.util.Date publishDate, java.util.Date expirationDate)
87          throws com.liferay.portal.SystemException {
88          return getFinder()
89                     .findByOrEntryIds(groupId, classNameIds, entryIds,
90              notEntryIds, publishDate, expirationDate);
91      }
92  
93      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
94          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
95          java.lang.String orderByCol1, java.lang.String orderByCol2,
96          java.lang.String orderByType1, java.lang.String orderByType2,
97          boolean excludeZeroViewCount, java.util.Date publishDate,
98          java.util.Date expirationDate, int start, int end)
99          throws com.liferay.portal.SystemException {
100         return getFinder()
101                    .findByOrEntryIds(groupId, classNameIds, entryIds,
102             notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
103             excludeZeroViewCount, publishDate, expirationDate, start, end);
104     }
105 
106     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByViewCount(
107         long[] classNameId, boolean asc, int start, int end)
108         throws com.liferay.portal.SystemException {
109         return getFinder().findByViewCount(classNameId, asc, start, end);
110     }
111 
112     public static TagsAssetFinder getFinder() {
113         return _finder;
114     }
115 
116     public void setFinder(TagsAssetFinder finder) {
117         _finder = finder;
118     }
119 
120     private static TagsAssetFinder _finder;
121 }