1
14
15 package com.liferay.portlet.imagegallery.service;
16
17
18
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 }