001    /**
002     * Copyright (c) 2000-2013 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.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_M_M(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_M_M(groupId, folderId, status,
029                            mimeTypes, 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_M_M(long groupId,
038                    long folderId, int status, java.lang.String[] mimeTypes,
039                    boolean includeMountFolders)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return getFinder()
042                                       .filterCountF_FE_FS_ByG_F_S_M_M(groupId, folderId, status,
043                            mimeTypes, includeMountFolders);
044            }
045    
046            public static int filterCountFE_ByG_F_S(long groupId, long folderId,
047                    int status) throws com.liferay.portal.kernel.exception.SystemException {
048                    return getFinder().filterCountFE_ByG_F_S(groupId, folderId, status);
049            }
050    
051            public static int filterCountFE_FS_ByG_F_S_M(long groupId, long folderId,
052                    int status, java.lang.String[] mimeTypes)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getFinder()
055                                       .filterCountFE_FS_ByG_F_S_M(groupId, folderId, status,
056                            mimeTypes);
057            }
058    
059            public static java.util.List<java.lang.Object> filterFindF_FE_FS_ByG_F_S_M_M(
060                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
061                    boolean includeMountFolders, int start, int end,
062                    com.liferay.portal.kernel.util.OrderByComparator obc)
063                    throws com.liferay.portal.kernel.exception.SystemException {
064                    return getFinder()
065                                       .filterFindF_FE_FS_ByG_F_S_M_M(groupId, folderId, status,
066                            mimeTypes, includeMountFolders, start, end, obc);
067            }
068    
069            public static java.util.List<java.lang.Object> filterFindFE_FS_ByG_F_S(
070                    long groupId, long folderId, int status, int start, int end)
071                    throws com.liferay.portal.kernel.exception.SystemException {
072                    return getFinder()
073                                       .filterFindFE_FS_ByG_F_S(groupId, folderId, status, start,
074                            end);
075            }
076    
077            public static java.util.List<java.lang.Object> findF_FE_FS_ByG_F_S_M_M(
078                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
079                    boolean includeMountFolders, int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator obc)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    return getFinder()
083                                       .findF_FE_FS_ByG_F_S_M_M(groupId, folderId, status,
084                            mimeTypes, includeMountFolders, start, end, obc);
085            }
086    
087            public static java.util.List<java.lang.Object> findFE_FS_ByG_F_S(
088                    long groupId, long folderId, int status, int start, int end)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getFinder()
091                                       .findFE_FS_ByG_F_S(groupId, folderId, status, start, end);
092            }
093    
094            public static DLFolderFinder getFinder() {
095                    if (_finder == null) {
096                            _finder = (DLFolderFinder)PortalBeanLocatorUtil.locate(DLFolderFinder.class.getName());
097    
098                            ReferenceRegistry.registerReference(DLFolderFinderUtil.class,
099                                    "_finder");
100                    }
101    
102                    return _finder;
103            }
104    
105            public void setFinder(DLFolderFinder finder) {
106                    _finder = finder;
107    
108                    ReferenceRegistry.registerReference(DLFolderFinderUtil.class, "_finder");
109            }
110    
111            private static DLFolderFinder _finder;
112    }