001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.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            public static void addDDMStructureJournalFolder(long structureId,
044                    long folderId) {
045                    getService().addDDMStructureJournalFolder(structureId, folderId);
046            }
047    
048            public static void addDDMStructureJournalFolder(long structureId,
049                    com.liferay.portlet.journal.model.JournalFolder journalFolder) {
050                    getService().addDDMStructureJournalFolder(structureId, journalFolder);
051            }
052    
053            public static void addDDMStructureJournalFolders(long structureId,
054                    java.util.List<com.liferay.portlet.journal.model.JournalFolder> JournalFolders) {
055                    getService().addDDMStructureJournalFolders(structureId, JournalFolders);
056            }
057    
058            public static void addDDMStructureJournalFolders(long structureId,
059                    long[] folderIds) {
060                    getService().addDDMStructureJournalFolders(structureId, folderIds);
061            }
062    
063            public static com.liferay.portlet.journal.model.JournalFolder addFolder(
064                    long userId, long groupId, long parentFolderId, java.lang.String name,
065                    java.lang.String description,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    return getService()
069                                       .addFolder(userId, groupId, parentFolderId, name,
070                            description, serviceContext);
071            }
072    
073            /**
074            * Adds the journal folder to the database. Also notifies the appropriate model listeners.
075            *
076            * @param journalFolder the journal folder
077            * @return the journal folder that was added
078            */
079            public static com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
080                    com.liferay.portlet.journal.model.JournalFolder journalFolder) {
081                    return getService().addJournalFolder(journalFolder);
082            }
083    
084            public static void clearDDMStructureJournalFolders(long structureId) {
085                    getService().clearDDMStructureJournalFolders(structureId);
086            }
087    
088            /**
089            * Creates a new journal folder with the primary key. Does not add the journal folder to the database.
090            *
091            * @param folderId the primary key for the new journal folder
092            * @return the new journal folder
093            */
094            public static com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
095                    long folderId) {
096                    return getService().createJournalFolder(folderId);
097            }
098    
099            public static void deleteDDMStructureJournalFolder(long structureId,
100                    long folderId) {
101                    getService().deleteDDMStructureJournalFolder(structureId, folderId);
102            }
103    
104            public static void deleteDDMStructureJournalFolder(long structureId,
105                    com.liferay.portlet.journal.model.JournalFolder journalFolder) {
106                    getService().deleteDDMStructureJournalFolder(structureId, journalFolder);
107            }
108    
109            public static void deleteDDMStructureJournalFolders(long structureId,
110                    java.util.List<com.liferay.portlet.journal.model.JournalFolder> JournalFolders) {
111                    getService()
112                            .deleteDDMStructureJournalFolders(structureId, JournalFolders);
113            }
114    
115            public static void deleteDDMStructureJournalFolders(long structureId,
116                    long[] folderIds) {
117                    getService().deleteDDMStructureJournalFolders(structureId, folderIds);
118            }
119    
120            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
121                    com.liferay.portlet.journal.model.JournalFolder folder)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return getService().deleteFolder(folder);
124            }
125    
126            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
127                    com.liferay.portlet.journal.model.JournalFolder folder,
128                    boolean includeTrashedEntries)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return getService().deleteFolder(folder, includeTrashedEntries);
131            }
132    
133            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
134                    long folderId)
135                    throws com.liferay.portal.kernel.exception.PortalException {
136                    return getService().deleteFolder(folderId);
137            }
138    
139            public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
140                    long folderId, boolean includeTrashedEntries)
141                    throws com.liferay.portal.kernel.exception.PortalException {
142                    return getService().deleteFolder(folderId, includeTrashedEntries);
143            }
144    
145            public static void deleteFolders(long groupId)
146                    throws com.liferay.portal.kernel.exception.PortalException {
147                    getService().deleteFolders(groupId);
148            }
149    
150            /**
151            * Deletes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.
152            *
153            * @param folderId the primary key of the journal folder
154            * @return the journal folder that was removed
155            * @throws PortalException if a journal folder with the primary key could not be found
156            */
157            public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
158                    long folderId)
159                    throws com.liferay.portal.kernel.exception.PortalException {
160                    return getService().deleteJournalFolder(folderId);
161            }
162    
163            /**
164            * Deletes the journal folder from the database. Also notifies the appropriate model listeners.
165            *
166            * @param journalFolder the journal folder
167            * @return the journal folder that was removed
168            */
169            public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
170                    com.liferay.portlet.journal.model.JournalFolder journalFolder) {
171                    return getService().deleteJournalFolder(journalFolder);
172            }
173    
174            /**
175            * @throws PortalException
176            */
177            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
178                    com.liferay.portal.model.PersistedModel persistedModel)
179                    throws com.liferay.portal.kernel.exception.PortalException {
180                    return getService().deletePersistedModel(persistedModel);
181            }
182    
183            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
184                    return getService().dynamicQuery();
185            }
186    
187            /**
188            * Performs a dynamic query on the database and returns the matching rows.
189            *
190            * @param dynamicQuery the dynamic query
191            * @return the matching rows
192            */
193            public static <T> java.util.List<T> dynamicQuery(
194                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
195                    return getService().dynamicQuery(dynamicQuery);
196            }
197    
198            /**
199            * Performs a dynamic query on the database and returns a range of the matching rows.
200            *
201            * <p>
202            * 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.
203            * </p>
204            *
205            * @param dynamicQuery the dynamic query
206            * @param start the lower bound of the range of model instances
207            * @param end the upper bound of the range of model instances (not inclusive)
208            * @return the range of matching rows
209            */
210            public static <T> java.util.List<T> dynamicQuery(
211                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
212                    int end) {
213                    return getService().dynamicQuery(dynamicQuery, start, end);
214            }
215    
216            /**
217            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
218            *
219            * <p>
220            * 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.
221            * </p>
222            *
223            * @param dynamicQuery the dynamic query
224            * @param start the lower bound of the range of model instances
225            * @param end the upper bound of the range of model instances (not inclusive)
226            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
227            * @return the ordered range of matching rows
228            */
229            public static <T> java.util.List<T> dynamicQuery(
230                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
231                    int end,
232                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
233                    return getService()
234                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
235            }
236    
237            /**
238            * Returns the number of rows that match the dynamic query.
239            *
240            * @param dynamicQuery the dynamic query
241            * @return the number of rows that match the dynamic query
242            */
243            public static long dynamicQueryCount(
244                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
245                    return getService().dynamicQueryCount(dynamicQuery);
246            }
247    
248            /**
249            * Returns the number of rows that match the dynamic query.
250            *
251            * @param dynamicQuery the dynamic query
252            * @param projection the projection to apply to the query
253            * @return the number of rows that match the dynamic query
254            */
255            public static long dynamicQueryCount(
256                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
257                    com.liferay.portal.kernel.dao.orm.Projection projection) {
258                    return getService().dynamicQueryCount(dynamicQuery, projection);
259            }
260    
261            public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
262                    long folderId) {
263                    return getService().fetchFolder(folderId);
264            }
265    
266            public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
267                    long groupId, java.lang.String name) {
268                    return getService().fetchFolder(groupId, name);
269            }
270    
271            public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
272                    long groupId, long parentFolderId, java.lang.String name) {
273                    return getService().fetchFolder(groupId, parentFolderId, name);
274            }
275    
276            public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
277                    long folderId) {
278                    return getService().fetchJournalFolder(folderId);
279            }
280    
281            /**
282            * Returns the journal folder matching the UUID and group.
283            *
284            * @param uuid the journal folder's UUID
285            * @param groupId the primary key of the group
286            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
287            */
288            public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndGroupId(
289                    java.lang.String uuid, long groupId) {
290                    return getService().fetchJournalFolderByUuidAndGroupId(uuid, groupId);
291            }
292    
293            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
294                    return getService().getActionableDynamicQuery();
295            }
296    
297            /**
298            * Returns the Spring bean ID for this bean.
299            *
300            * @return the Spring bean ID for this bean
301            */
302            public static java.lang.String getBeanIdentifier() {
303                    return getService().getBeanIdentifier();
304            }
305    
306            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
307                    long companyId, int start, int end) {
308                    return getService().getCompanyFolders(companyId, start, end);
309            }
310    
311            public static int getCompanyFoldersCount(long companyId) {
312                    return getService().getCompanyFoldersCount(companyId);
313            }
314    
315            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getDDMStructureJournalFolders(
316                    long structureId) {
317                    return getService().getDDMStructureJournalFolders(structureId);
318            }
319    
320            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getDDMStructureJournalFolders(
321                    long structureId, int start, int end) {
322                    return getService()
323                                       .getDDMStructureJournalFolders(structureId, start, end);
324            }
325    
326            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getDDMStructureJournalFolders(
327                    long structureId, int start, int end,
328                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFolder> orderByComparator) {
329                    return getService()
330                                       .getDDMStructureJournalFolders(structureId, start, end,
331                            orderByComparator);
332            }
333    
334            public static int getDDMStructureJournalFoldersCount(long structureId) {
335                    return getService().getDDMStructureJournalFoldersCount(structureId);
336            }
337    
338            /**
339            * Returns the structureIds of the d d m structures associated with the journal folder.
340            *
341            * @param folderId the folderId of the journal folder
342            * @return long[] the structureIds of d d m structures associated with the journal folder
343            */
344            public static long[] getDDMStructurePrimaryKeys(long folderId) {
345                    return getService().getDDMStructurePrimaryKeys(folderId);
346            }
347    
348            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
349                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
350                    return getService().getExportActionableDynamicQuery(portletDataContext);
351            }
352    
353            public static com.liferay.portlet.journal.model.JournalFolder getFolder(
354                    long folderId)
355                    throws com.liferay.portal.kernel.exception.PortalException {
356                    return getService().getFolder(folderId);
357            }
358    
359            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
360                    long groupId) {
361                    return getService().getFolders(groupId);
362            }
363    
364            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
365                    long groupId, long parentFolderId) {
366                    return getService().getFolders(groupId, parentFolderId);
367            }
368    
369            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
370                    long groupId, long parentFolderId, int start, int end) {
371                    return getService().getFolders(groupId, parentFolderId, start, end);
372            }
373    
374            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
375                    long groupId, long parentFolderId, int status) {
376                    return getService().getFolders(groupId, parentFolderId, status);
377            }
378    
379            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
380                    long groupId, long parentFolderId, int status, int start, int end) {
381                    return getService()
382                                       .getFolders(groupId, parentFolderId, status, start, end);
383            }
384    
385            public static java.util.List<java.lang.Object> getFoldersAndArticles(
386                    long groupId, long folderId) {
387                    return getService().getFoldersAndArticles(groupId, folderId);
388            }
389    
390            public static java.util.List<java.lang.Object> getFoldersAndArticles(
391                    long groupId, long folderId, int start, int end,
392                    com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
393                    return getService()
394                                       .getFoldersAndArticles(groupId, folderId, start, end, obc);
395            }
396    
397            public static java.util.List<java.lang.Object> getFoldersAndArticles(
398                    long groupId, long folderId, int status) {
399                    return getService().getFoldersAndArticles(groupId, folderId, status);
400            }
401    
402            public static int getFoldersAndArticlesCount(long groupId, long folderId) {
403                    return getService().getFoldersAndArticlesCount(groupId, folderId);
404            }
405    
406            public static int getFoldersAndArticlesCount(long groupId, long folderId,
407                    int status) {
408                    return getService().getFoldersAndArticlesCount(groupId, folderId, status);
409            }
410    
411            public static int getFoldersAndArticlesCount(long groupId,
412                    java.util.List<java.lang.Long> folderIds, int status) {
413                    return getService()
414                                       .getFoldersAndArticlesCount(groupId, folderIds, status);
415            }
416    
417            public static int getFoldersCount(long groupId, long parentFolderId) {
418                    return getService().getFoldersCount(groupId, parentFolderId);
419            }
420    
421            public static int getFoldersCount(long groupId, long parentFolderId,
422                    int status) {
423                    return getService().getFoldersCount(groupId, parentFolderId, status);
424            }
425    
426            public static long getInheritedWorkflowFolderId(long folderId)
427                    throws com.liferay.portlet.journal.NoSuchFolderException {
428                    return getService().getInheritedWorkflowFolderId(folderId);
429            }
430    
431            /**
432            * Returns the journal folder with the primary key.
433            *
434            * @param folderId the primary key of the journal folder
435            * @return the journal folder
436            * @throws PortalException if a journal folder with the primary key could not be found
437            */
438            public static com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
439                    long folderId)
440                    throws com.liferay.portal.kernel.exception.PortalException {
441                    return getService().getJournalFolder(folderId);
442            }
443    
444            /**
445            * Returns the journal folder matching the UUID and group.
446            *
447            * @param uuid the journal folder's UUID
448            * @param groupId the primary key of the group
449            * @return the matching journal folder
450            * @throws PortalException if a matching journal folder could not be found
451            */
452            public static com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
453                    java.lang.String uuid, long groupId)
454                    throws com.liferay.portal.kernel.exception.PortalException {
455                    return getService().getJournalFolderByUuidAndGroupId(uuid, groupId);
456            }
457    
458            /**
459            * Returns a range of all the journal folders.
460            *
461            * <p>
462            * 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.
463            * </p>
464            *
465            * @param start the lower bound of the range of journal folders
466            * @param end the upper bound of the range of journal folders (not inclusive)
467            * @return the range of journal folders
468            */
469            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
470                    int start, int end) {
471                    return getService().getJournalFolders(start, end);
472            }
473    
474            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
475                    java.lang.String uuid, long companyId) {
476                    return getService().getJournalFoldersByUuidAndCompanyId(uuid, companyId);
477            }
478    
479            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
480                    java.lang.String uuid, long companyId, int start, int end,
481                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFolder> orderByComparator) {
482                    return getService()
483                                       .getJournalFoldersByUuidAndCompanyId(uuid, companyId, start,
484                            end, orderByComparator);
485            }
486    
487            /**
488            * Returns the number of journal folders.
489            *
490            * @return the number of journal folders
491            */
492            public static int getJournalFoldersCount() {
493                    return getService().getJournalFoldersCount();
494            }
495    
496            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders() {
497                    return getService().getNoAssetFolders();
498            }
499    
500            public static long getOverridedDDMStructuresFolderId(long folderId)
501                    throws com.liferay.portlet.journal.NoSuchFolderException {
502                    return getService().getOverridedDDMStructuresFolderId(folderId);
503            }
504    
505            public static com.liferay.portal.model.PersistedModel getPersistedModel(
506                    java.io.Serializable primaryKeyObj)
507                    throws com.liferay.portal.kernel.exception.PortalException {
508                    return getService().getPersistedModel(primaryKeyObj);
509            }
510    
511            public static void getSubfolderIds(
512                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
513                    getService().getSubfolderIds(folderIds, groupId, folderId);
514            }
515    
516            public static boolean hasDDMStructureJournalFolder(long structureId,
517                    long folderId) {
518                    return getService().hasDDMStructureJournalFolder(structureId, folderId);
519            }
520    
521            public static boolean hasDDMStructureJournalFolders(long structureId) {
522                    return getService().hasDDMStructureJournalFolders(structureId);
523            }
524    
525            public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
526                    long folderId, long parentFolderId,
527                    com.liferay.portal.service.ServiceContext serviceContext)
528                    throws com.liferay.portal.kernel.exception.PortalException {
529                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
530            }
531    
532            public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
533                    long userId, long folderId, long parentFolderId,
534                    com.liferay.portal.service.ServiceContext serviceContext)
535                    throws com.liferay.portal.kernel.exception.PortalException {
536                    return getService()
537                                       .moveFolderFromTrash(userId, folderId, parentFolderId,
538                            serviceContext);
539            }
540    
541            public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
542                    long userId, long folderId)
543                    throws com.liferay.portal.kernel.exception.PortalException {
544                    return getService().moveFolderToTrash(userId, folderId);
545            }
546    
547            public static void rebuildTree(long companyId)
548                    throws com.liferay.portal.kernel.exception.PortalException {
549                    getService().rebuildTree(companyId);
550            }
551    
552            public static void rebuildTree(long companyId, long parentFolderId,
553                    java.lang.String parentTreePath, boolean reindex)
554                    throws com.liferay.portal.kernel.exception.PortalException {
555                    getService()
556                            .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
557            }
558    
559            public static void restoreFolderFromTrash(long userId, long folderId)
560                    throws com.liferay.portal.kernel.exception.PortalException {
561                    getService().restoreFolderFromTrash(userId, folderId);
562            }
563    
564            /**
565            * Sets the Spring bean ID for this bean.
566            *
567            * @param beanIdentifier the Spring bean ID for this bean
568            */
569            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
570                    getService().setBeanIdentifier(beanIdentifier);
571            }
572    
573            public static void setDDMStructureJournalFolders(long structureId,
574                    long[] folderIds) {
575                    getService().setDDMStructureJournalFolders(structureId, folderIds);
576            }
577    
578            public static void subscribe(long userId, long groupId, long folderId)
579                    throws com.liferay.portal.kernel.exception.PortalException {
580                    getService().subscribe(userId, groupId, folderId);
581            }
582    
583            public static void unsubscribe(long userId, long groupId, long folderId)
584                    throws com.liferay.portal.kernel.exception.PortalException {
585                    getService().unsubscribe(userId, groupId, folderId);
586            }
587    
588            public static void updateAsset(long userId,
589                    com.liferay.portlet.journal.model.JournalFolder folder,
590                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
591                    long[] assetLinkEntryIds)
592                    throws com.liferay.portal.kernel.exception.PortalException {
593                    getService()
594                            .updateAsset(userId, folder, assetCategoryIds, assetTagNames,
595                            assetLinkEntryIds);
596            }
597    
598            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
599                    long userId, long folderId, long parentFolderId, java.lang.String name,
600                    java.lang.String description, long[] ddmStructureIds,
601                    int restrictionType, boolean mergeWithParentFolder,
602                    com.liferay.portal.service.ServiceContext serviceContext)
603                    throws com.liferay.portal.kernel.exception.PortalException {
604                    return getService()
605                                       .updateFolder(userId, folderId, parentFolderId, name,
606                            description, ddmStructureIds, restrictionType,
607                            mergeWithParentFolder, serviceContext);
608            }
609    
610            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
611                    long userId, long folderId, long parentFolderId, java.lang.String name,
612                    java.lang.String description, boolean mergeWithParentFolder,
613                    com.liferay.portal.service.ServiceContext serviceContext)
614                    throws com.liferay.portal.kernel.exception.PortalException {
615                    return getService()
616                                       .updateFolder(userId, folderId, parentFolderId, name,
617                            description, mergeWithParentFolder, serviceContext);
618            }
619    
620            public static void updateFolderDDMStructures(
621                    com.liferay.portlet.journal.model.JournalFolder folder,
622                    long[] ddmStructureIdsArray) {
623                    getService().updateFolderDDMStructures(folder, ddmStructureIdsArray);
624            }
625    
626            /**
627            * Updates the journal folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
628            *
629            * @param journalFolder the journal folder
630            * @return the journal folder that was updated
631            */
632            public static com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
633                    com.liferay.portlet.journal.model.JournalFolder journalFolder) {
634                    return getService().updateJournalFolder(journalFolder);
635            }
636    
637            public static com.liferay.portlet.journal.model.JournalFolder updateStatus(
638                    long userId, com.liferay.portlet.journal.model.JournalFolder folder,
639                    int status) throws com.liferay.portal.kernel.exception.PortalException {
640                    return getService().updateStatus(userId, folder, status);
641            }
642    
643            public static void validateFolderDDMStructures(long folderId,
644                    long parentFolderId)
645                    throws com.liferay.portal.kernel.exception.PortalException {
646                    getService().validateFolderDDMStructures(folderId, parentFolderId);
647            }
648    
649            public static JournalFolderLocalService getService() {
650                    if (_service == null) {
651                            _service = (JournalFolderLocalService)PortalBeanLocatorUtil.locate(JournalFolderLocalService.class.getName());
652    
653                            ReferenceRegistry.registerReference(JournalFolderLocalServiceUtil.class,
654                                    "_service");
655                    }
656    
657                    return _service;
658            }
659    
660            /**
661             * @deprecated As of 6.2.0
662             */
663            @Deprecated
664            public void setService(JournalFolderLocalService service) {
665            }
666    
667            private static JournalFolderLocalService _service;
668    }