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<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
456                    long groupId, long parentFolderId, int status,
457                    boolean includeMountfolders, int start, int end,
458                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
459    
460            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
462                    long groupId, long folderId, java.lang.String[] mimeTypes,
463                    boolean includeMountFolders,
464                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
465    
466            /**
467            * @deprecated As of 6.2.0, replaced by {@link
468            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
469            String[], boolean, QueryDefinition)}
470            */
471            @java.lang.Deprecated
472            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
474                    long groupId, long folderId, int status, boolean includeMountFolders,
475                    int start, int end,
476                    com.liferay.portal.kernel.util.OrderByComparator<?> obc);
477    
478            /**
479            * @deprecated As of 6.2.0, replaced by {@link
480            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
481            String[], boolean, QueryDefinition)}
482            */
483            @java.lang.Deprecated
484            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
486                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
487                    boolean includeMountFolders, int start, int end,
488                    com.liferay.portal.kernel.util.OrderByComparator<?> obc);
489    
490            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
492                    long folderId, java.lang.String[] mimeTypes,
493                    boolean includeMountFolders,
494                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
495    
496            /**
497            * @deprecated As of 6.2.0, replaced by {@link
498            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
499            String[], boolean, QueryDefinition)}
500            */
501            @java.lang.Deprecated
502            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
504                    long folderId, int status, boolean includeMountFolders);
505    
506            /**
507            * @deprecated As of 6.2.0, replaced by {@link
508            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
509            String[], boolean, QueryDefinition)}
510            */
511            @java.lang.Deprecated
512            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
514                    long folderId, int status, java.lang.String[] mimeTypes,
515                    boolean includeMountFolders);
516    
517            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518            public int getFoldersCount(long groupId, long parentFolderId);
519    
520            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521            public int getFoldersCount(long groupId, long parentFolderId,
522                    boolean includeMountfolders);
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public int getFoldersCount(long groupId, long parentFolderId, int status,
526                    boolean includeMountfolders);
527    
528            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529            public java.util.List<java.lang.Long> getGroupFolderIds(long groupId,
530                    long parentFolderId);
531    
532            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533            public void getGroupSubfolderIds(java.util.List<java.lang.Long> folderIds,
534                    long groupId, long folderId);
535    
536            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
537            public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
538                    long repositoryId) throws PortalException;
539    
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
542                    long groupId, long parentFolderId, int start, int end,
543                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
544    
545            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546            public int getMountFoldersCount(long groupId, long parentFolderId);
547    
548            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders();
550    
551            @Override
552            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
553            public com.liferay.portal.model.PersistedModel getPersistedModel(
554                    java.io.Serializable primaryKeyObj) throws PortalException;
555    
556            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
557            public java.util.List<java.lang.Long> getRepositoryFolderIds(
558                    long repositoryId, long parentFolderId);
559    
560            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
561            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
562                    long repositoryId, int start, int end);
563    
564            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
565            public int getRepositoryFoldersCount(long repositoryId);
566    
567            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568            public void getRepositorySubfolderIds(
569                    java.util.List<java.lang.Long> folderIds, long repositoryId,
570                    long folderId);
571    
572            /**
573            * @deprecated As of 7.0.0, replaced by {@link #getGroupSubfolderIds(List,
574            long, long)}
575            */
576            @java.lang.Deprecated
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
579                    long groupId, long folderId);
580    
581            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
582            public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
583                    long folderId);
584    
585            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
586            public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId);
587    
588            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
589            public boolean hasFolderLock(long userId, long folderId);
590    
591            public com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
592                    long folderId) throws PortalException;
593    
594            public com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
595                    long folderId, java.lang.String owner, boolean inheritable,
596                    long expirationTime) throws PortalException;
597    
598            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
599            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
600                    long userId, long folderId, long parentFolderId,
601                    com.liferay.portal.service.ServiceContext serviceContext)
602                    throws PortalException;
603    
604            public void rebuildTree(long companyId) throws PortalException;
605    
606            public void rebuildTree(long companyId, long parentFolderId,
607                    java.lang.String parentTreePath, boolean reindex)
608                    throws PortalException;
609    
610            /**
611            * Sets the Spring bean ID for this bean.
612            *
613            * @param beanIdentifier the Spring bean ID for this bean
614            */
615            public void setBeanIdentifier(java.lang.String beanIdentifier);
616    
617            public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
618                    long[] folderIds);
619    
620            public void unlockFolder(long folderId, java.lang.String lockUuid)
621                    throws PortalException;
622    
623            public void unlockFolder(long groupId, long parentFolderId,
624                    java.lang.String name, java.lang.String lockUuid)
625                    throws PortalException;
626    
627            /**
628            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
629            *
630            * @param dlFolder the document library folder
631            * @return the document library folder that was updated
632            */
633            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
634            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
635                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
636    
637            /**
638            * @deprecated As of 7.0.0, replaced {@link #updateFolder(long, long,
639            String, String, long, List, int, ServiceContext)}
640            */
641            @java.lang.Deprecated
642            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
643                    long folderId, java.lang.String name, java.lang.String description,
644                    long defaultFileEntryTypeId,
645                    java.util.List<java.lang.Long> fileEntryTypeIds,
646                    boolean overrideFileEntryTypes,
647                    com.liferay.portal.service.ServiceContext serviceContext)
648                    throws PortalException;
649    
650            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
651            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
652                    long folderId, java.lang.String name, java.lang.String description,
653                    long defaultFileEntryTypeId,
654                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
655                    com.liferay.portal.service.ServiceContext serviceContext)
656                    throws PortalException;
657    
658            /**
659            * @deprecated As of 7.0.0, replaced by {@link #updateFolder(long, long,
660            String, String, long, List, int, ServiceContext)}
661            */
662            @java.lang.Deprecated
663            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
664                    long folderId, long parentFolderId, java.lang.String name,
665                    java.lang.String description, long defaultFileEntryTypeId,
666                    java.util.List<java.lang.Long> fileEntryTypeIds,
667                    boolean overrideFileEntryTypes,
668                    com.liferay.portal.service.ServiceContext serviceContext)
669                    throws PortalException;
670    
671            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
672            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
673                    long folderId, long parentFolderId, java.lang.String name,
674                    java.lang.String description, long defaultFileEntryTypeId,
675                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
676                    com.liferay.portal.service.ServiceContext serviceContext)
677                    throws PortalException;
678    
679            /**
680            * @deprecated As of 7.0.0, replaced by {@link #
681            updateFolderAndFileEntryTypes(long, long, long, String,
682            String, long, List, int, ServiceContext)}
683            */
684            @java.lang.Deprecated
685            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
686                    long userId, long folderId, long parentFolderId, java.lang.String name,
687                    java.lang.String description, long defaultFileEntryTypeId,
688                    java.util.List<java.lang.Long> fileEntryTypeIds,
689                    boolean overrideFileEntryTypes,
690                    com.liferay.portal.service.ServiceContext serviceContext)
691                    throws PortalException;
692    
693            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
694                    long userId, long folderId, long parentFolderId, java.lang.String name,
695                    java.lang.String description, long defaultFileEntryTypeId,
696                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
697                    com.liferay.portal.service.ServiceContext serviceContext)
698                    throws PortalException;
699    
700            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFolderEntry", incrementClass = com.liferay.portal.kernel.increment.DateOverrideIncrement.class)
701            public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
702                    throws PortalException;
703    
704            public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
705                    long userId, long folderId, int status,
706                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
707                    com.liferay.portal.service.ServiceContext serviceContext)
708                    throws PortalException;
709    }