1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portlet.tags.service.persistence;
16  
17  /**
18   * <a href="TagsAssetFinder.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface TagsAssetFinder {
23      public int countAssets(long groupId, long[] classNameIds,
24          boolean excludeZeroViewCount, java.util.Date publishDate,
25          java.util.Date expirationDate)
26          throws com.liferay.portal.SystemException;
27  
28      public int countByAndEntryIds(long groupId, long[] classNameIds,
29          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
30          java.util.Date publishDate, java.util.Date expirationDate)
31          throws com.liferay.portal.SystemException;
32  
33      public int countByOrEntryIds(long groupId, long[] classNameIds,
34          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
35          java.util.Date publishDate, java.util.Date expirationDate)
36          throws com.liferay.portal.SystemException;
37  
38      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAssets(
39          long groupId, long[] classNameIds, java.lang.String orderByCol1,
40          java.lang.String orderByCol2, java.lang.String orderByType1,
41          java.lang.String orderByType2, boolean excludeZeroViewCount,
42          java.util.Date publishDate, java.util.Date expirationDate, int start,
43          int end) throws com.liferay.portal.SystemException;
44  
45      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByAndEntryIds(
46          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
47          java.lang.String orderByCol1, java.lang.String orderByCol2,
48          java.lang.String orderByType1, java.lang.String orderByType2,
49          boolean excludeZeroViewCount, java.util.Date publishDate,
50          java.util.Date expirationDate, int start, int end)
51          throws com.liferay.portal.SystemException;
52  
53      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
54          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
55          java.util.Date publishDate, java.util.Date expirationDate)
56          throws com.liferay.portal.SystemException;
57  
58      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
59          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
60          java.lang.String orderByCol1, java.lang.String orderByCol2,
61          java.lang.String orderByType1, java.lang.String orderByType2,
62          boolean excludeZeroViewCount, java.util.Date publishDate,
63          java.util.Date expirationDate, int start, int end)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByViewCount(
67          long[] classNameId, boolean asc, int start, int end)
68          throws com.liferay.portal.SystemException;
69  }