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 matching the dynamic query.
239            *
240            * @param dynamicQuery the dynamic query
241            * @return the number of rows matching 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 matching 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 matching 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            /**
475            * Returns all the journal folders matching the UUID and company.
476            *
477            * @param uuid the UUID of the journal folders
478            * @param companyId the primary key of the company
479            * @return the matching journal folders, or an empty list if no matches were found
480            */
481            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
482                    java.lang.String uuid, long companyId) {
483                    return getService().getJournalFoldersByUuidAndCompanyId(uuid, companyId);
484            }
485    
486            /**
487            * Returns a range of journal folders matching the UUID and company.
488            *
489            * @param uuid the UUID of the journal folders
490            * @param companyId the primary key of the company
491            * @param start the lower bound of the range of journal folders
492            * @param end the upper bound of the range of journal folders (not inclusive)
493            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
494            * @return the range of matching journal folders, or an empty list if no matches were found
495            */
496            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
497                    java.lang.String uuid, long companyId, int start, int end,
498                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFolder> orderByComparator) {
499                    return getService()
500                                       .getJournalFoldersByUuidAndCompanyId(uuid, companyId, start,
501                            end, orderByComparator);
502            }
503    
504            /**
505            * Returns the number of journal folders.
506            *
507            * @return the number of journal folders
508            */
509            public static int getJournalFoldersCount() {
510                    return getService().getJournalFoldersCount();
511            }
512    
513            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders() {
514                    return getService().getNoAssetFolders();
515            }
516    
517            public static long getOverridedDDMStructuresFolderId(long folderId)
518                    throws com.liferay.portlet.journal.NoSuchFolderException {
519                    return getService().getOverridedDDMStructuresFolderId(folderId);
520            }
521    
522            public static com.liferay.portal.model.PersistedModel getPersistedModel(
523                    java.io.Serializable primaryKeyObj)
524                    throws com.liferay.portal.kernel.exception.PortalException {
525                    return getService().getPersistedModel(primaryKeyObj);
526            }
527    
528            public static void getSubfolderIds(
529                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
530                    getService().getSubfolderIds(folderIds, groupId, folderId);
531            }
532    
533            public static boolean hasDDMStructureJournalFolder(long structureId,
534                    long folderId) {
535                    return getService().hasDDMStructureJournalFolder(structureId, folderId);
536            }
537    
538            public static boolean hasDDMStructureJournalFolders(long structureId) {
539                    return getService().hasDDMStructureJournalFolders(structureId);
540            }
541    
542            public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
543                    long folderId, long parentFolderId,
544                    com.liferay.portal.service.ServiceContext serviceContext)
545                    throws com.liferay.portal.kernel.exception.PortalException {
546                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
547            }
548    
549            public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
550                    long userId, long folderId, long parentFolderId,
551                    com.liferay.portal.service.ServiceContext serviceContext)
552                    throws com.liferay.portal.kernel.exception.PortalException {
553                    return getService()
554                                       .moveFolderFromTrash(userId, folderId, parentFolderId,
555                            serviceContext);
556            }
557    
558            public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
559                    long userId, long folderId)
560                    throws com.liferay.portal.kernel.exception.PortalException {
561                    return getService().moveFolderToTrash(userId, folderId);
562            }
563    
564            public static void rebuildTree(long companyId)
565                    throws com.liferay.portal.kernel.exception.PortalException {
566                    getService().rebuildTree(companyId);
567            }
568    
569            public static void rebuildTree(long companyId, long parentFolderId,
570                    java.lang.String parentTreePath, boolean reindex)
571                    throws com.liferay.portal.kernel.exception.PortalException {
572                    getService()
573                            .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
574            }
575    
576            public static void restoreFolderFromTrash(long userId, long folderId)
577                    throws com.liferay.portal.kernel.exception.PortalException {
578                    getService().restoreFolderFromTrash(userId, folderId);
579            }
580    
581            /**
582            * Sets the Spring bean ID for this bean.
583            *
584            * @param beanIdentifier the Spring bean ID for this bean
585            */
586            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
587                    getService().setBeanIdentifier(beanIdentifier);
588            }
589    
590            public static void setDDMStructureJournalFolders(long structureId,
591                    long[] folderIds) {
592                    getService().setDDMStructureJournalFolders(structureId, folderIds);
593            }
594    
595            public static void subscribe(long userId, long groupId, long folderId)
596                    throws com.liferay.portal.kernel.exception.PortalException {
597                    getService().subscribe(userId, groupId, folderId);
598            }
599    
600            public static void unsubscribe(long userId, long groupId, long folderId)
601                    throws com.liferay.portal.kernel.exception.PortalException {
602                    getService().unsubscribe(userId, groupId, folderId);
603            }
604    
605            public static void updateAsset(long userId,
606                    com.liferay.portlet.journal.model.JournalFolder folder,
607                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
608                    long[] assetLinkEntryIds)
609                    throws com.liferay.portal.kernel.exception.PortalException {
610                    getService()
611                            .updateAsset(userId, folder, assetCategoryIds, assetTagNames,
612                            assetLinkEntryIds);
613            }
614    
615            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
616                    long userId, long folderId, long parentFolderId, java.lang.String name,
617                    java.lang.String description, long[] ddmStructureIds,
618                    int restrictionType, boolean mergeWithParentFolder,
619                    com.liferay.portal.service.ServiceContext serviceContext)
620                    throws com.liferay.portal.kernel.exception.PortalException {
621                    return getService()
622                                       .updateFolder(userId, folderId, parentFolderId, name,
623                            description, ddmStructureIds, restrictionType,
624                            mergeWithParentFolder, serviceContext);
625            }
626    
627            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
628                    long userId, long folderId, long parentFolderId, java.lang.String name,
629                    java.lang.String description, boolean mergeWithParentFolder,
630                    com.liferay.portal.service.ServiceContext serviceContext)
631                    throws com.liferay.portal.kernel.exception.PortalException {
632                    return getService()
633                                       .updateFolder(userId, folderId, parentFolderId, name,
634                            description, mergeWithParentFolder, serviceContext);
635            }
636    
637            public static void updateFolderDDMStructures(
638                    com.liferay.portlet.journal.model.JournalFolder folder,
639                    long[] ddmStructureIdsArray) {
640                    getService().updateFolderDDMStructures(folder, ddmStructureIdsArray);
641            }
642    
643            /**
644            * Updates the journal folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
645            *
646            * @param journalFolder the journal folder
647            * @return the journal folder that was updated
648            */
649            public static com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
650                    com.liferay.portlet.journal.model.JournalFolder journalFolder) {
651                    return getService().updateJournalFolder(journalFolder);
652            }
653    
654            public static com.liferay.portlet.journal.model.JournalFolder updateStatus(
655                    long userId, com.liferay.portlet.journal.model.JournalFolder folder,
656                    int status) throws com.liferay.portal.kernel.exception.PortalException {
657                    return getService().updateStatus(userId, folder, status);
658            }
659    
660            public static void validateFolderDDMStructures(long folderId,
661                    long parentFolderId)
662                    throws com.liferay.portal.kernel.exception.PortalException {
663                    getService().validateFolderDDMStructures(folderId, parentFolderId);
664            }
665    
666            public static JournalFolderLocalService getService() {
667                    if (_service == null) {
668                            _service = (JournalFolderLocalService)PortalBeanLocatorUtil.locate(JournalFolderLocalService.class.getName());
669    
670                            ReferenceRegistry.registerReference(JournalFolderLocalServiceUtil.class,
671                                    "_service");
672                    }
673    
674                    return _service;
675            }
676    
677            /**
678             * @deprecated As of 6.2.0
679             */
680            @Deprecated
681            public void setService(JournalFolderLocalService service) {
682            }
683    
684            private static JournalFolderLocalService _service;
685    }