1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.tags.service.persistence;
21  
22  /**
23   * <a href="TagsAssetFinderUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class TagsAssetFinderUtil {
29      public static int countAssets(long groupId, long[] classNameIds,
30          boolean excludeZeroViewCount, java.util.Date publishDate,
31          java.util.Date expirationDate)
32          throws com.liferay.portal.SystemException {
33          return getFinder()
34                     .countAssets(groupId, classNameIds, excludeZeroViewCount,
35              publishDate, expirationDate);
36      }
37  
38      public static int countByAndEntryIds(long groupId, long[] classNameIds,
39          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
40          java.util.Date publishDate, java.util.Date expirationDate)
41          throws com.liferay.portal.SystemException {
42          return getFinder()
43                     .countByAndEntryIds(groupId, classNameIds, entryIds,
44              notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
45      }
46  
47      public static int countByOrEntryIds(long groupId, long[] classNameIds,
48          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
49          java.util.Date publishDate, java.util.Date expirationDate)
50          throws com.liferay.portal.SystemException {
51          return getFinder()
52                     .countByOrEntryIds(groupId, classNameIds, entryIds,
53              notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
54      }
55  
56      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAssets(
57          long groupId, long[] classNameIds, java.lang.String orderByCol1,
58          java.lang.String orderByCol2, java.lang.String orderByType1,
59          java.lang.String orderByType2, boolean excludeZeroViewCount,
60          java.util.Date publishDate, java.util.Date expirationDate, int start,
61          int end) throws com.liferay.portal.SystemException {
62          return getFinder()
63                     .findAssets(groupId, classNameIds, orderByCol1, orderByCol2,
64              orderByType1, orderByType2, excludeZeroViewCount, publishDate,
65              expirationDate, start, end);
66      }
67  
68      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByAndEntryIds(
69          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
70          java.lang.String orderByCol1, java.lang.String orderByCol2,
71          java.lang.String orderByType1, java.lang.String orderByType2,
72          boolean excludeZeroViewCount, java.util.Date publishDate,
73          java.util.Date expirationDate, int start, int end)
74          throws com.liferay.portal.SystemException {
75          return getFinder()
76                     .findByAndEntryIds(groupId, classNameIds, entryIds,
77              notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
78              excludeZeroViewCount, publishDate, expirationDate, start, end);
79      }
80  
81      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
82          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
83          java.util.Date publishDate, java.util.Date expirationDate)
84          throws com.liferay.portal.SystemException {
85          return getFinder()
86                     .findByOrEntryIds(groupId, classNameIds, entryIds,
87              notEntryIds, publishDate, expirationDate);
88      }
89  
90      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
91          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
92          java.lang.String orderByCol1, java.lang.String orderByCol2,
93          java.lang.String orderByType1, java.lang.String orderByType2,
94          boolean excludeZeroViewCount, java.util.Date publishDate,
95          java.util.Date expirationDate, int start, int end)
96          throws com.liferay.portal.SystemException {
97          return getFinder()
98                     .findByOrEntryIds(groupId, classNameIds, entryIds,
99              notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
100             excludeZeroViewCount, publishDate, expirationDate, start, end);
101     }
102 
103     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByViewCount(
104         long[] classNameId, boolean asc, int start, int end)
105         throws com.liferay.portal.SystemException {
106         return getFinder().findByViewCount(classNameId, asc, start, end);
107     }
108 
109     public static TagsAssetFinder getFinder() {
110         return _finder;
111     }
112 
113     public void setFinder(TagsAssetFinder finder) {
114         _finder = finder;
115     }
116 
117     private static TagsAssetFinder _finder;
118 }