001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
024     * The interface for the i g image remote service.
025     *
026     * <p>
027     * Never modify or reference this interface directly. Always use {@link IGImageServiceUtil} to access the i g image remote service. Add custom service methods to {@link com.liferay.portlet.imagegallery.service.impl.IGImageServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
028     * </p>
029     *
030     * <p>
031     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see IGImageServiceUtil
036     * @see com.liferay.portlet.imagegallery.service.base.IGImageServiceBaseImpl
037     * @see com.liferay.portlet.imagegallery.service.impl.IGImageServiceImpl
038     * @generated
039     */
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 java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
062                    long groupId, long userId, int start, int end)
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public int getGroupImagesCount(long groupId, long userId)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
076                    long groupId, long folderId, java.lang.String nameWithExtension)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
088                    long smallImageId)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
094                    long groupId, long folderId)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
099                    long groupId, long folderId, int start, int end)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public int getImagesCount(long groupId, long folderId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public com.liferay.portlet.imagegallery.model.IGImage updateImage(
107                    long imageId, long groupId, long folderId, java.lang.String name,
108                    java.lang.String description, java.io.File file,
109                    java.lang.String contentType,
110                    com.liferay.portal.service.ServiceContext serviceContext)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    }