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