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          com.liferay.portal.service.ServiceContext serviceContext)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException {
45          return _igImageService.addImage(folderId, name, description, file,
46              contentType, serviceContext);
47      }
48  
49      public void deleteImage(long imageId)
50          throws com.liferay.portal.PortalException,
51              com.liferay.portal.SystemException {
52          _igImageService.deleteImage(imageId);
53      }
54  
55      public void deleteImageByFolderIdAndNameWithExtension(long folderId,
56          java.lang.String nameWithExtension)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException {
59          _igImageService.deleteImageByFolderIdAndNameWithExtension(folderId,
60              nameWithExtension);
61      }
62  
63      public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
64          throws com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException {
66          return _igImageService.getImage(imageId);
67      }
68  
69      public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
70          long folderId, java.lang.String nameWithExtension)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException {
73          return _igImageService.getImageByFolderIdAndNameWithExtension(folderId,
74              nameWithExtension);
75      }
76  
77      public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
78          long largeImageId)
79          throws com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException {
81          return _igImageService.getImageByLargeImageId(largeImageId);
82      }
83  
84      public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
85          long smallImageId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException {
88          return _igImageService.getImageBySmallImageId(smallImageId);
89      }
90  
91      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
92          long folderId)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException {
95          return _igImageService.getImages(folderId);
96      }
97  
98      public com.liferay.portlet.imagegallery.model.IGImage updateImage(
99          long imageId, long folderId, java.lang.String name,
100         java.lang.String description, java.io.File file,
101         java.lang.String contentType,
102         com.liferay.portal.service.ServiceContext serviceContext)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException {
105         return _igImageService.updateImage(imageId, folderId, name,
106             description, file, contentType, serviceContext);
107     }
108 
109     public IGImageService getWrappedIGImageService() {
110         return _igImageService;
111     }
112 
113     private IGImageService _igImageService;
114 }