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 DLFileEntryFinderUtil {
027            public static int countByExtraSettings()
028                    throws com.liferay.portal.kernel.exception.SystemException {
029                    return getFinder().countByExtraSettings();
030            }
031    
032            public static int countByG_F(long groupId,
033                    java.util.List<java.lang.Long> folderIds,
034                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getFinder().countByG_F(groupId, folderIds, queryDefinition);
037            }
038    
039            public static int countByG_M_R(long groupId,
040                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
041                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return getFinder()
044                                       .countByG_M_R(groupId, dateRange, repositoryId,
045                            queryDefinition);
046            }
047    
048            public static int countByG_U_F_M(long groupId, long userId,
049                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
050                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
051                    throws com.liferay.portal.kernel.exception.SystemException {
052                    return getFinder()
053                                       .countByG_U_F_M(groupId, userId, folderIds, mimeTypes,
054                            queryDefinition);
055            }
056    
057            public static int countByG_U_R_F_M(long groupId, long userId,
058                    java.util.List<java.lang.Long> repositoryIds,
059                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
060                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
061                    throws com.liferay.portal.kernel.exception.SystemException {
062                    return getFinder()
063                                       .countByG_U_R_F_M(groupId, userId, repositoryIds, folderIds,
064                            mimeTypes, queryDefinition);
065            }
066    
067            public static int filterCountByG_U_F_M(long groupId, long userId,
068                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
069                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
070                    throws com.liferay.portal.kernel.exception.SystemException {
071                    return getFinder()
072                                       .filterCountByG_U_F_M(groupId, userId, folderIds, mimeTypes,
073                            queryDefinition);
074            }
075    
076            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByAnyImageId(
077                    long imageId)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return getFinder().fetchByAnyImageId(imageId);
080            }
081    
082            public static int filterCountByG_F(long groupId,
083                    java.util.List<java.lang.Long> folderIds,
084                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return getFinder().filterCountByG_F(groupId, folderIds, queryDefinition);
087            }
088    
089            public static int filterCountByG_U_R_F_M(long groupId, long userId,
090                    java.util.List<java.lang.Long> repositoryIds,
091                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
092                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return getFinder()
095                                       .filterCountByG_U_R_F_M(groupId, userId, repositoryIds,
096                            folderIds, mimeTypes, queryDefinition);
097            }
098    
099            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
100                    long groupId, java.util.List<java.lang.Long> folderIds,
101                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getFinder().filterFindByG_F(groupId, folderIds, queryDefinition);
104            }
105    
106            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F_M(
107                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
108                    java.lang.String[] mimeTypes,
109                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getFinder()
112                                       .filterFindByG_U_F_M(groupId, userId, folderIds, mimeTypes,
113                            queryDefinition);
114            }
115    
116            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_R_F_M(
117                    long groupId, long userId,
118                    java.util.List<java.lang.Long> repositoryIds,
119                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
120                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return getFinder()
123                                       .filterFindByG_U_R_F_M(groupId, userId, repositoryIds,
124                            folderIds, mimeTypes, queryDefinition);
125            }
126    
127            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByAnyImageId(
128                    long imageId)
129                    throws com.liferay.portal.kernel.exception.SystemException,
130                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
131                    return getFinder().findByAnyImageId(imageId);
132            }
133    
134            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
135                    long companyId,
136                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return getFinder().findByCompanyId(companyId, queryDefinition);
139            }
140    
141            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
142                    long[] ddmStructureIds, int start, int end)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getFinder().findByDDMStructureIds(ddmStructureIds, start, end);
145            }
146    
147            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
148                    long groupId, long[] ddmStructureIds, int start, int end)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getFinder()
151                                       .findByDDMStructureIds(groupId, ddmStructureIds, start, end);
152            }
153    
154            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByExtraSettings(
155                    int start, int end)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return getFinder().findByExtraSettings(start, end);
158            }
159    
160            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMisversioned()
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getFinder().findByMisversioned();
163            }
164    
165            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return getFinder().findByNoAssets();
168            }
169    
170            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByOrphanedFileEntries()
171                    throws com.liferay.portal.kernel.exception.SystemException {
172                    return getFinder().findByOrphanedFileEntries();
173            }
174    
175            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
176                    long groupId, java.util.List<java.lang.Long> folderIds,
177                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
178                    throws com.liferay.portal.kernel.exception.SystemException {
179                    return getFinder().findByG_F(groupId, folderIds, queryDefinition);
180            }
181    
182            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_R_F(
183                    long groupId, java.util.List<java.lang.Long> repositoryIds,
184                    java.util.List<java.lang.Long> folderIds,
185                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return getFinder()
188                                       .findByG_R_F(groupId, repositoryIds, folderIds,
189                            queryDefinition);
190            }
191    
192            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
193                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
194                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getFinder()
197                                       .findByG_U_F(groupId, userId, folderIds, queryDefinition);
198            }
199    
200            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_R_F(
201                    long groupId, long userId,
202                    java.util.List<java.lang.Long> repositoryIds,
203                    java.util.List<java.lang.Long> folderIds,
204                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return getFinder()
207                                       .findByG_U_R_F(groupId, userId, repositoryIds, folderIds,
208                            queryDefinition);
209            }
210    
211            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_R_F_M(
212                    long groupId, long userId,
213                    java.util.List<java.lang.Long> repositoryIds,
214                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
215                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return getFinder()
218                                       .findByG_U_R_F_M(groupId, userId, repositoryIds, folderIds,
219                            mimeTypes, queryDefinition);
220            }
221    
222            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F_M(
223                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
224                    java.lang.String[] mimeTypes,
225                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getFinder()
228                                       .findByG_U_F_M(groupId, userId, folderIds, mimeTypes,
229                            queryDefinition);
230            }
231    
232            public static DLFileEntryFinder getFinder() {
233                    if (_finder == null) {
234                            _finder = (DLFileEntryFinder)PortalBeanLocatorUtil.locate(DLFileEntryFinder.class.getName());
235    
236                            ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
237                                    "_finder");
238                    }
239    
240                    return _finder;
241            }
242    
243            public void setFinder(DLFileEntryFinder finder) {
244                    _finder = finder;
245    
246                    ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
247                            "_finder");
248            }
249    
250            private static DLFileEntryFinder _finder;
251    }