001
014
015 package com.liferay.portlet.messageboards.service.persistence;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
025 @ProviderType
026 public class MBMessageFinderUtil {
027 public static int countByC_T(java.util.Date createDate, long threadId) {
028 return getFinder().countByC_T(createDate, threadId);
029 }
030
031 public static int countByG_U_C_S(long groupId, long userId,
032 long[] categoryIds, int status) {
033 return getFinder().countByG_U_C_S(groupId, userId, categoryIds, status);
034 }
035
036 public static int countByG_U_C_A_S(long groupId, long userId,
037 long[] categoryIds, boolean anonymous, int status) {
038 return getFinder()
039 .countByG_U_C_A_S(groupId, userId, categoryIds, anonymous,
040 status);
041 }
042
043 public static int filterCountByG_U_C_S(long groupId, long userId,
044 long[] categoryIds, int status) {
045 return getFinder()
046 .filterCountByG_U_C_S(groupId, userId, categoryIds, status);
047 }
048
049 public static int filterCountByG_U_MD_C_S(long groupId, long userId,
050 java.util.Date modifiedDate, long[] categoryIds, int status) {
051 return getFinder()
052 .filterCountByG_U_MD_C_S(groupId, userId, modifiedDate,
053 categoryIds, status);
054 }
055
056 public static int filterCountByG_U_C_A_S(long groupId, long userId,
057 long[] categoryIds, boolean anonymous, int status) {
058 return getFinder()
059 .filterCountByG_U_C_A_S(groupId, userId, categoryIds,
060 anonymous, status);
061 }
062
063 public static java.util.List<java.lang.Long> filterFindByG_U_C_S(
064 long groupId, long userId, long[] categoryIds, int status, int start,
065 int end) {
066 return getFinder()
067 .filterFindByG_U_C_S(groupId, userId, categoryIds, status,
068 start, end);
069 }
070
071 public static java.util.List<java.lang.Long> filterFindByG_U_MD_C_S(
072 long groupId, long userId, java.util.Date modifiedDate,
073 long[] categoryIds, int status, int start, int end) {
074 return getFinder()
075 .filterFindByG_U_MD_C_S(groupId, userId, modifiedDate,
076 categoryIds, status, start, end);
077 }
078
079 public static java.util.List<java.lang.Long> filterFindByG_U_C_A_S(
080 long groupId, long userId, long[] categoryIds, boolean anonymous,
081 int status, int start, int end) {
082 return getFinder()
083 .filterFindByG_U_C_A_S(groupId, userId, categoryIds,
084 anonymous, status, start, end);
085 }
086
087 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByNoAssets() {
088 return getFinder().findByNoAssets();
089 }
090
091 public static java.util.List<java.lang.Long> findByG_U_C_S(long groupId,
092 long userId, long[] categoryIds, int status, int start, int end) {
093 return getFinder()
094 .findByG_U_C_S(groupId, userId, categoryIds, status, start,
095 end);
096 }
097
098 public static java.util.List<java.lang.Long> findByG_U_C_A_S(long groupId,
099 long userId, long[] categoryIds, boolean anonymous, int status,
100 int start, int end) {
101 return getFinder()
102 .findByG_U_C_A_S(groupId, userId, categoryIds, anonymous,
103 status, start, end);
104 }
105
106 public static MBMessageFinder getFinder() {
107 if (_finder == null) {
108 _finder = (MBMessageFinder)PortalBeanLocatorUtil.locate(MBMessageFinder.class.getName());
109
110 ReferenceRegistry.registerReference(MBMessageFinderUtil.class,
111 "_finder");
112 }
113
114 return _finder;
115 }
116
117 public void setFinder(MBMessageFinder finder) {
118 _finder = finder;
119
120 ReferenceRegistry.registerReference(MBMessageFinderUtil.class, "_finder");
121 }
122
123 private static MBMessageFinder _finder;
124 }