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.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  public class TagsAssetFinderUtil {
31      public static int countAssets(long groupId, long[] classNameIds,
32          boolean excludeZeroViewCount, java.util.Date publishDate,
33          java.util.Date expirationDate)
34          throws com.liferay.portal.SystemException {
35          return getFinder()
36                     .countAssets(groupId, classNameIds, excludeZeroViewCount,
37              publishDate, expirationDate);
38      }
39  
40      public static int countByAndEntryIds(long groupId, long[] classNameIds,
41          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
42          java.util.Date publishDate, java.util.Date expirationDate)
43          throws com.liferay.portal.SystemException {
44          return getFinder()
45                     .countByAndEntryIds(groupId, classNameIds, entryIds,
46              notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
47      }
48  
49      public static int countByOrEntryIds(long groupId, long[] classNameIds,
50          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
51          java.util.Date publishDate, java.util.Date expirationDate)
52          throws com.liferay.portal.SystemException {
53          return getFinder()
54                     .countByOrEntryIds(groupId, classNameIds, entryIds,
55              notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
56      }
57  
58      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAssets(
59          long groupId, long[] classNameIds, java.lang.String orderByCol1,
60          java.lang.String orderByCol2, java.lang.String orderByType1,
61          java.lang.String orderByType2, boolean excludeZeroViewCount,
62          java.util.Date publishDate, java.util.Date expirationDate, int start,
63          int end) throws com.liferay.portal.SystemException {
64          return getFinder()
65                     .findAssets(groupId, classNameIds, orderByCol1, orderByCol2,
66              orderByType1, orderByType2, excludeZeroViewCount, publishDate,
67              expirationDate, start, end);
68      }
69  
70      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByAndEntryIds(
71          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
72          java.lang.String orderByCol1, java.lang.String orderByCol2,
73          java.lang.String orderByType1, java.lang.String orderByType2,
74          boolean excludeZeroViewCount, java.util.Date publishDate,
75          java.util.Date expirationDate, int start, int end)
76          throws com.liferay.portal.SystemException {
77          return getFinder()
78                     .findByAndEntryIds(groupId, classNameIds, entryIds,
79              notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
80              excludeZeroViewCount, publishDate, expirationDate, start, end);
81      }
82  
83      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
84          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
85          java.util.Date publishDate, java.util.Date expirationDate)
86          throws com.liferay.portal.SystemException {
87          return getFinder()
88                     .findByOrEntryIds(groupId, classNameIds, entryIds,
89              notEntryIds, publishDate, expirationDate);
90      }
91  
92      public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
93          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
94          java.lang.String orderByCol1, java.lang.String orderByCol2,
95          java.lang.String orderByType1, java.lang.String orderByType2,
96          boolean excludeZeroViewCount, java.util.Date publishDate,
97          java.util.Date expirationDate, int start, int end)
98          throws com.liferay.portal.SystemException {
99          return getFinder()
100                    .findByOrEntryIds(groupId, classNameIds, entryIds,
101             notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
102             excludeZeroViewCount, publishDate, expirationDate, start, end);
103     }
104 
105     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByViewCount(
106         long[] classNameId, boolean asc, int start, int end)
107         throws com.liferay.portal.SystemException {
108         return getFinder().findByViewCount(classNameId, asc, start, end);
109     }
110 
111     public static TagsAssetFinder getFinder() {
112         return _finder;
113     }
114 
115     public void setFinder(TagsAssetFinder finder) {
116         _finder = finder;
117     }
118 
119     private static TagsAssetFinder _finder;
120 }