001
014
015 package com.liferay.portlet.documentlibrary.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
023 public class DLFileEntryFinderUtil {
024 public static int countByExtraSettings()
025 throws com.liferay.portal.kernel.exception.SystemException {
026 return getFinder().countByExtraSettings();
027 }
028
029 public static int countByG_F_S(long groupId,
030 java.util.List<java.lang.Long> folderIds, int status)
031 throws com.liferay.portal.kernel.exception.SystemException {
032 return getFinder().countByG_F_S(groupId, folderIds, status);
033 }
034
035 public static int countByG_U_F_M_S(long groupId, long userId,
036 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
037 int status) throws com.liferay.portal.kernel.exception.SystemException {
038 return getFinder()
039 .countByG_U_F_M_S(groupId, userId, folderIds, mimeTypes,
040 status);
041 }
042
043 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByAnyImageId(
044 long imageId)
045 throws com.liferay.portal.kernel.exception.SystemException {
046 return getFinder().fetchByAnyImageId(imageId);
047 }
048
049 public static int filterCountByG_F_S(long groupId,
050 java.util.List<java.lang.Long> folderIds, int status)
051 throws com.liferay.portal.kernel.exception.SystemException {
052 return getFinder().filterCountByG_F_S(groupId, folderIds, status);
053 }
054
055 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByAnyImageId(
056 long imageId)
057 throws com.liferay.portal.kernel.exception.SystemException,
058 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
059 return getFinder().findByAnyImageId(imageId);
060 }
061
062 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByExtraSettings(
063 int start, int end)
064 throws com.liferay.portal.kernel.exception.SystemException {
065 return getFinder().findByExtraSettings(start, end);
066 }
067
068 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
069 throws com.liferay.portal.kernel.exception.SystemException {
070 return getFinder().findByNoAssets();
071 }
072
073 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByOrphanedFileEntries()
074 throws com.liferay.portal.kernel.exception.SystemException {
075 return getFinder().findByOrphanedFileEntries();
076 }
077
078 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F_M_S(
079 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
080 java.lang.String[] mimeTypes, int status, int start, int end,
081 com.liferay.portal.kernel.util.OrderByComparator obc)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getFinder()
084 .findByG_U_F_M_S(groupId, userId, folderIds, mimeTypes,
085 status, start, end, obc);
086 }
087
088 public static DLFileEntryFinder getFinder() {
089 if (_finder == null) {
090 _finder = (DLFileEntryFinder)PortalBeanLocatorUtil.locate(DLFileEntryFinder.class.getName());
091
092 ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
093 "_finder");
094 }
095
096 return _finder;
097 }
098
099 public void setFinder(DLFileEntryFinder finder) {
100 _finder = finder;
101
102 ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
103 "_finder");
104 }
105
106 private static DLFileEntryFinder _finder;
107 }