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