com.liferay.portlet.asset.service.http.AssetVocabularyServiceSoap Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portlet.asset.service.http;
import aQute.bnd.annotation.ProviderType;
import com.liferay.asset.kernel.service.AssetVocabularyServiceUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.LocalizationUtil;
import java.rmi.RemoteException;
import java.util.Locale;
import java.util.Map;
/**
* Provides the SOAP utility for the
* AssetVocabularyServiceUtil
service
* utility. The static methods of this class call the same methods of the
* service utility. However, the signatures are different because it is
* difficult for SOAP to support certain types.
*
*
* ServiceBuilder follows certain rules in translating the methods. For example,
* if the method in the service utility returns a java.util.List
,
* that is translated to an array of
* com.liferay.asset.kernel.model.AssetVocabularySoap
. If the method in the
* service utility returns a
* com.liferay.asset.kernel.model.AssetVocabulary
, that is translated to a
* com.liferay.asset.kernel.model.AssetVocabularySoap
. Methods that SOAP
* cannot safely wire are skipped.
*
*
*
* The benefits of using the SOAP utility is that it is cross platform
* compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
* even Perl, to call the generated services. One drawback of SOAP is that it is
* slow because it needs to serialize all calls into a text format (XML).
*
*
*
* You can see a list of services at http://localhost:8080/api/axis. Set the
* property axis.servlet.hosts.allowed in portal.properties to configure
* security.
*
*
*
* The SOAP utility is only generated for remote services.
*
*
* @author Brian Wing Shun Chan
* @see AssetVocabularyServiceHttp
* @generated
*/
@ProviderType
public class AssetVocabularyServiceSoap {
public static com.liferay.asset.kernel.model.AssetVocabularySoap
addVocabulary(
long groupId, String title, String[] titleMapLanguageIds,
String[] titleMapValues, String[] descriptionMapLanguageIds,
String[] descriptionMapValues, String settings,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
Map titleMap = LocalizationUtil.getLocalizationMap(
titleMapLanguageIds, titleMapValues);
Map descriptionMap =
LocalizationUtil.getLocalizationMap(
descriptionMapLanguageIds, descriptionMapValues);
com.liferay.asset.kernel.model.AssetVocabulary returnValue =
AssetVocabularyServiceUtil.addVocabulary(
groupId, title, titleMap, descriptionMap, settings,
serviceContext);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap
addVocabulary(
long groupId, String title,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
com.liferay.asset.kernel.model.AssetVocabulary returnValue =
AssetVocabularyServiceUtil.addVocabulary(
groupId, title, serviceContext);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
deleteVocabularies(
long[] vocabularyIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.deleteVocabularies(
vocabularyIds, serviceContext);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static void deleteVocabulary(long vocabularyId)
throws RemoteException {
try {
AssetVocabularyServiceUtil.deleteVocabulary(vocabularyId);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap
fetchVocabulary(long vocabularyId)
throws RemoteException {
try {
com.liferay.asset.kernel.model.AssetVocabulary returnValue =
AssetVocabularyServiceUtil.fetchVocabulary(vocabularyId);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* @deprecated As of Wilberforce (7.0.x), with no direct replacement
*/
@Deprecated
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getCompanyVocabularies(long companyId)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getCompanyVocabularies(
companyId);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupsVocabularies(long[] groupIds)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupsVocabularies(
groupIds);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupsVocabularies(long[] groupIds, String className)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupsVocabularies(
groupIds, className);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupsVocabularies(
long[] groupIds, String className, long classTypePK)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupsVocabularies(
groupIds, className, classTypePK);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupVocabularies(long groupId)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupVocabularies(
groupId);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupVocabularies(long groupId, boolean createDefaultVocabulary)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupVocabularies(
groupId, createDefaultVocabulary);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupVocabularies(
long groupId, boolean createDefaultVocabulary, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator
obc)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupVocabularies(
groupId, createDefaultVocabulary, start, end, obc);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupVocabularies(
long groupId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
obc)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupVocabularies(
groupId, start, end, obc);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupVocabularies(
long groupId, String name, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
obc)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupVocabularies(
groupId, name, start, end, obc);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getGroupVocabularies(long[] groupIds)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getGroupVocabularies(
groupIds);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static int getGroupVocabulariesCount(long groupId)
throws RemoteException {
try {
int returnValue =
AssetVocabularyServiceUtil.getGroupVocabulariesCount(groupId);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static int getGroupVocabulariesCount(long groupId, String name)
throws RemoteException {
try {
int returnValue =
AssetVocabularyServiceUtil.getGroupVocabulariesCount(
groupId, name);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static int getGroupVocabulariesCount(long[] groupIds)
throws RemoteException {
try {
int returnValue =
AssetVocabularyServiceUtil.getGroupVocabulariesCount(groupIds);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay
getGroupVocabulariesDisplay(
long groupId, String name, int start, int end,
boolean addDefaultVocabulary,
com.liferay.portal.kernel.util.OrderByComparator
obc)
throws RemoteException {
try {
com.liferay.asset.kernel.model.AssetVocabularyDisplay returnValue =
AssetVocabularyServiceUtil.getGroupVocabulariesDisplay(
groupId, name, start, end, addDefaultVocabulary, obc);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay
getGroupVocabulariesDisplay(
long groupId, String name, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
obc)
throws RemoteException {
try {
com.liferay.asset.kernel.model.AssetVocabularyDisplay returnValue =
AssetVocabularyServiceUtil.getGroupVocabulariesDisplay(
groupId, name, start, end, obc);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* @deprecated As of Wilberforce (7.0.x), replaced by {@link
AssetUtil#filterVocabularyIds(PermissionChecker, long[])}
*/
@Deprecated
public static com.liferay.asset.kernel.model.AssetVocabularySoap[]
getVocabularies(long[] vocabularyIds)
throws RemoteException {
try {
java.util.List
returnValue = AssetVocabularyServiceUtil.getVocabularies(
vocabularyIds);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModels(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap
getVocabulary(long vocabularyId)
throws RemoteException {
try {
com.liferay.asset.kernel.model.AssetVocabulary returnValue =
AssetVocabularyServiceUtil.getVocabulary(vocabularyId);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay
searchVocabulariesDisplay(
long groupId, String title, boolean addDefaultVocabulary,
int start, int end)
throws RemoteException {
try {
com.liferay.asset.kernel.model.AssetVocabularyDisplay returnValue =
AssetVocabularyServiceUtil.searchVocabulariesDisplay(
groupId, title, addDefaultVocabulary, start, end);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularyDisplay
searchVocabulariesDisplay(
long groupId, String title, boolean addDefaultVocabulary,
int start, int end, com.liferay.portal.kernel.search.Sort sort)
throws RemoteException {
try {
com.liferay.asset.kernel.model.AssetVocabularyDisplay returnValue =
AssetVocabularyServiceUtil.searchVocabulariesDisplay(
groupId, title, addDefaultVocabulary, start, end, sort);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.asset.kernel.model.AssetVocabularySoap
updateVocabulary(
long vocabularyId, String title, String[] titleMapLanguageIds,
String[] titleMapValues, String[] descriptionMapLanguageIds,
String[] descriptionMapValues, String settings,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
Map titleMap = LocalizationUtil.getLocalizationMap(
titleMapLanguageIds, titleMapValues);
Map descriptionMap =
LocalizationUtil.getLocalizationMap(
descriptionMapLanguageIds, descriptionMapValues);
com.liferay.asset.kernel.model.AssetVocabulary returnValue =
AssetVocabularyServiceUtil.updateVocabulary(
vocabularyId, title, titleMap, descriptionMap, settings,
serviceContext);
return com.liferay.asset.kernel.model.AssetVocabularySoap.
toSoapModel(returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
private static Log _log = LogFactoryUtil.getLog(
AssetVocabularyServiceSoap.class);
}