001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }