001
014
015 package com.liferay.portlet.imagegallery.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface IGImageService {
043 public com.liferay.portlet.imagegallery.model.IGImage addImage(
044 long groupId, long folderId, java.lang.String name,
045 java.lang.String description, java.io.File file,
046 java.lang.String contentType,
047 com.liferay.portal.service.ServiceContext serviceContext)
048 throws com.liferay.portal.kernel.exception.PortalException,
049 com.liferay.portal.kernel.exception.SystemException;
050
051 public void deleteImage(long imageId)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException;
054
055 public void deleteImageByFolderIdAndNameWithExtension(long groupId,
056 long folderId, java.lang.String nameWithExtension)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException;
059
060 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException;
064
065 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
067 long groupId, long folderId, java.lang.String nameWithExtension)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
073 long largeImageId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
079 long smallImageId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
085 long groupId, long folderId)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException;
088
089 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
090 long imageId, long groupId, long folderId, java.lang.String name,
091 java.lang.String description, java.io.File file,
092 java.lang.String contentType,
093 com.liferay.portal.service.ServiceContext serviceContext)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096 }