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