com.liferay.portlet.tags.service.http
Class TagsAssetServiceHttp

java.lang.Object
  extended bycom.liferay.portlet.tags.service.http.TagsAssetServiceHttp

public class TagsAssetServiceHttp
extends java.lang.Object

View Source

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

This class provides a HTTP utility for the com.liferay.portlet.tags.service.TagsAssetServiceUtil 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 com.liferay.portal.security.auth.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.

Author:
Brian Wing Shun Chan
See Also:
HttpPrincipal, TagsAssetServiceUtil, TagsAssetServiceSoap

Constructor Summary
TagsAssetServiceHttp()
           
 
Method Summary
static void deleteAsset(HttpPrincipal httpPrincipal, long assetId)
           
static com.liferay.portlet.tags.model.TagsAsset getAsset(HttpPrincipal httpPrincipal, long assetId)
           
static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(HttpPrincipal httpPrincipal, java.lang.String languageId)
           
static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(HttpPrincipal httpPrincipal, long companyId, int begin, int end, java.lang.String languageId)
           
static java.util.List getCompanyAssets(HttpPrincipal httpPrincipal, long companyId, int begin, int end)
           
static int getCompanyAssetsCount(HttpPrincipal httpPrincipal, long companyId)
           
static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(HttpPrincipal httpPrincipal, long companyId, java.lang.String portletId, java.lang.String keywords, java.lang.String languageId, int begin, int end)
           
static int searchAssetDisplaysCount(HttpPrincipal httpPrincipal, long companyId, java.lang.String portletId, java.lang.String keywords, java.lang.String languageId)
           
static com.liferay.portlet.tags.model.TagsAsset updateAsset(HttpPrincipal httpPrincipal, java.lang.String className, long classPK, java.lang.String[] entryNames, java.util.Date startDate, java.util.Date endDate, java.util.Date publishDate, java.util.Date expirationDate, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String summary, java.lang.String url, int height, int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagsAssetServiceHttp

public TagsAssetServiceHttp()
Method Detail

deleteAsset

public static void deleteAsset(HttpPrincipal httpPrincipal,
                               long assetId)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getAsset

public static com.liferay.portlet.tags.model.TagsAsset getAsset(HttpPrincipal httpPrincipal,
                                                                long assetId)
                                                         throws com.liferay.portal.SystemException,
                                                                com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getAssetTypes

public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(HttpPrincipal httpPrincipal,
                                                                           java.lang.String languageId)
                                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyAssetDisplays

public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(HttpPrincipal httpPrincipal,
                                                                                        long companyId,
                                                                                        int begin,
                                                                                        int end,
                                                                                        java.lang.String languageId)
                                                                                 throws com.liferay.portal.SystemException,
                                                                                        com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getCompanyAssets

public static java.util.List getCompanyAssets(HttpPrincipal httpPrincipal,
                                              long companyId,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyAssetsCount

public static int getCompanyAssetsCount(HttpPrincipal httpPrincipal,
                                        long companyId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

searchAssetDisplays

public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(HttpPrincipal httpPrincipal,
                                                                                    long companyId,
                                                                                    java.lang.String portletId,
                                                                                    java.lang.String keywords,
                                                                                    java.lang.String languageId,
                                                                                    int begin,
                                                                                    int end)
                                                                             throws com.liferay.portal.SystemException,
                                                                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

searchAssetDisplaysCount

public static int searchAssetDisplaysCount(HttpPrincipal httpPrincipal,
                                           long companyId,
                                           java.lang.String portletId,
                                           java.lang.String keywords,
                                           java.lang.String languageId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateAsset

public static com.liferay.portlet.tags.model.TagsAsset updateAsset(HttpPrincipal httpPrincipal,
                                                                   java.lang.String className,
                                                                   long classPK,
                                                                   java.lang.String[] entryNames,
                                                                   java.util.Date startDate,
                                                                   java.util.Date endDate,
                                                                   java.util.Date publishDate,
                                                                   java.util.Date expirationDate,
                                                                   java.lang.String mimeType,
                                                                   java.lang.String title,
                                                                   java.lang.String description,
                                                                   java.lang.String summary,
                                                                   java.lang.String url,
                                                                   int height,
                                                                   int width)
                                                            throws com.liferay.portal.SystemException,
                                                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException