Liferay 6.0.5

com.liferay.portlet.imagegallery.service
Class IGImageLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.imagegallery.service.IGImageLocalServiceWrapper
All Implemented Interfaces:
IGImageLocalService

public class IGImageLocalServiceWrapper
extends Object
implements IGImageLocalService

This class is a wrapper for IGImageLocalService.

See Also:
IGImageLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
IGImageLocalServiceWrapper(IGImageLocalService igImageLocalService)
           
 
Method Summary
 IGImage addIGImage(IGImage igImage)
          Adds the i g image to the database.
 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)
           
 IGImage createIGImage(long imageId)
          Creates a new i g image with the primary key.
 void deleteIGImage(IGImage igImage)
          Deletes the i g image from the database.
 void deleteIGImage(long imageId)
          Deletes the i g image with the primary key from the database.
 void deleteImage(IGImage image)
           
 void deleteImage(long imageId)
           
 void deleteImages(long groupId, long folderId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 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 getIGImage(long imageId)
          Gets the i g image with the primary key.
 IGImage getIGImageByUuidAndGroupId(String uuid, long groupId)
          Gets the i g image with the UUID and group id.
 List<IGImage> getIGImages(int start, int end)
          Gets a range of all the i g images.
 int getIGImagesCount()
          Gets the number of i g images.
 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()
           
 IGImageLocalService getWrappedIGImageLocalService()
           
 void updateAsset(long userId, IGImage image, long[] assetCategoryIds, String[] assetTagNames, String contentType)
           
 IGImage updateIGImage(IGImage igImage)
          Updates the i g image in the database.
 IGImage updateIGImage(IGImage igImage, boolean merge)
          Updates the i g image in the database.
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGImageLocalServiceWrapper

public IGImageLocalServiceWrapper(IGImageLocalService igImageLocalService)
Method Detail

addIGImage

public IGImage addIGImage(IGImage igImage)
                   throws SystemException
Adds the i g image to the database. Also notifies the appropriate model listeners.

Specified by:
addIGImage in interface IGImageLocalService
Parameters:
igImage - the i g image to add
Returns:
the i g image that was added
Throws:
SystemException - if a system exception occurred

createIGImage

public IGImage createIGImage(long imageId)
Creates a new i g image with the primary key. Does not add the i g image to the database.

Specified by:
createIGImage in interface IGImageLocalService
Parameters:
imageId - the primary key for the new i g image
Returns:
the new i g image

deleteIGImage

public void deleteIGImage(long imageId)
                   throws PortalException,
                          SystemException
Deletes the i g image with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteIGImage in interface IGImageLocalService
Parameters:
imageId - the primary key of the i g image to delete
Throws:
PortalException - if a i g image with the primary key could not be found
SystemException - if a system exception occurred

deleteIGImage

public void deleteIGImage(IGImage igImage)
                   throws SystemException
Deletes the i g image from the database. Also notifies the appropriate model listeners.

Specified by:
deleteIGImage in interface IGImageLocalService
Parameters:
igImage - the i g image to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface IGImageLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface IGImageLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface IGImageLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface IGImageLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getIGImage

public IGImage getIGImage(long imageId)
                   throws PortalException,
                          SystemException
Gets the i g image with the primary key.

Specified by:
getIGImage in interface IGImageLocalService
Parameters:
imageId - the primary key of the i g image to get
Returns:
the i g image
Throws:
PortalException - if a i g image with the primary key could not be found
SystemException - if a system exception occurred

getIGImageByUuidAndGroupId

public IGImage getIGImageByUuidAndGroupId(String uuid,
                                          long groupId)
                                   throws PortalException,
                                          SystemException
Gets the i g image with the UUID and group id.

Specified by:
getIGImageByUuidAndGroupId in interface IGImageLocalService
Parameters:
uuid - the UUID of i g image to get
groupId - the group id of the i g image to get
Returns:
the i g image
Throws:
PortalException - if a i g image with the UUID and group id could not be found
SystemException - if a system exception occurred

getIGImages

public List<IGImage> getIGImages(int start,
                                 int end)
                          throws SystemException
Gets a range of all the i g images.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getIGImages in interface IGImageLocalService
Parameters:
start - the lower bound of the range of i g images to return
end - the upper bound of the range of i g images to return (not inclusive)
Returns:
the range of i g images
Throws:
SystemException - if a system exception occurred

getIGImagesCount

public int getIGImagesCount()
                     throws SystemException
Gets the number of i g images.

Specified by:
getIGImagesCount in interface IGImageLocalService
Returns:
the number of i g images
Throws:
SystemException - if a system exception occurred

updateIGImage

public IGImage updateIGImage(IGImage igImage)
                      throws SystemException
Updates the i g image in the database. Also notifies the appropriate model listeners.

Specified by:
updateIGImage in interface IGImageLocalService
Parameters:
igImage - the i g image to update
Returns:
the i g image that was updated
Throws:
SystemException - if a system exception occurred

updateIGImage

public IGImage updateIGImage(IGImage igImage,
                             boolean merge)
                      throws SystemException
Updates the i g image in the database. Also notifies the appropriate model listeners.

Specified by:
updateIGImage in interface IGImageLocalService
Parameters:
igImage - the i g image to update
merge - whether to merge the i g image with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the i g image that was updated
Throws:
SystemException - if a system exception occurred

addImage

public IGImage addImage(long userId,
                        long groupId,
                        long folderId,
                        String name,
                        String description,
                        File file,
                        String contentType,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Specified by:
addImage in interface IGImageLocalService
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
Specified by:
addImage in interface IGImageLocalService
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
Specified by:
addImage in interface IGImageLocalService
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(IGImage image,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addImageResources in interface IGImageLocalService
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(IGImage image,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addImageResources in interface IGImageLocalService
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(long imageId,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addImageResources in interface IGImageLocalService
Throws:
PortalException
SystemException

addImageResources

public void addImageResources(long imageId,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addImageResources in interface IGImageLocalService
Throws:
PortalException
SystemException

deleteImage

public void deleteImage(IGImage image)
                 throws PortalException,
                        SystemException
Specified by:
deleteImage in interface IGImageLocalService
Throws:
PortalException
SystemException

deleteImage

public void deleteImage(long imageId)
                 throws PortalException,
                        SystemException
Specified by:
deleteImage in interface IGImageLocalService
Throws:
PortalException
SystemException

deleteImages

public void deleteImages(long groupId,
                         long folderId)
                  throws PortalException,
                         SystemException
Specified by:
deleteImages in interface IGImageLocalService
Throws:
PortalException
SystemException

getFoldersImagesCount

public int getFoldersImagesCount(long groupId,
                                 List<Long> folderIds)
                          throws SystemException
Specified by:
getFoldersImagesCount in interface IGImageLocalService
Throws:
SystemException

getGroupImages

public List<IGImage> getGroupImages(long groupId,
                                    int start,
                                    int end)
                             throws SystemException
Specified by:
getGroupImages in interface IGImageLocalService
Throws:
SystemException

getGroupImages

public List<IGImage> getGroupImages(long groupId,
                                    long userId,
                                    int start,
                                    int end)
                             throws SystemException
Specified by:
getGroupImages in interface IGImageLocalService
Throws:
SystemException

getGroupImagesCount

public int getGroupImagesCount(long groupId)
                        throws SystemException
Specified by:
getGroupImagesCount in interface IGImageLocalService
Throws:
SystemException

getGroupImagesCount

public int getGroupImagesCount(long groupId,
                               long userId)
                        throws SystemException
Specified by:
getGroupImagesCount in interface IGImageLocalService
Throws:
SystemException

getImage

public IGImage getImage(long imageId)
                 throws PortalException,
                        SystemException
Specified by:
getImage in interface IGImageLocalService
Throws:
PortalException
SystemException

getImageByCustom1ImageId

public IGImage getImageByCustom1ImageId(long custom1ImageId)
                                 throws PortalException,
                                        SystemException
Specified by:
getImageByCustom1ImageId in interface IGImageLocalService
Throws:
PortalException
SystemException

getImageByCustom2ImageId

public IGImage getImageByCustom2ImageId(long custom2ImageId)
                                 throws PortalException,
                                        SystemException
Specified by:
getImageByCustom2ImageId in interface IGImageLocalService
Throws:
PortalException
SystemException

getImageByFolderIdAndNameWithExtension

public IGImage getImageByFolderIdAndNameWithExtension(long groupId,
                                                      long folderId,
                                                      String nameWithExtension)
                                               throws PortalException,
                                                      SystemException
Specified by:
getImageByFolderIdAndNameWithExtension in interface IGImageLocalService
Throws:
PortalException
SystemException

getImageByLargeImageId

public IGImage getImageByLargeImageId(long largeImageId)
                               throws PortalException,
                                      SystemException
Specified by:
getImageByLargeImageId in interface IGImageLocalService
Throws:
PortalException
SystemException

getImageBySmallImageId

public IGImage getImageBySmallImageId(long smallImageId)
                               throws PortalException,
                                      SystemException
Specified by:
getImageBySmallImageId in interface IGImageLocalService
Throws:
PortalException
SystemException

getImageByUuidAndGroupId

public IGImage getImageByUuidAndGroupId(String uuid,
                                        long groupId)
                                 throws PortalException,
                                        SystemException
Specified by:
getImageByUuidAndGroupId in interface IGImageLocalService
Throws:
PortalException
SystemException

getImages

public List<IGImage> getImages(long groupId,
                               long folderId)
                        throws SystemException
Specified by:
getImages in interface IGImageLocalService
Throws:
SystemException

getImages

public List<IGImage> getImages(long groupId,
                               long folderId,
                               int start,
                               int end)
                        throws SystemException
Specified by:
getImages in interface IGImageLocalService
Throws:
SystemException

getImages

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

getImagesCount

public int getImagesCount(long groupId,
                          long folderId)
                   throws SystemException
Specified by:
getImagesCount in interface IGImageLocalService
Throws:
SystemException

getNoAssetImages

public List<IGImage> getNoAssetImages()
                               throws SystemException
Specified by:
getNoAssetImages in interface IGImageLocalService
Throws:
SystemException

updateAsset

public void updateAsset(long userId,
                        IGImage image,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        String contentType)
                 throws PortalException,
                        SystemException
Specified by:
updateAsset in interface IGImageLocalService
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
Specified by:
updateImage in interface IGImageLocalService
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
Specified by:
updateImage in interface IGImageLocalService
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
Specified by:
updateImage in interface IGImageLocalService
Throws:
PortalException
SystemException

updateSmallImage

public void updateSmallImage(long smallImageId,
                             long largeImageId)
                      throws PortalException,
                             SystemException
Specified by:
updateSmallImage in interface IGImageLocalService
Throws:
PortalException
SystemException

getWrappedIGImageLocalService

public IGImageLocalService getWrappedIGImageLocalService()

Liferay 6.0.5