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