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_M_R(long groupId,
037 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
038 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
039 throws com.liferay.portal.kernel.exception.SystemException {
040 return getFinder()
041 .countByG_M_R(groupId, dateRange, repositoryId,
042 queryDefinition);
043 }
044
045 public static int countByG_U_F_M(long groupId, long userId,
046 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
047 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
048 throws com.liferay.portal.kernel.exception.SystemException {
049 return getFinder()
050 .countByG_U_F_M(groupId, userId, folderIds, mimeTypes,
051 queryDefinition);
052 }
053
054 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByAnyImageId(
055 long imageId)
056 throws com.liferay.portal.kernel.exception.SystemException {
057 return getFinder().fetchByAnyImageId(imageId);
058 }
059
060 public static int filterCountByG_F(long groupId,
061 java.util.List<java.lang.Long> folderIds,
062 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
063 throws com.liferay.portal.kernel.exception.SystemException {
064 return getFinder().filterCountByG_F(groupId, folderIds, queryDefinition);
065 }
066
067 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
068 long groupId, java.util.List<java.lang.Long> folderIds,
069 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
070 throws com.liferay.portal.kernel.exception.SystemException {
071 return getFinder().filterFindByG_F(groupId, folderIds, queryDefinition);
072 }
073
074 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByAnyImageId(
075 long imageId)
076 throws com.liferay.portal.kernel.exception.SystemException,
077 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
078 return getFinder().findByAnyImageId(imageId);
079 }
080
081 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
082 long companyId,
083 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
084 throws com.liferay.portal.kernel.exception.SystemException {
085 return getFinder().findByCompanyId(companyId, queryDefinition);
086 }
087
088 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByDDMStructureIds(
089 long[] ddmStructureIds, int start, int end)
090 throws com.liferay.portal.kernel.exception.SystemException {
091 return getFinder().findByDDMStructureIds(ddmStructureIds, start, end);
092 }
093
094 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByExtraSettings(
095 int start, int end)
096 throws com.liferay.portal.kernel.exception.SystemException {
097 return getFinder().findByExtraSettings(start, end);
098 }
099
100 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMisversioned()
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getFinder().findByMisversioned();
103 }
104
105 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getFinder().findByNoAssets();
108 }
109
110 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByOrphanedFileEntries()
111 throws com.liferay.portal.kernel.exception.SystemException {
112 return getFinder().findByOrphanedFileEntries();
113 }
114
115 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
116 long groupId, java.util.List<java.lang.Long> folderIds,
117 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 return getFinder().findByG_F(groupId, folderIds, queryDefinition);
120 }
121
122 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F_M(
123 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
124 java.lang.String[] mimeTypes,
125 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getFinder()
128 .findByG_U_F_M(groupId, userId, folderIds, mimeTypes,
129 queryDefinition);
130 }
131
132 public static DLFileEntryFinder getFinder() {
133 if (_finder == null) {
134 _finder = (DLFileEntryFinder)PortalBeanLocatorUtil.locate(DLFileEntryFinder.class.getName());
135
136 ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
137 "_finder");
138 }
139
140 return _finder;
141 }
142
143 public void setFinder(DLFileEntryFinder finder) {
144 _finder = finder;
145
146 ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
147 "_finder");
148 }
149
150 private static DLFileEntryFinder _finder;
151 }