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

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 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 void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
           
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 java.lang.String getCompanyEntriesRSS(HttpPrincipal httpPrincipal, long companyId, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String tagURL)
           
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 java.lang.String getEntriesRSS(HttpPrincipal httpPrincipal, com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String tagURL)
           
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, java.lang.String portletId, java.lang.String keywords, java.lang.String languageId, int start, int end)
           
static int searchEntryDisplaysCount(HttpPrincipal httpPrincipal, long companyId, java.lang.String portletId, 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, 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, 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

deleteEntry

public static void deleteEntry(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

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

getCompanyEntriesRSS

public static java.lang.String getCompanyEntriesRSS(HttpPrincipal httpPrincipal,
                                                    long companyId,
                                                    int max,
                                                    java.lang.String type,
                                                    double version,
                                                    java.lang.String displayStyle,
                                                    java.lang.String feedURL,
                                                    java.lang.String tagURL)
                                             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

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

getEntriesRSS

public static java.lang.String getEntriesRSS(HttpPrincipal httpPrincipal,
                                             com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
                                             java.lang.String type,
                                             double version,
                                             java.lang.String displayStyle,
                                             java.lang.String feedURL,
                                             java.lang.String tagURL)
                                      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.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

searchEntryDisplays

public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(HttpPrincipal httpPrincipal,
                                                                                      long companyId,
                                                                                      java.lang.String portletId,
                                                                                      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,
                                           java.lang.String portletId,
                                           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,
                                                                     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,
                                                                     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