Liferay 6.0.5

com.liferay.portlet.imagegallery.service.http
Class IGImageServiceHttp

java.lang.Object
  extended by com.liferay.portlet.imagegallery.service.http.IGImageServiceHttp

public class IGImageServiceHttp
extends Object

This class provides a HTTP utility for the IGImageServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

See Also:
IGImageServiceSoap, HttpPrincipal, IGImageServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
IGImageServiceHttp()
           
 
Method Summary
static IGImage addImage(HttpPrincipal httpPrincipal, long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
static void deleteImage(HttpPrincipal httpPrincipal, long imageId)
           
static void deleteImageByFolderIdAndNameWithExtension(HttpPrincipal httpPrincipal, long groupId, long folderId, String nameWithExtension)
           
static List<IGImage> getGroupImages(HttpPrincipal httpPrincipal, long groupId, long userId, int start, int end)
           
static int getGroupImagesCount(HttpPrincipal httpPrincipal, long groupId, long userId)
           
static IGImage getImage(HttpPrincipal httpPrincipal, long imageId)
           
static IGImage getImageByFolderIdAndNameWithExtension(HttpPrincipal httpPrincipal, long groupId, long folderId, String nameWithExtension)
           
static IGImage getImageByLargeImageId(HttpPrincipal httpPrincipal, long largeImageId)
           
static IGImage getImageBySmallImageId(HttpPrincipal httpPrincipal, long smallImageId)
           
static List<IGImage> getImages(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static List<IGImage> getImages(HttpPrincipal httpPrincipal, long groupId, long folderId, int start, int end)
           
static int getImagesCount(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static IGImage updateImage(HttpPrincipal httpPrincipal, long imageId, long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGImageServiceHttp

public IGImageServiceHttp()
Method Detail

addImage

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

deleteImage

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

deleteImageByFolderIdAndNameWithExtension

public static void deleteImageByFolderIdAndNameWithExtension(HttpPrincipal httpPrincipal,
                                                             long groupId,
                                                             long folderId,
                                                             String nameWithExtension)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getGroupImages

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

getGroupImagesCount

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

getImage

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

getImageByFolderIdAndNameWithExtension

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

getImageByLargeImageId

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

getImageBySmallImageId

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

getImages

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

getImages

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

getImagesCount

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

updateImage

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

Liferay 6.0.5