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