001    /**
002     * Copyright (c) 2000-present 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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.search.IndexableType;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.model.SystemEventConstants;
026    import com.liferay.portal.service.BaseLocalService;
027    import com.liferay.portal.service.PersistedModelLocalService;
028    
029    /**
030     * Provides the local service interface for DLFileEntry. Methods of this
031     * service will not have security checks based on the propagated JAAS
032     * credentials because this service can only be accessed from within the same
033     * VM.
034     *
035     * @author Brian Wing Shun Chan
036     * @see DLFileEntryLocalServiceUtil
037     * @see com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
038     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl
039     * @generated
040     */
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface DLFileEntryLocalService extends BaseLocalService,
045            PersistedModelLocalService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link DLFileEntryLocalServiceUtil} to access the document library file entry local service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
051    
052            /**
053            * Adds the document library file entry to the database. Also notifies the appropriate model listeners.
054            *
055            * @param dlFileEntry the document library file entry
056            * @return the document library file entry that was added
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
060                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
061    
062            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
063                    long userId, long groupId, long repositoryId, long folderId,
064                    java.lang.String sourceFileName, java.lang.String mimeType,
065                    java.lang.String title, java.lang.String description,
066                    java.lang.String changeLog, long fileEntryTypeId,
067                    java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
068                    java.io.File file, java.io.InputStream is, long size,
069                    com.liferay.portal.service.ServiceContext serviceContext)
070                    throws PortalException;
071    
072            public com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
073                    long userId, long fileEntryId) throws PortalException;
074    
075            public void checkInFileEntry(long userId, long fileEntryId,
076                    java.lang.String lockUuid,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws PortalException;
079    
080            public void checkInFileEntry(long userId, long fileEntryId,
081                    boolean majorVersion, java.lang.String changeLog,
082                    com.liferay.portal.service.ServiceContext serviceContext)
083                    throws PortalException;
084    
085            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
086                    long userId, long fileEntryId, java.lang.String owner,
087                    long expirationTime,
088                    com.liferay.portal.service.ServiceContext serviceContext)
089                    throws PortalException;
090    
091            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
092                    long userId, long fileEntryId,
093                    com.liferay.portal.service.ServiceContext serviceContext)
094                    throws PortalException;
095    
096            public void convertExtraSettings(java.lang.String[] keys)
097                    throws PortalException;
098    
099            public com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
100                    long userId, long groupId, long repositoryId, long fileEntryId,
101                    long destFolderId,
102                    com.liferay.portal.service.ServiceContext serviceContext)
103                    throws PortalException;
104    
105            public void copyFileEntryMetadata(long companyId, long fileEntryTypeId,
106                    long fileEntryId, long fromFileVersionId, long toFileVersionId,
107                    com.liferay.portal.service.ServiceContext serviceContext)
108                    throws PortalException;
109    
110            /**
111            * Creates a new document library file entry with the primary key. Does not add the document library file entry to the database.
112            *
113            * @param fileEntryId the primary key for the new document library file entry
114            * @return the new document library file entry
115            */
116            public com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
117                    long fileEntryId);
118    
119            /**
120            * Deletes the document library file entry from the database. Also notifies the appropriate model listeners.
121            *
122            * @param dlFileEntry the document library file entry
123            * @return the document library file entry that was removed
124            */
125            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
126            public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
127                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
128    
129            /**
130            * Deletes the document library file entry with the primary key from the database. Also notifies the appropriate model listeners.
131            *
132            * @param fileEntryId the primary key of the document library file entry
133            * @return the document library file entry that was removed
134            * @throws PortalException if a document library file entry with the primary key could not be found
135            */
136            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
137            public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
138                    long fileEntryId) throws PortalException;
139    
140            public void deleteFileEntries(long groupId, long folderId)
141                    throws PortalException;
142    
143            public void deleteFileEntries(long groupId, long folderId,
144                    boolean includeTrashedEntries) throws PortalException;
145    
146            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
147            @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
148            public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
149                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
150                    throws PortalException;
151    
152            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
153            public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
154                    long fileEntryId) throws PortalException;
155    
156            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
157            public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
158                    long userId, long fileEntryId) throws PortalException;
159    
160            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
161            public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
162                    long userId, long fileEntryId, java.lang.String version)
163                    throws PortalException;
164    
165            /**
166            * @throws PortalException
167            */
168            @Override
169            public com.liferay.portal.model.PersistedModel deletePersistedModel(
170                    com.liferay.portal.model.PersistedModel persistedModel)
171                    throws PortalException;
172    
173            public void deleteRepositoryFileEntries(long repositoryId, long folderId)
174                    throws PortalException;
175    
176            public void deleteRepositoryFileEntries(long repositoryId, long folderId,
177                    boolean includeTrashedEntries) throws PortalException;
178    
179            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
180    
181            /**
182            * Performs a dynamic query on the database and returns the matching rows.
183            *
184            * @param dynamicQuery the dynamic query
185            * @return the matching rows
186            */
187            public <T> java.util.List<T> dynamicQuery(
188                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
189    
190            /**
191            * Performs a dynamic query on the database and returns a range of the matching rows.
192            *
193            * <p>
194            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
195            * </p>
196            *
197            * @param dynamicQuery the dynamic query
198            * @param start the lower bound of the range of model instances
199            * @param end the upper bound of the range of model instances (not inclusive)
200            * @return the range of matching rows
201            */
202            public <T> java.util.List<T> dynamicQuery(
203                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
204                    int end);
205    
206            /**
207            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
208            *
209            * <p>
210            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
211            * </p>
212            *
213            * @param dynamicQuery the dynamic query
214            * @param start the lower bound of the range of model instances
215            * @param end the upper bound of the range of model instances (not inclusive)
216            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
217            * @return the ordered range of matching rows
218            */
219            public <T> java.util.List<T> dynamicQuery(
220                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
221                    int end,
222                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
223    
224            /**
225            * Returns the number of rows matching the dynamic query.
226            *
227            * @param dynamicQuery the dynamic query
228            * @return the number of rows matching the dynamic query
229            */
230            public long dynamicQueryCount(
231                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
232    
233            /**
234            * Returns the number of rows matching the dynamic query.
235            *
236            * @param dynamicQuery the dynamic query
237            * @param projection the projection to apply to the query
238            * @return the number of rows matching the dynamic query
239            */
240            public long dynamicQueryCount(
241                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
242                    com.liferay.portal.kernel.dao.orm.Projection projection);
243    
244            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
246                    long fileEntryId);
247    
248            /**
249            * Returns the document library file entry matching the UUID and group.
250            *
251            * @param uuid the document library file entry's UUID
252            * @param groupId the primary key of the group
253            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
254            */
255            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
257                    java.lang.String uuid, long groupId);
258    
259            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
261                    long groupId, long folderId, java.lang.String title);
262    
263            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
265                    long imageId);
266    
267            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByFileName(
269                    long groupId, long folderId, java.lang.String fileName);
270    
271            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
273                    long groupId, long folderId, java.lang.String name);
274    
275            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
277    
278            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
280                    long[] ddmStructureIds);
281    
282            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
284                    long groupId, long[] ddmStructureIds);
285    
286            /**
287            * Returns a range of all the document library file entries.
288            *
289            * <p>
290            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
291            * </p>
292            *
293            * @param start the lower bound of the range of document library file entries
294            * @param end the upper bound of the range of document library file entries (not inclusive)
295            * @return the range of document library file entries
296            */
297            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
299                    int start, int end);
300    
301            /**
302            * Returns all the document library file entries matching the UUID and company.
303            *
304            * @param uuid the UUID of the document library file entries
305            * @param companyId the primary key of the company
306            * @return the matching document library file entries, or an empty list if no matches were found
307            */
308            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
310                    java.lang.String uuid, long companyId);
311    
312            /**
313            * Returns a range of document library file entries matching the UUID and company.
314            *
315            * @param uuid the UUID of the document library file entries
316            * @param companyId the primary key of the company
317            * @param start the lower bound of the range of document library file entries
318            * @param end the upper bound of the range of document library file entries (not inclusive)
319            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
320            * @return the range of matching document library file entries, or an empty list if no matches were found
321            */
322            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
324                    java.lang.String uuid, long companyId, int start, int end,
325                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator);
326    
327            /**
328            * Returns the number of document library file entries.
329            *
330            * @return the number of document library file entries
331            */
332            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333            public int getDLFileEntriesCount();
334    
335            /**
336            * Returns the document library file entry with the primary key.
337            *
338            * @param fileEntryId the primary key of the document library file entry
339            * @return the document library file entry
340            * @throws PortalException if a document library file entry with the primary key could not be found
341            */
342            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
344                    long fileEntryId) throws PortalException;
345    
346            /**
347            * Returns the document library file entry matching the UUID and group.
348            *
349            * @param uuid the document library file entry's UUID
350            * @param groupId the primary key of the group
351            * @return the matching document library file entry
352            * @throws PortalException if a matching document library file entry could not be found
353            */
354            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
356                    java.lang.String uuid, long groupId) throws PortalException;
357    
358            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
360                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
361    
362            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
364                    int start, int end);
365    
366            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367            public int getExtraSettingsFileEntriesCount();
368    
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public java.io.File getFile(long fileEntryId, java.lang.String version,
371                    boolean incrementCounter) throws PortalException;
372    
373            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374            public java.io.File getFile(long fileEntryId, java.lang.String version,
375                    boolean incrementCounter, int increment) throws PortalException;
376    
377            /**
378            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
379            boolean)}
380            */
381            @java.lang.Deprecated
382            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383            public java.io.File getFile(long userId, long fileEntryId,
384                    java.lang.String version, boolean incrementCounter)
385                    throws PortalException;
386    
387            /**
388            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
389            boolean, int)}
390            */
391            @java.lang.Deprecated
392            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393            public java.io.File getFile(long userId, long fileEntryId,
394                    java.lang.String version, boolean incrementCounter, int increment)
395                    throws PortalException;
396    
397            public java.io.InputStream getFileAsStream(long fileEntryId,
398                    java.lang.String version) throws PortalException;
399    
400            public java.io.InputStream getFileAsStream(long fileEntryId,
401                    java.lang.String version, boolean incrementCounter)
402                    throws PortalException;
403    
404            public java.io.InputStream getFileAsStream(long fileEntryId,
405                    java.lang.String version, boolean incrementCounter, int increment)
406                    throws PortalException;
407    
408            /**
409            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
410            String)}
411            */
412            @java.lang.Deprecated
413            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
414                    java.lang.String version) throws PortalException;
415    
416            /**
417            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
418            String, boolean)}
419            */
420            @java.lang.Deprecated
421            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
422                    java.lang.String version, boolean incrementCounter)
423                    throws PortalException;
424    
425            /**
426            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
427            String, boolean, int)}
428            */
429            @java.lang.Deprecated
430            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
431                    java.lang.String version, boolean incrementCounter, int increment)
432                    throws PortalException;
433    
434            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
436                    long folderId, java.lang.String name);
437    
438            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
440                    long groupId, long folderId);
441    
442            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
444                    long groupId, long folderId, int start, int end,
445                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
446    
447            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
449                    long groupId, long folderId, int status, int start, int end,
450                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
451    
452            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
454                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
455                    java.lang.String[] mimeTypes,
456                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
457                    throws java.lang.Exception;
458    
459            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
461                    long groupId, long userId,
462                    java.util.List<java.lang.Long> repositoryIds,
463                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
464                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
465                    throws java.lang.Exception;
466    
467            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
469                    int start, int end);
470    
471            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472            public int getFileEntriesCount();
473    
474            /**
475            * @deprecated As of 7.0.0, with no direct replacement
476            */
477            @java.lang.Deprecated
478            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479            public int getFileEntriesCount(long groupId,
480                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
481                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition);
482    
483            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484            public int getFileEntriesCount(long groupId, long folderId);
485    
486            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487            public int getFileEntriesCount(long groupId, long folderId, int status);
488    
489            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490            public int getFileEntriesCount(long groupId, long userId,
491                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
492                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
493                    throws java.lang.Exception;
494    
495            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496            public int getFileEntriesCount(long groupId, long userId,
497                    java.util.List<java.lang.Long> repositoryIds,
498                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
499                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
500                    throws java.lang.Exception;
501    
502            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
504                    long fileEntryId) throws PortalException;
505    
506            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
507            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
508                    long groupId, long folderId, java.lang.String title)
509                    throws PortalException;
510    
511            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
513                    long groupId, long folderId, java.lang.String name)
514                    throws PortalException;
515    
516            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
518                    java.lang.String uuid, long groupId) throws PortalException;
519    
520            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
522                    long groupId, int start, int end);
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
526                    long groupId, int start, int end,
527                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
528    
529            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
530            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
531                    long groupId, long userId, long repositoryId, long rootFolderId,
532                    int start, int end,
533                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
534    
535            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
536            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
537                    long groupId, long userId, long rootFolderId, int start, int end,
538                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
539    
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
542                    long groupId, long userId, int start, int end);
543    
544            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
545            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
546                    long groupId, long userId, int start, int end,
547                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
548    
549            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550            public int getGroupFileEntriesCount(long groupId);
551    
552            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
553            public int getGroupFileEntriesCount(long groupId, long userId);
554    
555            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
556            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
557    
558            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
559            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries();
560    
561            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries();
563    
564            /**
565            * Returns the OSGi service identifier.
566            *
567            * @return the OSGi service identifier
568            */
569            public java.lang.String getOSGiServiceIdentifier();
570    
571            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
572            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries();
573    
574            @Override
575            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
576            public com.liferay.portal.model.PersistedModel getPersistedModel(
577                    java.io.Serializable primaryKeyObj) throws PortalException;
578    
579            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
580            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
581                    long repositoryId, int start, int end);
582    
583            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
584            public int getRepositoryFileEntriesCount(long repositoryId);
585    
586            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
587            public java.lang.String getUniqueTitle(long groupId, long folderId,
588                    long fileEntryId, java.lang.String title, java.lang.String extension)
589                    throws PortalException;
590    
591            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
592            public boolean hasExtraSettings();
593    
594            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
595            public boolean hasFileEntryLock(long userId, long fileEntryId)
596                    throws PortalException;
597    
598            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFileEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
599            public void incrementViewCounter(
600                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
601                    int increment);
602    
603            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
604            public boolean isFileEntryCheckedOut(long fileEntryId)
605                    throws PortalException;
606    
607            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
608            public boolean isKeepFileVersionLabel(long fileEntryId,
609                    com.liferay.portal.service.ServiceContext serviceContext)
610                    throws PortalException;
611    
612            public com.liferay.portal.kernel.lock.Lock lockFileEntry(long userId,
613                    long fileEntryId) throws PortalException;
614    
615            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
616            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
617                    long userId, long fileEntryId, long newFolderId,
618                    com.liferay.portal.service.ServiceContext serviceContext)
619                    throws PortalException;
620    
621            public void rebuildTree(long companyId) throws PortalException;
622    
623            public void revertFileEntry(long userId, long fileEntryId,
624                    java.lang.String version,
625                    com.liferay.portal.service.ServiceContext serviceContext)
626                    throws PortalException;
627    
628            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
629            public com.liferay.portal.kernel.search.Hits search(long groupId,
630                    long userId, long creatorUserId, long folderId,
631                    java.lang.String[] mimeTypes, int status, int start, int end)
632                    throws PortalException;
633    
634            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
635            public com.liferay.portal.kernel.search.Hits search(long groupId,
636                    long userId, long creatorUserId, int status, int start, int end)
637                    throws PortalException;
638    
639            public void setTreePaths(long folderId, java.lang.String treePath,
640                    boolean reindex) throws PortalException;
641    
642            public void unlockFileEntry(long fileEntryId);
643    
644            /**
645            * Updates the document library file entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
646            *
647            * @param dlFileEntry the document library file entry
648            * @return the document library file entry that was updated
649            */
650            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
651            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
652                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
653    
654            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
655                    long userId, long fileEntryId, java.lang.String sourceFileName,
656                    java.lang.String mimeType, java.lang.String title,
657                    java.lang.String description, java.lang.String changeLog,
658                    boolean majorVersion, long fileEntryTypeId,
659                    java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
660                    java.io.File file, java.io.InputStream is, long size,
661                    com.liferay.portal.service.ServiceContext serviceContext)
662                    throws PortalException;
663    
664            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryType(
665                    long userId, long fileEntryId, long fileEntryTypeId,
666                    com.liferay.portal.service.ServiceContext serviceContext)
667                    throws PortalException;
668    
669            public void updateSmallImage(long smallImageId, long largeImageId)
670                    throws PortalException;
671    
672            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
673                    long userId, long fileVersionId, int status,
674                    com.liferay.portal.service.ServiceContext serviceContext,
675                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
676                    throws PortalException;
677    
678            public void validateFile(long groupId, long folderId, long fileEntryId,
679                    java.lang.String fileName, java.lang.String title)
680                    throws PortalException;
681    
682            public boolean verifyFileEntryCheckOut(long fileEntryId,
683                    java.lang.String lockUuid) throws PortalException;
684    
685            public boolean verifyFileEntryLock(long fileEntryId,
686                    java.lang.String lockUuid) throws PortalException;
687    }