1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
26
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 }