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 com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    import com.liferay.portal.service.PersistedModelLocalService;
024    
025    /**
026     * Provides the local service interface for DLFolder. Methods of this
027     * service will not have security checks based on the propagated JAAS
028     * credentials because this service can only be accessed from within the same
029     * VM.
030     *
031     * @author Brian Wing Shun Chan
032     * @see DLFolderLocalServiceUtil
033     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
034     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
035     * @generated
036     */
037    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
038            PortalException.class, SystemException.class})
039    public interface DLFolderLocalService extends BaseLocalService,
040            PersistedModelLocalService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * 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.
045             */
046    
047            /**
048            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
049            *
050            * @param dlFolder the document library folder
051            * @return the document library folder that was added
052            * @throws SystemException if a system exception occurred
053            */
054            public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
055                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            /**
059            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
060            *
061            * @param folderId the primary key for the new document library folder
062            * @return the new document library folder
063            */
064            public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
065                    long folderId);
066    
067            /**
068            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
069            *
070            * @param folderId the primary key of the document library folder
071            * @return the document library folder that was removed
072            * @throws PortalException if a document library folder with the primary key could not be found
073            * @throws SystemException if a system exception occurred
074            */
075            public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
076                    long folderId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
082            *
083            * @param dlFolder the document library folder
084            * @return the document library folder that was removed
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
088                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
092    
093            /**
094            * Performs a dynamic query on the database and returns the matching rows.
095            *
096            * @param dynamicQuery the dynamic query
097            * @return the matching rows
098            * @throws SystemException if a system exception occurred
099            */
100            @SuppressWarnings("rawtypes")
101            public java.util.List dynamicQuery(
102                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException;
122    
123            /**
124            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
125            *
126            * <p>
127            * 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.
128            * </p>
129            *
130            * @param dynamicQuery the dynamic query
131            * @param start the lower bound of the range of model instances
132            * @param end the upper bound of the range of model instances (not inclusive)
133            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
134            * @return the ordered range of matching rows
135            * @throws SystemException if a system exception occurred
136            */
137            @SuppressWarnings("rawtypes")
138            public java.util.List dynamicQuery(
139                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140                    int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @param projection the projection to apply to the query
160            * @return the number of rows that match the dynamic query
161            * @throws SystemException if a system exception occurred
162            */
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
165                    com.liferay.portal.kernel.dao.orm.Projection projection)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169            public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
170                    long folderId)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns the document library folder with the matching UUID and company.
175            *
176            * @param uuid the document library folder's UUID
177            * @param companyId the primary key of the company
178            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182            public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndCompanyId(
183                    java.lang.String uuid, long companyId)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            /**
187            * Returns the document library folder matching the UUID and group.
188            *
189            * @param uuid the document library folder's UUID
190            * @param groupId the primary key of the group
191            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195            public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
196                    java.lang.String uuid, long groupId)
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    
199            /**
200            * Returns the document library folder with the primary key.
201            *
202            * @param folderId the primary key of the document library folder
203            * @return the document library folder
204            * @throws PortalException if a document library folder with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
209                    long folderId)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException;
212    
213            @Override
214            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215            public com.liferay.portal.model.PersistedModel getPersistedModel(
216                    java.io.Serializable primaryKeyObj)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Returns the document library folder with the matching UUID and company.
222            *
223            * @param uuid the document library folder's UUID
224            * @param companyId the primary key of the company
225            * @return the matching document library folder
226            * @throws PortalException if a matching document library folder could not be found
227            * @throws SystemException if a system exception occurred
228            */
229            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndCompanyId(
231                    java.lang.String uuid, long companyId)
232                    throws com.liferay.portal.kernel.exception.PortalException,
233                            com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * Returns the document library folder matching the UUID and group.
237            *
238            * @param uuid the document library folder's UUID
239            * @param groupId the primary key of the group
240            * @return the matching document library folder
241            * @throws PortalException if a matching document library folder could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
246                    java.lang.String uuid, long groupId)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns a range of all the document library folders.
252            *
253            * <p>
254            * 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.
255            * </p>
256            *
257            * @param start the lower bound of the range of document library folders
258            * @param end the upper bound of the range of document library folders (not inclusive)
259            * @return the range of document library folders
260            * @throws SystemException if a system exception occurred
261            */
262            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
264                    int start, int end)
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            /**
268            * Returns the number of document library folders.
269            *
270            * @return the number of document library folders
271            * @throws SystemException if a system exception occurred
272            */
273            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274            public int getDLFoldersCount()
275                    throws com.liferay.portal.kernel.exception.SystemException;
276    
277            /**
278            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
279            *
280            * @param dlFolder the document library folder
281            * @return the document library folder that was updated
282            * @throws SystemException if a system exception occurred
283            */
284            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
285                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            /**
289            * @throws SystemException if a system exception occurred
290            */
291            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * @throws SystemException if a system exception occurred
296            */
297            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
298                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
299                    throws com.liferay.portal.kernel.exception.SystemException;
300    
301            /**
302            * @throws SystemException if a system exception occurred
303            */
304            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
305                    long[] folderIds)
306                    throws com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * @throws SystemException if a system exception occurred
310            */
311            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
312                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
313                    throws com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * @throws SystemException if a system exception occurred
317            */
318            public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
319                    throws com.liferay.portal.kernel.exception.SystemException;
320    
321            /**
322            * @throws SystemException if a system exception occurred
323            */
324            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
325                    long folderId)
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * @throws SystemException if a system exception occurred
330            */
331            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
332                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
333                    throws com.liferay.portal.kernel.exception.SystemException;
334    
335            /**
336            * @throws SystemException if a system exception occurred
337            */
338            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
339                    long[] folderIds)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
346                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
347                    throws com.liferay.portal.kernel.exception.SystemException;
348    
349            /**
350            * @throws SystemException if a system exception occurred
351            */
352            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
354                    long fileEntryTypeId)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
362                    long fileEntryTypeId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            /**
366            * @throws SystemException if a system exception occurred
367            */
368            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
370                    long fileEntryTypeId, int start, int end,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
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 int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * @throws SystemException if a system exception occurred
383            */
384            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385            public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
386                    long folderId)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * @throws SystemException if a system exception occurred
391            */
392            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393            public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * @throws SystemException if a system exception occurred
398            */
399            public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
400                    long[] folderIds)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns the Spring bean ID for this bean.
405            *
406            * @return the Spring bean ID for this bean
407            */
408            public java.lang.String getBeanIdentifier();
409    
410            /**
411            * Sets the Spring bean ID for this bean.
412            *
413            * @param beanIdentifier the Spring bean ID for this bean
414            */
415            public void setBeanIdentifier(java.lang.String beanIdentifier);
416    
417            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
418                    long userId, long groupId, long repositoryId, boolean mountPoint,
419                    long parentFolderId, java.lang.String name,
420                    java.lang.String description, boolean hidden,
421                    com.liferay.portal.service.ServiceContext serviceContext)
422                    throws com.liferay.portal.kernel.exception.PortalException,
423                            com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * @deprecated As of 6.2.0, replaced by more general {@link #addFolder(long,
427            long, long, boolean, long, String, String, boolean,
428            ServiceContext)}
429            */
430            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
431                    long userId, long groupId, long repositoryId, boolean mountPoint,
432                    long parentFolderId, java.lang.String name,
433                    java.lang.String description,
434                    com.liferay.portal.service.ServiceContext serviceContext)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException;
437    
438            public void deleteAll(long groupId)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException;
441    
442            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
443                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException;
446    
447            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
448                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
449                    boolean includeTrashedEntries)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException;
452    
453            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
454                    long folderId)
455                    throws com.liferay.portal.kernel.exception.PortalException,
456                            com.liferay.portal.kernel.exception.SystemException;
457    
458            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
459                    long folderId, boolean includeTrashedEntries)
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException;
462    
463            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
464                    long userId, long folderId, boolean includeTrashedEntries)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException;
467    
468            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469            public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
470                    long folderId)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474            public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
475                    long groupId, long parentFolderId, java.lang.String name)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
480                    long companyId, int start, int end)
481                    throws com.liferay.portal.kernel.exception.SystemException;
482    
483            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484            public int getCompanyFoldersCount(long companyId)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            /**
488            * @deprecated As of 6.2.0, replaced by {@link
489            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
490            */
491            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
493                    long groupId, long folderId, int status, int start, int end)
494                    throws com.liferay.portal.kernel.exception.SystemException;
495    
496            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
498                    long groupId, long folderId,
499                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    
502            /**
503            * @deprecated As of 6.2.0, replaced by {@link
504            #getFileEntriesAndFileShortcutsCount(long, long,
505            QueryDefinition)}
506            */
507            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
509                    int status) throws com.liferay.portal.kernel.exception.SystemException;
510    
511            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
513                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
518                    long folderId)
519                    throws com.liferay.portal.kernel.exception.PortalException,
520                            com.liferay.portal.kernel.exception.SystemException;
521    
522            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
523            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
524                    long groupId, long parentFolderId, java.lang.String name)
525                    throws com.liferay.portal.kernel.exception.PortalException,
526                            com.liferay.portal.kernel.exception.SystemException;
527    
528            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529            public long getFolderId(long companyId, long folderId)
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
534                    long groupId, long parentFolderId)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
538            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
539                    long groupId, long parentFolderId, boolean includeMountfolders)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
543            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
544                    long groupId, long parentFolderId, boolean includeMountfolders,
545                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
546                    throws com.liferay.portal.kernel.exception.SystemException;
547    
548            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
550                    long groupId, long parentFolderId, int start, int end,
551                    com.liferay.portal.kernel.util.OrderByComparator obc)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * @deprecated As of 6.2.0, replaced by {@link
556            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
557            String[], boolean, QueryDefinition)}
558            */
559            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
561                    long groupId, long folderId, int status, boolean includeMountFolders,
562                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
563                    throws com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * @deprecated As of 6.2.0, replaced by {@link
567            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
568            String[], boolean, QueryDefinition)}
569            */
570            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
571            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
572                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
573                    boolean includeMountFolders, int start, int end,
574                    com.liferay.portal.kernel.util.OrderByComparator obc)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
579                    long groupId, long folderId, java.lang.String[] mimeTypes,
580                    boolean includeMountFolders,
581                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
582                    throws com.liferay.portal.kernel.exception.SystemException;
583    
584            /**
585            * @deprecated As of 6.2.0, replaced by {@link
586            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
587            String[], boolean, QueryDefinition)}
588            */
589            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
591                    long folderId, int status, boolean includeMountFolders)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * @deprecated As of 6.2.0, replaced by {@link
596            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
597            String[], boolean, QueryDefinition)}
598            */
599            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
600            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
601                    long folderId, int status, java.lang.String[] mimeTypes,
602                    boolean includeMountFolders)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
606            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
607                    long folderId, java.lang.String[] mimeTypes,
608                    boolean includeMountFolders,
609                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
613            public int getFoldersCount(long groupId, long parentFolderId)
614                    throws com.liferay.portal.kernel.exception.SystemException;
615    
616            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
617            public int getFoldersCount(long groupId, long parentFolderId,
618                    boolean includeMountfolders)
619                    throws com.liferay.portal.kernel.exception.SystemException;
620    
621            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
622            public int getFoldersCount(long groupId, long parentFolderId, int status,
623                    boolean includeMountfolders)
624                    throws com.liferay.portal.kernel.exception.SystemException;
625    
626            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
627            public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
628                    long repositoryId)
629                    throws com.liferay.portal.kernel.exception.PortalException,
630                            com.liferay.portal.kernel.exception.SystemException;
631    
632            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
633            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
634                    long groupId, long parentFolderId, int start, int end,
635                    com.liferay.portal.kernel.util.OrderByComparator obc)
636                    throws com.liferay.portal.kernel.exception.SystemException;
637    
638            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
639            public int getMountFoldersCount(long groupId, long parentFolderId)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
643            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
644                    throws com.liferay.portal.kernel.exception.SystemException;
645    
646            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
647            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
648                    long groupId, long folderId)
649                    throws com.liferay.portal.kernel.exception.SystemException;
650    
651            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
652            public boolean hasFolderLock(long userId, long folderId)
653                    throws com.liferay.portal.kernel.exception.SystemException;
654    
655            public com.liferay.portal.model.Lock lockFolder(long userId, long folderId)
656                    throws com.liferay.portal.kernel.exception.PortalException,
657                            com.liferay.portal.kernel.exception.SystemException;
658    
659            public com.liferay.portal.model.Lock lockFolder(long userId, long folderId,
660                    java.lang.String owner, boolean inheritable, long expirationTime)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException;
663    
664            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
665                    long userId, long folderId, long parentFolderId,
666                    com.liferay.portal.service.ServiceContext serviceContext)
667                    throws com.liferay.portal.kernel.exception.PortalException,
668                            com.liferay.portal.kernel.exception.SystemException;
669    
670            public void rebuildTree(long companyId)
671                    throws com.liferay.portal.kernel.exception.PortalException,
672                            com.liferay.portal.kernel.exception.SystemException;
673    
674            public void unlockFolder(long groupId, long parentFolderId,
675                    java.lang.String name, java.lang.String lockUuid)
676                    throws com.liferay.portal.kernel.exception.PortalException,
677                            com.liferay.portal.kernel.exception.SystemException;
678    
679            public void unlockFolder(long folderId, java.lang.String lockUuid)
680                    throws com.liferay.portal.kernel.exception.PortalException,
681                            com.liferay.portal.kernel.exception.SystemException;
682    
683            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
684                    long folderId, long parentFolderId, java.lang.String name,
685                    java.lang.String description, long defaultFileEntryTypeId,
686                    java.util.List<java.lang.Long> fileEntryTypeIds,
687                    boolean overrideFileEntryTypes,
688                    com.liferay.portal.service.ServiceContext serviceContext)
689                    throws com.liferay.portal.kernel.exception.PortalException,
690                            com.liferay.portal.kernel.exception.SystemException;
691    
692            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
693                    long folderId, java.lang.String name, java.lang.String description,
694                    long defaultFileEntryTypeId,
695                    java.util.List<java.lang.Long> fileEntryTypeIds,
696                    boolean overrideFileEntryTypes,
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 com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
702                    long userId, long folderId, long parentFolderId, java.lang.String name,
703                    java.lang.String description, long defaultFileEntryTypeId,
704                    java.util.List<java.lang.Long> fileEntryTypeIds,
705                    boolean overrideFileEntryTypes,
706                    com.liferay.portal.service.ServiceContext serviceContext)
707                    throws com.liferay.portal.kernel.exception.PortalException,
708                            com.liferay.portal.kernel.exception.SystemException;
709    
710            /**
711            * @deprecated As of 6.2.0
712            */
713            public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
714                    throws com.liferay.portal.kernel.exception.PortalException,
715                            com.liferay.portal.kernel.exception.SystemException;
716    
717            public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
718                    long userId, long folderId, int status,
719                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
720                    com.liferay.portal.service.ServiceContext serviceContext)
721                    throws com.liferay.portal.kernel.exception.PortalException,
722                            com.liferay.portal.kernel.exception.SystemException;
723    }