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 deleteVocabularies(long[] vocabularyIds)
069 throws RemoteException {
070 try {
071 AssetVocabularyServiceUtil.deleteVocabularies(vocabularyIds);
072 }
073 catch (Exception e) {
074 _log.error(e, e);
075
076 throw new RemoteException(e.getMessage());
077 }
078 }
079
080 public static void deleteVocabulary(long vocabularyId)
081 throws RemoteException {
082 try {
083 AssetVocabularyServiceUtil.deleteVocabulary(vocabularyId);
084 }
085 catch (Exception e) {
086 _log.error(e, e);
087
088 throw new RemoteException(e.getMessage());
089 }
090 }
091
092 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getCompanyVocabularies(
093 long companyId) throws RemoteException {
094 try {
095 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
096 AssetVocabularyServiceUtil.getCompanyVocabularies(companyId);
097
098 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupsVocabularies(
108 long[] groupIds) throws RemoteException {
109 try {
110 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
111 AssetVocabularyServiceUtil.getGroupsVocabularies(groupIds);
112
113 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupsVocabularies(
123 long[] groupIds, java.lang.String className) throws RemoteException {
124 try {
125 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
126 AssetVocabularyServiceUtil.getGroupsVocabularies(groupIds,
127 className);
128
129 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
130 }
131 catch (Exception e) {
132 _log.error(e, e);
133
134 throw new RemoteException(e.getMessage());
135 }
136 }
137
138 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
139 long groupId) throws RemoteException {
140 try {
141 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
142 AssetVocabularyServiceUtil.getGroupVocabularies(groupId);
143
144 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
145 }
146 catch (Exception e) {
147 _log.error(e, e);
148
149 throw new RemoteException(e.getMessage());
150 }
151 }
152
153 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
154 long groupId, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws RemoteException {
157 try {
158 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
159 AssetVocabularyServiceUtil.getGroupVocabularies(groupId, start,
160 end, obc);
161
162 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
163 }
164 catch (Exception e) {
165 _log.error(e, e);
166
167 throw new RemoteException(e.getMessage());
168 }
169 }
170
171 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
172 long groupId, java.lang.String name, int start, int end,
173 com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws RemoteException {
175 try {
176 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
177 AssetVocabularyServiceUtil.getGroupVocabularies(groupId, name,
178 start, end, obc);
179
180 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
181 }
182 catch (Exception e) {
183 _log.error(e, e);
184
185 throw new RemoteException(e.getMessage());
186 }
187 }
188
189 public static int getGroupVocabulariesCount(long groupId)
190 throws RemoteException {
191 try {
192 int returnValue = AssetVocabularyServiceUtil.getGroupVocabulariesCount(groupId);
193
194 return returnValue;
195 }
196 catch (Exception e) {
197 _log.error(e, e);
198
199 throw new RemoteException(e.getMessage());
200 }
201 }
202
203 public static int getGroupVocabulariesCount(long groupId,
204 java.lang.String name) throws RemoteException {
205 try {
206 int returnValue = AssetVocabularyServiceUtil.getGroupVocabulariesCount(groupId,
207 name);
208
209 return returnValue;
210 }
211 catch (Exception e) {
212 _log.error(e, e);
213
214 throw new RemoteException(e.getMessage());
215 }
216 }
217
218 public static java.lang.String getJSONGroupVocabularies(long groupId,
219 java.lang.String name, int start, int end,
220 com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws RemoteException {
222 try {
223 com.liferay.portal.kernel.json.JSONObject returnValue = AssetVocabularyServiceUtil.getJSONGroupVocabularies(groupId,
224 name, start, end, obc);
225
226 return returnValue.toString();
227 }
228 catch (Exception e) {
229 _log.error(e, e);
230
231 throw new RemoteException(e.getMessage());
232 }
233 }
234
235 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getVocabularies(
236 long[] vocabularyIds) throws RemoteException {
237 try {
238 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
239 AssetVocabularyServiceUtil.getVocabularies(vocabularyIds);
240
241 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
242 }
243 catch (Exception e) {
244 _log.error(e, e);
245
246 throw new RemoteException(e.getMessage());
247 }
248 }
249
250 public static com.liferay.portlet.asset.model.AssetVocabularySoap getVocabulary(
251 long vocabularyId) throws RemoteException {
252 try {
253 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.getVocabulary(vocabularyId);
254
255 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
256 }
257 catch (Exception e) {
258 _log.error(e, e);
259
260 throw new RemoteException(e.getMessage());
261 }
262 }
263
264 private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceSoap.class);
265 }