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