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