com.liferay.portlet.asset.service.http
Class AssetTagServiceHttp
java.lang.Object
com.liferay.portlet.asset.service.http.AssetTagServiceHttp
public class AssetTagServiceHttp
- extends 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.
- See Also:
AssetTagServiceSoap
,
HttpPrincipal
,
AssetTagServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
Method Summary |
static AssetTag |
addTag(HttpPrincipal httpPrincipal,
String name,
String[] tagProperties,
ServiceContext serviceContext)
|
static void |
deleteTag(HttpPrincipal httpPrincipal,
long tagId)
|
static List<AssetTag> |
getGroupTags(HttpPrincipal httpPrincipal,
long groupId)
|
static AssetTag |
getTag(HttpPrincipal httpPrincipal,
long tagId)
|
static List<AssetTag> |
getTags(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
String name)
|
static List<AssetTag> |
getTags(HttpPrincipal httpPrincipal,
String className,
long classPK)
|
static void |
mergeTags(HttpPrincipal httpPrincipal,
long fromTagId,
long toTagId)
|
static JSONArray |
search(HttpPrincipal httpPrincipal,
long groupId,
String name,
String[] tagProperties,
int start,
int end)
|
static AssetTag |
updateTag(HttpPrincipal httpPrincipal,
long tagId,
String name,
String[] tagProperties,
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 AssetTag addTag(HttpPrincipal httpPrincipal,
String name,
String[] tagProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteTag
public static void deleteTag(HttpPrincipal httpPrincipal,
long tagId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupTags
public static List<AssetTag> getGroupTags(HttpPrincipal httpPrincipal,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTag
public static AssetTag getTag(HttpPrincipal httpPrincipal,
long tagId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTags
public static List<AssetTag> getTags(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
String name)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTags
public static List<AssetTag> getTags(HttpPrincipal httpPrincipal,
String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
mergeTags
public static void mergeTags(HttpPrincipal httpPrincipal,
long fromTagId,
long toTagId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public static JSONArray search(HttpPrincipal httpPrincipal,
long groupId,
String name,
String[] tagProperties,
int start,
int end)
throws SystemException
- Throws:
SystemException
updateTag
public static AssetTag updateTag(HttpPrincipal httpPrincipal,
long tagId,
String name,
String[] tagProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException