1
22
23 package com.liferay.portlet.imagegallery.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface IGImageService {
58 public com.liferay.portlet.imagegallery.model.IGImage addImage(
59 long folderId, java.lang.String name, java.lang.String description,
60 java.io.File file, java.lang.String contentType,
61 com.liferay.portal.service.ServiceContext serviceContext)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException;
64
65 public void deleteImage(long imageId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public void deleteImageByFolderIdAndNameWithExtension(long folderId,
70 java.lang.String nameWithExtension)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException;
73
74 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
75 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
81 long folderId, java.lang.String nameWithExtension)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException;
84
85 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
87 long largeImageId)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
93 long smallImageId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
99 long folderId)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
104 long imageId, long folderId, java.lang.String name,
105 java.lang.String description, java.io.File file,
106 java.lang.String contentType,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110 }