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.storage.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            /**
304            * Returns the Spring bean ID for this bean.
305            *
306            * @return the Spring bean ID for this bean
307            */
308            public java.lang.String getBeanIdentifier();
309    
310            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
312                    long[] ddmStructureIds);
313    
314            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
316                    long groupId, long[] ddmStructureIds);
317    
318            /**
319            * Returns a range of all the document library file entries.
320            *
321            * <p>
322            * 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.
323            * </p>
324            *
325            * @param start the lower bound of the range of document library file entries
326            * @param end the upper bound of the range of document library file entries (not inclusive)
327            * @return the range of document library file entries
328            */
329            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
331                    int start, int end);
332    
333            /**
334            * Returns all the document library file entries matching the UUID and company.
335            *
336            * @param uuid the UUID of the document library file entries
337            * @param companyId the primary key of the company
338            * @return the matching document library file entries, or an empty list if no matches were found
339            */
340            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
342                    java.lang.String uuid, long companyId);
343    
344            /**
345            * Returns a range of document library file entries matching the UUID and company.
346            *
347            * @param uuid the UUID of the document library file entries
348            * @param companyId the primary key of the company
349            * @param start the lower bound of the range of document library file entries
350            * @param end the upper bound of the range of document library file entries (not inclusive)
351            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
352            * @return the range of matching document library file entries, or an empty list if no matches were found
353            */
354            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
356                    java.lang.String uuid, long companyId, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator);
358    
359            /**
360            * Returns the number of document library file entries.
361            *
362            * @return the number of document library file entries
363            */
364            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365            public int getDLFileEntriesCount();
366    
367            /**
368            * Returns the document library file entry with the primary key.
369            *
370            * @param fileEntryId the primary key of the document library file entry
371            * @return the document library file entry
372            * @throws PortalException if a document library file entry with the primary key could not be found
373            */
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
376                    long fileEntryId) throws PortalException;
377    
378            /**
379            * Returns the document library file entry matching the UUID and group.
380            *
381            * @param uuid the document library file entry's UUID
382            * @param groupId the primary key of the group
383            * @return the matching document library file entry
384            * @throws PortalException if a matching document library file entry could not be found
385            */
386            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
388                    java.lang.String uuid, long groupId) throws PortalException;
389    
390            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
392                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
393    
394            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
396                    int start, int end);
397    
398            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399            public int getExtraSettingsFileEntriesCount();
400    
401            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402            public java.io.File getFile(long fileEntryId, java.lang.String version,
403                    boolean incrementCounter) throws PortalException;
404    
405            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406            public java.io.File getFile(long fileEntryId, java.lang.String version,
407                    boolean incrementCounter, int increment) throws PortalException;
408    
409            /**
410            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
411            boolean)}
412            */
413            @java.lang.Deprecated
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public java.io.File getFile(long userId, long fileEntryId,
416                    java.lang.String version, boolean incrementCounter)
417                    throws PortalException;
418    
419            /**
420            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
421            boolean, int)}
422            */
423            @java.lang.Deprecated
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public java.io.File getFile(long userId, long fileEntryId,
426                    java.lang.String version, boolean incrementCounter, int increment)
427                    throws PortalException;
428    
429            public java.io.InputStream getFileAsStream(long fileEntryId,
430                    java.lang.String version) throws PortalException;
431    
432            public java.io.InputStream getFileAsStream(long fileEntryId,
433                    java.lang.String version, boolean incrementCounter)
434                    throws PortalException;
435    
436            public java.io.InputStream getFileAsStream(long fileEntryId,
437                    java.lang.String version, boolean incrementCounter, int increment)
438                    throws PortalException;
439    
440            /**
441            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
442            String)}
443            */
444            @java.lang.Deprecated
445            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
446                    java.lang.String version) throws PortalException;
447    
448            /**
449            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
450            String, boolean)}
451            */
452            @java.lang.Deprecated
453            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
454                    java.lang.String version, boolean incrementCounter)
455                    throws PortalException;
456    
457            /**
458            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
459            String, boolean, int)}
460            */
461            @java.lang.Deprecated
462            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
463                    java.lang.String version, boolean incrementCounter, int increment)
464                    throws PortalException;
465    
466            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
468                    long folderId, java.lang.String name);
469    
470            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
472                    long groupId, long folderId);
473    
474            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
476                    long groupId, long folderId, int start, int end,
477                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
478    
479            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
481                    long groupId, long folderId, int status, int start, int end,
482                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
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, java.util.List<java.lang.Long> folderIds,
487                    java.lang.String[] mimeTypes,
488                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
489                    throws java.lang.Exception;
490    
491            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
493                    long groupId, long userId,
494                    java.util.List<java.lang.Long> repositoryIds,
495                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
496                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
497                    throws java.lang.Exception;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
501                    int start, int end);
502    
503            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504            public int getFileEntriesCount();
505    
506            /**
507            * @deprecated As of 7.0.0, with no direct replacement
508            */
509            @java.lang.Deprecated
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public int getFileEntriesCount(long groupId,
512                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
513                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition);
514    
515            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516            public int getFileEntriesCount(long groupId, long folderId);
517    
518            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
519            public int getFileEntriesCount(long groupId, long folderId, int status);
520    
521            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
522            public int getFileEntriesCount(long groupId, long userId,
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 int getFileEntriesCount(long groupId, long userId,
529                    java.util.List<java.lang.Long> repositoryIds,
530                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
531                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
532                    throws java.lang.Exception;
533    
534            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
536                    long fileEntryId) throws PortalException;
537    
538            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
539            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
540                    long groupId, long folderId, java.lang.String title)
541                    throws PortalException;
542    
543            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
545                    long groupId, long folderId, java.lang.String name)
546                    throws PortalException;
547    
548            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
550                    java.lang.String uuid, long groupId) throws PortalException;
551    
552            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
553            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
554                    long groupId, int start, int end);
555    
556            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
557            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
558                    long groupId, int start, int end,
559                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
560    
561            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
563                    long groupId, long userId, long repositoryId, long rootFolderId,
564                    int start, int end,
565                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
566    
567            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
569                    long groupId, long userId, long rootFolderId, int start, int end,
570                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
571    
572            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
573            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
574                    long groupId, long userId, int start, int end);
575    
576            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
577            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
578                    long groupId, long userId, int start, int end,
579                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
580    
581            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
582            public int getGroupFileEntriesCount(long groupId);
583    
584            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585            public int getGroupFileEntriesCount(long groupId, long userId);
586    
587            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
588            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries();
589    
590            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
591            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries();
592    
593            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
594            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries();
595    
596            @Override
597            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
598            public com.liferay.portal.model.PersistedModel getPersistedModel(
599                    java.io.Serializable primaryKeyObj) throws PortalException;
600    
601            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
602            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
603                    long repositoryId, int start, int end);
604    
605            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
606            public int getRepositoryFileEntriesCount(long repositoryId);
607    
608            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
609            public boolean hasExtraSettings();
610    
611            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
612            public boolean hasFileEntryLock(long userId, long fileEntryId)
613                    throws PortalException;
614    
615            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFileEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
616            public void incrementViewCounter(
617                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
618                    int increment);
619    
620            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
621            public boolean isFileEntryCheckedOut(long fileEntryId)
622                    throws PortalException;
623    
624            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
625            public boolean isKeepFileVersionLabel(long fileEntryId,
626                    com.liferay.portal.service.ServiceContext serviceContext)
627                    throws PortalException;
628    
629            public com.liferay.portal.kernel.lock.Lock lockFileEntry(long userId,
630                    long fileEntryId) throws PortalException;
631    
632            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
633            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
634                    long userId, long fileEntryId, long newFolderId,
635                    com.liferay.portal.service.ServiceContext serviceContext)
636                    throws PortalException;
637    
638            public void rebuildTree(long companyId) throws PortalException;
639    
640            public void revertFileEntry(long userId, long fileEntryId,
641                    java.lang.String version,
642                    com.liferay.portal.service.ServiceContext serviceContext)
643                    throws PortalException;
644    
645            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
646            public com.liferay.portal.kernel.search.Hits search(long groupId,
647                    long userId, long creatorUserId, long folderId,
648                    java.lang.String[] mimeTypes, int status, int start, int end)
649                    throws PortalException;
650    
651            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
652            public com.liferay.portal.kernel.search.Hits search(long groupId,
653                    long userId, long creatorUserId, int status, int start, int end)
654                    throws PortalException;
655    
656            /**
657            * Sets the Spring bean ID for this bean.
658            *
659            * @param beanIdentifier the Spring bean ID for this bean
660            */
661            public void setBeanIdentifier(java.lang.String beanIdentifier);
662    
663            public void setTreePaths(long folderId, java.lang.String treePath,
664                    boolean reindex) throws PortalException;
665    
666            public void unlockFileEntry(long fileEntryId);
667    
668            /**
669            * Updates the document library file entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
670            *
671            * @param dlFileEntry the document library file entry
672            * @return the document library file entry that was updated
673            */
674            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
675            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
676                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
677    
678            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
679                    long userId, long fileEntryId, java.lang.String sourceFileName,
680                    java.lang.String mimeType, java.lang.String title,
681                    java.lang.String description, java.lang.String changeLog,
682                    boolean majorVersion, long fileEntryTypeId,
683                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.DDMFormValues> ddmFormValuesMap,
684                    java.io.File file, java.io.InputStream is, long size,
685                    com.liferay.portal.service.ServiceContext serviceContext)
686                    throws PortalException;
687    
688            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryType(
689                    long userId, long fileEntryId, long fileEntryTypeId,
690                    com.liferay.portal.service.ServiceContext serviceContext)
691                    throws PortalException;
692    
693            public void updateSmallImage(long smallImageId, long largeImageId)
694                    throws PortalException;
695    
696            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
697                    long userId, long fileVersionId, int status,
698                    com.liferay.portal.service.ServiceContext serviceContext,
699                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
700                    throws PortalException;
701    
702            public void validateFile(long groupId, long folderId, long fileEntryId,
703                    java.lang.String fileName, java.lang.String title)
704                    throws PortalException;
705    
706            public boolean verifyFileEntryCheckOut(long fileEntryId,
707                    java.lang.String lockUuid) throws PortalException;
708    
709            public boolean verifyFileEntryLock(long fileEntryId,
710                    java.lang.String lockUuid) throws PortalException;
711    }