001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for JournalFolder. This utility wraps
024     * {@link com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalFolderService
032     * @see com.liferay.portlet.journal.service.base.JournalFolderServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class JournalFolderServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static com.liferay.portlet.journal.model.JournalFolder addFolder(
063                    long groupId, long parentFolderId, java.lang.String name,
064                    java.lang.String description,
065                    com.liferay.portal.service.ServiceContext serviceContext)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return getService()
069                                       .addFolder(groupId, parentFolderId, name, description,
070                            serviceContext);
071            }
072    
073            public static void deleteFolder(long folderId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    getService().deleteFolder(folderId);
077            }
078    
079            public static void deleteFolder(long folderId, boolean includeTrashedEntries)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    getService().deleteFolder(folderId, includeTrashedEntries);
083            }
084    
085            public static com.liferay.portlet.journal.model.JournalFolder getFolder(
086                    long folderId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    return getService().getFolder(folderId);
090            }
091    
092            public static java.util.List<java.lang.Long> getFolderIds(long groupId,
093                    long folderId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getFolderIds(groupId, folderId);
097            }
098    
099            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
100                    long groupId)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return getService().getFolders(groupId);
103            }
104    
105            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
106                    long groupId, long parentFolderId)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getFolders(groupId, parentFolderId);
109            }
110    
111            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
112                    long groupId, long parentFolderId, int status)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().getFolders(groupId, parentFolderId, status);
115            }
116    
117            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
118                    long groupId, long parentFolderId, int start, int end)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getService().getFolders(groupId, parentFolderId, start, end);
121            }
122    
123            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
124                    long groupId, long parentFolderId, int status, int start, int end)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getService()
127                                       .getFolders(groupId, parentFolderId, status, start, end);
128            }
129    
130            public static java.util.List<java.lang.Object> getFoldersAndArticles(
131                    long groupId, long folderId, int status, int start, int end,
132                    com.liferay.portal.kernel.util.OrderByComparator obc)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getService()
135                                       .getFoldersAndArticles(groupId, folderId, status, start,
136                            end, obc);
137            }
138    
139            public static java.util.List<java.lang.Object> getFoldersAndArticles(
140                    long groupId, long folderId, int start, int end,
141                    com.liferay.portal.kernel.util.OrderByComparator obc)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return getService()
144                                       .getFoldersAndArticles(groupId, folderId, start, end, obc);
145            }
146    
147            public static int getFoldersAndArticlesCount(long groupId,
148                    java.util.List<java.lang.Long> folderIds, int status)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .getFoldersAndArticlesCount(groupId, folderIds, status);
152            }
153    
154            public static int getFoldersAndArticlesCount(long groupId, long folderId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getService().getFoldersAndArticlesCount(groupId, folderId);
157            }
158    
159            public static int getFoldersAndArticlesCount(long groupId, long folderId,
160                    int status) throws com.liferay.portal.kernel.exception.SystemException {
161                    return getService().getFoldersAndArticlesCount(groupId, folderId, status);
162            }
163    
164            public static int getFoldersCount(long groupId, long parentFolderId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getService().getFoldersCount(groupId, parentFolderId);
167            }
168    
169            public static int getFoldersCount(long groupId, long parentFolderId,
170                    int status) throws com.liferay.portal.kernel.exception.SystemException {
171                    return getService().getFoldersCount(groupId, parentFolderId, status);
172            }
173    
174            public static void getSubfolderIds(
175                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
176                    throws com.liferay.portal.kernel.exception.SystemException {
177                    getService().getSubfolderIds(folderIds, groupId, folderId);
178            }
179    
180            public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
181                    long folderId, boolean recurse)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return getService().getSubfolderIds(groupId, folderId, recurse);
184            }
185    
186            public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
187                    long folderId, long parentFolderId,
188                    com.liferay.portal.service.ServiceContext serviceContext)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException {
191                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
192            }
193    
194            public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
195                    long folderId, long parentFolderId,
196                    com.liferay.portal.service.ServiceContext serviceContext)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException {
199                    return getService()
200                                       .moveFolderFromTrash(folderId, parentFolderId, serviceContext);
201            }
202    
203            public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
204                    long folderId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return getService().moveFolderToTrash(folderId);
208            }
209    
210            public static void restoreFolderFromTrash(long folderId)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    getService().restoreFolderFromTrash(folderId);
214            }
215    
216            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
217                    long folderId, long parentFolderId, java.lang.String name,
218                    java.lang.String description, boolean mergeWithParentFolder,
219                    com.liferay.portal.service.ServiceContext serviceContext)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException {
222                    return getService()
223                                       .updateFolder(folderId, parentFolderId, name, description,
224                            mergeWithParentFolder, serviceContext);
225            }
226    
227            public static JournalFolderService getService() {
228                    if (_service == null) {
229                            _service = (JournalFolderService)PortalBeanLocatorUtil.locate(JournalFolderService.class.getName());
230    
231                            ReferenceRegistry.registerReference(JournalFolderServiceUtil.class,
232                                    "_service");
233                    }
234    
235                    return _service;
236            }
237    
238            /**
239             * @deprecated As of 6.2.0
240             */
241            public void setService(JournalFolderService service) {
242            }
243    
244            private static JournalFolderService _service;
245    }