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 DLFolder. 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 DLFolderLocalServiceUtil
037     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
038     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
039     * @generated
040     */
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface DLFolderLocalService extends BaseLocalService,
045            PersistedModelLocalService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link DLFolderLocalServiceUtil} to access the document library folder local service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
051    
052            /**
053            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
054            *
055            * @param dlFolder the document library folder
056            * @return the document library folder 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.DLFolder addDLFolder(
061                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            /**
065            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
066            *
067            * @param folderId the primary key for the new document library folder
068            * @return the new document library folder
069            */
070            public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
071                    long folderId);
072    
073            /**
074            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
075            *
076            * @param folderId the primary key of the document library folder
077            * @return the document library folder that was removed
078            * @throws PortalException if a document library folder 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.DLFolder deleteDLFolder(
083                    long folderId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
089            *
090            * @param dlFolder the document library folder
091            * @return the document library folder 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.DLFolder deleteDLFolder(
096                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
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.DLFolderModelImpl}. 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.DLFolderModelImpl}. 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.DLFolder fetchDLFolder(
178                    long folderId)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the document library folder with the matching UUID and company.
183            *
184            * @param uuid the document library folder's UUID
185            * @param companyId the primary key of the company
186            * @return the matching document library folder, or <code>null</code> if a matching document library folder 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.DLFolder fetchDLFolderByUuidAndCompanyId(
191                    java.lang.String uuid, long companyId)
192                    throws com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Returns the document library folder matching the UUID and group.
196            *
197            * @param uuid the document library folder's UUID
198            * @param groupId the primary key of the group
199            * @return the matching document library folder, or <code>null</code> if a matching document library folder 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.DLFolder fetchDLFolderByUuidAndGroupId(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the document library folder with the primary key.
209            *
210            * @param folderId the primary key of the document library folder
211            * @return the document library folder
212            * @throws PortalException if a document library folder 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.DLFolder getDLFolder(
217                    long folderId)
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 folder with the matching UUID and company.
230            *
231            * @param uuid the document library folder's UUID
232            * @param companyId the primary key of the company
233            * @return the matching document library folder
234            * @throws PortalException if a matching document library folder 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.DLFolder getDLFolderByUuidAndCompanyId(
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 folder matching the UUID and group.
245            *
246            * @param uuid the document library folder's UUID
247            * @param groupId the primary key of the group
248            * @return the matching document library folder
249            * @throws PortalException if a matching document library folder 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.DLFolder getDLFolderByUuidAndGroupId(
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 folders.
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.DLFolderModelImpl}. 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 folders
266            * @param end the upper bound of the range of document library folders (not inclusive)
267            * @return the range of document library folders
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.DLFolder> getDLFolders(
272                    int start, int end)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the number of document library folders.
277            *
278            * @return the number of document library folders
279            * @throws SystemException if a system exception occurred
280            */
281            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282            public int getDLFoldersCount()
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
287            *
288            * @param dlFolder the document library folder
289            * @return the document library folder 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.DLFolder updateDLFolder(
294                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId)
301                    throws com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * @throws SystemException if a system exception occurred
305            */
306            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
307                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
308                    throws com.liferay.portal.kernel.exception.SystemException;
309    
310            /**
311            * @throws SystemException if a system exception occurred
312            */
313            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
314                    long[] folderIds)
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            /**
318            * @throws SystemException if a system exception occurred
319            */
320            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
321                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * @throws SystemException if a system exception occurred
332            */
333            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
334                    long folderId)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * @throws SystemException if a system exception occurred
339            */
340            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
341                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * @throws SystemException if a system exception occurred
346            */
347            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
348                    long[] folderIds)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * @throws SystemException if a system exception occurred
353            */
354            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
355                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
356                    throws com.liferay.portal.kernel.exception.SystemException;
357    
358            /**
359            * @throws SystemException if a system exception occurred
360            */
361            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
363                    long fileEntryTypeId)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * @throws SystemException if a system exception occurred
368            */
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
371                    long fileEntryTypeId, int start, int end)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * @throws SystemException if a system exception occurred
376            */
377            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
379                    long fileEntryTypeId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * @throws SystemException if a system exception occurred
385            */
386            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387            public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * @throws SystemException if a system exception occurred
392            */
393            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394            public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
395                    long folderId)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * @throws SystemException if a system exception occurred
400            */
401            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402            public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * @throws SystemException if a system exception occurred
407            */
408            public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
409                    long[] folderIds)
410                    throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Returns the Spring bean ID for this bean.
414            *
415            * @return the Spring bean ID for this bean
416            */
417            public java.lang.String getBeanIdentifier();
418    
419            /**
420            * Sets the Spring bean ID for this bean.
421            *
422            * @param beanIdentifier the Spring bean ID for this bean
423            */
424            public void setBeanIdentifier(java.lang.String beanIdentifier);
425    
426            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
427                    long userId, long groupId, long repositoryId, boolean mountPoint,
428                    long parentFolderId, java.lang.String name,
429                    java.lang.String description, boolean hidden,
430                    com.liferay.portal.service.ServiceContext serviceContext)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * @deprecated As of 6.2.0, replaced by more general {@link #addFolder(long,
436            long, long, boolean, long, String, String, boolean,
437            ServiceContext)}
438            */
439            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
440                    long userId, long groupId, long repositoryId, boolean mountPoint,
441                    long parentFolderId, java.lang.String name,
442                    java.lang.String description,
443                    com.liferay.portal.service.ServiceContext serviceContext)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * @deprecated As of 7.0.0, replaced by {@link #deleteAllByGroup(long)}
449            */
450            public void deleteAll(long groupId)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException;
453    
454            public void deleteAllByGroup(long groupId)
455                    throws com.liferay.portal.kernel.exception.PortalException,
456                            com.liferay.portal.kernel.exception.SystemException;
457    
458            public void deleteAllByRepository(long repositoryId)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            com.liferay.portal.kernel.exception.SystemException;
461    
462            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
463            @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, send = false, type = SystemEventConstants.TYPE_DELETE)
464            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
465                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
466                    throws com.liferay.portal.kernel.exception.PortalException,
467                            com.liferay.portal.kernel.exception.SystemException;
468    
469            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
470            @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, send = false, type = SystemEventConstants.TYPE_DELETE)
471            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
472                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
473                    boolean includeTrashedEntries)
474                    throws com.liferay.portal.kernel.exception.PortalException,
475                            com.liferay.portal.kernel.exception.SystemException;
476    
477            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
478            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
479                    long folderId)
480                    throws com.liferay.portal.kernel.exception.PortalException,
481                            com.liferay.portal.kernel.exception.SystemException;
482    
483            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
484            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
485                    long folderId, boolean includeTrashedEntries)
486                    throws com.liferay.portal.kernel.exception.PortalException,
487                            com.liferay.portal.kernel.exception.SystemException;
488    
489            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
490            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
491                    long userId, long folderId, boolean includeTrashedEntries)
492                    throws com.liferay.portal.kernel.exception.PortalException,
493                            com.liferay.portal.kernel.exception.SystemException;
494    
495            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496            public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
497                    long folderId)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501            public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
502                    long groupId, long parentFolderId, java.lang.String name)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
507                    long companyId, int start, int end)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public int getCompanyFoldersCount(long companyId)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * @deprecated As of 6.2.0, replaced by {@link
516            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
517            */
518            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
519            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
520                    long groupId, long folderId, int status, int start, int end)
521                    throws com.liferay.portal.kernel.exception.SystemException;
522    
523            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
524            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
525                    long groupId, long folderId,
526                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * @deprecated As of 6.2.0, replaced by {@link
531            #getFileEntriesAndFileShortcutsCount(long, long,
532            QueryDefinition)}
533            */
534            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
536                    int status) throws com.liferay.portal.kernel.exception.SystemException;
537    
538            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
539            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
540                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
545                    long folderId)
546                    throws com.liferay.portal.kernel.exception.PortalException,
547                            com.liferay.portal.kernel.exception.SystemException;
548    
549            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
551                    long groupId, long parentFolderId, java.lang.String name)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException;
554    
555            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
556            public long getFolderId(long companyId, long folderId)
557                    throws com.liferay.portal.kernel.exception.SystemException;
558    
559            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
561                    long groupId, long parentFolderId)
562                    throws com.liferay.portal.kernel.exception.SystemException;
563    
564            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
565            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
566                    long groupId, long parentFolderId, boolean includeMountfolders)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
570            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
571                    long groupId, long parentFolderId, boolean includeMountfolders,
572                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
576            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
577                    long groupId, long parentFolderId, int start, int end,
578                    com.liferay.portal.kernel.util.OrderByComparator obc)
579                    throws com.liferay.portal.kernel.exception.SystemException;
580    
581            /**
582            * @deprecated As of 6.2.0, replaced by {@link
583            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
584            String[], boolean, QueryDefinition)}
585            */
586            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
587            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
588                    long groupId, long folderId, int status, boolean includeMountFolders,
589                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * @deprecated As of 6.2.0, replaced by {@link
594            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
595            String[], boolean, QueryDefinition)}
596            */
597            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
598            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
599                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
600                    boolean includeMountFolders, int start, int end,
601                    com.liferay.portal.kernel.util.OrderByComparator obc)
602                    throws com.liferay.portal.kernel.exception.SystemException;
603    
604            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
605            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
606                    long groupId, long folderId, java.lang.String[] mimeTypes,
607                    boolean includeMountFolders,
608                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * @deprecated As of 6.2.0, replaced by {@link
613            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
614            String[], boolean, QueryDefinition)}
615            */
616            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
617            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
618                    long folderId, int status, boolean includeMountFolders)
619                    throws com.liferay.portal.kernel.exception.SystemException;
620    
621            /**
622            * @deprecated As of 6.2.0, replaced by {@link
623            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
624            String[], boolean, QueryDefinition)}
625            */
626            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
627            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
628                    long folderId, int status, java.lang.String[] mimeTypes,
629                    boolean includeMountFolders)
630                    throws com.liferay.portal.kernel.exception.SystemException;
631    
632            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
633            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
634                    long folderId, java.lang.String[] mimeTypes,
635                    boolean includeMountFolders,
636                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
637                    throws com.liferay.portal.kernel.exception.SystemException;
638    
639            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
640            public int getFoldersCount(long groupId, long parentFolderId)
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
644            public int getFoldersCount(long groupId, long parentFolderId,
645                    boolean includeMountfolders)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
649            public int getFoldersCount(long groupId, long parentFolderId, int status,
650                    boolean includeMountfolders)
651                    throws com.liferay.portal.kernel.exception.SystemException;
652    
653            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
654            public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
655                    long repositoryId)
656                    throws com.liferay.portal.kernel.exception.PortalException,
657                            com.liferay.portal.kernel.exception.SystemException;
658    
659            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
660            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
661                    long groupId, long parentFolderId, int start, int end,
662                    com.liferay.portal.kernel.util.OrderByComparator obc)
663                    throws com.liferay.portal.kernel.exception.SystemException;
664    
665            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
666            public int getMountFoldersCount(long groupId, long parentFolderId)
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
670            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
671                    throws com.liferay.portal.kernel.exception.SystemException;
672    
673            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
674            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
675                    long groupId, long folderId)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
679            public boolean hasFolderLock(long userId, long folderId)
680                    throws com.liferay.portal.kernel.exception.SystemException;
681    
682            public com.liferay.portal.model.Lock lockFolder(long userId, long folderId)
683                    throws com.liferay.portal.kernel.exception.PortalException,
684                            com.liferay.portal.kernel.exception.SystemException;
685    
686            public com.liferay.portal.model.Lock lockFolder(long userId, long folderId,
687                    java.lang.String owner, boolean inheritable, long expirationTime)
688                    throws com.liferay.portal.kernel.exception.PortalException,
689                            com.liferay.portal.kernel.exception.SystemException;
690    
691            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
692            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
693                    long userId, long folderId, long parentFolderId,
694                    com.liferay.portal.service.ServiceContext serviceContext)
695                    throws com.liferay.portal.kernel.exception.PortalException,
696                            com.liferay.portal.kernel.exception.SystemException;
697    
698            public void rebuildTree(long companyId)
699                    throws com.liferay.portal.kernel.exception.PortalException,
700                            com.liferay.portal.kernel.exception.SystemException;
701    
702            public void rebuildTree(long companyId, long parentFolderId,
703                    java.lang.String parentTreePath, boolean reindex)
704                    throws com.liferay.portal.kernel.exception.PortalException,
705                            com.liferay.portal.kernel.exception.SystemException;
706    
707            public void unlockFolder(long groupId, long parentFolderId,
708                    java.lang.String name, java.lang.String lockUuid)
709                    throws com.liferay.portal.kernel.exception.PortalException,
710                            com.liferay.portal.kernel.exception.SystemException;
711    
712            public void unlockFolder(long folderId, java.lang.String lockUuid)
713                    throws com.liferay.portal.kernel.exception.PortalException,
714                            com.liferay.portal.kernel.exception.SystemException;
715    
716            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
717            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
718                    long folderId, long parentFolderId, java.lang.String name,
719                    java.lang.String description, long defaultFileEntryTypeId,
720                    java.util.List<java.lang.Long> fileEntryTypeIds,
721                    boolean overrideFileEntryTypes,
722                    com.liferay.portal.service.ServiceContext serviceContext)
723                    throws com.liferay.portal.kernel.exception.PortalException,
724                            com.liferay.portal.kernel.exception.SystemException;
725    
726            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
727            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
728                    long folderId, java.lang.String name, java.lang.String description,
729                    long defaultFileEntryTypeId,
730                    java.util.List<java.lang.Long> fileEntryTypeIds,
731                    boolean overrideFileEntryTypes,
732                    com.liferay.portal.service.ServiceContext serviceContext)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException;
735    
736            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
737                    long userId, long folderId, long parentFolderId, java.lang.String name,
738                    java.lang.String description, long defaultFileEntryTypeId,
739                    java.util.List<java.lang.Long> fileEntryTypeIds,
740                    boolean overrideFileEntryTypes,
741                    com.liferay.portal.service.ServiceContext serviceContext)
742                    throws com.liferay.portal.kernel.exception.PortalException,
743                            com.liferay.portal.kernel.exception.SystemException;
744    
745            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFolderEntry", incrementClass = com.liferay.portal.kernel.increment.DateOverrideIncrement.class)
746            public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
747                    throws com.liferay.portal.kernel.exception.PortalException,
748                            com.liferay.portal.kernel.exception.SystemException;
749    
750            public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
751                    long userId, long folderId, int status,
752                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
753                    com.liferay.portal.service.ServiceContext serviceContext)
754                    throws com.liferay.portal.kernel.exception.PortalException,
755                            com.liferay.portal.kernel.exception.SystemException;
756    }