1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  
26  /**
27   * <a href="IGImageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.imagegallery.service.IGImageLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.imagegallery.service.IGImageLocalService
45   *
46   */
47  public class IGImageLocalServiceUtil {
48      public static com.liferay.portlet.imagegallery.model.IGImage addIGImage(
49          com.liferay.portlet.imagegallery.model.IGImage igImage)
50          throws com.liferay.portal.SystemException {
51          return _service.addIGImage(igImage);
52      }
53  
54      public static void deleteIGImage(long imageId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteIGImage(imageId);
58      }
59  
60      public static void deleteIGImage(
61          com.liferay.portlet.imagegallery.model.IGImage igImage)
62          throws com.liferay.portal.SystemException {
63          _service.deleteIGImage(igImage);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.imagegallery.model.IGImage getIGImage(
79          long imageId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getIGImage(imageId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getIGImages(start, end);
88      }
89  
90      public static int getIGImagesCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getIGImagesCount();
93      }
94  
95      public static com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
96          com.liferay.portlet.imagegallery.model.IGImage igImage)
97          throws com.liferay.portal.SystemException {
98          return _service.updateIGImage(igImage);
99      }
100 
101     public static com.liferay.portlet.imagegallery.model.IGImage addImage(
102         long userId, long folderId, java.lang.String name,
103         java.lang.String description, java.io.File file,
104         java.lang.String contentType, java.lang.String[] tagsEntries,
105         boolean addCommunityPermissions, boolean addGuestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         return _service.addImage(userId, folderId, name, description, file,
109             contentType, tagsEntries, addCommunityPermissions,
110             addGuestPermissions);
111     }
112 
113     public static com.liferay.portlet.imagegallery.model.IGImage addImage(
114         java.lang.String uuid, long userId, long folderId,
115         java.lang.String name, java.lang.String description, java.io.File file,
116         java.lang.String contentType, java.lang.String[] tagsEntries,
117         boolean addCommunityPermissions, boolean addGuestPermissions)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return _service.addImage(uuid, userId, folderId, name, description,
121             file, contentType, tagsEntries, addCommunityPermissions,
122             addGuestPermissions);
123     }
124 
125     public static com.liferay.portlet.imagegallery.model.IGImage addImage(
126         long userId, long folderId, java.lang.String name,
127         java.lang.String description, java.io.File file,
128         java.lang.String contentType, java.lang.String[] tagsEntries,
129         java.lang.String[] communityPermissions,
130         java.lang.String[] guestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return _service.addImage(userId, folderId, name, description, file,
134             contentType, tagsEntries, communityPermissions, guestPermissions);
135     }
136 
137     public static com.liferay.portlet.imagegallery.model.IGImage addImage(
138         java.lang.String uuid, long userId, long folderId,
139         java.lang.String name, java.lang.String description, java.io.File file,
140         java.lang.String contentType, java.lang.String[] tagsEntries,
141         java.lang.Boolean addCommunityPermissions,
142         java.lang.Boolean addGuestPermissions,
143         java.lang.String[] communityPermissions,
144         java.lang.String[] guestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         return _service.addImage(uuid, userId, folderId, name, description,
148             file, contentType, tagsEntries, addCommunityPermissions,
149             addGuestPermissions, communityPermissions, guestPermissions);
150     }
151 
152     public static void addImageResources(long folderId, long imageId,
153         boolean addCommunityPermissions, boolean addGuestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         _service.addImageResources(folderId, imageId, addCommunityPermissions,
157             addGuestPermissions);
158     }
159 
160     public static void addImageResources(
161         com.liferay.portlet.imagegallery.model.IGFolder folder,
162         com.liferay.portlet.imagegallery.model.IGImage image,
163         boolean addCommunityPermissions, boolean addGuestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         _service.addImageResources(folder, image, addCommunityPermissions,
167             addGuestPermissions);
168     }
169 
170     public static void addImageResources(long folderId, long imageId,
171         java.lang.String[] communityPermissions,
172         java.lang.String[] guestPermissions)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         _service.addImageResources(folderId, imageId, communityPermissions,
176             guestPermissions);
177     }
178 
179     public static void addImageResources(
180         com.liferay.portlet.imagegallery.model.IGFolder folder,
181         com.liferay.portlet.imagegallery.model.IGImage image,
182         java.lang.String[] communityPermissions,
183         java.lang.String[] guestPermissions)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         _service.addImageResources(folder, image, communityPermissions,
187             guestPermissions);
188     }
189 
190     public static void deleteImage(long imageId)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException {
193         _service.deleteImage(imageId);
194     }
195 
196     public static void deleteImage(
197         com.liferay.portlet.imagegallery.model.IGImage image)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException {
200         _service.deleteImage(image);
201     }
202 
203     public static void deleteImages(long folderId)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException {
206         _service.deleteImages(folderId);
207     }
208 
209     public static int getFoldersImagesCount(java.util.List<Long> folderIds)
210         throws com.liferay.portal.SystemException {
211         return _service.getFoldersImagesCount(folderIds);
212     }
213 
214     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
215         long groupId, int start, int end)
216         throws com.liferay.portal.SystemException {
217         return _service.getGroupImages(groupId, start, end);
218     }
219 
220     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
221         long groupId, long userId, int start, int end)
222         throws com.liferay.portal.SystemException {
223         return _service.getGroupImages(groupId, userId, start, end);
224     }
225 
226     public static int getGroupImagesCount(long groupId)
227         throws com.liferay.portal.SystemException {
228         return _service.getGroupImagesCount(groupId);
229     }
230 
231     public static int getGroupImagesCount(long groupId, long userId)
232         throws com.liferay.portal.SystemException {
233         return _service.getGroupImagesCount(groupId, userId);
234     }
235 
236     public static com.liferay.portlet.imagegallery.model.IGImage getImage(
237         long imageId)
238         throws com.liferay.portal.PortalException,
239             com.liferay.portal.SystemException {
240         return _service.getImage(imageId);
241     }
242 
243     public static com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
244         long custom1ImageId)
245         throws com.liferay.portal.PortalException,
246             com.liferay.portal.SystemException {
247         return _service.getImageByCustom1ImageId(custom1ImageId);
248     }
249 
250     public static com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
251         long custom2ImageId)
252         throws com.liferay.portal.PortalException,
253             com.liferay.portal.SystemException {
254         return _service.getImageByCustom2ImageId(custom2ImageId);
255     }
256 
257     public static com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
258         long folderId, java.lang.String nameWithExtension)
259         throws com.liferay.portal.PortalException,
260             com.liferay.portal.SystemException {
261         return _service.getImageByFolderIdAndNameWithExtension(folderId,
262             nameWithExtension);
263     }
264 
265     public static com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
266         long largeImageId)
267         throws com.liferay.portal.PortalException,
268             com.liferay.portal.SystemException {
269         return _service.getImageByLargeImageId(largeImageId);
270     }
271 
272     public static com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
273         long smallImageId)
274         throws com.liferay.portal.PortalException,
275             com.liferay.portal.SystemException {
276         return _service.getImageBySmallImageId(smallImageId);
277     }
278 
279     public static com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
280         java.lang.String uuid, long groupId)
281         throws com.liferay.portal.PortalException,
282             com.liferay.portal.SystemException {
283         return _service.getImageByUuidAndGroupId(uuid, groupId);
284     }
285 
286     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
287         long folderId) throws com.liferay.portal.SystemException {
288         return _service.getImages(folderId);
289     }
290 
291     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
292         long folderId, int start, int end)
293         throws com.liferay.portal.SystemException {
294         return _service.getImages(folderId, start, end);
295     }
296 
297     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
298         long folderId, int start, int end,
299         com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.SystemException {
301         return _service.getImages(folderId, start, end, obc);
302     }
303 
304     public static int getImagesCount(long folderId)
305         throws com.liferay.portal.SystemException {
306         return _service.getImagesCount(folderId);
307     }
308 
309     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
310         throws com.liferay.portal.SystemException {
311         return _service.getNoAssetImages();
312     }
313 
314     public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
315         long userId, long imageId, long folderId, java.lang.String name,
316         java.lang.String description, java.io.File file,
317         java.lang.String contentType, java.lang.String[] tagsEntries)
318         throws com.liferay.portal.PortalException,
319             com.liferay.portal.SystemException {
320         return _service.updateImage(userId, imageId, folderId, name,
321             description, file, contentType, tagsEntries);
322     }
323 
324     public static void updateTagsAsset(long userId,
325         com.liferay.portlet.imagegallery.model.IGImage image,
326         java.lang.String[] tagsEntries)
327         throws com.liferay.portal.PortalException,
328             com.liferay.portal.SystemException {
329         _service.updateTagsAsset(userId, image, tagsEntries);
330     }
331 
332     public static IGImageLocalService getService() {
333         return _service;
334     }
335 
336     public void setService(IGImageLocalService service) {
337         _service = service;
338     }
339 
340     private static IGImageLocalService _service;
341 }