com.liferay.portlet.asset.service.http
Class AssetTagServiceHttp
java.lang.Object
com.liferay.portlet.asset.service.http.AssetTagServiceHttp
public class AssetTagServiceHttp
- extends java.lang.Object
This class provides a HTTP utility for the
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.
- Author:
- Brian Wing Shun Chan
- See Also:
AssetTagServiceSoap,
HttpPrincipal,
AssetTagServiceUtil- Generated:
|
Method Summary |
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.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 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 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetTagServiceHttp
public AssetTagServiceHttp()
addTag
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteTag
public static void deleteTag(HttpPrincipal httpPrincipal,
long tagId)
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
deleteTags
public static void deleteTags(HttpPrincipal httpPrincipal,
long[] tagIds)
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
getGroupsTags
public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(HttpPrincipal httpPrincipal,
long[] groupIds)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupTags
public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(HttpPrincipal httpPrincipal,
long groupId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupTags
public 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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupTagsCount
public static int getGroupTagsCount(HttpPrincipal httpPrincipal,
long groupId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getJSONGroupTags
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getTag
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getTags
public 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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getTags
public 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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getTags
public 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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getTags
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getTagsCount
public static int getTagsCount(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getTagsCount
public static int getTagsCount(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getTagsCount
public static int getTagsCount(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String[] tagProperties)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
mergeTags
public static void mergeTags(HttpPrincipal httpPrincipal,
long fromTagId,
long toTagId,
boolean overrideProperties)
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
mergeTags
public static void mergeTags(HttpPrincipal httpPrincipal,
long[] fromTagIds,
long toTagId,
boolean overrideProperties)
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
search
public 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
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateTag
public 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException