com.liferay.portlet.imagegallery.service
Interface IGImageLocalService

All Known Implementing Classes:
IGImageLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface IGImageLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
IGImageLocalServiceUtil
Generated:

Method Summary
 IGImage addIGImage(IGImage igImage)
           
 IGImage addImage(java.lang.String uuid, long userId, long groupId, long folderId, java.lang.String name, java.lang.String description, java.io.File file, java.lang.String contentType, ServiceContext serviceContext)
           
 IGImage addImage(java.lang.String uuid, long userId, long groupId, long folderId, java.lang.String name, java.lang.String description, java.lang.String fileName, byte[] bytes, java.lang.String contentType, ServiceContext serviceContext)
           
 IGImage addImage(java.lang.String uuid, long userId, long groupId, long folderId, java.lang.String name, java.lang.String description, java.lang.String fileName, java.io.InputStream is, java.lang.String contentType, ServiceContext serviceContext)
           
 void addImageResources(IGImage image, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addImageResources(IGImage image, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addImageResources(long imageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addImageResources(long imageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 IGImage createIGImage(long imageId)
           
 void deleteIGImage(IGImage igImage)
           
 void deleteIGImage(long imageId)
           
 void deleteImage(IGImage image)
           
 void deleteImage(long imageId)
           
 void deleteImages(long groupId, long folderId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 int getFoldersImagesCount(long groupId, java.util.List<java.lang.Long> folderIds)
           
 java.util.List<IGImage> getGroupImages(long groupId, int start, int end)
           
 java.util.List<IGImage> getGroupImages(long groupId, long userId, int start, int end)
           
 int getGroupImagesCount(long groupId)
           
 int getGroupImagesCount(long groupId, long userId)
           
 IGImage getIGImage(long imageId)
           
 java.util.List<IGImage> getIGImages(int start, int end)
           
 int getIGImagesCount()
           
 IGImage getImage(long imageId)
           
 IGImage getImageByCustom1ImageId(long custom1ImageId)
           
 IGImage getImageByCustom2ImageId(long custom2ImageId)
           
 IGImage getImageByFolderIdAndNameWithExtension(long groupId, long folderId, java.lang.String nameWithExtension)
           
 IGImage getImageByLargeImageId(long largeImageId)
           
 IGImage getImageBySmallImageId(long smallImageId)
           
 IGImage getImageByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 java.util.List<IGImage> getImages(long groupId, long folderId)
           
 java.util.List<IGImage> getImages(long groupId, long folderId, int start, int end)
           
 java.util.List<IGImage> getImages(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getImagesCount(long groupId, long folderId)
           
 java.util.List<IGImage> getNoAssetImages()
           
 void updateAsset(long userId, IGImage image, long[] assetCategoryIds, java.lang.String[] assetTagNames, java.lang.String contentType)
           
 IGImage updateIGImage(IGImage igImage)
           
 IGImage updateIGImage(IGImage igImage, boolean merge)
           
 IGImage updateImage(long userId, long imageId, long groupId, long folderId, java.lang.String name, java.lang.String description, byte[] bytes, java.lang.String contentType, ServiceContext serviceContext)
           
 IGImage updateImage(long userId, long imageId, long groupId, long folderId, java.lang.String name, java.lang.String description, java.io.File file, java.lang.String contentType, ServiceContext serviceContext)
           
 IGImage updateImage(long userId, long imageId, long groupId, long folderId, java.lang.String name, java.lang.String description, java.io.InputStream is, java.lang.String contentType, ServiceContext serviceContext)
           
 void updateSmallImage(long smallImageId, long largeImageId)
           
 

Method Detail

addIGImage

IGImage addIGImage(IGImage igImage)
                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

createIGImage

IGImage createIGImage(long imageId)

deleteIGImage

void deleteIGImage(long imageId)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteIGImage

void deleteIGImage(IGImage igImage)
                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getIGImage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getIGImage(long imageId)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getIGImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGImage> getIGImages(int start,
                                                  int end)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getIGImagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getIGImagesCount()
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateIGImage

IGImage updateIGImage(IGImage igImage)
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateIGImage

IGImage updateIGImage(IGImage igImage,
                      boolean merge)
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addImage

IGImage addImage(java.lang.String uuid,
                 long userId,
                 long groupId,
                 long folderId,
                 java.lang.String name,
                 java.lang.String description,
                 java.io.File file,
                 java.lang.String contentType,
                 ServiceContext serviceContext)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImage

IGImage addImage(java.lang.String uuid,
                 long userId,
                 long groupId,
                 long folderId,
                 java.lang.String name,
                 java.lang.String description,
                 java.lang.String fileName,
                 byte[] bytes,
                 java.lang.String contentType,
                 ServiceContext serviceContext)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImage

IGImage addImage(java.lang.String uuid,
                 long userId,
                 long groupId,
                 long folderId,
                 java.lang.String name,
                 java.lang.String description,
                 java.lang.String fileName,
                 java.io.InputStream is,
                 java.lang.String contentType,
                 ServiceContext serviceContext)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

void addImageResources(IGImage image,
                       boolean addCommunityPermissions,
                       boolean addGuestPermissions)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

void addImageResources(IGImage image,
                       java.lang.String[] communityPermissions,
                       java.lang.String[] guestPermissions)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

void addImageResources(long imageId,
                       boolean addCommunityPermissions,
                       boolean addGuestPermissions)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

void addImageResources(long imageId,
                       java.lang.String[] communityPermissions,
                       java.lang.String[] guestPermissions)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteImage

void deleteImage(IGImage image)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteImage

void deleteImage(long imageId)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteImages

void deleteImages(long groupId,
                  long folderId)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFoldersImagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFoldersImagesCount(long groupId,
                                        java.util.List<java.lang.Long> folderIds)
                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGImage> getGroupImages(long groupId,
                                                     int start,
                                                     int end)
                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGImage> getGroupImages(long groupId,
                                                     long userId,
                                                     int start,
                                                     int end)
                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupImagesCount(long groupId)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupImagesCount(long groupId,
                                      long userId)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImage(long imageId)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByCustom1ImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageByCustom1ImageId(long custom1ImageId)
                                 throws com.liferay.portal.kernel.exception.PortalException,
                                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByCustom2ImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageByCustom2ImageId(long custom2ImageId)
                                 throws com.liferay.portal.kernel.exception.PortalException,
                                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByFolderIdAndNameWithExtension

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageByFolderIdAndNameWithExtension(long groupId,
                                                             long folderId,
                                                             java.lang.String nameWithExtension)
                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByLargeImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageByLargeImageId(long largeImageId)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageBySmallImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageBySmallImageId(long smallImageId)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageByUuidAndGroupId(java.lang.String uuid,
                                               long groupId)
                                 throws com.liferay.portal.kernel.exception.PortalException,
                                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGImage> getImages(long groupId,
                                                long folderId)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGImage> getImages(long groupId,
                                                long folderId,
                                                int start,
                                                int end)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGImage> getImages(long groupId,
                                                long folderId,
                                                int start,
                                                int end,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getImagesCount(long groupId,
                                 long folderId)
                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getNoAssetImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGImage> getNoAssetImages()
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateAsset

void updateAsset(long userId,
                 IGImage image,
                 long[] assetCategoryIds,
                 java.lang.String[] assetTagNames,
                 java.lang.String contentType)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateImage

IGImage updateImage(long userId,
                    long imageId,
                    long groupId,
                    long folderId,
                    java.lang.String name,
                    java.lang.String description,
                    byte[] bytes,
                    java.lang.String contentType,
                    ServiceContext serviceContext)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateImage

IGImage updateImage(long userId,
                    long imageId,
                    long groupId,
                    long folderId,
                    java.lang.String name,
                    java.lang.String description,
                    java.io.File file,
                    java.lang.String contentType,
                    ServiceContext serviceContext)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateImage

IGImage updateImage(long userId,
                    long imageId,
                    long groupId,
                    long folderId,
                    java.lang.String name,
                    java.lang.String description,
                    java.io.InputStream is,
                    java.lang.String contentType,
                    ServiceContext serviceContext)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateSmallImage

void updateSmallImage(long smallImageId,
                      long largeImageId)
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException