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 com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByAnyImageId(
043                    long imageId)
044                    throws com.liferay.portal.kernel.exception.SystemException;
045    
046            public int filterCountByG_F(long groupId,
047                    java.util.List<java.lang.Long> folderIds,
048                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
052                    long groupId, 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 com.liferay.portlet.documentlibrary.model.DLFileEntry findByAnyImageId(
057                    long imageId)
058                    throws com.liferay.portal.kernel.exception.SystemException,
059                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
060    
061            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
062                    long companyId,
063                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
067                    long[] ddmStructureIds, int start, int end)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByExtraSettings(
071                    int start, int end)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMisversioned()
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByOrphanedFileEntries()
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
084                    long groupId, java.util.List<java.lang.Long> folderIds,
085                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F_M(
089                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
090                    java.lang.String[] mimeTypes,
091                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    }