com.liferay.portlet.asset.service.http
Class AssetEntryServiceHttp
java.lang.Object
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- {$generated.description}
|
Method Summary |
static com.liferay.asset.kernel.model.AssetEntry |
fetchEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long entryId)
|
static List<com.liferay.asset.kernel.model.AssetEntry> |
getCompanyEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
int start,
int end)
|
static int |
getCompanyEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId)
|
static List<com.liferay.asset.kernel.model.AssetEntry> |
getEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
|
static int |
getEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
|
static com.liferay.asset.kernel.model.AssetEntry |
getEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long entryId)
|
static com.liferay.asset.kernel.model.AssetEntry |
incrementViewCounter(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String className,
long classPK)
|
static com.liferay.asset.kernel.model.AssetEntry |
updateEntry(com.liferay.portal.kernel.security.auth.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 com.liferay.asset.kernel.model.AssetEntry |
updateEntry(com.liferay.portal.kernel.security.auth.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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetEntryServiceHttp
public AssetEntryServiceHttp()
fetchEntry
public static com.liferay.asset.kernel.model.AssetEntry fetchEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long entryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCompanyEntries
public static List<com.liferay.asset.kernel.model.AssetEntry> getCompanyEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
int start,
int end)
getCompanyEntriesCount
public static int getCompanyEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId)
getEntries
public static List<com.liferay.asset.kernel.model.AssetEntry> getEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getEntriesCount
public static int getEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getEntry
public static com.liferay.asset.kernel.model.AssetEntry getEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long entryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
incrementViewCounter
public static com.liferay.asset.kernel.model.AssetEntry incrementViewCounter(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateEntry
public static com.liferay.asset.kernel.model.AssetEntry updateEntry(com.liferay.portal.kernel.security.auth.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 com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateEntry
public static com.liferay.asset.kernel.model.AssetEntry updateEntry(com.liferay.portal.kernel.security.auth.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 com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException