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