001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 fetchFolder(
086                    long folderId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    return getService().fetchFolder(folderId);
090            }
091    
092            public static com.liferay.portlet.journal.model.JournalFolder getFolder(
093                    long folderId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getFolder(folderId);
097            }
098    
099            public static java.util.List<java.lang.Long> getFolderIds(long groupId,
100                    long folderId)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getFolderIds(groupId, folderId);
104            }
105    
106            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
107                    long groupId)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return getService().getFolders(groupId);
110            }
111    
112            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
113                    long groupId, long parentFolderId)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return getService().getFolders(groupId, parentFolderId);
116            }
117    
118            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
119                    long groupId, long parentFolderId, int status)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().getFolders(groupId, parentFolderId, status);
122            }
123    
124            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
125                    long groupId, long parentFolderId, int start, int end)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService().getFolders(groupId, parentFolderId, start, end);
128            }
129    
130            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
131                    long groupId, long parentFolderId, int status, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return getService()
134                                       .getFolders(groupId, parentFolderId, status, start, end);
135            }
136    
137            public static java.util.List<java.lang.Object> getFoldersAndArticles(
138                    long groupId, long folderId, int status, int start, int end,
139                    com.liferay.portal.kernel.util.OrderByComparator obc)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return getService()
142                                       .getFoldersAndArticles(groupId, folderId, status, start,
143                            end, obc);
144            }
145    
146            public static java.util.List<java.lang.Object> getFoldersAndArticles(
147                    long groupId, long folderId, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator obc)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .getFoldersAndArticles(groupId, folderId, start, end, obc);
152            }
153    
154            public static int getFoldersAndArticlesCount(long groupId,
155                    java.util.List<java.lang.Long> folderIds, int status)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return getService()
158                                       .getFoldersAndArticlesCount(groupId, folderIds, status);
159            }
160    
161            public static int getFoldersAndArticlesCount(long groupId, long folderId)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getService().getFoldersAndArticlesCount(groupId, folderId);
164            }
165    
166            public static int getFoldersAndArticlesCount(long groupId, long folderId,
167                    int status) throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().getFoldersAndArticlesCount(groupId, folderId, status);
169            }
170    
171            public static int getFoldersCount(long groupId, long parentFolderId)
172                    throws com.liferay.portal.kernel.exception.SystemException {
173                    return getService().getFoldersCount(groupId, parentFolderId);
174            }
175    
176            public static int getFoldersCount(long groupId, long parentFolderId,
177                    int status) throws com.liferay.portal.kernel.exception.SystemException {
178                    return getService().getFoldersCount(groupId, parentFolderId, status);
179            }
180    
181            /**
182            * @deprecated As of 7.0.0, replaced by {@link #getSubfolderIds(List, long,
183            long, boolean)}
184            */
185            public static void getSubfolderIds(
186                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
187                    throws com.liferay.portal.kernel.exception.SystemException {
188                    getService().getSubfolderIds(folderIds, groupId, folderId);
189            }
190    
191            public static void getSubfolderIds(
192                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
193                    boolean recurse)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    getService().getSubfolderIds(folderIds, groupId, folderId, recurse);
196            }
197    
198            public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
199                    long folderId, boolean recurse)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return getService().getSubfolderIds(groupId, folderId, recurse);
202            }
203    
204            public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
205                    long folderId, long parentFolderId,
206                    com.liferay.portal.service.ServiceContext serviceContext)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
210            }
211    
212            public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
213                    long folderId, long parentFolderId,
214                    com.liferay.portal.service.ServiceContext serviceContext)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return getService()
218                                       .moveFolderFromTrash(folderId, parentFolderId, serviceContext);
219            }
220    
221            public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
222                    long folderId)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    return getService().moveFolderToTrash(folderId);
226            }
227    
228            public static void restoreFolderFromTrash(long folderId)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException {
231                    getService().restoreFolderFromTrash(folderId);
232            }
233    
234            public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
235                    long folderId, long parentFolderId, java.lang.String name,
236                    java.lang.String description, boolean mergeWithParentFolder,
237                    com.liferay.portal.service.ServiceContext serviceContext)
238                    throws com.liferay.portal.kernel.exception.PortalException,
239                            com.liferay.portal.kernel.exception.SystemException {
240                    return getService()
241                                       .updateFolder(folderId, parentFolderId, name, description,
242                            mergeWithParentFolder, serviceContext);
243            }
244    
245            public static JournalFolderService getService() {
246                    if (_service == null) {
247                            _service = (JournalFolderService)PortalBeanLocatorUtil.locate(JournalFolderService.class.getName());
248    
249                            ReferenceRegistry.registerReference(JournalFolderServiceUtil.class,
250                                    "_service");
251                    }
252    
253                    return _service;
254            }
255    
256            /**
257             * @deprecated As of 6.2.0
258             */
259            public void setService(JournalFolderService service) {
260            }
261    
262            private static JournalFolderService _service;
263    }