001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.messageboards.service.persistence;
022:
023: /**
024: * <a href="MBMessageFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class MBMessageFinderUtil {
030: public static int countByCategoryIds(java.util.List categoryIds)
031: throws com.liferay.portal.SystemException {
032: return getFinder().countByCategoryIds(categoryIds);
033: }
034:
035: public static int countByGroupId(long groupId)
036: throws com.liferay.portal.SystemException {
037: return getFinder().countByGroupId(groupId);
038: }
039:
040: public static int countByG_U(long groupId, long userId)
041: throws com.liferay.portal.SystemException {
042: return getFinder().countByG_U(groupId, userId);
043: }
044:
045: public static java.util.List findByGroupId(long groupId, int begin,
046: int end) throws com.liferay.portal.SystemException {
047: return getFinder().findByGroupId(groupId, begin, end);
048: }
049:
050: public static java.util.List findByGroupId(long groupId, int begin,
051: int end,
052: com.liferay.portal.kernel.util.OrderByComparator obc)
053: throws com.liferay.portal.SystemException {
054: return getFinder().findByGroupId(groupId, begin, end, obc);
055: }
056:
057: public static java.util.List findByNoAssets()
058: throws com.liferay.portal.SystemException {
059: return getFinder().findByNoAssets();
060: }
061:
062: public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_G(
063: java.lang.String uuid, long groupId)
064: throws com.liferay.portal.SystemException,
065: com.liferay.portlet.messageboards.NoSuchMessageException {
066: return getFinder().findByUuid_G(uuid, groupId);
067: }
068:
069: public static java.util.List findByG_U(long groupId, long userId,
070: int begin, int end)
071: throws com.liferay.portal.SystemException {
072: return getFinder().findByG_U(groupId, userId, begin, end);
073: }
074:
075: public static java.util.List findByG_U(long groupId, long userId,
076: int begin, int end,
077: com.liferay.portal.kernel.util.OrderByComparator obc)
078: throws com.liferay.portal.SystemException {
079: return getFinder().findByG_U(groupId, userId, begin, end, obc);
080: }
081:
082: public static java.util.List findByC_C(long classNameId,
083: long classPK) throws com.liferay.portal.SystemException {
084: return getFinder().findByC_C(classNameId, classPK);
085: }
086:
087: public static MBMessageFinder getFinder() {
088: return _getUtil()._finder;
089: }
090:
091: public void setFinder(MBMessageFinder finder) {
092: _finder = finder;
093: }
094:
095: private static MBMessageFinderUtil _getUtil() {
096: if (_util == null) {
097: _util = (MBMessageFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
098: .locate(_UTIL);
099: }
100:
101: return _util;
102: }
103:
104: private static final String _UTIL = MBMessageFinderUtil.class
105: .getName();
106: private static MBMessageFinderUtil _util;
107: private MBMessageFinder _finder;
108: }
|