1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.imagegallery.service;
16  
17  
18  /**
19   * <a href="IGImageServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link IGImageService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       IGImageService
32   * @generated
33   */
34  public class IGImageServiceWrapper implements IGImageService {
35      public IGImageServiceWrapper(IGImageService igImageService) {
36          _igImageService = igImageService;
37      }
38  
39      public com.liferay.portlet.imagegallery.model.IGImage addImage(
40          long folderId, java.lang.String name, java.lang.String description,
41          java.io.File file, java.lang.String contentType,
42          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
43          boolean addGuestPermissions)
44          throws com.liferay.portal.PortalException,
45              com.liferay.portal.SystemException, java.rmi.RemoteException {
46          return _igImageService.addImage(folderId, name, description, file,
47              contentType, tagsEntries, addCommunityPermissions,
48              addGuestPermissions);
49      }
50  
51      public com.liferay.portlet.imagegallery.model.IGImage addImage(
52          long folderId, java.lang.String name, java.lang.String description,
53          java.io.File file, java.lang.String contentType,
54          java.lang.String[] tagsEntries,
55          java.lang.String[] communityPermissions,
56          java.lang.String[] guestPermissions)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException, java.rmi.RemoteException {
59          return _igImageService.addImage(folderId, name, description, file,
60              contentType, tagsEntries, communityPermissions, guestPermissions);
61      }
62  
63      public void deleteImage(long imageId)
64          throws com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException, java.rmi.RemoteException {
66          _igImageService.deleteImage(imageId);
67      }
68  
69      public void deleteImageByFolderIdAndNameWithExtension(long folderId,
70          java.lang.String nameWithExtension)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException, java.rmi.RemoteException {
73          _igImageService.deleteImageByFolderIdAndNameWithExtension(folderId,
74              nameWithExtension);
75      }
76  
77      public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException, java.rmi.RemoteException {
80          return _igImageService.getImage(imageId);
81      }
82  
83      public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
84          long folderId, java.lang.String nameWithExtension)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException, java.rmi.RemoteException {
87          return _igImageService.getImageByFolderIdAndNameWithExtension(folderId,
88              nameWithExtension);
89      }
90  
91      public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
92          long largeImageId)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException, java.rmi.RemoteException {
95          return _igImageService.getImageByLargeImageId(largeImageId);
96      }
97  
98      public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
99          long smallImageId)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException, java.rmi.RemoteException {
102         return _igImageService.getImageBySmallImageId(smallImageId);
103     }
104 
105     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
106         long folderId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException, java.rmi.RemoteException {
109         return _igImageService.getImages(folderId);
110     }
111 
112     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
113         long imageId, long folderId, java.lang.String name,
114         java.lang.String description, java.io.File file,
115         java.lang.String contentType, java.lang.String[] tagsEntries)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException, java.rmi.RemoteException {
118         return _igImageService.updateImage(imageId, folderId, name,
119             description, file, contentType, tagsEntries);
120     }
121 
122     public IGImageService getWrappedIGImageService() {
123         return _igImageService;
124     }
125 
126     private IGImageService _igImageService;
127 }