1
14
15 package com.liferay.portlet.tags.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
24 public class TagsAssetFinderUtil {
25 public static int countAssets(long groupId, long[] classNameIds,
26 boolean excludeZeroViewCount, java.util.Date publishDate,
27 java.util.Date expirationDate)
28 throws com.liferay.portal.SystemException {
29 return getFinder()
30 .countAssets(groupId, classNameIds, excludeZeroViewCount,
31 publishDate, expirationDate);
32 }
33
34 public static 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 return getFinder()
39 .countByAndEntryIds(groupId, classNameIds, entryIds,
40 notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
41 }
42
43 public static int countByOrEntryIds(long groupId, long[] classNameIds,
44 long[] entryIds, long[] notEntryIds, boolean excludeZeroViewCount,
45 java.util.Date publishDate, java.util.Date expirationDate)
46 throws com.liferay.portal.SystemException {
47 return getFinder()
48 .countByOrEntryIds(groupId, classNameIds, entryIds,
49 notEntryIds, excludeZeroViewCount, publishDate, expirationDate);
50 }
51
52 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAssets(
53 long groupId, long[] classNameIds, java.lang.String orderByCol1,
54 java.lang.String orderByCol2, java.lang.String orderByType1,
55 java.lang.String orderByType2, boolean excludeZeroViewCount,
56 java.util.Date publishDate, java.util.Date expirationDate, int start,
57 int end) throws com.liferay.portal.SystemException {
58 return getFinder()
59 .findAssets(groupId, classNameIds, orderByCol1, orderByCol2,
60 orderByType1, orderByType2, excludeZeroViewCount, publishDate,
61 expirationDate, start, end);
62 }
63
64 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByAndEntryIds(
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 return getFinder()
72 .findByAndEntryIds(groupId, classNameIds, entryIds,
73 notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
74 excludeZeroViewCount, publishDate, expirationDate, start, end);
75 }
76
77 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
78 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
79 java.util.Date publishDate, java.util.Date expirationDate)
80 throws com.liferay.portal.SystemException {
81 return getFinder()
82 .findByOrEntryIds(groupId, classNameIds, entryIds,
83 notEntryIds, publishDate, expirationDate);
84 }
85
86 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByOrEntryIds(
87 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
88 java.lang.String orderByCol1, java.lang.String orderByCol2,
89 java.lang.String orderByType1, java.lang.String orderByType2,
90 boolean excludeZeroViewCount, java.util.Date publishDate,
91 java.util.Date expirationDate, int start, int end)
92 throws com.liferay.portal.SystemException {
93 return getFinder()
94 .findByOrEntryIds(groupId, classNameIds, entryIds,
95 notEntryIds, orderByCol1, orderByCol2, orderByType1, orderByType2,
96 excludeZeroViewCount, publishDate, expirationDate, start, end);
97 }
98
99 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByViewCount(
100 long[] classNameId, boolean asc, int start, int end)
101 throws com.liferay.portal.SystemException {
102 return getFinder().findByViewCount(classNameId, asc, start, end);
103 }
104
105 public static TagsAssetFinder getFinder() {
106 if (_finder == null) {
107 _finder = (TagsAssetFinder)PortalBeanLocatorUtil.locate(TagsAssetFinder.class.getName());
108 }
109
110 return _finder;
111 }
112
113 public void setFinder(TagsAssetFinder finder) {
114 _finder = finder;
115 }
116
117 private static TagsAssetFinder _finder;
118 }