Liferay 6.0.5

com.liferay.portlet.imagegallery.service.impl
Class IGImageLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.imagegallery.service.base.IGImageLocalServiceBaseImpl
      extended by com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl
All Implemented Interfaces:
IGImageLocalService

public class IGImageLocalServiceImpl
extends IGImageLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.imagegallery.service.base.IGImageLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, igFolderLocalService, igFolderPersistence, igFolderService, igImageFinder, igImageLocalService, igImagePersistence, igImageService, imageLocalService, imagePersistence, imageService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
IGImageLocalServiceImpl()
           
 
Method Summary
 IGImage addImage(long userId, long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
 IGImage addImage(long userId, long groupId, long folderId, String name, String description, String fileName, byte[] bytes, String contentType, ServiceContext serviceContext)
           
 IGImage addImage(long userId, long groupId, long folderId, String name, String description, String fileName, InputStream is, String contentType, ServiceContext serviceContext)
           
 void addImageResources(IGImage image, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addImageResources(IGImage image, String[] communityPermissions, String[] guestPermissions)
           
 void addImageResources(long imageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addImageResources(long imageId, String[] communityPermissions, String[] guestPermissions)
           
 void deleteImage(IGImage image)
           
 void deleteImage(long imageId)
           
 void deleteImages(long groupId, long folderId)
           
protected  long getFolder(IGImage image, long folderId)
           
 int getFoldersImagesCount(long groupId, List<Long> folderIds)
           
 List<IGImage> getGroupImages(long groupId, int start, int end)
           
 List<IGImage> getGroupImages(long groupId, long userId, int start, int end)
           
 int getGroupImagesCount(long groupId)
           
 int getGroupImagesCount(long groupId, long userId)
           
 IGImage getImage(long imageId)
           
 IGImage getImageByCustom1ImageId(long custom1ImageId)
           
 IGImage getImageByCustom2ImageId(long custom2ImageId)
           
 IGImage getImageByFolderIdAndNameWithExtension(long groupId, long folderId, String nameWithExtension)
           
 IGImage getImageByLargeImageId(long largeImageId)
           
 IGImage getImageBySmallImageId(long smallImageId)
           
 IGImage getImageByUuidAndGroupId(String uuid, long groupId)
           
 List<IGImage> getImages(long groupId, long folderId)
           
 List<IGImage> getImages(long groupId, long folderId, int start, int end)
           
 List<IGImage> getImages(long groupId, long folderId, int start, int end, OrderByComparator obc)
           
 int getImagesCount(long groupId, long folderId)
           
 List<IGImage> getNoAssetImages()
           
protected  void saveImages(long largeImageId, RenderedImage renderedImage, long smallImageId, long custom1ImageId, long custom2ImageId, byte[] bytes, String contentType)
           
protected  void saveScaledImage(RenderedImage renderedImage, long imageId, String contentType, int dimension)
           
 void updateAsset(long userId, IGImage image, long[] assetCategoryIds, String[] assetTagNames, String contentType)
           
 IGImage updateImage(long userId, long imageId, long groupId, long folderId, String name, String description, byte[] bytes, String contentType, ServiceContext serviceContext)
           
 IGImage updateImage(long userId, long imageId, long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
 IGImage updateImage(long userId, long imageId, long groupId, long folderId, String name, String description, InputStream is, String contentType, ServiceContext serviceContext)
           
 void updateSmallImage(long smallImageId, long largeImageId)
           
protected  void validate(byte[] bytes)
           
protected  void validate(long groupId, long folderId, String nameWithExtension)
           
protected  void validate(long groupId, long folderId, String nameWithExtension, String fileName, byte[] bytes)
           
 
Methods inherited from class com.liferay.portlet.imagegallery.service.base.IGImageLocalServiceBaseImpl
addIGImage, createIGImage, deleteIGImage, deleteIGImage, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getIGFolderLocalService, getIGFolderPersistence, getIGFolderService, getIGImage, getIGImageByUuidAndGroupId, getIGImageFinder, getIGImageLocalService, getIGImagePersistence, getIGImages, getIGImagesCount, getIGImageService, getImageLocalService, getImagePersistence, getImageService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setIGFolderLocalService, setIGFolderPersistence, setIGFolderService, setIGImageFinder, setIGImageLocalService, setIGImagePersistence, setIGImageService, setImageLocalService, setImagePersistence, setImageService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateIGImage, updateIGImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGImageLocalServiceImpl

public IGImageLocalServiceImpl()
Method Detail

addImage

public IGImage addImage(long userId,
                        long groupId,
                        long folderId,
                        String name,
                        String description,
                        File file,
                        String contentType,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

addImage

public IGImage addImage(long userId,
                        long groupId,
                        long folderId,
                        String name,
                        String description,
                        String fileName,
                        byte[] bytes,
                        String contentType,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

addImage

public IGImage addImage(long userId,
                        long groupId,
                        long folderId,
                        String name,
                        String description,
                        String fileName,
                        InputStream is,
                        String contentType,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(IGImage image,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(IGImage image,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(long imageId,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(long imageId,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteImage

public void deleteImage(IGImage image)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteImage

public void deleteImage(long imageId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteImages

public void deleteImages(long groupId,
                         long folderId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

getFoldersImagesCount

public int getFoldersImagesCount(long groupId,
                                 List<Long> folderIds)
                          throws SystemException
Throws:
SystemException

getGroupImages

public List<IGImage> getGroupImages(long groupId,
                                    int start,
                                    int end)
                             throws SystemException
Throws:
SystemException

getGroupImages

public List<IGImage> getGroupImages(long groupId,
                                    long userId,
                                    int start,
                                    int end)
                             throws SystemException
Throws:
SystemException

getGroupImagesCount

public int getGroupImagesCount(long groupId)
                        throws SystemException
Throws:
SystemException

getGroupImagesCount

public int getGroupImagesCount(long groupId,
                               long userId)
                        throws SystemException
Throws:
SystemException

getImage

public IGImage getImage(long imageId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getImageByCustom1ImageId

public IGImage getImageByCustom1ImageId(long custom1ImageId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getImageByCustom2ImageId

public IGImage getImageByCustom2ImageId(long custom2ImageId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getImageByFolderIdAndNameWithExtension

public IGImage getImageByFolderIdAndNameWithExtension(long groupId,
                                                      long folderId,
                                                      String nameWithExtension)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getImageByLargeImageId

public IGImage getImageByLargeImageId(long largeImageId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getImageBySmallImageId

public IGImage getImageBySmallImageId(long smallImageId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getImageByUuidAndGroupId

public IGImage getImageByUuidAndGroupId(String uuid,
                                        long groupId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getImages

public List<IGImage> getImages(long groupId,
                               long folderId)
                        throws SystemException
Throws:
SystemException

getImages

public List<IGImage> getImages(long groupId,
                               long folderId,
                               int start,
                               int end)
                        throws SystemException
Throws:
SystemException

getImages

public List<IGImage> getImages(long groupId,
                               long folderId,
                               int start,
                               int end,
                               OrderByComparator obc)
                        throws SystemException
Throws:
SystemException

getImagesCount

public int getImagesCount(long groupId,
                          long folderId)
                   throws SystemException
Throws:
SystemException

getNoAssetImages

public List<IGImage> getNoAssetImages()
                               throws SystemException
Throws:
SystemException

updateAsset

public void updateAsset(long userId,
                        IGImage image,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        String contentType)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateImage

public IGImage updateImage(long userId,
                           long imageId,
                           long groupId,
                           long folderId,
                           String name,
                           String description,
                           byte[] bytes,
                           String contentType,
                           ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateImage

public IGImage updateImage(long userId,
                           long imageId,
                           long groupId,
                           long folderId,
                           String name,
                           String description,
                           File file,
                           String contentType,
                           ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateImage

public IGImage updateImage(long userId,
                           long imageId,
                           long groupId,
                           long folderId,
                           String name,
                           String description,
                           InputStream is,
                           String contentType,
                           ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateSmallImage

public void updateSmallImage(long smallImageId,
                             long largeImageId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getFolder

protected long getFolder(IGImage image,
                         long folderId)
                  throws SystemException
Throws:
SystemException

saveImages

protected void saveImages(long largeImageId,
                          RenderedImage renderedImage,
                          long smallImageId,
                          long custom1ImageId,
                          long custom2ImageId,
                          byte[] bytes,
                          String contentType)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

saveScaledImage

protected void saveScaledImage(RenderedImage renderedImage,
                               long imageId,
                               String contentType,
                               int dimension)
                        throws IOException,
                               PortalException,
                               SystemException
Throws:
IOException
PortalException
SystemException

validate

protected void validate(byte[] bytes)
                 throws ImageSizeException,
                        SystemException
Throws:
ImageSizeException
SystemException

validate

protected void validate(long groupId,
                        long folderId,
                        String nameWithExtension)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

validate

protected void validate(long groupId,
                        long folderId,
                        String nameWithExtension,
                        String fileName,
                        byte[] bytes)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5