Liferay 7.0-ce-b4

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

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

@ProviderType
public class AssetEntryServiceHttp
extends Object

Provides the 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.

See Also:
AssetEntryServiceSoap, HttpPrincipal, AssetEntryServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetEntryServiceHttp()
           
 
Method Summary
static AssetEntry fetchEntry(HttpPrincipal httpPrincipal, long entryId)
           
static List<AssetEntry> getCompanyEntries(HttpPrincipal httpPrincipal, long companyId, int start, int end)
           
static int getCompanyEntriesCount(HttpPrincipal httpPrincipal, long companyId)
           
static List<AssetEntry> getEntries(HttpPrincipal httpPrincipal, AssetEntryQuery entryQuery)
           
static int getEntriesCount(HttpPrincipal httpPrincipal, AssetEntryQuery entryQuery)
           
static AssetEntry getEntry(HttpPrincipal httpPrincipal, long entryId)
           
static AssetEntry incrementViewCounter(HttpPrincipal httpPrincipal, String className, long classPK)
           
static AssetEntry updateEntry(HttpPrincipal httpPrincipal, long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Double priority)
           
static AssetEntry updateEntry(HttpPrincipal httpPrincipal, long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
           
static AssetEntry updateEntry(HttpPrincipal httpPrincipal, long groupId, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date publishDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
           
static AssetEntry updateEntry(HttpPrincipal httpPrincipal, long groupId, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, 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

fetchEntry

public static AssetEntry fetchEntry(HttpPrincipal httpPrincipal,
                                    long entryId)
                             throws PortalException
Throws:
PortalException

getCompanyEntries

public static List<AssetEntry> getCompanyEntries(HttpPrincipal httpPrincipal,
                                                 long companyId,
                                                 int start,
                                                 int end)

getCompanyEntriesCount

public static int getCompanyEntriesCount(HttpPrincipal httpPrincipal,
                                         long companyId)

getEntries

public static List<AssetEntry> getEntries(HttpPrincipal httpPrincipal,
                                          AssetEntryQuery entryQuery)
                                   throws PortalException
Throws:
PortalException

getEntriesCount

public static int getEntriesCount(HttpPrincipal httpPrincipal,
                                  AssetEntryQuery entryQuery)
                           throws PortalException
Throws:
PortalException

getEntry

public static AssetEntry getEntry(HttpPrincipal httpPrincipal,
                                  long entryId)
                           throws PortalException
Throws:
PortalException

incrementViewCounter

public static AssetEntry incrementViewCounter(HttpPrincipal httpPrincipal,
                                              String className,
                                              long classPK)
                                       throws PortalException
Throws:
PortalException

updateEntry

public static AssetEntry updateEntry(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     Date createDate,
                                     Date modifiedDate,
                                     String className,
                                     long classPK,
                                     String classUuid,
                                     long classTypeId,
                                     long[] categoryIds,
                                     String[] tagNames,
                                     boolean visible,
                                     Date startDate,
                                     Date endDate,
                                     Date expirationDate,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String summary,
                                     String url,
                                     String layoutUuid,
                                     int height,
                                     int width,
                                     Double priority)
                              throws PortalException
Throws:
PortalException

updateEntry

public static AssetEntry updateEntry(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     Date createDate,
                                     Date modifiedDate,
                                     String className,
                                     long classPK,
                                     String classUuid,
                                     long classTypeId,
                                     long[] categoryIds,
                                     String[] tagNames,
                                     boolean visible,
                                     Date startDate,
                                     Date endDate,
                                     Date expirationDate,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String summary,
                                     String url,
                                     String layoutUuid,
                                     int height,
                                     int width,
                                     Integer priority,
                                     boolean sync)
                              throws PortalException
Throws:
PortalException

updateEntry

public static AssetEntry updateEntry(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     String className,
                                     long classPK,
                                     String classUuid,
                                     long classTypeId,
                                     long[] categoryIds,
                                     String[] tagNames,
                                     boolean visible,
                                     Date startDate,
                                     Date endDate,
                                     Date publishDate,
                                     Date expirationDate,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String summary,
                                     String url,
                                     String layoutUuid,
                                     int height,
                                     int width,
                                     Integer priority,
                                     boolean sync)
                              throws PortalException
Throws:
PortalException

updateEntry

public static AssetEntry updateEntry(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     String className,
                                     long classPK,
                                     String classUuid,
                                     long classTypeId,
                                     long[] categoryIds,
                                     String[] tagNames,
                                     boolean visible,
                                     Date startDate,
                                     Date endDate,
                                     Date expirationDate,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String summary,
                                     String url,
                                     String layoutUuid,
                                     int height,
                                     int width,
                                     Integer priority,
                                     boolean sync)
                              throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4