001    /**
002     * Copyright (c) 2000-2010 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.imagegallery.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link IGFolderLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       IGFolderLocalService
030     * @generated
031     */
032    public class IGFolderLocalServiceUtil {
033            public static com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
034                    com.liferay.portlet.imagegallery.model.IGFolder igFolder)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addIGFolder(igFolder);
037            }
038    
039            public static com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
040                    long folderId) {
041                    return getService().createIGFolder(folderId);
042            }
043    
044            public static void deleteIGFolder(long folderId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteIGFolder(folderId);
048            }
049    
050            public static void deleteIGFolder(
051                    com.liferay.portlet.imagegallery.model.IGFolder igFolder)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteIGFolder(igFolder);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
087                    long folderId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getIGFolder(folderId);
091            }
092    
093            public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getIGFolderByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getIGFolders(start, end);
104            }
105    
106            public static int getIGFoldersCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getIGFoldersCount();
109            }
110    
111            public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
112                    com.liferay.portlet.imagegallery.model.IGFolder igFolder)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateIGFolder(igFolder);
115            }
116    
117            public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
118                    com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getService().updateIGFolder(igFolder, merge);
121            }
122    
123            public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
124                    long userId, long parentFolderId, java.lang.String name,
125                    java.lang.String description,
126                    com.liferay.portal.service.ServiceContext serviceContext)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return getService()
130                                       .addFolder(userId, parentFolderId, name, description,
131                            serviceContext);
132            }
133    
134            public static void addFolderResources(
135                    com.liferay.portlet.imagegallery.model.IGFolder folder,
136                    boolean addCommunityPermissions, boolean addGuestPermissions)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    getService()
140                            .addFolderResources(folder, addCommunityPermissions,
141                            addGuestPermissions);
142            }
143    
144            public static void addFolderResources(
145                    com.liferay.portlet.imagegallery.model.IGFolder folder,
146                    java.lang.String[] communityPermissions,
147                    java.lang.String[] guestPermissions)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException {
150                    getService()
151                            .addFolderResources(folder, communityPermissions, guestPermissions);
152            }
153    
154            public static void addFolderResources(long folderId,
155                    boolean addCommunityPermissions, boolean addGuestPermissions)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    getService()
159                            .addFolderResources(folderId, addCommunityPermissions,
160                            addGuestPermissions);
161            }
162    
163            public static void addFolderResources(long folderId,
164                    java.lang.String[] communityPermissions,
165                    java.lang.String[] guestPermissions)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    getService()
169                            .addFolderResources(folderId, communityPermissions, guestPermissions);
170            }
171    
172            public static void deleteFolder(
173                    com.liferay.portlet.imagegallery.model.IGFolder folder)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    getService().deleteFolder(folder);
177            }
178    
179            public static void deleteFolder(long folderId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    getService().deleteFolder(folderId);
183            }
184    
185            public static void deleteFolders(long groupId)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    getService().deleteFolders(groupId);
189            }
190    
191            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
192                    long companyId, int start, int end)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return getService().getCompanyFolders(companyId, start, end);
195            }
196    
197            public static int getCompanyFoldersCount(long companyId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getService().getCompanyFoldersCount(companyId);
200            }
201    
202            public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
203                    long folderId)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    return getService().getFolder(folderId);
207            }
208    
209            public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
210                    long groupId, long parentFolderId, java.lang.String name)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return getService().getFolder(groupId, parentFolderId, name);
214            }
215    
216            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
217                    long groupId)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return getService().getFolders(groupId);
220            }
221    
222            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
223                    long groupId, long parentFolderId)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return getService().getFolders(groupId, parentFolderId);
226            }
227    
228            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
229                    long groupId, long parentFolderId, int start, int end)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getService().getFolders(groupId, parentFolderId, start, end);
232            }
233    
234            public static int getFoldersCount(long groupId, long parentFolderId)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return getService().getFoldersCount(groupId, parentFolderId);
237            }
238    
239            public static void getSubfolderIds(
240                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    getService().getSubfolderIds(folderIds, groupId, folderId);
243            }
244    
245            public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
246                    long folderId, long parentFolderId, java.lang.String name,
247                    java.lang.String description, boolean mergeWithParentFolder,
248                    com.liferay.portal.service.ServiceContext serviceContext)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return getService()
252                                       .updateFolder(folderId, parentFolderId, name, description,
253                            mergeWithParentFolder, serviceContext);
254            }
255    
256            public static IGFolderLocalService getService() {
257                    if (_service == null) {
258                            _service = (IGFolderLocalService)PortalBeanLocatorUtil.locate(IGFolderLocalService.class.getName());
259                    }
260    
261                    return _service;
262            }
263    
264            public void setService(IGFolderLocalService service) {
265                    _service = service;
266            }
267    
268            private static IGFolderLocalService _service;
269    }