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 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, start, end, obc);
133            }
134    
135            public static int getFoldersAndArticlesCount(long groupId,
136                    java.util.List<java.lang.Long> folderIds, int status)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return getService()
139                                       .getFoldersAndArticlesCount(groupId, folderIds, status);
140            }
141    
142            public static int getFoldersAndArticlesCount(long groupId, long folderId)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getService().getFoldersAndArticlesCount(groupId, folderId);
145            }
146    
147            public static int getFoldersAndArticlesCount(long groupId, long folderId,
148                    int status) throws com.liferay.portal.kernel.exception.SystemException {
149                    return getService().getFoldersAndArticlesCount(groupId, folderId, status);
150            }
151    
152            public static int getFoldersCount(long groupId, long parentFolderId)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService().getFoldersCount(groupId, parentFolderId);
155            }
156    
157            public static int getFoldersCount(long groupId, long parentFolderId,
158                    int status) throws com.liferay.portal.kernel.exception.SystemException {
159                    return getService().getFoldersCount(groupId, parentFolderId, status);
160            }
161    
162            public static void getSubfolderIds(
163                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    getService().getSubfolderIds(folderIds, groupId, folderId);
166            }
167    
168            public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
169                    long folderId, boolean recurse)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return getService().getSubfolderIds(groupId, folderId, recurse);
172            }
173    
174            public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
175                    long folderId, long parentFolderId,
176                    com.liferay.portal.service.ServiceContext serviceContext)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
180            }
181    
182            public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
183                    long folderId, long parentFolderId,
184                    com.liferay.portal.service.ServiceContext serviceContext)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return getService()
188                                       .moveFolderFromTrash(folderId, parentFolderId, serviceContext);
189            }
190    
191            public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
192                    long folderId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    return getService().moveFolderToTrash(folderId);
196            }
197    
198            public static void restoreFolderFromTrash(long folderId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    getService().restoreFolderFromTrash(folderId);
202            }
203    
204            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
205                    long folderId, long parentFolderId, java.lang.String name,
206                    java.lang.String description, boolean mergeWithParentFolder,
207                    com.liferay.portal.service.ServiceContext serviceContext)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return getService()
211                                       .updateFolder(folderId, parentFolderId, name, description,
212                            mergeWithParentFolder, serviceContext);
213            }
214    
215            public static JournalFolderService getService() {
216                    if (_service == null) {
217                            _service = (JournalFolderService)PortalBeanLocatorUtil.locate(JournalFolderService.class.getName());
218    
219                            ReferenceRegistry.registerReference(JournalFolderServiceUtil.class,
220                                    "_service");
221                    }
222    
223                    return _service;
224            }
225    
226            /**
227             * @deprecated As of 6.2.0
228             */
229            public void setService(JournalFolderService service) {
230            }
231    
232            private static JournalFolderService _service;
233    }