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