1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.imagegallery.service;
24  
25  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="IGFolderLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link IGFolderLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       IGFolderLocalService
45   * @generated
46   */
47  public class IGFolderLocalServiceUtil {
48      public static com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
49          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
50          throws com.liferay.portal.SystemException {
51          return getService().addIGFolder(igFolder);
52      }
53  
54      public static com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
55          long folderId) {
56          return getService().createIGFolder(folderId);
57      }
58  
59      public static void deleteIGFolder(long folderId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteIGFolder(folderId);
63      }
64  
65      public static void deleteIGFolder(
66          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
67          throws com.liferay.portal.SystemException {
68          getService().deleteIGFolder(igFolder);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
84          long folderId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getIGFolder(folderId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getIGFolders(start, end);
93      }
94  
95      public static int getIGFoldersCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getIGFoldersCount();
98      }
99  
100     public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
101         com.liferay.portlet.imagegallery.model.IGFolder igFolder)
102         throws com.liferay.portal.SystemException {
103         return getService().updateIGFolder(igFolder);
104     }
105 
106     public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
107         com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
108         throws com.liferay.portal.SystemException {
109         return getService().updateIGFolder(igFolder, merge);
110     }
111 
112     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
113         long userId, long parentFolderId, java.lang.String name,
114         java.lang.String description,
115         com.liferay.portal.service.ServiceContext serviceContext)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         return getService()
119                    .addFolder(userId, parentFolderId, name, description,
120             serviceContext);
121     }
122 
123     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
124         java.lang.String uuid, long userId, long parentFolderId,
125         java.lang.String name, java.lang.String description,
126         com.liferay.portal.service.ServiceContext serviceContext)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException {
129         return getService()
130                    .addFolder(uuid, 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.PortalException,
138             com.liferay.portal.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.PortalException,
149             com.liferay.portal.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.PortalException,
157             com.liferay.portal.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.PortalException,
167             com.liferay.portal.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.PortalException,
175             com.liferay.portal.SystemException {
176         getService().deleteFolder(folder);
177     }
178 
179     public static void deleteFolder(long folderId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         getService().deleteFolder(folderId);
183     }
184 
185     public static void deleteFolders(long groupId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException {
188         getService().deleteFolders(groupId);
189     }
190 
191     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
192         long folderId)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         return getService().getFolder(folderId);
196     }
197 
198     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
199         long groupId, long parentFolderId, java.lang.String name)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException {
202         return getService().getFolder(groupId, parentFolderId, name);
203     }
204 
205     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
206         long groupId) throws com.liferay.portal.SystemException {
207         return getService().getFolders(groupId);
208     }
209 
210     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
211         long groupId, long parentFolderId)
212         throws com.liferay.portal.SystemException {
213         return getService().getFolders(groupId, parentFolderId);
214     }
215 
216     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
217         long groupId, long parentFolderId, int start, int end)
218         throws com.liferay.portal.SystemException {
219         return getService().getFolders(groupId, parentFolderId, start, end);
220     }
221 
222     public static int getFoldersCount(long groupId, long parentFolderId)
223         throws com.liferay.portal.SystemException {
224         return getService().getFoldersCount(groupId, parentFolderId);
225     }
226 
227     public static void getSubfolderIds(java.util.List<Long> folderIds,
228         long groupId, long folderId) throws com.liferay.portal.SystemException {
229         getService().getSubfolderIds(folderIds, groupId, folderId);
230     }
231 
232     public static void reIndex(java.lang.String[] ids)
233         throws com.liferay.portal.SystemException {
234         getService().reIndex(ids);
235     }
236 
237     public static com.liferay.portal.kernel.search.Hits search(long companyId,
238         long groupId, long userId, long[] folderIds, java.lang.String keywords,
239         int start, int end) throws com.liferay.portal.SystemException {
240         return getService()
241                    .search(companyId, groupId, userId, folderIds, keywords,
242             start, end);
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.PortalException,
250             com.liferay.portal.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 }