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