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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for JournalFolder. This utility wraps
022     * {@link com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see JournalFolderService
030     * @see com.liferay.portlet.journal.service.base.JournalFolderServiceBaseImpl
031     * @see com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl
032     * @generated
033     */
034    public class JournalFolderServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.journal.model.JournalFolder addFolder(
060                    long groupId, long parentFolderId, java.lang.String name,
061                    java.lang.String description,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return getService()
066                                       .addFolder(groupId, parentFolderId, name, description,
067                            serviceContext);
068            }
069    
070            public static void deleteFolder(long folderId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    getService().deleteFolder(folderId);
074            }
075    
076            public static void deleteFolder(long folderId, boolean includeTrashedEntries)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    getService().deleteFolder(folderId, includeTrashedEntries);
080            }
081    
082            public static com.liferay.portlet.journal.model.JournalFolder getFolder(
083                    long folderId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return getService().getFolder(folderId);
087            }
088    
089            public static java.util.List<java.lang.Long> getFolderIds(long groupId,
090                    long folderId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService().getFolderIds(groupId, folderId);
094            }
095    
096            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
097                    long groupId)
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return getService().getFolders(groupId);
100            }
101    
102            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
103                    long groupId, long parentFolderId)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return getService().getFolders(groupId, parentFolderId);
106            }
107    
108            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
109                    long groupId, long parentFolderId, int status)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().getFolders(groupId, parentFolderId, status);
112            }
113    
114            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
115                    long groupId, long parentFolderId, int start, int end)
116                    throws com.liferay.portal.kernel.exception.SystemException {
117                    return getService().getFolders(groupId, parentFolderId, start, end);
118            }
119    
120            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
121                    long groupId, long parentFolderId, int status, int start, int end)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return getService()
124                                       .getFolders(groupId, parentFolderId, status, start, end);
125            }
126    
127            public static java.util.List<java.lang.Object> getFoldersAndArticles(
128                    long groupId, long folderId, int status, int start, int end,
129                    com.liferay.portal.kernel.util.OrderByComparator obc)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService()
132                                       .getFoldersAndArticles(groupId, folderId, status, start,
133                            end, obc);
134            }
135    
136            public static java.util.List<java.lang.Object> getFoldersAndArticles(
137                    long groupId, long folderId, int start, int end,
138                    com.liferay.portal.kernel.util.OrderByComparator obc)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return getService()
141                                       .getFoldersAndArticles(groupId, folderId, start, end, obc);
142            }
143    
144            public static int getFoldersAndArticlesCount(long groupId,
145                    java.util.List<java.lang.Long> folderIds, int status)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getService()
148                                       .getFoldersAndArticlesCount(groupId, folderIds, status);
149            }
150    
151            public static int getFoldersAndArticlesCount(long groupId, long folderId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getService().getFoldersAndArticlesCount(groupId, folderId);
154            }
155    
156            public static int getFoldersAndArticlesCount(long groupId, long folderId,
157                    int status) throws com.liferay.portal.kernel.exception.SystemException {
158                    return getService().getFoldersAndArticlesCount(groupId, folderId, status);
159            }
160    
161            public static int getFoldersCount(long groupId, long parentFolderId)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getService().getFoldersCount(groupId, parentFolderId);
164            }
165    
166            public static int getFoldersCount(long groupId, long parentFolderId,
167                    int status) throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().getFoldersCount(groupId, parentFolderId, status);
169            }
170    
171            public static void getSubfolderIds(
172                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
173                    throws com.liferay.portal.kernel.exception.SystemException {
174                    getService().getSubfolderIds(folderIds, groupId, folderId);
175            }
176    
177            public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
178                    long folderId, boolean recurse)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getService().getSubfolderIds(groupId, folderId, recurse);
181            }
182    
183            public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
184                    long folderId, long parentFolderId,
185                    com.liferay.portal.service.ServiceContext serviceContext)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
189            }
190    
191            public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
192                    long folderId, long parentFolderId,
193                    com.liferay.portal.service.ServiceContext serviceContext)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return getService()
197                                       .moveFolderFromTrash(folderId, parentFolderId, serviceContext);
198            }
199    
200            public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
201                    long folderId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return getService().moveFolderToTrash(folderId);
205            }
206    
207            public static void restoreFolderFromTrash(long folderId)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    getService().restoreFolderFromTrash(folderId);
211            }
212    
213            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
214                    long folderId, long parentFolderId, java.lang.String name,
215                    java.lang.String description, boolean mergeWithParentFolder,
216                    com.liferay.portal.service.ServiceContext serviceContext)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return getService()
220                                       .updateFolder(folderId, parentFolderId, name, description,
221                            mergeWithParentFolder, serviceContext);
222            }
223    
224            public static JournalFolderService getService() {
225                    if (_service == null) {
226                            _service = (JournalFolderService)PortalBeanLocatorUtil.locate(JournalFolderService.class.getName());
227    
228                            ReferenceRegistry.registerReference(JournalFolderServiceUtil.class,
229                                    "_service");
230                    }
231    
232                    return _service;
233            }
234    
235            /**
236             * @deprecated As of 6.2.0
237             */
238            public void setService(JournalFolderService service) {
239            }
240    
241            private static JournalFolderService _service;
242    }