public class AssetTagServiceHttp
extends java.lang.Object
AssetTagServiceUtil 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.
AssetTagServiceSoap,
HttpPrincipal,
AssetTagServiceUtil| Constructor and Description |
|---|
AssetTagServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portlet.asset.model.AssetTag |
addTag(HttpPrincipal httpPrincipal,
java.lang.String name,
java.lang.String[] tagProperties,
com.liferay.portal.service.ServiceContext serviceContext) |
static void |
deleteTag(HttpPrincipal httpPrincipal,
long tagId) |
static void |
deleteTags(HttpPrincipal httpPrincipal,
long[] tagIds) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getGroupsTags(HttpPrincipal httpPrincipal,
long[] groupIds) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getGroupTags(HttpPrincipal httpPrincipal,
long groupId) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getGroupTags(HttpPrincipal httpPrincipal,
long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static int |
getGroupTagsCount(HttpPrincipal httpPrincipal,
long groupId) |
static com.liferay.portlet.asset.model.AssetTagDisplay |
getGroupTagsDisplay(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
int start,
int end) |
static com.liferay.portal.kernel.json.JSONObject |
getJSONGroupTags(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
int start,
int end) |
static com.liferay.portlet.asset.model.AssetTag |
getTag(HttpPrincipal httpPrincipal,
long tagId) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(HttpPrincipal httpPrincipal,
long[] groupIds,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
java.lang.String name) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end) |
static java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(HttpPrincipal httpPrincipal,
java.lang.String className,
long classPK) |
static int |
getTagsCount(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
java.lang.String name) |
static int |
getTagsCount(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name) |
static int |
getTagsCount(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String[] tagProperties) |
static void |
mergeTags(HttpPrincipal httpPrincipal,
long[] fromTagIds,
long toTagId,
boolean overrideProperties) |
static void |
mergeTags(HttpPrincipal httpPrincipal,
long fromTagId,
long toTagId,
boolean overrideProperties) |
static com.liferay.portal.kernel.json.JSONArray |
search(HttpPrincipal httpPrincipal,
long[] groupIds,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end) |
static com.liferay.portal.kernel.json.JSONArray |
search(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end) |
static com.liferay.portlet.asset.model.AssetTag |
updateTag(HttpPrincipal httpPrincipal,
long tagId,
java.lang.String name,
java.lang.String[] tagProperties,
com.liferay.portal.service.ServiceContext serviceContext) |
public static com.liferay.portlet.asset.model.AssetTag addTag(HttpPrincipal httpPrincipal, java.lang.String name, java.lang.String[] tagProperties, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteTag(HttpPrincipal httpPrincipal, long tagId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteTags(HttpPrincipal httpPrincipal, long[] tagIds) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(HttpPrincipal httpPrincipal, long[] groupIds) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(HttpPrincipal httpPrincipal, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getGroupTagsCount(HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetTag getTag(HttpPrincipal httpPrincipal, long tagId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, java.lang.String[] tagProperties, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name, java.lang.String[] tagProperties, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(HttpPrincipal httpPrincipal, java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static int getTagsCount(HttpPrincipal httpPrincipal, long groupId, long classNameId, java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getTagsCount(HttpPrincipal httpPrincipal, long groupId, java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getTagsCount(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, java.lang.String[] tagProperties) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId, long toTagId, boolean overrideProperties) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void mergeTags(HttpPrincipal httpPrincipal, long[] fromTagIds, long toTagId, boolean overrideProperties) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONArray search(HttpPrincipal httpPrincipal, long groupId, java.lang.String name, java.lang.String[] tagProperties, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.kernel.json.JSONArray search(HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name, java.lang.String[] tagProperties, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.asset.model.AssetTag updateTag(HttpPrincipal httpPrincipal, long tagId, java.lang.String name, java.lang.String[] tagProperties, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException