1
14
15 package com.liferay.portlet.tags.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19
20 import com.liferay.portlet.tags.service.TagsAssetServiceUtil;
21
22 import java.rmi.RemoteException;
23
24
74 public class TagsAssetServiceSoap {
75 public static void deleteAsset(long assetId) throws RemoteException {
76 try {
77 TagsAssetServiceUtil.deleteAsset(assetId);
78 }
79 catch (Exception e) {
80 _log.error(e, e);
81
82 throw new RemoteException(e.getMessage());
83 }
84 }
85
86 public static com.liferay.portlet.tags.model.TagsAssetSoap getAsset(
87 long assetId) throws RemoteException {
88 try {
89 com.liferay.portlet.tags.model.TagsAsset returnValue = TagsAssetServiceUtil.getAsset(assetId);
90
91 return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModel(returnValue);
92 }
93 catch (Exception e) {
94 _log.error(e, e);
95
96 throw new RemoteException(e.getMessage());
97 }
98 }
99
100 public static com.liferay.portlet.tags.model.TagsAssetSoap[] getAssets(
101 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
102 boolean andOperator, java.lang.String orderByCol1,
103 java.lang.String orderByCol2, java.lang.String orderByType1,
104 java.lang.String orderByType2, boolean excludeZeroViewCount,
105 java.util.Date publishDate, java.util.Date expirationDate, int start,
106 int end) throws RemoteException {
107 try {
108 java.util.List<com.liferay.portlet.tags.model.TagsAsset> returnValue =
109 TagsAssetServiceUtil.getAssets(groupId, classNameIds, entryIds,
110 notEntryIds, andOperator, orderByCol1, orderByCol2,
111 orderByType1, orderByType2, excludeZeroViewCount,
112 publishDate, expirationDate, start, end);
113
114 return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModels(returnValue);
115 }
116 catch (Exception e) {
117 _log.error(e, e);
118
119 throw new RemoteException(e.getMessage());
120 }
121 }
122
123 public static int getAssetsCount(long groupId, long[] classNameIds,
124 long[] entryIds, long[] notEntryIds, boolean andOperator,
125 boolean excludeZeroViewCount, java.util.Date publishDate,
126 java.util.Date expirationDate) throws RemoteException {
127 try {
128 int returnValue = TagsAssetServiceUtil.getAssetsCount(groupId,
129 classNameIds, entryIds, notEntryIds, andOperator,
130 excludeZeroViewCount, publishDate, expirationDate);
131
132 return returnValue;
133 }
134 catch (Exception e) {
135 _log.error(e, e);
136
137 throw new RemoteException(e.getMessage());
138 }
139 }
140
141 public static java.lang.String getAssetsRSS(long groupId,
142 long[] classNameIds, long[] entryIds, long[] notEntryIds,
143 boolean andOperator, java.lang.String orderByCol1,
144 java.lang.String orderByCol2, java.lang.String orderByType1,
145 java.lang.String orderByType2, boolean excludeZeroViewCount,
146 java.util.Date publishDate, java.util.Date expirationDate, int max,
147 java.lang.String type, double version, java.lang.String displayStyle,
148 java.lang.String feedURL, java.lang.String entryURL)
149 throws RemoteException {
150 try {
151 java.lang.String returnValue = TagsAssetServiceUtil.getAssetsRSS(groupId,
152 classNameIds, entryIds, notEntryIds, andOperator,
153 orderByCol1, orderByCol2, orderByType1, orderByType2,
154 excludeZeroViewCount, publishDate, expirationDate, max,
155 type, version, displayStyle, feedURL, entryURL);
156
157 return returnValue;
158 }
159 catch (Exception e) {
160 _log.error(e, e);
161
162 throw new RemoteException(e.getMessage());
163 }
164 }
165
166 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
167 java.lang.String languageId) throws RemoteException {
168 try {
169 com.liferay.portlet.tags.model.TagsAssetType[] returnValue = TagsAssetServiceUtil.getAssetTypes(languageId);
170
171 return returnValue;
172 }
173 catch (Exception e) {
174 _log.error(e, e);
175
176 throw new RemoteException(e.getMessage());
177 }
178 }
179
180 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
181 long companyId, int start, int end, java.lang.String languageId)
182 throws RemoteException {
183 try {
184 com.liferay.portlet.tags.model.TagsAssetDisplay[] returnValue = TagsAssetServiceUtil.getCompanyAssetDisplays(companyId,
185 start, end, languageId);
186
187 return returnValue;
188 }
189 catch (Exception e) {
190 _log.error(e, e);
191
192 throw new RemoteException(e.getMessage());
193 }
194 }
195
196 public static com.liferay.portlet.tags.model.TagsAssetSoap[] getCompanyAssets(
197 long companyId, int start, int end) throws RemoteException {
198 try {
199 java.util.List<com.liferay.portlet.tags.model.TagsAsset> returnValue =
200 TagsAssetServiceUtil.getCompanyAssets(companyId, start, end);
201
202 return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModels(returnValue);
203 }
204 catch (Exception e) {
205 _log.error(e, e);
206
207 throw new RemoteException(e.getMessage());
208 }
209 }
210
211 public static int getCompanyAssetsCount(long companyId)
212 throws RemoteException {
213 try {
214 int returnValue = TagsAssetServiceUtil.getCompanyAssetsCount(companyId);
215
216 return returnValue;
217 }
218 catch (Exception e) {
219 _log.error(e, e);
220
221 throw new RemoteException(e.getMessage());
222 }
223 }
224
225 public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
226 java.lang.String type, double version, java.lang.String displayStyle,
227 java.lang.String feedURL, java.lang.String entryURL)
228 throws RemoteException {
229 try {
230 java.lang.String returnValue = TagsAssetServiceUtil.getCompanyAssetsRSS(companyId,
231 max, type, version, displayStyle, feedURL, entryURL);
232
233 return returnValue;
234 }
235 catch (Exception e) {
236 _log.error(e, e);
237
238 throw new RemoteException(e.getMessage());
239 }
240 }
241
242 public static com.liferay.portlet.tags.model.TagsAssetSoap incrementViewCounter(
243 java.lang.String className, long classPK) throws RemoteException {
244 try {
245 com.liferay.portlet.tags.model.TagsAsset returnValue = TagsAssetServiceUtil.incrementViewCounter(className,
246 classPK);
247
248 return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModel(returnValue);
249 }
250 catch (Exception e) {
251 _log.error(e, e);
252
253 throw new RemoteException(e.getMessage());
254 }
255 }
256
257 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
258 long companyId, java.lang.String portletId, java.lang.String keywords,
259 java.lang.String languageId, int start, int end)
260 throws RemoteException {
261 try {
262 com.liferay.portlet.tags.model.TagsAssetDisplay[] returnValue = TagsAssetServiceUtil.searchAssetDisplays(companyId,
263 portletId, keywords, languageId, start, end);
264
265 return returnValue;
266 }
267 catch (Exception e) {
268 _log.error(e, e);
269
270 throw new RemoteException(e.getMessage());
271 }
272 }
273
274 public static int searchAssetDisplaysCount(long companyId,
275 java.lang.String portletId, java.lang.String keywords,
276 java.lang.String languageId) throws RemoteException {
277 try {
278 int returnValue = TagsAssetServiceUtil.searchAssetDisplaysCount(companyId,
279 portletId, keywords, languageId);
280
281 return returnValue;
282 }
283 catch (Exception e) {
284 _log.error(e, e);
285
286 throw new RemoteException(e.getMessage());
287 }
288 }
289
290 public static com.liferay.portlet.tags.model.TagsAssetSoap updateAsset(
291 long groupId, java.lang.String className, long classPK,
292 java.lang.String[] categoryNames, java.lang.String[] entryNames,
293 boolean visible, java.util.Date startDate, java.util.Date endDate,
294 java.util.Date publishDate, java.util.Date expirationDate,
295 java.lang.String mimeType, java.lang.String title,
296 java.lang.String description, java.lang.String summary,
297 java.lang.String url, int height, int width, java.lang.Integer priority)
298 throws RemoteException {
299 try {
300 com.liferay.portlet.tags.model.TagsAsset returnValue = TagsAssetServiceUtil.updateAsset(groupId,
301 className, classPK, categoryNames, entryNames, visible,
302 startDate, endDate, publishDate, expirationDate, mimeType,
303 title, description, summary, url, height, width, priority);
304
305 return com.liferay.portlet.tags.model.TagsAssetSoap.toSoapModel(returnValue);
306 }
307 catch (Exception e) {
308 _log.error(e, e);
309
310 throw new RemoteException(e.getMessage());
311 }
312 }
313
314 private static Log _log = LogFactoryUtil.getLog(TagsAssetServiceSoap.class);
315 }