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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the local service utility for DLFolder. This utility wraps
022     * {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on the local server. Methods of this service will not have security checks
025     * based on the propagated JAAS credentials because this service can only be
026     * accessed from within the same VM.
027     *
028     * @author Brian Wing Shun Chan
029     * @see DLFolderLocalService
030     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
031     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
032     * @generated
033     */
034    public class DLFolderLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
043            *
044            * @param dlFolder the document library folder
045            * @return the document library folder that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
049                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addDLFolder(dlFolder);
052            }
053    
054            /**
055            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
056            *
057            * @param folderId the primary key for the new document library folder
058            * @return the new document library folder
059            */
060            public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
061                    long folderId) {
062                    return getService().createDLFolder(folderId);
063            }
064    
065            /**
066            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param folderId the primary key of the document library folder
069            * @return the document library folder that was removed
070            * @throws PortalException if a document library folder with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
074                    long folderId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().deleteDLFolder(folderId);
078            }
079    
080            /**
081            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
082            *
083            * @param dlFolder the document library folder
084            * @return the document library folder that was removed
085            * @throws SystemException if a system exception occurred
086            */
087            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
088                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getService().deleteDLFolder(dlFolder);
091            }
092    
093            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094                    return getService().dynamicQuery();
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns the matching rows.
099            *
100            * @param dynamicQuery the dynamic query
101            * @return the matching rows
102            * @throws SystemException if a system exception occurred
103            */
104            @SuppressWarnings("rawtypes")
105            public static java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * 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.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @SuppressWarnings("rawtypes")
125            public static java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return getService().dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @SuppressWarnings("rawtypes")
146            public static java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getService()
152                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            public static long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getService().dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            public static long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getService().dynamicQueryCount(dynamicQuery, projection);
181            }
182    
183            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
184                    long folderId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return getService().fetchDLFolder(folderId);
187            }
188    
189            /**
190            * Returns the document library folder with the matching UUID and company.
191            *
192            * @param uuid the document library folder's UUID
193            * @param companyId the primary key of the company
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            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndCompanyId(
198                    java.lang.String uuid, long companyId)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getService().fetchDLFolderByUuidAndCompanyId(uuid, companyId);
201            }
202    
203            /**
204            * Returns the document library folder matching the UUID and group.
205            *
206            * @param uuid the document library folder's UUID
207            * @param groupId the primary key of the group
208            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
209            * @throws SystemException if a system exception occurred
210            */
211            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
212                    java.lang.String uuid, long groupId)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return getService().fetchDLFolderByUuidAndGroupId(uuid, groupId);
215            }
216    
217            /**
218            * Returns the document library folder with the primary key.
219            *
220            * @param folderId the primary key of the document library folder
221            * @return the document library folder
222            * @throws PortalException if a document library folder with the primary key could not be found
223            * @throws SystemException if a system exception occurred
224            */
225            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
226                    long folderId)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    return getService().getDLFolder(folderId);
230            }
231    
232            public static com.liferay.portal.model.PersistedModel getPersistedModel(
233                    java.io.Serializable primaryKeyObj)
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException {
236                    return getService().getPersistedModel(primaryKeyObj);
237            }
238    
239            /**
240            * Returns the document library folder with the matching UUID and company.
241            *
242            * @param uuid the document library folder's UUID
243            * @param companyId the primary key of the company
244            * @return the matching document library folder
245            * @throws PortalException if a matching document library folder could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndCompanyId(
249                    java.lang.String uuid, long companyId)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException {
252                    return getService().getDLFolderByUuidAndCompanyId(uuid, companyId);
253            }
254    
255            /**
256            * Returns the document library folder matching the UUID and group.
257            *
258            * @param uuid the document library folder's UUID
259            * @param groupId the primary key of the group
260            * @return the matching document library folder
261            * @throws PortalException if a matching document library folder could not be found
262            * @throws SystemException if a system exception occurred
263            */
264            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
265                    java.lang.String uuid, long groupId)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
269            }
270    
271            /**
272            * Returns a range of all the document library folders.
273            *
274            * <p>
275            * 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.
276            * </p>
277            *
278            * @param start the lower bound of the range of document library folders
279            * @param end the upper bound of the range of document library folders (not inclusive)
280            * @return the range of document library folders
281            * @throws SystemException if a system exception occurred
282            */
283            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
284                    int start, int end)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return getService().getDLFolders(start, end);
287            }
288    
289            /**
290            * Returns the number of document library folders.
291            *
292            * @return the number of document library folders
293            * @throws SystemException if a system exception occurred
294            */
295            public static int getDLFoldersCount()
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return getService().getDLFoldersCount();
298            }
299    
300            /**
301            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
302            *
303            * @param dlFolder the document library folder
304            * @return the document library folder that was updated
305            * @throws SystemException if a system exception occurred
306            */
307            public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
308                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return getService().updateDLFolder(dlFolder);
311            }
312    
313            /**
314            * @throws SystemException if a system exception occurred
315            */
316            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
317                    long folderId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
320            }
321    
322            /**
323            * @throws SystemException if a system exception occurred
324            */
325            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
326                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
329            }
330    
331            /**
332            * @throws SystemException if a system exception occurred
333            */
334            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
335                    long[] folderIds)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
338            }
339    
340            /**
341            * @throws SystemException if a system exception occurred
342            */
343            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
344                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
347            }
348    
349            /**
350            * @throws SystemException if a system exception occurred
351            */
352            public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
355            }
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
361                    long folderId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
364            }
365    
366            /**
367            * @throws SystemException if a system exception occurred
368            */
369            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
370                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
373            }
374    
375            /**
376            * @throws SystemException if a system exception occurred
377            */
378            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
379                    long[] folderIds)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
382            }
383    
384            /**
385            * @throws SystemException if a system exception occurred
386            */
387            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
388                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
391            }
392    
393            /**
394            * @throws SystemException if a system exception occurred
395            */
396            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
397                    long fileEntryTypeId)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
400            }
401    
402            /**
403            * @throws SystemException if a system exception occurred
404            */
405            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
406                    long fileEntryTypeId, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return getService()
409                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
410            }
411    
412            /**
413            * @throws SystemException if a system exception occurred
414            */
415            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
416                    long fileEntryTypeId, int start, int end,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return getService()
420                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
421                            orderByComparator);
422            }
423    
424            /**
425            * @throws SystemException if a system exception occurred
426            */
427            public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
430            }
431    
432            /**
433            * @throws SystemException if a system exception occurred
434            */
435            public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
436                    long folderId)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
439            }
440    
441            /**
442            * @throws SystemException if a system exception occurred
443            */
444            public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
445                    throws com.liferay.portal.kernel.exception.SystemException {
446                    return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
447            }
448    
449            /**
450            * @throws SystemException if a system exception occurred
451            */
452            public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
453                    long[] folderIds)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
456            }
457    
458            /**
459            * Returns the Spring bean ID for this bean.
460            *
461            * @return the Spring bean ID for this bean
462            */
463            public static java.lang.String getBeanIdentifier() {
464                    return getService().getBeanIdentifier();
465            }
466    
467            /**
468            * Sets the Spring bean ID for this bean.
469            *
470            * @param beanIdentifier the Spring bean ID for this bean
471            */
472            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
473                    getService().setBeanIdentifier(beanIdentifier);
474            }
475    
476            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
477                    long userId, long groupId, long repositoryId, boolean mountPoint,
478                    long parentFolderId, java.lang.String name,
479                    java.lang.String description, boolean hidden,
480                    com.liferay.portal.service.ServiceContext serviceContext)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException {
483                    return getService()
484                                       .addFolder(userId, groupId, repositoryId, mountPoint,
485                            parentFolderId, name, description, hidden, serviceContext);
486            }
487    
488            /**
489            * @deprecated As of 6.2.0, replaced by more general {@link #addFolder(long,
490            long, long, boolean, long, String, String, boolean,
491            ServiceContext)}
492            */
493            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
494                    long userId, long groupId, long repositoryId, boolean mountPoint,
495                    long parentFolderId, java.lang.String name,
496                    java.lang.String description,
497                    com.liferay.portal.service.ServiceContext serviceContext)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    return getService()
501                                       .addFolder(userId, groupId, repositoryId, mountPoint,
502                            parentFolderId, name, description, serviceContext);
503            }
504    
505            public static void deleteAll(long groupId)
506                    throws com.liferay.portal.kernel.exception.PortalException,
507                            com.liferay.portal.kernel.exception.SystemException {
508                    getService().deleteAll(groupId);
509            }
510    
511            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
512                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
513                    throws com.liferay.portal.kernel.exception.PortalException,
514                            com.liferay.portal.kernel.exception.SystemException {
515                    return getService().deleteFolder(dlFolder);
516            }
517    
518            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
519                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
520                    boolean includeTrashedEntries)
521                    throws com.liferay.portal.kernel.exception.PortalException,
522                            com.liferay.portal.kernel.exception.SystemException {
523                    return getService().deleteFolder(dlFolder, includeTrashedEntries);
524            }
525    
526            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
527                    long folderId)
528                    throws com.liferay.portal.kernel.exception.PortalException,
529                            com.liferay.portal.kernel.exception.SystemException {
530                    return getService().deleteFolder(folderId);
531            }
532    
533            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
534                    long folderId, boolean includeTrashedEntries)
535                    throws com.liferay.portal.kernel.exception.PortalException,
536                            com.liferay.portal.kernel.exception.SystemException {
537                    return getService().deleteFolder(folderId, includeTrashedEntries);
538            }
539    
540            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
541                    long userId, long folderId, boolean includeTrashedEntries)
542                    throws com.liferay.portal.kernel.exception.PortalException,
543                            com.liferay.portal.kernel.exception.SystemException {
544                    return getService().deleteFolder(userId, folderId, includeTrashedEntries);
545            }
546    
547            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
548                    long folderId)
549                    throws com.liferay.portal.kernel.exception.SystemException {
550                    return getService().fetchFolder(folderId);
551            }
552    
553            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
554                    long groupId, long parentFolderId, java.lang.String name)
555                    throws com.liferay.portal.kernel.exception.SystemException {
556                    return getService().fetchFolder(groupId, parentFolderId, name);
557            }
558    
559            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
560                    long companyId, int start, int end)
561                    throws com.liferay.portal.kernel.exception.SystemException {
562                    return getService().getCompanyFolders(companyId, start, end);
563            }
564    
565            public static int getCompanyFoldersCount(long companyId)
566                    throws com.liferay.portal.kernel.exception.SystemException {
567                    return getService().getCompanyFoldersCount(companyId);
568            }
569    
570            /**
571            * @deprecated As of 6.2.0, replaced by {@link
572            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
573            */
574            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
575                    long groupId, long folderId, int status, int start, int end)
576                    throws com.liferay.portal.kernel.exception.SystemException {
577                    return getService()
578                                       .getFileEntriesAndFileShortcuts(groupId, folderId, status,
579                            start, end);
580            }
581    
582            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
583                    long groupId, long folderId,
584                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
585                    throws com.liferay.portal.kernel.exception.SystemException {
586                    return getService()
587                                       .getFileEntriesAndFileShortcuts(groupId, folderId,
588                            queryDefinition);
589            }
590    
591            /**
592            * @deprecated As of 6.2.0, replaced by {@link
593            #getFileEntriesAndFileShortcutsCount(long, long,
594            QueryDefinition)}
595            */
596            public static int getFileEntriesAndFileShortcutsCount(long groupId,
597                    long folderId, int status)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return getService()
600                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
601                            status);
602            }
603    
604            public static int getFileEntriesAndFileShortcutsCount(long groupId,
605                    long folderId,
606                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
607                    throws com.liferay.portal.kernel.exception.SystemException {
608                    return getService()
609                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
610                            queryDefinition);
611            }
612    
613            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
614                    long folderId)
615                    throws com.liferay.portal.kernel.exception.PortalException,
616                            com.liferay.portal.kernel.exception.SystemException {
617                    return getService().getFolder(folderId);
618            }
619    
620            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
621                    long groupId, long parentFolderId, java.lang.String name)
622                    throws com.liferay.portal.kernel.exception.PortalException,
623                            com.liferay.portal.kernel.exception.SystemException {
624                    return getService().getFolder(groupId, parentFolderId, name);
625            }
626    
627            public static long getFolderId(long companyId, long folderId)
628                    throws com.liferay.portal.kernel.exception.SystemException {
629                    return getService().getFolderId(companyId, folderId);
630            }
631    
632            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
633                    long groupId, long parentFolderId)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return getService().getFolders(groupId, parentFolderId);
636            }
637    
638            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
639                    long groupId, long parentFolderId, boolean includeMountfolders)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return getService()
642                                       .getFolders(groupId, parentFolderId, includeMountfolders);
643            }
644    
645            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
646                    long groupId, long parentFolderId, boolean includeMountfolders,
647                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    return getService()
650                                       .getFolders(groupId, parentFolderId, includeMountfolders,
651                            start, end, obc);
652            }
653    
654            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
655                    long groupId, long parentFolderId, int start, int end,
656                    com.liferay.portal.kernel.util.OrderByComparator obc)
657                    throws com.liferay.portal.kernel.exception.SystemException {
658                    return getService().getFolders(groupId, parentFolderId, start, end, obc);
659            }
660    
661            /**
662            * @deprecated As of 6.2.0, replaced by {@link
663            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
664            String[], boolean, QueryDefinition)}
665            */
666            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
667                    long groupId, long folderId, int status, boolean includeMountFolders,
668                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    return getService()
671                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
672                            status, includeMountFolders, start, end, obc);
673            }
674    
675            /**
676            * @deprecated As of 6.2.0, replaced by {@link
677            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
678            String[], boolean, QueryDefinition)}
679            */
680            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
681                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
682                    boolean includeMountFolders, int start, int end,
683                    com.liferay.portal.kernel.util.OrderByComparator obc)
684                    throws com.liferay.portal.kernel.exception.SystemException {
685                    return getService()
686                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
687                            status, mimeTypes, includeMountFolders, start, end, obc);
688            }
689    
690            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
691                    long groupId, long folderId, java.lang.String[] mimeTypes,
692                    boolean includeMountFolders,
693                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    return getService()
696                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
697                            mimeTypes, includeMountFolders, queryDefinition);
698            }
699    
700            /**
701            * @deprecated As of 6.2.0, replaced by {@link
702            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
703            String[], boolean, QueryDefinition)}
704            */
705            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
706                    long groupId, long folderId, int status, boolean includeMountFolders)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return getService()
709                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
710                            folderId, status, includeMountFolders);
711            }
712    
713            /**
714            * @deprecated As of 6.2.0, replaced by {@link
715            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
716            String[], boolean, QueryDefinition)}
717            */
718            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
719                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
720                    boolean includeMountFolders)
721                    throws com.liferay.portal.kernel.exception.SystemException {
722                    return getService()
723                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
724                            folderId, status, mimeTypes, includeMountFolders);
725            }
726    
727            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
728                    long groupId, long folderId, java.lang.String[] mimeTypes,
729                    boolean includeMountFolders,
730                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
731                    throws com.liferay.portal.kernel.exception.SystemException {
732                    return getService()
733                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
734                            folderId, mimeTypes, includeMountFolders, queryDefinition);
735            }
736    
737            public static int getFoldersCount(long groupId, long parentFolderId)
738                    throws com.liferay.portal.kernel.exception.SystemException {
739                    return getService().getFoldersCount(groupId, parentFolderId);
740            }
741    
742            public static int getFoldersCount(long groupId, long parentFolderId,
743                    boolean includeMountfolders)
744                    throws com.liferay.portal.kernel.exception.SystemException {
745                    return getService()
746                                       .getFoldersCount(groupId, parentFolderId, includeMountfolders);
747            }
748    
749            public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
750                    long repositoryId)
751                    throws com.liferay.portal.kernel.exception.PortalException,
752                            com.liferay.portal.kernel.exception.SystemException {
753                    return getService().getMountFolder(repositoryId);
754            }
755    
756            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
757                    long groupId, long parentFolderId, int start, int end,
758                    com.liferay.portal.kernel.util.OrderByComparator obc)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    return getService()
761                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
762            }
763    
764            public static int getMountFoldersCount(long groupId, long parentFolderId)
765                    throws com.liferay.portal.kernel.exception.SystemException {
766                    return getService().getMountFoldersCount(groupId, parentFolderId);
767            }
768    
769            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getService().getNoAssetFolders();
772            }
773    
774            public static void getSubfolderIds(
775                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    getService().getSubfolderIds(folderIds, groupId, folderId);
778            }
779    
780            public static boolean hasFolderLock(long userId, long folderId)
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    return getService().hasFolderLock(userId, folderId);
783            }
784    
785            public static com.liferay.portal.model.Lock lockFolder(long userId,
786                    long folderId)
787                    throws com.liferay.portal.kernel.exception.PortalException,
788                            com.liferay.portal.kernel.exception.SystemException {
789                    return getService().lockFolder(userId, folderId);
790            }
791    
792            public static com.liferay.portal.model.Lock lockFolder(long userId,
793                    long folderId, java.lang.String owner, boolean inheritable,
794                    long expirationTime)
795                    throws com.liferay.portal.kernel.exception.PortalException,
796                            com.liferay.portal.kernel.exception.SystemException {
797                    return getService()
798                                       .lockFolder(userId, folderId, owner, inheritable,
799                            expirationTime);
800            }
801    
802            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
803                    long userId, long folderId, long parentFolderId,
804                    com.liferay.portal.service.ServiceContext serviceContext)
805                    throws com.liferay.portal.kernel.exception.PortalException,
806                            com.liferay.portal.kernel.exception.SystemException {
807                    return getService()
808                                       .moveFolder(userId, folderId, parentFolderId, serviceContext);
809            }
810    
811            public static void rebuildTree(long companyId)
812                    throws com.liferay.portal.kernel.exception.PortalException,
813                            com.liferay.portal.kernel.exception.SystemException {
814                    getService().rebuildTree(companyId);
815            }
816    
817            public static void unlockFolder(long groupId, long parentFolderId,
818                    java.lang.String name, java.lang.String lockUuid)
819                    throws com.liferay.portal.kernel.exception.PortalException,
820                            com.liferay.portal.kernel.exception.SystemException {
821                    getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
822            }
823    
824            public static void unlockFolder(long folderId, java.lang.String lockUuid)
825                    throws com.liferay.portal.kernel.exception.PortalException,
826                            com.liferay.portal.kernel.exception.SystemException {
827                    getService().unlockFolder(folderId, lockUuid);
828            }
829    
830            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
831                    long folderId, long parentFolderId, java.lang.String name,
832                    java.lang.String description, long defaultFileEntryTypeId,
833                    java.util.List<java.lang.Long> fileEntryTypeIds,
834                    boolean overrideFileEntryTypes,
835                    com.liferay.portal.service.ServiceContext serviceContext)
836                    throws com.liferay.portal.kernel.exception.PortalException,
837                            com.liferay.portal.kernel.exception.SystemException {
838                    return getService()
839                                       .updateFolder(folderId, parentFolderId, name, description,
840                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
841                            serviceContext);
842            }
843    
844            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
845                    long folderId, java.lang.String name, java.lang.String description,
846                    long defaultFileEntryTypeId,
847                    java.util.List<java.lang.Long> fileEntryTypeIds,
848                    boolean overrideFileEntryTypes,
849                    com.liferay.portal.service.ServiceContext serviceContext)
850                    throws com.liferay.portal.kernel.exception.PortalException,
851                            com.liferay.portal.kernel.exception.SystemException {
852                    return getService()
853                                       .updateFolder(folderId, name, description,
854                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
855                            serviceContext);
856            }
857    
858            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
859                    long userId, long folderId, long parentFolderId, java.lang.String name,
860                    java.lang.String description, long defaultFileEntryTypeId,
861                    java.util.List<java.lang.Long> fileEntryTypeIds,
862                    boolean overrideFileEntryTypes,
863                    com.liferay.portal.service.ServiceContext serviceContext)
864                    throws com.liferay.portal.kernel.exception.PortalException,
865                            com.liferay.portal.kernel.exception.SystemException {
866                    return getService()
867                                       .updateFolderAndFileEntryTypes(userId, folderId,
868                            parentFolderId, name, description, defaultFileEntryTypeId,
869                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
870            }
871    
872            /**
873            * @deprecated As of 6.2.0
874            */
875            public static void updateLastPostDate(long folderId,
876                    java.util.Date lastPostDate)
877                    throws com.liferay.portal.kernel.exception.PortalException,
878                            com.liferay.portal.kernel.exception.SystemException {
879                    getService().updateLastPostDate(folderId, lastPostDate);
880            }
881    
882            public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
883                    long userId, long folderId, int status,
884                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
885                    com.liferay.portal.service.ServiceContext serviceContext)
886                    throws com.liferay.portal.kernel.exception.PortalException,
887                            com.liferay.portal.kernel.exception.SystemException {
888                    return getService()
889                                       .updateStatus(userId, folderId, status, workflowContext,
890                            serviceContext);
891            }
892    
893            public static DLFolderLocalService getService() {
894                    if (_service == null) {
895                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
896    
897                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
898                                    "_service");
899                    }
900    
901                    return _service;
902            }
903    
904            /**
905             * @deprecated As of 6.2.0
906             */
907            public void setService(DLFolderLocalService service) {
908            }
909    
910            private static DLFolderLocalService _service;
911    }