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