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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
273                    long companyId, int start, int end);
274    
275            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276            public int getCompanyFoldersCount(long companyId);
277    
278            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
280                    long fileEntryTypeId);
281    
282            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
284                    long fileEntryTypeId, int start, int end);
285    
286            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
288                    long fileEntryTypeId, int start, int end,
289                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator);
290    
291            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292            public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId);
293    
294            /**
295            * Returns the fileEntryTypeIds of the document library file entry types associated with the document library folder.
296            *
297            * @param folderId the folderId of the document library folder
298            * @return long[] the fileEntryTypeIds of document library file entry types associated with the document library folder
299            */
300            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301            public long[] getDLFileEntryTypePrimaryKeys(long folderId);
302    
303            /**
304            * Returns the document library folder with the primary key.
305            *
306            * @param folderId the primary key of the document library folder
307            * @return the document library folder
308            * @throws PortalException if a document library folder with the primary key could not be found
309            */
310            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
312                    long folderId) throws PortalException;
313    
314            /**
315            * Returns the document library folder matching the UUID and group.
316            *
317            * @param uuid the document library folder's UUID
318            * @param groupId the primary key of the group
319            * @return the matching document library folder
320            * @throws PortalException if a matching document library folder could not be found
321            */
322            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
324                    java.lang.String uuid, long groupId) throws PortalException;
325    
326            /**
327            * Returns a range of all the document library folders.
328            *
329            * <p>
330            * 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.
331            * </p>
332            *
333            * @param start the lower bound of the range of document library folders
334            * @param end the upper bound of the range of document library folders (not inclusive)
335            * @return the range of document library folders
336            */
337            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
339                    int start, int end);
340    
341            /**
342            * Returns all the document library folders matching the UUID and company.
343            *
344            * @param uuid the UUID of the document library folders
345            * @param companyId the primary key of the company
346            * @return the matching document library folders, or an empty list if no matches were found
347            */
348            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
350                    java.lang.String uuid, long companyId);
351    
352            /**
353            * Returns a range of document library folders matching the UUID and company.
354            *
355            * @param uuid the UUID of the document library folders
356            * @param companyId the primary key of the company
357            * @param start the lower bound of the range of document library folders
358            * @param end the upper bound of the range of document library folders (not inclusive)
359            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
360            * @return the range of matching document library folders, or an empty list if no matches were found
361            */
362            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
364                    java.lang.String uuid, long companyId, int start, int end,
365                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator);
366    
367            /**
368            * Returns the number of document library folders.
369            *
370            * @return the number of document library folders
371            */
372            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373            public int getDLFoldersCount();
374    
375            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
377                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
378    
379            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
381                    long groupId, long folderId,
382                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
383    
384            /**
385            * @deprecated As of 6.2.0, replaced by {@link
386            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
387            */
388            @java.lang.Deprecated
389            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
391                    long groupId, long folderId, int status, int start, int end);
392    
393            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
395                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
396    
397            /**
398            * @deprecated As of 6.2.0, replaced by {@link
399            #getFileEntriesAndFileShortcutsCount(long, long,
400            QueryDefinition)}
401            */
402            @java.lang.Deprecated
403            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
405                    int status);
406    
407            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
409                    long folderId) throws PortalException;
410    
411            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
413                    long groupId, long parentFolderId, java.lang.String name)
414                    throws PortalException;
415    
416            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417            public long getFolderId(long companyId, long folderId);
418    
419            /**
420            * @deprecated As of 7.0.0, replaced by {@link #getGroupFolderIds(long,
421            long)}
422            */
423            @java.lang.Deprecated
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public java.util.List<java.lang.Long> getFolderIds(long groupId,
426                    long parentFolderId);
427    
428            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
430                    long groupId, long parentFolderId);
431    
432            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
434                    long groupId, long parentFolderId, boolean includeMountfolders);
435    
436            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
438                    long groupId, long parentFolderId, boolean includeMountfolders,
439                    int start, int end,
440                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
441    
442            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
444                    long groupId, long parentFolderId, int start, int end,
445                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
446    
447            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
449                    long groupId, long parentFolderId, int status,
450                    boolean includeMountfolders, int start, int end,
451                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
452    
453            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
454            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
455                    long groupId, long folderId, java.lang.String[] mimeTypes,
456                    boolean includeMountFolders,
457                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
458    
459            /**
460            * @deprecated As of 6.2.0, replaced by {@link
461            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
462            String[], boolean, QueryDefinition)}
463            */
464            @java.lang.Deprecated
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
467                    long groupId, long folderId, int status, boolean includeMountFolders,
468                    int start, int end,
469                    com.liferay.portal.kernel.util.OrderByComparator<?> obc);
470    
471            /**
472            * @deprecated As of 6.2.0, replaced by {@link
473            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
474            String[], boolean, QueryDefinition)}
475            */
476            @java.lang.Deprecated
477            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
479                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
480                    boolean includeMountFolders, int start, int end,
481                    com.liferay.portal.kernel.util.OrderByComparator<?> obc);
482    
483            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
485                    long folderId, java.lang.String[] mimeTypes,
486                    boolean includeMountFolders,
487                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
488    
489            /**
490            * @deprecated As of 6.2.0, replaced by {@link
491            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
492            String[], boolean, QueryDefinition)}
493            */
494            @java.lang.Deprecated
495            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
497                    long folderId, int status, boolean includeMountFolders);
498    
499            /**
500            * @deprecated As of 6.2.0, replaced by {@link
501            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
502            String[], boolean, QueryDefinition)}
503            */
504            @java.lang.Deprecated
505            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
507                    long folderId, int status, java.lang.String[] mimeTypes,
508                    boolean includeMountFolders);
509    
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public int getFoldersCount(long groupId, long parentFolderId);
512    
513            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514            public int getFoldersCount(long groupId, long parentFolderId,
515                    boolean includeMountfolders);
516    
517            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518            public int getFoldersCount(long groupId, long parentFolderId, int status,
519                    boolean includeMountfolders);
520    
521            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
522            public java.util.List<java.lang.Long> getGroupFolderIds(long groupId,
523                    long parentFolderId);
524    
525            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
526            public void getGroupSubfolderIds(java.util.List<java.lang.Long> folderIds,
527                    long groupId, long folderId);
528    
529            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
530            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
531    
532            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533            public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
534                    long repositoryId) throws PortalException;
535    
536            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
537            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
538                    long groupId, long parentFolderId, int start, int end,
539                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
540    
541            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
542            public int getMountFoldersCount(long groupId, long parentFolderId);
543    
544            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
545            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders();
546    
547            /**
548            * Returns the OSGi service identifier.
549            *
550            * @return the OSGi service identifier
551            */
552            public java.lang.String getOSGiServiceIdentifier();
553    
554            @Override
555            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
556            public com.liferay.portal.model.PersistedModel getPersistedModel(
557                    java.io.Serializable primaryKeyObj) throws PortalException;
558    
559            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560            public java.util.List<java.lang.Long> getRepositoryFolderIds(
561                    long repositoryId, long parentFolderId);
562    
563            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
564            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
565                    long repositoryId, int start, int end);
566    
567            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568            public int getRepositoryFoldersCount(long repositoryId);
569    
570            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
571            public void getRepositorySubfolderIds(
572                    java.util.List<java.lang.Long> folderIds, long repositoryId,
573                    long folderId);
574    
575            /**
576            * @deprecated As of 7.0.0, replaced by {@link #getGroupSubfolderIds(List,
577            long, long)}
578            */
579            @java.lang.Deprecated
580            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
581            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
582                    long groupId, long folderId);
583    
584            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585            public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
586                    long folderId);
587    
588            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
589            public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId);
590    
591            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
592            public boolean hasFolderLock(long userId, long folderId);
593    
594            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
595            public boolean hasInheritableLock(long folderId) throws PortalException;
596    
597            public com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
598                    long folderId) throws PortalException;
599    
600            public com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
601                    long folderId, java.lang.String owner, boolean inheritable,
602                    long expirationTime) throws PortalException;
603    
604            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
605            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
606                    long userId, long folderId, long parentFolderId,
607                    com.liferay.portal.service.ServiceContext serviceContext)
608                    throws PortalException;
609    
610            public void rebuildTree(long companyId) throws PortalException;
611    
612            public void rebuildTree(long companyId, long parentFolderId,
613                    java.lang.String parentTreePath, boolean reindex)
614                    throws PortalException;
615    
616            public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
617                    long[] folderIds);
618    
619            public void unlockFolder(long folderId, java.lang.String lockUuid)
620                    throws PortalException;
621    
622            public void unlockFolder(long groupId, long parentFolderId,
623                    java.lang.String name, java.lang.String lockUuid)
624                    throws PortalException;
625    
626            /**
627            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
628            *
629            * @param dlFolder the document library folder
630            * @return the document library folder that was updated
631            */
632            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
633            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
634                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
635    
636            /**
637            * @deprecated As of 7.0.0, replaced {@link #updateFolder(long, long,
638            String, String, long, List, int, ServiceContext)}
639            */
640            @java.lang.Deprecated
641            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
642                    long folderId, java.lang.String name, java.lang.String description,
643                    long defaultFileEntryTypeId,
644                    java.util.List<java.lang.Long> fileEntryTypeIds,
645                    boolean overrideFileEntryTypes,
646                    com.liferay.portal.service.ServiceContext serviceContext)
647                    throws PortalException;
648    
649            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
650            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
651                    long folderId, java.lang.String name, java.lang.String description,
652                    long defaultFileEntryTypeId,
653                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
654                    com.liferay.portal.service.ServiceContext serviceContext)
655                    throws PortalException;
656    
657            /**
658            * @deprecated As of 7.0.0, replaced by {@link #updateFolder(long, long,
659            String, String, long, List, int, ServiceContext)}
660            */
661            @java.lang.Deprecated
662            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
663                    long folderId, long parentFolderId, java.lang.String name,
664                    java.lang.String description, long defaultFileEntryTypeId,
665                    java.util.List<java.lang.Long> fileEntryTypeIds,
666                    boolean overrideFileEntryTypes,
667                    com.liferay.portal.service.ServiceContext serviceContext)
668                    throws PortalException;
669    
670            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
671            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
672                    long folderId, long parentFolderId, java.lang.String name,
673                    java.lang.String description, long defaultFileEntryTypeId,
674                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
675                    com.liferay.portal.service.ServiceContext serviceContext)
676                    throws PortalException;
677    
678            /**
679            * @deprecated As of 7.0.0, replaced by {@link #
680            updateFolderAndFileEntryTypes(long, long, long, String,
681            String, long, List, int, ServiceContext)}
682            */
683            @java.lang.Deprecated
684            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
685                    long userId, long folderId, long parentFolderId, java.lang.String name,
686                    java.lang.String description, long defaultFileEntryTypeId,
687                    java.util.List<java.lang.Long> fileEntryTypeIds,
688                    boolean overrideFileEntryTypes,
689                    com.liferay.portal.service.ServiceContext serviceContext)
690                    throws PortalException;
691    
692            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
693                    long userId, long folderId, long parentFolderId, java.lang.String name,
694                    java.lang.String description, long defaultFileEntryTypeId,
695                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
696                    com.liferay.portal.service.ServiceContext serviceContext)
697                    throws PortalException;
698    
699            @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFolderEntry", incrementClass = com.liferay.portal.kernel.increment.DateOverrideIncrement.class)
700            public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
701                    throws PortalException;
702    
703            public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
704                    long userId, long folderId, int status,
705                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
706                    com.liferay.portal.service.ServiceContext serviceContext)
707                    throws PortalException;
708    
709            public boolean verifyInheritableLock(long folderId,
710                    java.lang.String lockUuid) throws PortalException;
711    }