Class AssetVocabularyServiceHttp
Object
com.liferay.portlet.asset.service.http.AssetVocabularyServiceHttp
Provides the 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.
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.asset.kernel.model.AssetVocabulary
addVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.asset.kernel.model.AssetVocabulary
addVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, String title, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.asset.kernel.model.AssetVocabulary
addVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.asset.kernel.model.AssetVocabulary
addVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.asset.kernel.model.AssetVocabulary
addVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, String name, String title, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) static List<com.liferay.asset.kernel.model.AssetVocabulary>
deleteVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] vocabularyIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId) static com.liferay.asset.kernel.model.AssetVocabulary
fetchVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId) static com.liferay.asset.kernel.model.AssetVocabulary
getAssetVocabularyByExternalReferenceCode
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String externalReferenceCode) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupsVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupsVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String className) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupsVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, String className, long classTypePK) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, int[] visibilityTypes) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean createDefaultVocabulary) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean createDefaultVocabulary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int visibilityType) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) static List<com.liferay.asset.kernel.model.AssetVocabulary>
getGroupVocabularies
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) static int
getGroupVocabulariesCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) static int
getGroupVocabulariesCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) static int
getGroupVocabulariesCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name) static com.liferay.asset.kernel.model.AssetVocabularyDisplay
getGroupVocabulariesDisplay
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, boolean addDefaultVocabulary, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) static com.liferay.asset.kernel.model.AssetVocabularyDisplay
getGroupVocabulariesDisplay
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) static com.liferay.asset.kernel.model.AssetVocabulary
getVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId) static com.liferay.asset.kernel.model.AssetVocabularyDisplay
searchVocabulariesDisplay
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, boolean addDefaultVocabulary, int start, int end) static com.liferay.asset.kernel.model.AssetVocabularyDisplay
searchVocabulariesDisplay
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, boolean addDefaultVocabulary, int start, int end, com.liferay.portal.kernel.search.Sort sort) static com.liferay.asset.kernel.model.AssetVocabulary
updateVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId, String title, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.asset.kernel.model.AssetVocabulary
updateVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings) static com.liferay.asset.kernel.model.AssetVocabulary
updateVocabulary
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, int visibilityType)
-
Constructor Details
-
AssetVocabularyServiceHttp
public AssetVocabularyServiceHttp()
-
-
Method Details
-
addVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, String title, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, String name, String title, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> deleteVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] vocabularyIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteVocabulary
public static void deleteVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary fetchVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAssetVocabularyByExternalReferenceCode
public static com.liferay.asset.kernel.model.AssetVocabulary getAssetVocabularyByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupsVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupsVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) -
getGroupsVocabularies
-
getGroupsVocabularies
-
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean createDefaultVocabulary) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean createDefaultVocabulary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int visibilityType) -
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) -
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) -
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) -
getGroupVocabularies
public static List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, int[] visibilityTypes) -
getGroupVocabulariesCount
public static int getGroupVocabulariesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) -
getGroupVocabulariesCount
public static int getGroupVocabulariesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name) -
getGroupVocabulariesCount
public static int getGroupVocabulariesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) -
getGroupVocabulariesDisplay
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, boolean addDefaultVocabulary, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupVocabulariesDisplay
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetVocabulary> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary getVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchVocabulariesDisplay
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay searchVocabulariesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, boolean addDefaultVocabulary, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchVocabulariesDisplay
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay searchVocabulariesDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String title, boolean addDefaultVocabulary, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary updateVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary updateVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, int visibilityType) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateVocabulary
public static com.liferay.asset.kernel.model.AssetVocabulary updateVocabulary(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long vocabularyId, String title, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-