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