1   /**
2    * Copyright (c) 2000-2009 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="IGImageServiceUtil.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 is a wrapper for {@link IGImageService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       IGImageService
40   * @generated
41   */
42  public class IGImageServiceWrapper implements IGImageService {
43      public IGImageServiceWrapper(IGImageService igImageService) {
44          _igImageService = igImageService;
45      }
46  
47      public com.liferay.portlet.imagegallery.model.IGImage addImage(
48          long folderId, java.lang.String name, java.lang.String description,
49          java.io.File file, java.lang.String contentType,
50          com.liferay.portal.service.ServiceContext serviceContext)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          return _igImageService.addImage(folderId, name, description, file,
54              contentType, serviceContext);
55      }
56  
57      public void deleteImage(long imageId)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException {
60          _igImageService.deleteImage(imageId);
61      }
62  
63      public void deleteImageByFolderIdAndNameWithExtension(long folderId,
64          java.lang.String nameWithExtension)
65          throws com.liferay.portal.PortalException,
66              com.liferay.portal.SystemException {
67          _igImageService.deleteImageByFolderIdAndNameWithExtension(folderId,
68              nameWithExtension);
69      }
70  
71      public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException {
74          return _igImageService.getImage(imageId);
75      }
76  
77      public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
78          long folderId, java.lang.String nameWithExtension)
79          throws com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException {
81          return _igImageService.getImageByFolderIdAndNameWithExtension(folderId,
82              nameWithExtension);
83      }
84  
85      public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
86          long largeImageId)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException {
89          return _igImageService.getImageByLargeImageId(largeImageId);
90      }
91  
92      public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
93          long smallImageId)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException {
96          return _igImageService.getImageBySmallImageId(smallImageId);
97      }
98  
99      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
100         long folderId)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException {
103         return _igImageService.getImages(folderId);
104     }
105 
106     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
107         long imageId, long folderId, java.lang.String name,
108         java.lang.String description, java.io.File file,
109         java.lang.String contentType,
110         com.liferay.portal.service.ServiceContext serviceContext)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return _igImageService.updateImage(imageId, folderId, name,
114             description, file, contentType, serviceContext);
115     }
116 
117     public IGImageService getWrappedIGImageService() {
118         return _igImageService;
119     }
120 
121     private IGImageService _igImageService;
122 }