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