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