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="TagsAssetFinder.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public interface TagsAssetFinder {
29      public 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  
34      public int countByAndEntryIds(long groupId, long[] classNameIds,
35          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
36          java.util.Date publishDate, java.util.Date expirationDate)
37          throws com.liferay.portal.SystemException;
38  
39      public int countByOrEntryIds(long groupId, long[] classNameIds,
40          long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
41          java.util.Date publishDate, java.util.Date expirationDate)
42          throws com.liferay.portal.SystemException;
43  
44      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAssets(
45          long groupId, long[] classNameIds, java.lang.String orderByCol1,
46          java.lang.String orderByCol2, java.lang.String orderByType1,
47          java.lang.String orderByType2, boolean excludeZeroViewCount,
48          java.util.Date publishDate, java.util.Date expirationDate, int start,
49          int end) throws com.liferay.portal.SystemException;
50  
51      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByAndEntryIds(
52          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
53          java.lang.String orderByCol1, java.lang.String orderByCol2,
54          java.lang.String orderByType1, java.lang.String orderByType2,
55          boolean excludeZeroViewCount, java.util.Date publishDate,
56          java.util.Date expirationDate, int start, int end)
57          throws com.liferay.portal.SystemException;
58  
59      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
60          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
61          java.util.Date publishDate, java.util.Date expirationDate)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
65          long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
66          java.lang.String orderByCol1, java.lang.String orderByCol2,
67          java.lang.String orderByType1, java.lang.String orderByType2,
68          boolean excludeZeroViewCount, java.util.Date publishDate,
69          java.util.Date expirationDate, int start, int end)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByViewCount(
73          long[] classNameId, boolean asc, int start, int end)
74          throws com.liferay.portal.SystemException;
75  }