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 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
201    
202            /**
203            * Performs a dynamic query on the database and returns the matching rows.
204            *
205            * @param dynamicQuery the dynamic query
206            * @return the matching rows
207            */
208            public <T> java.util.List<T> dynamicQuery(
209                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
210    
211            /**
212            * Performs a dynamic query on the database and returns a range of the matching rows.
213            *
214            * <p>
215            * 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.
216            * </p>
217            *
218            * @param dynamicQuery the dynamic query
219            * @param start the lower bound of the range of model instances
220            * @param end the upper bound of the range of model instances (not inclusive)
221            * @return the range of matching rows
222            */
223            public <T> java.util.List<T> dynamicQuery(
224                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
225                    int end);
226    
227            /**
228            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
229            *
230            * <p>
231            * 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.
232            * </p>
233            *
234            * @param dynamicQuery the dynamic query
235            * @param start the lower bound of the range of model instances
236            * @param end the upper bound of the range of model instances (not inclusive)
237            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
238            * @return the ordered range of matching rows
239            */
240            public <T> java.util.List<T> dynamicQuery(
241                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
242                    int end,
243                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
244    
245            /**
246            * Returns the number of rows that match the dynamic query.
247            *
248            * @param dynamicQuery the dynamic query
249            * @return the number of rows that match the dynamic query
250            */
251            public long dynamicQueryCount(
252                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
253    
254            /**
255            * Returns the number of rows that match the dynamic query.
256            *
257            * @param dynamicQuery the dynamic query
258            * @param projection the projection to apply to the query
259            * @return the number of rows that match the dynamic query
260            */
261            public long dynamicQueryCount(
262                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
263                    com.liferay.portal.kernel.dao.orm.Projection projection);
264    
265            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
267                    long fileEntryId);
268    
269            /**
270            * Returns the document library file entry matching the UUID and group.
271            *
272            * @param uuid the document library file entry's UUID
273            * @param groupId the primary key of the group
274            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
275            */
276            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
278                    java.lang.String uuid, long groupId);
279    
280            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
282                    long groupId, long folderId, java.lang.String title);
283    
284            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
286                    long imageId);
287    
288            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByFileName(
290                    long groupId, long folderId, java.lang.String fileName);
291    
292            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
294                    long groupId, long folderId, java.lang.String name);
295    
296            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
298    
299            /**
300            * Returns the Spring bean ID for this bean.
301            *
302            * @return the Spring bean ID for this bean
303            */
304            public java.lang.String getBeanIdentifier();
305    
306            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
308                    long[] ddmStructureIds);
309    
310            /**
311            * Returns a range of all the document library file entries.
312            *
313            * <p>
314            * 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.
315            * </p>
316            *
317            * @param start the lower bound of the range of document library file entries
318            * @param end the upper bound of the range of document library file entries (not inclusive)
319            * @return the range of document library file entries
320            */
321            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
323                    int start, int end);
324    
325            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
327                    java.lang.String uuid, long companyId);
328    
329            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
331                    java.lang.String uuid, long companyId, int start, int end,
332                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator);
333    
334            /**
335            * Returns the number of document library file entries.
336            *
337            * @return the number of document library file entries
338            */
339            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340            public int getDLFileEntriesCount();
341    
342            /**
343            * Returns the document library file entry with the primary key.
344            *
345            * @param fileEntryId the primary key of the document library file entry
346            * @return the document library file entry
347            * @throws PortalException if a document library file entry with the primary key could not be found
348            */
349            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
351                    long fileEntryId)
352                    throws com.liferay.portal.kernel.exception.PortalException;
353    
354            /**
355            * Returns the document library file entry matching the UUID and group.
356            *
357            * @param uuid the document library file entry's UUID
358            * @param groupId the primary key of the group
359            * @return the matching document library file entry
360            * @throws PortalException if a matching document library file entry could not be found
361            */
362            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
364                    java.lang.String uuid, long groupId)
365                    throws com.liferay.portal.kernel.exception.PortalException;
366    
367            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
369                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
370    
371            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
373                    int start, int end);
374    
375            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376            public int getExtraSettingsFileEntriesCount();
377    
378            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379            public java.io.File getFile(long fileEntryId, java.lang.String version,
380                    boolean incrementCounter)
381                    throws com.liferay.portal.kernel.exception.PortalException;
382    
383            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384            public java.io.File getFile(long fileEntryId, java.lang.String version,
385                    boolean incrementCounter, int increment)
386                    throws com.liferay.portal.kernel.exception.PortalException;
387    
388            /**
389            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
390            boolean)}
391            */
392            @java.lang.Deprecated
393            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394            public java.io.File getFile(long userId, long fileEntryId,
395                    java.lang.String version, boolean incrementCounter)
396                    throws com.liferay.portal.kernel.exception.PortalException;
397    
398            /**
399            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
400            boolean, int)}
401            */
402            @java.lang.Deprecated
403            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404            public java.io.File getFile(long userId, long fileEntryId,
405                    java.lang.String version, boolean incrementCounter, int increment)
406                    throws com.liferay.portal.kernel.exception.PortalException;
407    
408            public java.io.InputStream getFileAsStream(long fileEntryId,
409                    java.lang.String version)
410                    throws com.liferay.portal.kernel.exception.PortalException;
411    
412            public java.io.InputStream getFileAsStream(long fileEntryId,
413                    java.lang.String version, boolean incrementCounter)
414                    throws com.liferay.portal.kernel.exception.PortalException;
415    
416            public java.io.InputStream getFileAsStream(long fileEntryId,
417                    java.lang.String version, boolean incrementCounter, int increment)
418                    throws com.liferay.portal.kernel.exception.PortalException;
419    
420            /**
421            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
422            String)}
423            */
424            @java.lang.Deprecated
425            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
426                    java.lang.String version)
427                    throws com.liferay.portal.kernel.exception.PortalException;
428    
429            /**
430            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
431            String, boolean)}
432            */
433            @java.lang.Deprecated
434            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
435                    java.lang.String version, boolean incrementCounter)
436                    throws com.liferay.portal.kernel.exception.PortalException;
437    
438            /**
439            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
440            String, boolean, int)}
441            */
442            @java.lang.Deprecated
443            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
444                    java.lang.String version, boolean incrementCounter, int increment)
445                    throws com.liferay.portal.kernel.exception.PortalException;
446    
447            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
449                    long folderId, java.lang.String name);
450    
451            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
453                    long groupId, long folderId);
454    
455            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
457                    long groupId, long folderId, int start, int end,
458                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
459    
460            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
462                    long groupId, long folderId, int status, int start, int end,
463                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
464    
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
467                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
468                    java.lang.String[] mimeTypes,
469                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
470                    throws java.lang.Exception;
471    
472            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
474                    long groupId, long userId,
475                    java.util.List<java.lang.Long> repositoryIds,
476                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
477                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
478                    throws java.lang.Exception;
479    
480            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
482                    int start, int end);
483    
484            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485            public int getFileEntriesCount();
486    
487            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
488            public int getFileEntriesCount(long groupId,
489                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
490                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition);
491    
492            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493            public int getFileEntriesCount(long groupId, long folderId);
494    
495            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496            public int getFileEntriesCount(long groupId, long folderId, int status);
497    
498            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499            public int getFileEntriesCount(long groupId, long userId,
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 int getFileEntriesCount(long groupId, long userId,
506                    java.util.List<java.lang.Long> repositoryIds,
507                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
508                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
509                    throws java.lang.Exception;
510    
511            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
513                    long fileEntryId)
514                    throws com.liferay.portal.kernel.exception.PortalException;
515    
516            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
518                    long groupId, long folderId, java.lang.String title)
519                    throws com.liferay.portal.kernel.exception.PortalException;
520    
521            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
522            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
523                    long groupId, long folderId, java.lang.String name)
524                    throws com.liferay.portal.kernel.exception.PortalException;
525    
526            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
527            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
528                    java.lang.String uuid, long groupId)
529                    throws com.liferay.portal.kernel.exception.PortalException;
530    
531            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
533                    long groupId, int start, int end);
534    
535            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
536            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
537                    long groupId, int start, int end,
538                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
539    
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
542                    long groupId, long userId, long rootFolderId, int start, int end,
543                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
544    
545            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
547                    long groupId, long userId, 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, long userId, 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 int getGroupFileEntriesCount(long groupId);
556    
557            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
558            public int getGroupFileEntriesCount(long groupId, long userId);
559    
560            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
561            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries();
562    
563            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
564            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries();
565    
566            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
567            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries();
568    
569            @Override
570            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
571            public com.liferay.portal.model.PersistedModel getPersistedModel(
572                    java.io.Serializable primaryKeyObj)
573                    throws com.liferay.portal.kernel.exception.PortalException;
574    
575            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
576            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
577                    long repositoryId, int start, int end);
578    
579            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
580            public int getRepositoryFileEntriesCount(long repositoryId);
581    
582            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
583            public boolean hasExtraSettings();
584    
585            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
586            public boolean hasFileEntryLock(long userId, long fileEntryId)
587                    throws com.liferay.portal.kernel.exception.PortalException;
588    
589            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFileEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
590            public void incrementViewCounter(
591                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
592                    int increment);
593    
594            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
595            public boolean isFileEntryCheckedOut(long fileEntryId)
596                    throws com.liferay.portal.kernel.exception.PortalException;
597    
598            public com.liferay.portal.model.Lock lockFileEntry(long userId,
599                    long fileEntryId)
600                    throws com.liferay.portal.kernel.exception.PortalException;
601    
602            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
603            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
604                    long userId, long fileEntryId, long newFolderId,
605                    com.liferay.portal.service.ServiceContext serviceContext)
606                    throws com.liferay.portal.kernel.exception.PortalException;
607    
608            public void rebuildTree(long companyId)
609                    throws com.liferay.portal.kernel.exception.PortalException;
610    
611            public void revertFileEntry(long userId, long fileEntryId,
612                    java.lang.String version,
613                    com.liferay.portal.service.ServiceContext serviceContext)
614                    throws com.liferay.portal.kernel.exception.PortalException;
615    
616            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
617            public com.liferay.portal.kernel.search.Hits search(long groupId,
618                    long userId, long creatorUserId, long folderId,
619                    java.lang.String[] mimeTypes, int status, int start, int end)
620                    throws com.liferay.portal.kernel.exception.PortalException;
621    
622            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
623            public com.liferay.portal.kernel.search.Hits search(long groupId,
624                    long userId, long creatorUserId, int status, int start, int end)
625                    throws com.liferay.portal.kernel.exception.PortalException;
626    
627            /**
628            * Sets the Spring bean ID for this bean.
629            *
630            * @param beanIdentifier the Spring bean ID for this bean
631            */
632            public void setBeanIdentifier(java.lang.String beanIdentifier);
633    
634            public void setTreePaths(long folderId, java.lang.String treePath,
635                    boolean reindex)
636                    throws com.liferay.portal.kernel.exception.PortalException;
637    
638            public void unlockFileEntry(long fileEntryId);
639    
640            /**
641            * Updates the document library file entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
642            *
643            * @param dlFileEntry the document library file entry
644            * @return the document library file entry that was updated
645            */
646            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
647            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
648                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
649    
650            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
651                    long userId, long fileEntryId, java.lang.String sourceFileName,
652                    java.lang.String mimeType, java.lang.String title,
653                    java.lang.String description, java.lang.String changeLog,
654                    boolean majorVersion, long fileEntryTypeId,
655                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
656                    java.io.File file, java.io.InputStream is, long size,
657                    com.liferay.portal.service.ServiceContext serviceContext)
658                    throws com.liferay.portal.kernel.exception.PortalException;
659    
660            public void updateSmallImage(long smallImageId, long largeImageId)
661                    throws com.liferay.portal.kernel.exception.PortalException;
662    
663            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
664                    long userId, long fileVersionId, int status,
665                    com.liferay.portal.service.ServiceContext serviceContext,
666                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
667                    throws com.liferay.portal.kernel.exception.PortalException;
668    
669            public void validateFile(long groupId, long folderId, long fileEntryId,
670                    java.lang.String fileName, java.lang.String title)
671                    throws com.liferay.portal.kernel.exception.PortalException;
672    
673            public boolean verifyFileEntryCheckOut(long fileEntryId,
674                    java.lang.String lockUuid)
675                    throws com.liferay.portal.kernel.exception.PortalException;
676    
677            public boolean verifyFileEntryLock(long fileEntryId,
678                    java.lang.String lockUuid)
679                    throws com.liferay.portal.kernel.exception.PortalException;
680    }