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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     */
025    @ProviderType
026    public class DLFolderFinderUtil {
027            public static int countF_FE_FS_ByG_F_M_M(long groupId, long folderId,
028                    java.lang.String[] mimeTypes, boolean includeMountFolders,
029                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
030                    throws com.liferay.portal.kernel.exception.SystemException {
031                    return getFinder()
032                                       .countF_FE_FS_ByG_F_M_M(groupId, folderId, mimeTypes,
033                            includeMountFolders, queryDefinition);
034            }
035    
036            public static int countFE_ByG_F(long groupId, long folderId,
037                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
038                    throws com.liferay.portal.kernel.exception.SystemException {
039                    return getFinder().countFE_ByG_F(groupId, folderId, queryDefinition);
040            }
041    
042            public static int countFE_FS_ByG_F(long groupId, long folderId,
043                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return getFinder().countFE_FS_ByG_F(groupId, folderId, queryDefinition);
046            }
047    
048            public static int filterCountF_FE_FS_ByG_F_M_M(long groupId, long folderId,
049                    java.lang.String[] mimeTypes, boolean includeMountFolders,
050                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
051                    throws com.liferay.portal.kernel.exception.SystemException {
052                    return getFinder()
053                                       .filterCountF_FE_FS_ByG_F_M_M(groupId, folderId, mimeTypes,
054                            includeMountFolders, queryDefinition);
055            }
056    
057            public static int filterCountFE_ByG_F(long groupId, long folderId,
058                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getFinder()
061                                       .filterCountFE_ByG_F(groupId, folderId, queryDefinition);
062            }
063    
064            public static int filterCountFE_FS_ByG_F(long groupId, long folderId,
065                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
066                    throws com.liferay.portal.kernel.exception.SystemException {
067                    return getFinder()
068                                       .filterCountFE_FS_ByG_F(groupId, folderId, queryDefinition);
069            }
070    
071            public static int filterCountFE_FS_ByG_F_M(long groupId, long folderId,
072                    java.lang.String[] mimeTypes,
073                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    return getFinder()
076                                       .filterCountFE_FS_ByG_F_M(groupId, folderId, mimeTypes,
077                            queryDefinition);
078            }
079    
080            public static java.util.List<java.lang.Object> filterFindF_FE_FS_ByG_F_M_M(
081                    long groupId, long folderId, java.lang.String[] mimeTypes,
082                    boolean includeMountFolders,
083                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return getFinder()
086                                       .filterFindF_FE_FS_ByG_F_M_M(groupId, folderId, mimeTypes,
087                            includeMountFolders, queryDefinition);
088            }
089    
090            public static java.util.List<java.lang.Object> filterFindFE_FS_ByG_F(
091                    long groupId, long folderId,
092                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return getFinder()
095                                       .filterFindFE_FS_ByG_F(groupId, folderId, queryDefinition);
096            }
097    
098            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findF_ByNoAssets()
099                    throws com.liferay.portal.kernel.exception.SystemException {
100                    return getFinder().findF_ByNoAssets();
101            }
102    
103            public static java.util.List<java.lang.Object> findF_FE_FS_ByG_F_M_M(
104                    long groupId, long folderId, java.lang.String[] mimeTypes,
105                    boolean includeMountFolders,
106                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getFinder()
109                                       .findF_FE_FS_ByG_F_M_M(groupId, folderId, mimeTypes,
110                            includeMountFolders, queryDefinition);
111            }
112    
113            public static java.util.List<java.lang.Object> findFE_FS_ByG_F(
114                    long groupId, long folderId,
115                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
116                    throws com.liferay.portal.kernel.exception.SystemException {
117                    return getFinder().findFE_FS_ByG_F(groupId, folderId, queryDefinition);
118            }
119    
120            public static DLFolderFinder getFinder() {
121                    if (_finder == null) {
122                            _finder = (DLFolderFinder)PortalBeanLocatorUtil.locate(DLFolderFinder.class.getName());
123    
124                            ReferenceRegistry.registerReference(DLFolderFinderUtil.class,
125                                    "_finder");
126                    }
127    
128                    return _finder;
129            }
130    
131            public void setFinder(DLFolderFinder finder) {
132                    _finder = finder;
133    
134                    ReferenceRegistry.registerReference(DLFolderFinderUtil.class, "_finder");
135            }
136    
137            private static DLFolderFinder _finder;
138    }