001    /**
002     * Copyright (c) 2000-2011 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.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * @author Brian Wing Shun Chan
022     */
023    public class DLFolderFinderUtil {
024            public static int countF_FE_FS_ByG_F_S(long groupId, long folderId,
025                    int status, java.lang.String[] mimeTypes, boolean includeMountFolders)
026                    throws com.liferay.portal.kernel.exception.SystemException {
027                    return getFinder()
028                                       .countF_FE_FS_ByG_F_S(groupId, folderId, status, mimeTypes,
029                            includeMountFolders);
030            }
031    
032            public static int countFE_ByG_F_S(long groupId, long folderId, int status)
033                    throws com.liferay.portal.kernel.exception.SystemException {
034                    return getFinder().countFE_ByG_F_S(groupId, folderId, status);
035            }
036    
037            public static int filterCountF_FE_FS_ByG_F_S(long groupId, long folderId,
038                    int status, java.lang.String[] mimeTypes, boolean includeMountFolders)
039                    throws com.liferay.portal.kernel.exception.SystemException {
040                    return getFinder()
041                                       .filterCountF_FE_FS_ByG_F_S(groupId, folderId, status,
042                            mimeTypes, includeMountFolders);
043            }
044    
045            public static int filterCountFE_ByG_F_S(long groupId, long folderId,
046                    int status) throws com.liferay.portal.kernel.exception.SystemException {
047                    return getFinder().filterCountFE_ByG_F_S(groupId, folderId, status);
048            }
049    
050            public static java.util.List<java.lang.Object> filterFindF_FE_FS_ByG_F_S(
051                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
052                    boolean includeMountFolders, int start, int end,
053                    com.liferay.portal.kernel.util.OrderByComparator obc)
054                    throws com.liferay.portal.kernel.exception.SystemException {
055                    return getFinder()
056                                       .filterFindF_FE_FS_ByG_F_S(groupId, folderId, status,
057                            mimeTypes, includeMountFolders, start, end, obc);
058            }
059    
060            public static java.util.List<java.lang.Object> filterFindFE_FS_ByG_F_S(
061                    long groupId, long folderId, int status, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException {
063                    return getFinder()
064                                       .filterFindFE_FS_ByG_F_S(groupId, folderId, status, start,
065                            end);
066            }
067    
068            public static java.util.List<java.lang.Object> findF_FE_FS_ByG_F_S(
069                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
070                    boolean includeMountFolders, int start, int end,
071                    com.liferay.portal.kernel.util.OrderByComparator obc)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return getFinder()
074                                       .findF_FE_FS_ByG_F_S(groupId, folderId, status, mimeTypes,
075                            includeMountFolders, start, end, obc);
076            }
077    
078            public static java.util.List<java.lang.Object> findFE_FS_ByG_F_S(
079                    long groupId, long folderId, int status, int start, int end)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    return getFinder()
082                                       .findFE_FS_ByG_F_S(groupId, folderId, status, start, end);
083            }
084    
085            public static DLFolderFinder getFinder() {
086                    if (_finder == null) {
087                            _finder = (DLFolderFinder)PortalBeanLocatorUtil.locate(DLFolderFinder.class.getName());
088    
089                            ReferenceRegistry.registerReference(DLFolderFinderUtil.class,
090                                    "_finder");
091                    }
092    
093                    return _finder;
094            }
095    
096            public void setFinder(DLFolderFinder finder) {
097                    _finder = finder;
098    
099                    ReferenceRegistry.registerReference(DLFolderFinderUtil.class, "_finder");
100            }
101    
102            private static DLFolderFinder _finder;
103    }