001    /**
002     * Copyright (c) 2000-2013 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 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 filterCountByG_U_F_M(long groupId, long userId,
043                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
044                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByAnyImageId(
048                    long imageId)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public int filterCountByG_F(long groupId,
052                    java.util.List<java.lang.Long> folderIds,
053                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
057                    long groupId, java.util.List<java.lang.Long> folderIds,
058                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F_M(
062                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
063                    java.lang.String[] mimeTypes,
064                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portlet.documentlibrary.model.DLFileEntry findByAnyImageId(
068                    long imageId)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
071    
072            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
073                    long companyId,
074                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
078                    long[] ddmStructureIds, int start, int end)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
082                    long groupId, long[] ddmStructureIds, int start, int end)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByExtraSettings(
086                    int start, int end)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMisversioned()
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByOrphanedFileEntries()
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
099                    long groupId, java.util.List<java.lang.Long> folderIds,
100                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F_M(
104                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
105                    java.lang.String[] mimeTypes,
106                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    }