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    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface DLFileEntryFinder {
024            public int countByExtraSettings()
025                    throws com.liferay.portal.kernel.exception.SystemException;
026    
027            public int countByG_F(long groupId,
028                    java.util.List<java.lang.Long> folderIds,
029                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public int countByG_M_R(long groupId,
033                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
034                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public int countByG_U_F_M(long groupId, long userId,
038                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
039                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
040                    throws com.liferay.portal.kernel.exception.SystemException;
041    
042            public int countByG_U_R_F_M(long groupId, long userId,
043                    java.util.List<java.lang.Long> repositoryIds,
044                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
045                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public int filterCountByG_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    
053            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByAnyImageId(
054                    long imageId)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public int filterCountByG_F(long groupId,
058                    java.util.List<java.lang.Long> folderIds,
059                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public int filterCountByG_U_R_F_M(long groupId, long userId,
063                    java.util.List<java.lang.Long> repositoryIds,
064                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
065                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
069                    long groupId, java.util.List<java.lang.Long> folderIds,
070                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F_M(
074                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
075                    java.lang.String[] mimeTypes,
076                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_R_F_M(
080                    long groupId, long userId,
081                    java.util.List<java.lang.Long> repositoryIds,
082                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
083                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public com.liferay.portlet.documentlibrary.model.DLFileEntry findByAnyImageId(
087                    long imageId)
088                    throws com.liferay.portal.kernel.exception.SystemException,
089                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
090    
091            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
092                    long companyId,
093                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
097                    long[] ddmStructureIds, int start, int end)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
101                    long groupId, long[] ddmStructureIds, int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByExtraSettings(
105                    int start, int end)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMisversioned()
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByOrphanedFileEntries()
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
118                    long groupId, java.util.List<java.lang.Long> folderIds,
119                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_R_F(
123                    long groupId, java.util.List<java.lang.Long> repositoryIds,
124                    java.util.List<java.lang.Long> folderIds,
125                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
129                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
130                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_R_F(
134                    long groupId, long userId,
135                    java.util.List<java.lang.Long> repositoryIds,
136                    java.util.List<java.lang.Long> folderIds,
137                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_R_F_M(
141                    long groupId, long userId,
142                    java.util.List<java.lang.Long> repositoryIds,
143                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
144                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
145                    throws com.liferay.portal.kernel.exception.SystemException;
146    
147            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F_M(
148                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
149                    java.lang.String[] mimeTypes,
150                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    }