001
014
015 package com.liferay.portlet.imagegallery.service;
016
017
026 public class IGImageServiceWrapper implements IGImageService {
027 public IGImageServiceWrapper(IGImageService igImageService) {
028 _igImageService = igImageService;
029 }
030
031 public com.liferay.portlet.imagegallery.model.IGImage addImage(
032 long groupId, long folderId, java.lang.String name,
033 java.lang.String description, java.io.File file,
034 java.lang.String contentType,
035 com.liferay.portal.service.ServiceContext serviceContext)
036 throws com.liferay.portal.kernel.exception.PortalException,
037 com.liferay.portal.kernel.exception.SystemException {
038 return _igImageService.addImage(groupId, folderId, name, description,
039 file, contentType, serviceContext);
040 }
041
042 public void deleteImage(long imageId)
043 throws com.liferay.portal.kernel.exception.PortalException,
044 com.liferay.portal.kernel.exception.SystemException {
045 _igImageService.deleteImage(imageId);
046 }
047
048 public void deleteImageByFolderIdAndNameWithExtension(long groupId,
049 long folderId, java.lang.String nameWithExtension)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException {
052 _igImageService.deleteImageByFolderIdAndNameWithExtension(groupId,
053 folderId, nameWithExtension);
054 }
055
056 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
057 long groupId, long userId, int start, int end)
058 throws com.liferay.portal.kernel.exception.SystemException {
059 return _igImageService.getGroupImages(groupId, userId, start, end);
060 }
061
062 public int getGroupImagesCount(long groupId, long userId)
063 throws com.liferay.portal.kernel.exception.SystemException {
064 return _igImageService.getGroupImagesCount(groupId, userId);
065 }
066
067 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return _igImageService.getImage(imageId);
071 }
072
073 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
074 long groupId, long folderId, java.lang.String nameWithExtension)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return _igImageService.getImageByFolderIdAndNameWithExtension(groupId,
078 folderId, nameWithExtension);
079 }
080
081 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
082 long largeImageId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 return _igImageService.getImageByLargeImageId(largeImageId);
086 }
087
088 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
089 long smallImageId)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return _igImageService.getImageBySmallImageId(smallImageId);
093 }
094
095 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
096 long groupId, long folderId)
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return _igImageService.getImages(groupId, folderId);
099 }
100
101 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
102 long groupId, long folderId, int start, int end)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return _igImageService.getImages(groupId, folderId, start, end);
105 }
106
107 public int getImagesCount(long groupId, long folderId)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return _igImageService.getImagesCount(groupId, folderId);
110 }
111
112 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
113 long imageId, long groupId, long folderId, java.lang.String name,
114 java.lang.String description, java.io.File file,
115 java.lang.String contentType,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException {
119 return _igImageService.updateImage(imageId, groupId, folderId, name,
120 description, file, contentType, serviceContext);
121 }
122
123 public IGImageService getWrappedIGImageService() {
124 return _igImageService;
125 }
126
127 private IGImageService _igImageService;
128 }