com.liferay.portlet.asset.service.http
Class AssetEntryServiceHttp

java.lang.Object
  extended by com.liferay.portlet.asset.service.http.AssetEntryServiceHttp

public class AssetEntryServiceHttp
extends java.lang.Object

This class provides a HTTP utility for the AssetEntryServiceUtil 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.

Author:
Brian Wing Shun Chan
See Also:
AssetEntryServiceSoap, HttpPrincipal, AssetEntryServiceUtil
Generated:

Constructor Summary
AssetEntryServiceHttp()
           
 
Method Summary
static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(HttpPrincipal httpPrincipal, long companyId, int start, int end)
           
static int getCompanyEntriesCount(HttpPrincipal httpPrincipal, long companyId)
           
static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(HttpPrincipal httpPrincipal, long companyId, int start, int end, java.lang.String languageId)
           
static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(HttpPrincipal httpPrincipal, com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
           
static int getEntriesCount(HttpPrincipal httpPrincipal, com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
           
static com.liferay.portlet.asset.model.AssetEntry getEntry(HttpPrincipal httpPrincipal, long entryId)
           
static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
           
static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(HttpPrincipal httpPrincipal, long companyId, long[] groupIds, java.lang.String className, java.lang.String keywords, java.lang.String languageId, int start, int end)
           
static int searchEntryDisplaysCount(HttpPrincipal httpPrincipal, long companyId, long[] groupIds, java.lang.String className, java.lang.String keywords, java.lang.String languageId)
           
static com.liferay.portlet.asset.model.AssetEntry updateEntry(HttpPrincipal httpPrincipal, long groupId, java.lang.String className, long classPK, java.lang.String classUuid, long classTypeId, long[] categoryIds, java.lang.String[] tagNames, boolean visible, 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, java.lang.String layoutUuid, int height, int width, java.lang.Integer priority, boolean sync)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetEntryServiceHttp

public AssetEntryServiceHttp()
Method Detail

getCompanyEntries

public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(HttpPrincipal httpPrincipal,
                                                                                           long companyId,
                                                                                           int start,
                                                                                           int end)
                                                                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCompanyEntriesCount

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

getCompanyEntryDisplays

public static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(HttpPrincipal httpPrincipal,
                                                                                          long companyId,
                                                                                          int start,
                                                                                          int end,
                                                                                          java.lang.String languageId)
                                                                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getEntries

public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(HttpPrincipal httpPrincipal,
                                                                                    com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
                                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntriesCount

public static int getEntriesCount(HttpPrincipal httpPrincipal,
                                  com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntry

public static com.liferay.portlet.asset.model.AssetEntry getEntry(HttpPrincipal httpPrincipal,
                                                                  long entryId)
                                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

incrementViewCounter

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

searchEntryDisplays

public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(HttpPrincipal httpPrincipal,
                                                                                      long companyId,
                                                                                      long[] groupIds,
                                                                                      java.lang.String className,
                                                                                      java.lang.String keywords,
                                                                                      java.lang.String languageId,
                                                                                      int start,
                                                                                      int end)
                                                                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

searchEntryDisplaysCount

public static int searchEntryDisplaysCount(HttpPrincipal httpPrincipal,
                                           long companyId,
                                           long[] groupIds,
                                           java.lang.String className,
                                           java.lang.String keywords,
                                           java.lang.String languageId)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateEntry

public static com.liferay.portlet.asset.model.AssetEntry updateEntry(HttpPrincipal httpPrincipal,
                                                                     long groupId,
                                                                     java.lang.String className,
                                                                     long classPK,
                                                                     java.lang.String classUuid,
                                                                     long classTypeId,
                                                                     long[] categoryIds,
                                                                     java.lang.String[] tagNames,
                                                                     boolean visible,
                                                                     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,
                                                                     java.lang.String layoutUuid,
                                                                     int height,
                                                                     int width,
                                                                     java.lang.Integer priority,
                                                                     boolean sync)
                                                              throws com.liferay.portal.kernel.exception.PortalException,
                                                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException