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.journal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for JournalFolder. This utility wraps
024     * {@link com.liferay.portlet.journal.service.impl.JournalFolderLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalFolderLocalService
032     * @see com.liferay.portlet.journal.service.base.JournalFolderLocalServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalFolderLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class JournalFolderLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalFolderLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Adds the journal folder to the database. Also notifies the appropriate model listeners.
046            *
047            * @param journalFolder the journal folder
048            * @return the journal folder that was added
049            * @throws SystemException if a system exception occurred
050            */
051            public static com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
052                    com.liferay.portlet.journal.model.JournalFolder journalFolder)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getService().addJournalFolder(journalFolder);
055            }
056    
057            /**
058            * Creates a new journal folder with the primary key. Does not add the journal folder to the database.
059            *
060            * @param folderId the primary key for the new journal folder
061            * @return the new journal folder
062            */
063            public static com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
064                    long folderId) {
065                    return getService().createJournalFolder(folderId);
066            }
067    
068            /**
069            * Deletes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param folderId the primary key of the journal folder
072            * @return the journal folder that was removed
073            * @throws PortalException if a journal folder with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
077                    long folderId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().deleteJournalFolder(folderId);
081            }
082    
083            /**
084            * Deletes the journal folder from the database. Also notifies the appropriate model listeners.
085            *
086            * @param journalFolder the journal folder
087            * @return the journal folder that was removed
088            * @throws SystemException if a system exception occurred
089            */
090            public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
091                    com.liferay.portlet.journal.model.JournalFolder journalFolder)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return getService().deleteJournalFolder(journalFolder);
094            }
095    
096            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097                    return getService().dynamicQuery();
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public static java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a range of the matching rows.
116            *
117            * <p>
118            * 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.journal.model.impl.JournalFolderModelImpl}. 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @return the range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public static java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService().dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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.journal.model.impl.JournalFolderModelImpl}. 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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @SuppressWarnings("rawtypes")
149            public static java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService()
155                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            public static long dynamicQueryCount(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().dynamicQueryCount(dynamicQuery);
169            }
170    
171            /**
172            * Returns the number of rows that match the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @param projection the projection to apply to the query
176            * @return the number of rows that match the dynamic query
177            * @throws SystemException if a system exception occurred
178            */
179            public static long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return getService().dynamicQueryCount(dynamicQuery, projection);
184            }
185    
186            public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
187                    long folderId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return getService().fetchJournalFolder(folderId);
190            }
191    
192            /**
193            * Returns the journal folder with the matching UUID and company.
194            *
195            * @param uuid the journal folder's UUID
196            * @param companyId the primary key of the company
197            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndCompanyId(
201                    java.lang.String uuid, long companyId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getService().fetchJournalFolderByUuidAndCompanyId(uuid, companyId);
204            }
205    
206            /**
207            * Returns the journal folder matching the UUID and group.
208            *
209            * @param uuid the journal folder's UUID
210            * @param groupId the primary key of the group
211            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndGroupId(
215                    java.lang.String uuid, long groupId)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return getService().fetchJournalFolderByUuidAndGroupId(uuid, groupId);
218            }
219    
220            /**
221            * Returns the journal folder with the primary key.
222            *
223            * @param folderId the primary key of the journal folder
224            * @return the journal folder
225            * @throws PortalException if a journal folder with the primary key could not be found
226            * @throws SystemException if a system exception occurred
227            */
228            public static com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
229                    long folderId)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    return getService().getJournalFolder(folderId);
233            }
234    
235            public static com.liferay.portal.model.PersistedModel getPersistedModel(
236                    java.io.Serializable primaryKeyObj)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    return getService().getPersistedModel(primaryKeyObj);
240            }
241    
242            /**
243            * Returns the journal folder with the matching UUID and company.
244            *
245            * @param uuid the journal folder's UUID
246            * @param companyId the primary key of the company
247            * @return the matching journal folder
248            * @throws PortalException if a matching journal folder could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            public static com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndCompanyId(
252                    java.lang.String uuid, long companyId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return getService().getJournalFolderByUuidAndCompanyId(uuid, companyId);
256            }
257    
258            /**
259            * Returns the journal folder matching the UUID and group.
260            *
261            * @param uuid the journal folder's UUID
262            * @param groupId the primary key of the group
263            * @return the matching journal folder
264            * @throws PortalException if a matching journal folder could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public static com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
268                    java.lang.String uuid, long groupId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return getService().getJournalFolderByUuidAndGroupId(uuid, groupId);
272            }
273    
274            /**
275            * Returns a range of all the journal folders.
276            *
277            * <p>
278            * 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.journal.model.impl.JournalFolderModelImpl}. 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.
279            * </p>
280            *
281            * @param start the lower bound of the range of journal folders
282            * @param end the upper bound of the range of journal folders (not inclusive)
283            * @return the range of journal folders
284            * @throws SystemException if a system exception occurred
285            */
286            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
287                    int start, int end)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return getService().getJournalFolders(start, end);
290            }
291    
292            /**
293            * Returns the number of journal folders.
294            *
295            * @return the number of journal folders
296            * @throws SystemException if a system exception occurred
297            */
298            public static int getJournalFoldersCount()
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return getService().getJournalFoldersCount();
301            }
302    
303            /**
304            * Updates the journal folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
305            *
306            * @param journalFolder the journal folder
307            * @return the journal folder that was updated
308            * @throws SystemException if a system exception occurred
309            */
310            public static com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
311                    com.liferay.portlet.journal.model.JournalFolder journalFolder)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return getService().updateJournalFolder(journalFolder);
314            }
315    
316            /**
317            * Returns the Spring bean ID for this bean.
318            *
319            * @return the Spring bean ID for this bean
320            */
321            public static java.lang.String getBeanIdentifier() {
322                    return getService().getBeanIdentifier();
323            }
324    
325            /**
326            * Sets the Spring bean ID for this bean.
327            *
328            * @param beanIdentifier the Spring bean ID for this bean
329            */
330            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
331                    getService().setBeanIdentifier(beanIdentifier);
332            }
333    
334            public static com.liferay.portlet.journal.model.JournalFolder addFolder(
335                    long userId, long groupId, long parentFolderId, java.lang.String name,
336                    java.lang.String description,
337                    com.liferay.portal.service.ServiceContext serviceContext)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return getService()
341                                       .addFolder(userId, groupId, parentFolderId, name,
342                            description, serviceContext);
343            }
344    
345            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
346                    com.liferay.portlet.journal.model.JournalFolder folder)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return getService().deleteFolder(folder);
350            }
351    
352            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
353                    com.liferay.portlet.journal.model.JournalFolder folder,
354                    boolean includeTrashedEntries)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return getService().deleteFolder(folder, includeTrashedEntries);
358            }
359    
360            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
361                    long folderId)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return getService().deleteFolder(folderId);
365            }
366    
367            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
368                    long folderId, boolean includeTrashedEntries)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return getService().deleteFolder(folderId, includeTrashedEntries);
372            }
373    
374            public static void deleteFolders(long groupId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    getService().deleteFolders(groupId);
378            }
379    
380            public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
381                    long folderId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return getService().fetchFolder(folderId);
384            }
385    
386            public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
387                    long groupId, long parentFolderId, java.lang.String name)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return getService().fetchFolder(groupId, parentFolderId, name);
390            }
391    
392            public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
393                    long groupId, java.lang.String name)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return getService().fetchFolder(groupId, name);
396            }
397    
398            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
399                    long companyId, int start, int end)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getService().getCompanyFolders(companyId, start, end);
402            }
403    
404            public static int getCompanyFoldersCount(long companyId)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return getService().getCompanyFoldersCount(companyId);
407            }
408    
409            public static com.liferay.portlet.journal.model.JournalFolder getFolder(
410                    long folderId)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException {
413                    return getService().getFolder(folderId);
414            }
415    
416            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
417                    long groupId)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return getService().getFolders(groupId);
420            }
421    
422            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
423                    long groupId, long parentFolderId)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return getService().getFolders(groupId, parentFolderId);
426            }
427    
428            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
429                    long groupId, long parentFolderId, int status)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return getService().getFolders(groupId, parentFolderId, status);
432            }
433    
434            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
435                    long groupId, long parentFolderId, int start, int end)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getService().getFolders(groupId, parentFolderId, start, end);
438            }
439    
440            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
441                    long groupId, long parentFolderId, int status, int start, int end)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return getService()
444                                       .getFolders(groupId, parentFolderId, status, start, end);
445            }
446    
447            public static java.util.List<java.lang.Object> getFoldersAndArticles(
448                    long groupId, long folderId)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    return getService().getFoldersAndArticles(groupId, folderId);
451            }
452    
453            public static java.util.List<java.lang.Object> getFoldersAndArticles(
454                    long groupId, long folderId, int status)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return getService().getFoldersAndArticles(groupId, folderId, status);
457            }
458    
459            public static java.util.List<java.lang.Object> getFoldersAndArticles(
460                    long groupId, long folderId, int start, int end,
461                    com.liferay.portal.kernel.util.OrderByComparator obc)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return getService()
464                                       .getFoldersAndArticles(groupId, folderId, start, end, obc);
465            }
466    
467            public static int getFoldersAndArticlesCount(long groupId,
468                    java.util.List<java.lang.Long> folderIds, int status)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return getService()
471                                       .getFoldersAndArticlesCount(groupId, folderIds, status);
472            }
473    
474            public static int getFoldersAndArticlesCount(long groupId, long folderId)
475                    throws com.liferay.portal.kernel.exception.SystemException {
476                    return getService().getFoldersAndArticlesCount(groupId, folderId);
477            }
478    
479            public static int getFoldersAndArticlesCount(long groupId, long folderId,
480                    int status) throws com.liferay.portal.kernel.exception.SystemException {
481                    return getService().getFoldersAndArticlesCount(groupId, folderId, status);
482            }
483    
484            public static int getFoldersCount(long groupId, long parentFolderId)
485                    throws com.liferay.portal.kernel.exception.SystemException {
486                    return getService().getFoldersCount(groupId, parentFolderId);
487            }
488    
489            public static int getFoldersCount(long groupId, long parentFolderId,
490                    int status) throws com.liferay.portal.kernel.exception.SystemException {
491                    return getService().getFoldersCount(groupId, parentFolderId, status);
492            }
493    
494            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders()
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getService().getNoAssetFolders();
497            }
498    
499            public static void getSubfolderIds(
500                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    getService().getSubfolderIds(folderIds, groupId, folderId);
503            }
504    
505            public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
506                    long folderId, long parentFolderId,
507                    com.liferay.portal.service.ServiceContext serviceContext)
508                    throws com.liferay.portal.kernel.exception.PortalException,
509                            com.liferay.portal.kernel.exception.SystemException {
510                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
511            }
512    
513            public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
514                    long userId, long folderId, long parentFolderId,
515                    com.liferay.portal.service.ServiceContext serviceContext)
516                    throws com.liferay.portal.kernel.exception.PortalException,
517                            com.liferay.portal.kernel.exception.SystemException {
518                    return getService()
519                                       .moveFolderFromTrash(userId, folderId, parentFolderId,
520                            serviceContext);
521            }
522    
523            public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
524                    long userId, long folderId)
525                    throws com.liferay.portal.kernel.exception.PortalException,
526                            com.liferay.portal.kernel.exception.SystemException {
527                    return getService().moveFolderToTrash(userId, folderId);
528            }
529    
530            public static void rebuildTree(long companyId)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException {
533                    getService().rebuildTree(companyId);
534            }
535    
536            public static void rebuildTree(long companyId, long parentFolderId,
537                    java.lang.String parentTreePath, boolean reindex)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    getService()
541                            .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
542            }
543    
544            public static void restoreFolderFromTrash(long userId, long folderId)
545                    throws com.liferay.portal.kernel.exception.PortalException,
546                            com.liferay.portal.kernel.exception.SystemException {
547                    getService().restoreFolderFromTrash(userId, folderId);
548            }
549    
550            public static void updateAsset(long userId,
551                    com.liferay.portlet.journal.model.JournalFolder folder,
552                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
553                    long[] assetLinkEntryIds)
554                    throws com.liferay.portal.kernel.exception.PortalException,
555                            com.liferay.portal.kernel.exception.SystemException {
556                    getService()
557                            .updateAsset(userId, folder, assetCategoryIds, assetTagNames,
558                            assetLinkEntryIds);
559            }
560    
561            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
562                    long userId, long folderId, long parentFolderId, java.lang.String name,
563                    java.lang.String description, boolean mergeWithParentFolder,
564                    com.liferay.portal.service.ServiceContext serviceContext)
565                    throws com.liferay.portal.kernel.exception.PortalException,
566                            com.liferay.portal.kernel.exception.SystemException {
567                    return getService()
568                                       .updateFolder(userId, folderId, parentFolderId, name,
569                            description, mergeWithParentFolder, serviceContext);
570            }
571    
572            public static com.liferay.portlet.journal.model.JournalFolder updateStatus(
573                    long userId, com.liferay.portlet.journal.model.JournalFolder folder,
574                    int status)
575                    throws com.liferay.portal.kernel.exception.PortalException,
576                            com.liferay.portal.kernel.exception.SystemException {
577                    return getService().updateStatus(userId, folder, status);
578            }
579    
580            public static JournalFolderLocalService getService() {
581                    if (_service == null) {
582                            _service = (JournalFolderLocalService)PortalBeanLocatorUtil.locate(JournalFolderLocalService.class.getName());
583    
584                            ReferenceRegistry.registerReference(JournalFolderLocalServiceUtil.class,
585                                    "_service");
586                    }
587    
588                    return _service;
589            }
590    
591            /**
592             * @deprecated As of 6.2.0
593             */
594            public void setService(JournalFolderLocalService service) {
595            }
596    
597            private static JournalFolderLocalService _service;
598    }