com.liferay.portlet.asset.service.http
Class AssetVocabularyServiceHttp
java.lang.Object
com.liferay.portlet.asset.service.http.AssetVocabularyServiceHttp
public class AssetVocabularyServiceHttp
- extends Object
This class provides a HTTP utility for the
AssetVocabularyServiceUtil
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:
AssetVocabularyServiceSoap
,
HttpPrincipal
,
AssetVocabularyServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
Method Summary |
static AssetVocabulary |
addVocabulary(HttpPrincipal httpPrincipal,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
|
static void |
deleteVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId)
|
static List<AssetVocabulary> |
getCompanyVocabularies(HttpPrincipal httpPrincipal,
long companyId)
|
static List<AssetVocabulary> |
getGroupsVocabularies(HttpPrincipal httpPrincipal,
long[] groupIds)
|
static List<AssetVocabulary> |
getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId)
|
static AssetVocabulary |
getVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId)
|
static AssetVocabulary |
updateVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetVocabularyServiceHttp
public AssetVocabularyServiceHttp()
addVocabulary
public static AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteVocabulary
public static void deleteVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyVocabularies
public static List<AssetVocabulary> getCompanyVocabularies(HttpPrincipal httpPrincipal,
long companyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupsVocabularies
public static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal,
long[] groupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupVocabularies
public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabulary
public static AssetVocabulary getVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateVocabulary
public static AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException