com.liferay.portlet.imagegallery.service
Interface IGImageLocalService

All Known Implementing Classes:
IGImageLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.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(long userId, long folderId, java.lang.String name, java.lang.String description, java.io.File file, java.lang.String contentType, ServiceContext serviceContext)
           
 IGImage addImage(long userId, long folderId, java.lang.String name, java.lang.String description, java.lang.String fileName, byte[] bytes, java.lang.String contentType, ServiceContext serviceContext)
           
 IGImage addImage(long userId, long folderId, java.lang.String name, java.lang.String description, java.lang.String fileName, java.io.InputStream is, java.lang.String contentType, ServiceContext serviceContext)
           
 IGImage addImage(java.lang.String uuid, long userId, 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 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 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 folderId)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 int getFoldersImagesCount(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)
           
 IGImage getIGImageByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 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 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 folderId)
           
 java.util.List<IGImage> getImages(long folderId, int start, int end)
           
 java.util.List<IGImage> getImages(long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getImagesCount(long folderId)
           
 java.util.List<IGImage> getNoAssetImages()
           
 void reIndex(IGImage image)
           
 void reIndex(long imageId)
           
 IGImage updateIGImage(IGImage igImage)
           
 IGImage updateIGImage(IGImage igImage, boolean merge)
           
 IGImage updateImage(long userId, long imageId, 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 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 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)
           
 void updateTagsAsset(long userId, IGImage image, java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
          Deprecated.  
 void updateTagsAsset(long userId, IGImage image, java.lang.String[] tagsCategories, java.lang.String[] tagsEntries, java.lang.String contentType)
           
 

Method Detail

addIGImage

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

createIGImage

IGImage createIGImage(long imageId)

deleteIGImage

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

deleteIGImage

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

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

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

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQueryCount

int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getIGImage

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

getIGImageByUuidAndGroupId

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

getIGImages

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

getIGImagesCount

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

updateIGImage

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

updateIGImage

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

addImage

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

addImage

IGImage addImage(long userId,
                 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.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addImage

IGImage addImage(long userId,
                 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.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addImage

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

addImage

IGImage addImage(java.lang.String uuid,
                 long userId,
                 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.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addImage

IGImage addImage(java.lang.String uuid,
                 long userId,
                 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.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addImageResources

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

addImageResources

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

addImageResources

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

addImageResources

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

deleteImage

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

deleteImage

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

deleteImages

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

getFoldersImagesCount

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

getGroupImages

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

getGroupImages

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

getGroupImagesCount

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

getGroupImagesCount

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

getImage

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

getImageByCustom1ImageId

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

getImageByCustom2ImageId

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

getImageByFolderIdAndNameWithExtension

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

getImageByLargeImageId

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

getImageBySmallImageId

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

getImageByUuidAndGroupId

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

getImages

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

getImages

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

getImages

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

getImagesCount

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

getNoAssetImages

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

reIndex

@Transactional(propagation=SUPPORTS,
               readOnly=true)
void reIndex(IGImage image)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

@Transactional(propagation=SUPPORTS,
               readOnly=true)
void reIndex(long imageId)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

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

updateImage

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

updateImage

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

updateSmallImage

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

updateTagsAsset

void updateTagsAsset(long userId,
                     IGImage image,
                     java.lang.String[] tagsCategories,
                     java.lang.String[] tagsEntries)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Deprecated. 

Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateTagsAsset

void updateTagsAsset(long userId,
                     IGImage image,
                     java.lang.String[] tagsCategories,
                     java.lang.String[] tagsEntries,
                     java.lang.String contentType)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException