001    /**
002     * Copyright (c) 2000-2013 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.transaction.Isolation;
022    import com.liferay.portal.kernel.transaction.Propagation;
023    import com.liferay.portal.kernel.transaction.Transactional;
024    import com.liferay.portal.service.BaseLocalService;
025    import com.liferay.portal.service.PersistedModelLocalService;
026    
027    /**
028     * Provides the local service interface for DLFolder. Methods of this
029     * service will not have security checks based on the propagated JAAS
030     * credentials because this service can only be accessed from within the same
031     * VM.
032     *
033     * @author Brian Wing Shun Chan
034     * @see DLFolderLocalServiceUtil
035     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
036     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
037     * @generated
038     */
039    @ProviderType
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface DLFolderLocalService extends BaseLocalService,
043            PersistedModelLocalService {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * 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.
048             */
049    
050            /**
051            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
052            *
053            * @param dlFolder the document library folder
054            * @return the document library folder that was added
055            * @throws SystemException if a system exception occurred
056            */
057            public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
058                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            /**
062            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
063            *
064            * @param folderId the primary key for the new document library folder
065            * @return the new document library folder
066            */
067            public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
068                    long folderId);
069    
070            /**
071            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
072            *
073            * @param folderId the primary key of the document library folder
074            * @return the document library folder that was removed
075            * @throws PortalException if a document library folder with the primary key could not be found
076            * @throws SystemException if a system exception occurred
077            */
078            public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
079                    long folderId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
085            *
086            * @param dlFolder the document library folder
087            * @return the document library folder that was removed
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
091                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @SuppressWarnings("rawtypes")
104            public java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Performs a dynamic query on the database and returns a range of the matching rows.
110            *
111            * <p>
112            * 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.
113            * </p>
114            *
115            * @param dynamicQuery the dynamic query
116            * @param start the lower bound of the range of model instances
117            * @param end the upper bound of the range of model instances (not inclusive)
118            * @return the range of matching rows
119            * @throws SystemException if a system exception occurred
120            */
121            @SuppressWarnings("rawtypes")
122            public java.util.List dynamicQuery(
123                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124                    int end) throws com.liferay.portal.kernel.exception.SystemException;
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * 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.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException;
146    
147            /**
148            * Returns the number of rows that match the dynamic query.
149            *
150            * @param dynamicQuery the dynamic query
151            * @return the number of rows that match the dynamic query
152            * @throws SystemException if a system exception occurred
153            */
154            public long dynamicQueryCount(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @param projection the projection to apply to the query
163            * @return the number of rows that match the dynamic query
164            * @throws SystemException if a system exception occurred
165            */
166            public long dynamicQueryCount(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168                    com.liferay.portal.kernel.dao.orm.Projection projection)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172            public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
173                    long folderId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns the document library folder with the matching UUID and company.
178            *
179            * @param uuid the document library folder's UUID
180            * @param companyId the primary key of the company
181            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185            public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndCompanyId(
186                    java.lang.String uuid, long companyId)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns the document library folder matching the UUID and group.
191            *
192            * @param uuid the document library folder's UUID
193            * @param groupId the primary key of the group
194            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198            public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
199                    java.lang.String uuid, long groupId)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Returns the document library folder with the primary key.
204            *
205            * @param folderId the primary key of the document library folder
206            * @return the document library folder
207            * @throws PortalException if a document library folder with the primary key could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
212                    long folderId)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException;
215    
216            @Override
217            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218            public com.liferay.portal.model.PersistedModel getPersistedModel(
219                    java.io.Serializable primaryKeyObj)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns the document library folder with the matching UUID and company.
225            *
226            * @param uuid the document library folder's UUID
227            * @param companyId the primary key of the company
228            * @return the matching document library folder
229            * @throws PortalException if a matching document library folder could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndCompanyId(
234                    java.lang.String uuid, long companyId)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Returns the document library folder matching the UUID and group.
240            *
241            * @param uuid the document library folder's UUID
242            * @param groupId the primary key of the group
243            * @return the matching document library folder
244            * @throws PortalException if a matching document library folder could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
249                    java.lang.String uuid, long groupId)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns a range of all the document library folders.
255            *
256            * <p>
257            * 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.
258            * </p>
259            *
260            * @param start the lower bound of the range of document library folders
261            * @param end the upper bound of the range of document library folders (not inclusive)
262            * @return the range of document library folders
263            * @throws SystemException if a system exception occurred
264            */
265            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
267                    int start, int end)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            /**
271            * Returns the number of document library folders.
272            *
273            * @return the number of document library folders
274            * @throws SystemException if a system exception occurred
275            */
276            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277            public int getDLFoldersCount()
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
282            *
283            * @param dlFolder the document library folder
284            * @return the document library folder that was updated
285            * @throws SystemException if a system exception occurred
286            */
287            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
288                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * @throws SystemException if a system exception occurred
293            */
294            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
301                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
302                    throws com.liferay.portal.kernel.exception.SystemException;
303    
304            /**
305            * @throws SystemException if a system exception occurred
306            */
307            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
308                    long[] folderIds)
309                    throws com.liferay.portal.kernel.exception.SystemException;
310    
311            /**
312            * @throws SystemException if a system exception occurred
313            */
314            public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
315                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * @throws SystemException if a system exception occurred
320            */
321            public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
328                    long folderId)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            /**
332            * @throws SystemException if a system exception occurred
333            */
334            public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
335                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * @throws SystemException if a system exception occurred
340            */
341            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
342                    long[] folderIds)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * @throws SystemException if a system exception occurred
347            */
348            public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
349                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * @throws SystemException if a system exception occurred
354            */
355            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
357                    long fileEntryTypeId)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * @throws SystemException if a system exception occurred
362            */
363            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
365                    long fileEntryTypeId, int start, int end)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * @throws SystemException if a system exception occurred
370            */
371            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
373                    long fileEntryTypeId, int start, int end,
374                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375                    throws com.liferay.portal.kernel.exception.SystemException;
376    
377            /**
378            * @throws SystemException if a system exception occurred
379            */
380            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381            public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
382                    throws com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * @throws SystemException if a system exception occurred
386            */
387            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388            public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
389                    long folderId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * @throws SystemException if a system exception occurred
394            */
395            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396            public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
397                    throws com.liferay.portal.kernel.exception.SystemException;
398    
399            /**
400            * @throws SystemException if a system exception occurred
401            */
402            public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
403                    long[] folderIds)
404                    throws com.liferay.portal.kernel.exception.SystemException;
405    
406            /**
407            * Returns the Spring bean ID for this bean.
408            *
409            * @return the Spring bean ID for this bean
410            */
411            public java.lang.String getBeanIdentifier();
412    
413            /**
414            * Sets the Spring bean ID for this bean.
415            *
416            * @param beanIdentifier the Spring bean ID for this bean
417            */
418            public void setBeanIdentifier(java.lang.String beanIdentifier);
419    
420            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
421                    long userId, long groupId, long repositoryId, boolean mountPoint,
422                    long parentFolderId, java.lang.String name,
423                    java.lang.String description, boolean hidden,
424                    com.liferay.portal.service.ServiceContext serviceContext)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException;
427    
428            /**
429            * @deprecated As of 6.2.0, replaced by more general {@link #addFolder(long,
430            long, long, boolean, long, String, String, boolean,
431            ServiceContext)}
432            */
433            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
434                    long userId, long groupId, long repositoryId, boolean mountPoint,
435                    long parentFolderId, java.lang.String name,
436                    java.lang.String description,
437                    com.liferay.portal.service.ServiceContext serviceContext)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException;
440    
441            public void deleteAll(long groupId)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException;
444    
445            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
446                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException;
449    
450            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
451                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
452                    boolean includeTrashedEntries)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException;
455    
456            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
457                    long folderId)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException;
460    
461            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
462                    long folderId, boolean includeTrashedEntries)
463                    throws com.liferay.portal.kernel.exception.PortalException,
464                            com.liferay.portal.kernel.exception.SystemException;
465    
466            public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
467                    long userId, long folderId, boolean includeTrashedEntries)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException;
470    
471            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472            public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
473                    long folderId)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477            public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
478                    long groupId, long parentFolderId, java.lang.String name)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
483                    long companyId, int start, int end)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487            public int getCompanyFoldersCount(long companyId)
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * @deprecated As of 6.2.0, replaced by {@link
492            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
493            */
494            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
496                    long groupId, long folderId, int status, int start, int end)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
501                    long groupId, long folderId,
502                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            /**
506            * @deprecated As of 6.2.0, replaced by {@link
507            #getFileEntriesAndFileShortcutsCount(long, long,
508            QueryDefinition)}
509            */
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
512                    int status) throws com.liferay.portal.kernel.exception.SystemException;
513    
514            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
516                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
521                    long folderId)
522                    throws com.liferay.portal.kernel.exception.PortalException,
523                            com.liferay.portal.kernel.exception.SystemException;
524    
525            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
526            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
527                    long groupId, long parentFolderId, java.lang.String name)
528                    throws com.liferay.portal.kernel.exception.PortalException,
529                            com.liferay.portal.kernel.exception.SystemException;
530    
531            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532            public long getFolderId(long companyId, long folderId)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
536            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
537                    long groupId, long parentFolderId)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
542                    long groupId, long parentFolderId, boolean includeMountfolders)
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
547                    long groupId, long parentFolderId, boolean includeMountfolders,
548                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
552            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
553                    long groupId, long parentFolderId, int start, int end,
554                    com.liferay.portal.kernel.util.OrderByComparator obc)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * @deprecated As of 6.2.0, replaced by {@link
559            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
560            String[], boolean, QueryDefinition)}
561            */
562            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
564                    long groupId, long folderId, int status, boolean includeMountFolders,
565                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * @deprecated As of 6.2.0, replaced by {@link
570            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
571            String[], boolean, QueryDefinition)}
572            */
573            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
574            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
575                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
576                    boolean includeMountFolders, int start, int end,
577                    com.liferay.portal.kernel.util.OrderByComparator obc)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
581            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
582                    long groupId, long folderId, java.lang.String[] mimeTypes,
583                    boolean includeMountFolders,
584                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
585                    throws com.liferay.portal.kernel.exception.SystemException;
586    
587            /**
588            * @deprecated As of 6.2.0, replaced by {@link
589            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
590            String[], boolean, QueryDefinition)}
591            */
592            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
593            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
594                    long folderId, int status, boolean includeMountFolders)
595                    throws com.liferay.portal.kernel.exception.SystemException;
596    
597            /**
598            * @deprecated As of 6.2.0, replaced by {@link
599            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
600            String[], boolean, QueryDefinition)}
601            */
602            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
603            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
604                    long folderId, int status, java.lang.String[] mimeTypes,
605                    boolean includeMountFolders)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
609            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
610                    long folderId, java.lang.String[] mimeTypes,
611                    boolean includeMountFolders,
612                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
616            public int getFoldersCount(long groupId, long parentFolderId)
617                    throws com.liferay.portal.kernel.exception.SystemException;
618    
619            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
620            public int getFoldersCount(long groupId, long parentFolderId,
621                    boolean includeMountfolders)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
625            public int getFoldersCount(long groupId, long parentFolderId, int status,
626                    boolean includeMountfolders)
627                    throws com.liferay.portal.kernel.exception.SystemException;
628    
629            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
630            public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
631                    long repositoryId)
632                    throws com.liferay.portal.kernel.exception.PortalException,
633                            com.liferay.portal.kernel.exception.SystemException;
634    
635            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
636            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
637                    long groupId, long parentFolderId, int start, int end,
638                    com.liferay.portal.kernel.util.OrderByComparator obc)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
642            public int getMountFoldersCount(long groupId, long parentFolderId)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
646            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
650            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
651                    long groupId, long folderId)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
655            public boolean hasFolderLock(long userId, long folderId)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            public com.liferay.portal.model.Lock lockFolder(long userId, long folderId)
659                    throws com.liferay.portal.kernel.exception.PortalException,
660                            com.liferay.portal.kernel.exception.SystemException;
661    
662            public com.liferay.portal.model.Lock lockFolder(long userId, long folderId,
663                    java.lang.String owner, boolean inheritable, long expirationTime)
664                    throws com.liferay.portal.kernel.exception.PortalException,
665                            com.liferay.portal.kernel.exception.SystemException;
666    
667            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
668                    long userId, long folderId, long parentFolderId,
669                    com.liferay.portal.service.ServiceContext serviceContext)
670                    throws com.liferay.portal.kernel.exception.PortalException,
671                            com.liferay.portal.kernel.exception.SystemException;
672    
673            public void rebuildTree(long companyId)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            public void unlockFolder(long groupId, long parentFolderId,
677                    java.lang.String name, java.lang.String lockUuid)
678                    throws com.liferay.portal.kernel.exception.PortalException,
679                            com.liferay.portal.kernel.exception.SystemException;
680    
681            public void unlockFolder(long folderId, java.lang.String lockUuid)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException;
684    
685            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
686                    long folderId, long parentFolderId, java.lang.String name,
687                    java.lang.String description, long defaultFileEntryTypeId,
688                    java.util.List<java.lang.Long> fileEntryTypeIds,
689                    boolean overrideFileEntryTypes,
690                    com.liferay.portal.service.ServiceContext serviceContext)
691                    throws com.liferay.portal.kernel.exception.PortalException,
692                            com.liferay.portal.kernel.exception.SystemException;
693    
694            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
695                    long folderId, java.lang.String name, java.lang.String description,
696                    long defaultFileEntryTypeId,
697                    java.util.List<java.lang.Long> fileEntryTypeIds,
698                    boolean overrideFileEntryTypes,
699                    com.liferay.portal.service.ServiceContext serviceContext)
700                    throws com.liferay.portal.kernel.exception.PortalException,
701                            com.liferay.portal.kernel.exception.SystemException;
702    
703            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
704                    long userId, long folderId, long parentFolderId, java.lang.String name,
705                    java.lang.String description, long defaultFileEntryTypeId,
706                    java.util.List<java.lang.Long> fileEntryTypeIds,
707                    boolean overrideFileEntryTypes,
708                    com.liferay.portal.service.ServiceContext serviceContext)
709                    throws com.liferay.portal.kernel.exception.PortalException,
710                            com.liferay.portal.kernel.exception.SystemException;
711    
712            /**
713            * @deprecated As of 6.2.0
714            */
715            public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException;
718    
719            public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
720                    long userId, long folderId, int status,
721                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
722                    com.liferay.portal.service.ServiceContext serviceContext)
723                    throws com.liferay.portal.kernel.exception.PortalException,
724                            com.liferay.portal.kernel.exception.SystemException;
725    }