001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class MBCategoryFinderUtil {
023            public static int countByS_G_U_P(long groupId, long userId,
024                    long[] parentCategoryIds)
025                    throws com.liferay.portal.kernel.exception.SystemException {
026                    return getFinder().countByS_G_U_P(groupId, userId, parentCategoryIds);
027            }
028    
029            public static int filterCountByS_G_U_P(long groupId, long userId,
030                    long[] parentCategoryIds)
031                    throws com.liferay.portal.kernel.exception.SystemException {
032                    return getFinder()
033                                       .filterCountByS_G_U_P(groupId, userId, parentCategoryIds);
034            }
035    
036            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByS_G_U_P(
037                    long groupId, long userId, long[] parentCategoryIds, int start, int end)
038                    throws com.liferay.portal.kernel.exception.SystemException {
039                    return getFinder()
040                                       .filterFindByS_G_U_P(groupId, userId, parentCategoryIds,
041                            start, end);
042            }
043    
044            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByS_G_U_P(
045                    long groupId, long userId, long[] parentCategoryIds, int start, int end)
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return getFinder()
048                                       .findByS_G_U_P(groupId, userId, parentCategoryIds, start, end);
049            }
050    
051            public static MBCategoryFinder getFinder() {
052                    if (_finder == null) {
053                            _finder = (MBCategoryFinder)PortalBeanLocatorUtil.locate(MBCategoryFinder.class.getName());
054                    }
055    
056                    return _finder;
057            }
058    
059            public void setFinder(MBCategoryFinder finder) {
060                    _finder = finder;
061            }
062    
063            private static MBCategoryFinder _finder;
064    }