001
014
015 package com.liferay.portlet.asset.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.asset.service.AssetVocabularyServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
067 public class AssetVocabularyServiceSoap {
068 public static void deleteVocabulary(long vocabularyId)
069 throws RemoteException {
070 try {
071 AssetVocabularyServiceUtil.deleteVocabulary(vocabularyId);
072 }
073 catch (Exception e) {
074 _log.error(e, e);
075
076 throw new RemoteException(e.getMessage());
077 }
078 }
079
080 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getCompanyVocabularies(
081 long companyId) throws RemoteException {
082 try {
083 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
084 AssetVocabularyServiceUtil.getCompanyVocabularies(companyId);
085
086 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
087 }
088 catch (Exception e) {
089 _log.error(e, e);
090
091 throw new RemoteException(e.getMessage());
092 }
093 }
094
095 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupsVocabularies(
096 long[] groupIds) throws RemoteException {
097 try {
098 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
099 AssetVocabularyServiceUtil.getGroupsVocabularies(groupIds);
100
101 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
111 long groupId) throws RemoteException {
112 try {
113 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
114 AssetVocabularyServiceUtil.getGroupVocabularies(groupId);
115
116 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
117 }
118 catch (Exception e) {
119 _log.error(e, e);
120
121 throw new RemoteException(e.getMessage());
122 }
123 }
124
125 public static com.liferay.portlet.asset.model.AssetVocabularySoap getVocabulary(
126 long vocabularyId) throws RemoteException {
127 try {
128 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.getVocabulary(vocabularyId);
129
130 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
131 }
132 catch (Exception e) {
133 _log.error(e, e);
134
135 throw new RemoteException(e.getMessage());
136 }
137 }
138
139 private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceSoap.class);
140 }