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

java.lang.Object
  extended by com.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 java.lang.String getAssetsRSS(HttpPrincipal httpPrincipal, long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds, boolean andOperator, java.lang.String orderByCol1, java.lang.String orderByCol2, java.lang.String orderByType1, java.lang.String orderByType2, boolean excludeZeroViewCount, java.util.Date publishDate, java.util.Date expirationDate, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL)
           
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<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(HttpPrincipal httpPrincipal, long companyId, int begin, int end)
           
static int getCompanyAssetsCount(HttpPrincipal httpPrincipal, long companyId)
           
static java.lang.String getCompanyAssetsRSS(HttpPrincipal httpPrincipal, long companyId, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL)
           
static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
           
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, long groupId, 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, java.lang.Integer priority)
           
 
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

getAssetsRSS

public static java.lang.String getAssetsRSS(HttpPrincipal httpPrincipal,
                                            long groupId,
                                            long[] classNameIds,
                                            long[] entryIds,
                                            long[] notEntryIds,
                                            boolean andOperator,
                                            java.lang.String orderByCol1,
                                            java.lang.String orderByCol2,
                                            java.lang.String orderByType1,
                                            java.lang.String orderByType2,
                                            boolean excludeZeroViewCount,
                                            java.util.Date publishDate,
                                            java.util.Date expirationDate,
                                            int max,
                                            java.lang.String type,
                                            double version,
                                            java.lang.String displayStyle,
                                            java.lang.String feedURL,
                                            java.lang.String entryURL)
                                     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<com.liferay.portlet.tags.model.TagsAsset> 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

getCompanyAssetsRSS

public static java.lang.String getCompanyAssetsRSS(HttpPrincipal httpPrincipal,
                                                   long companyId,
                                                   int max,
                                                   java.lang.String type,
                                                   double version,
                                                   java.lang.String displayStyle,
                                                   java.lang.String feedURL,
                                                   java.lang.String entryURL)
                                            throws com.liferay.portal.SystemException,
                                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

incrementViewCounter

public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(HttpPrincipal httpPrincipal,
                                                                            java.lang.String className,
                                                                            long classPK)
                                                                     throws com.liferay.portal.SystemException,
                                                                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

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,
                                                                   long groupId,
                                                                   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,
                                                                   java.lang.Integer priority)
                                                            throws com.liferay.portal.SystemException,
                                                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException