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(long groupId,
030 java.util.List<java.lang.Long> folderIds,
031 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
032 throws com.liferay.portal.kernel.exception.SystemException {
033 return getFinder().countByG_F(groupId, folderIds, queryDefinition);
034 }
035
036 public static int countByG_U_F_M(long groupId, long userId,
037 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
038 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
039 throws com.liferay.portal.kernel.exception.SystemException {
040 return getFinder()
041 .countByG_U_F_M(groupId, userId, folderIds, mimeTypes,
042 queryDefinition);
043 }
044
045 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByAnyImageId(
046 long imageId)
047 throws com.liferay.portal.kernel.exception.SystemException {
048 return getFinder().fetchByAnyImageId(imageId);
049 }
050
051 public static 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 return getFinder().filterCountByG_F(groupId, folderIds, queryDefinition);
056 }
057
058 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
059 long groupId, java.util.List<java.lang.Long> folderIds,
060 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
061 throws com.liferay.portal.kernel.exception.SystemException {
062 return getFinder().filterFindByG_F(groupId, folderIds, queryDefinition);
063 }
064
065 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByAnyImageId(
066 long imageId)
067 throws com.liferay.portal.kernel.exception.SystemException,
068 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
069 return getFinder().findByAnyImageId(imageId);
070 }
071
072 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByExtraSettings(
073 int start, int end)
074 throws com.liferay.portal.kernel.exception.SystemException {
075 return getFinder().findByExtraSettings(start, end);
076 }
077
078 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMisversioned()
079 throws com.liferay.portal.kernel.exception.SystemException {
080 return getFinder().findByMisversioned();
081 }
082
083 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
084 throws com.liferay.portal.kernel.exception.SystemException {
085 return getFinder().findByNoAssets();
086 }
087
088 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByOrphanedFileEntries()
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getFinder().findByOrphanedFileEntries();
091 }
092
093 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
094 long groupId, java.util.List<java.lang.Long> folderIds,
095 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
096 throws com.liferay.portal.kernel.exception.SystemException {
097 return getFinder().findByG_F(groupId, folderIds, queryDefinition);
098 }
099
100 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F_M(
101 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
102 java.lang.String[] mimeTypes,
103 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getFinder()
106 .findByG_U_F_M(groupId, userId, folderIds, mimeTypes,
107 queryDefinition);
108 }
109
110 public static DLFileEntryFinder getFinder() {
111 if (_finder == null) {
112 _finder = (DLFileEntryFinder)PortalBeanLocatorUtil.locate(DLFileEntryFinder.class.getName());
113
114 ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
115 "_finder");
116 }
117
118 return _finder;
119 }
120
121 public void setFinder(DLFileEntryFinder finder) {
122 _finder = finder;
123
124 ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
125 "_finder");
126 }
127
128 private static DLFileEntryFinder _finder;
129 }