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 it is generated.
Method Summary |
static AssetVocabulary |
addVocabulary(HttpPrincipal httpPrincipal,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
|
static AssetVocabulary |
addVocabulary(HttpPrincipal httpPrincipal,
String title,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
|
static void |
deleteVocabularies(HttpPrincipal httpPrincipal,
long[] vocabularyIds)
|
static List<AssetVocabulary> |
deleteVocabularies(HttpPrincipal httpPrincipal,
long[] vocabularyIds,
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> |
getGroupsVocabularies(HttpPrincipal httpPrincipal,
long[] groupIds,
String className)
|
static List<AssetVocabulary> |
getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId)
|
static List<AssetVocabulary> |
getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
boolean createDefaultVocabulary)
|
static List<AssetVocabulary> |
getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetVocabulary> |
getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
OrderByComparator obc)
|
static int |
getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
long groupId)
|
static int |
getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
long groupId,
String name)
|
static AssetVocabularyDisplay |
getGroupVocabulariesDisplay(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
boolean addDefaultVocabulary,
OrderByComparator obc)
|
static JSONObject |
getJSONGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
OrderByComparator obc)
|
static JSONObject |
getJSONGroupVocabulariesDisplay(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
boolean addDefaultVocabulary,
OrderByComparator obc)
|
static List<AssetVocabulary> |
getVocabularies(HttpPrincipal httpPrincipal,
long[] vocabularyIds)
|
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)
|
static AssetVocabulary |
updateVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId,
String title,
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
addVocabulary
public static AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal,
String title,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteVocabularies
public static void deleteVocabularies(HttpPrincipal httpPrincipal,
long[] vocabularyIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteVocabularies
public static List<AssetVocabulary> deleteVocabularies(HttpPrincipal httpPrincipal,
long[] vocabularyIds,
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
getGroupsVocabularies
public static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal,
long[] groupIds,
String className)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupVocabularies
public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupVocabularies
public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
boolean createDefaultVocabulary)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupVocabularies
public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getGroupVocabularies
public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getGroupVocabulariesCount
public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
long groupId)
throws SystemException
- Throws:
SystemException
getGroupVocabulariesCount
public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
long groupId,
String name)
throws SystemException
- Throws:
SystemException
getGroupVocabulariesDisplay
public static AssetVocabularyDisplay getGroupVocabulariesDisplay(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
boolean addDefaultVocabulary,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getJSONGroupVocabularies
public static JSONObject getJSONGroupVocabularies(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getJSONGroupVocabulariesDisplay
public static JSONObject getJSONGroupVocabulariesDisplay(HttpPrincipal httpPrincipal,
long groupId,
String name,
int start,
int end,
boolean addDefaultVocabulary,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularies
public static List<AssetVocabulary> getVocabularies(HttpPrincipal httpPrincipal,
long[] vocabularyIds)
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
updateVocabulary
public static AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal,
long vocabularyId,
String title,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException