001
014
015 package com.liferay.portlet.asset.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021
022 import com.liferay.portlet.asset.service.AssetEntryServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class AssetEntryServiceSoap {
068 public static com.liferay.portlet.asset.model.AssetEntrySoap fetchEntry(
069 long entryId) throws RemoteException {
070 try {
071 com.liferay.portlet.asset.model.AssetEntry returnValue = AssetEntryServiceUtil.fetchEntry(entryId);
072
073 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModel(returnValue);
074 }
075 catch (Exception e) {
076 _log.error(e, e);
077
078 throw new RemoteException(e.getMessage());
079 }
080 }
081
082 public static com.liferay.portlet.asset.model.AssetEntrySoap[] getCompanyEntries(
083 long companyId, int start, int end) throws RemoteException {
084 try {
085 java.util.List<com.liferay.portlet.asset.model.AssetEntry> returnValue =
086 AssetEntryServiceUtil.getCompanyEntries(companyId, start, end);
087
088 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModels(returnValue);
089 }
090 catch (Exception e) {
091 _log.error(e, e);
092
093 throw new RemoteException(e.getMessage());
094 }
095 }
096
097 public static int getCompanyEntriesCount(long companyId)
098 throws RemoteException {
099 try {
100 int returnValue = AssetEntryServiceUtil.getCompanyEntriesCount(companyId);
101
102 return returnValue;
103 }
104 catch (Exception e) {
105 _log.error(e, e);
106
107 throw new RemoteException(e.getMessage());
108 }
109 }
110
111 public static com.liferay.portlet.asset.model.AssetEntrySoap[] getEntries(
112 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
113 throws RemoteException {
114 try {
115 java.util.List<com.liferay.portlet.asset.model.AssetEntry> returnValue =
116 AssetEntryServiceUtil.getEntries(entryQuery);
117
118 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModels(returnValue);
119 }
120 catch (Exception e) {
121 _log.error(e, e);
122
123 throw new RemoteException(e.getMessage());
124 }
125 }
126
127 public static int getEntriesCount(
128 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
129 throws RemoteException {
130 try {
131 int returnValue = AssetEntryServiceUtil.getEntriesCount(entryQuery);
132
133 return returnValue;
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137
138 throw new RemoteException(e.getMessage());
139 }
140 }
141
142 public static com.liferay.portlet.asset.model.AssetEntrySoap getEntry(
143 long entryId) throws RemoteException {
144 try {
145 com.liferay.portlet.asset.model.AssetEntry returnValue = AssetEntryServiceUtil.getEntry(entryId);
146
147 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModel(returnValue);
148 }
149 catch (Exception e) {
150 _log.error(e, e);
151
152 throw new RemoteException(e.getMessage());
153 }
154 }
155
156 public static com.liferay.portlet.asset.model.AssetEntrySoap incrementViewCounter(
157 java.lang.String className, long classPK) throws RemoteException {
158 try {
159 com.liferay.portlet.asset.model.AssetEntry returnValue = AssetEntryServiceUtil.incrementViewCounter(className,
160 classPK);
161
162 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModel(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.AssetEntrySoap updateEntry(
172 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
173 java.lang.String className, long classPK, java.lang.String classUuid,
174 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
175 boolean visible, java.util.Date startDate, java.util.Date endDate,
176 java.util.Date expirationDate, java.lang.String mimeType,
177 java.lang.String title, java.lang.String description,
178 java.lang.String summary, java.lang.String url,
179 java.lang.String layoutUuid, int height, int width,
180 java.lang.Double priority) throws RemoteException {
181 try {
182 com.liferay.portlet.asset.model.AssetEntry returnValue = AssetEntryServiceUtil.updateEntry(groupId,
183 createDate, modifiedDate, className, classPK, classUuid,
184 classTypeId, categoryIds, tagNames, visible, startDate,
185 endDate, expirationDate, mimeType, title, description,
186 summary, url, layoutUuid, height, width, priority);
187
188 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModel(returnValue);
189 }
190 catch (Exception e) {
191 _log.error(e, e);
192
193 throw new RemoteException(e.getMessage());
194 }
195 }
196
197
203 @Deprecated
204 public static com.liferay.portlet.asset.model.AssetEntrySoap updateEntry(
205 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
206 java.lang.String className, long classPK, java.lang.String classUuid,
207 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
208 boolean visible, java.util.Date startDate, java.util.Date endDate,
209 java.util.Date expirationDate, java.lang.String mimeType,
210 java.lang.String title, java.lang.String description,
211 java.lang.String summary, java.lang.String url,
212 java.lang.String layoutUuid, int height, int width,
213 java.lang.Integer priority, boolean sync) throws RemoteException {
214 try {
215 com.liferay.portlet.asset.model.AssetEntry returnValue = AssetEntryServiceUtil.updateEntry(groupId,
216 createDate, modifiedDate, className, classPK, classUuid,
217 classTypeId, categoryIds, tagNames, visible, startDate,
218 endDate, expirationDate, mimeType, title, description,
219 summary, url, layoutUuid, height, width, priority, sync);
220
221 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModel(returnValue);
222 }
223 catch (Exception e) {
224 _log.error(e, e);
225
226 throw new RemoteException(e.getMessage());
227 }
228 }
229
230
236 @Deprecated
237 public static com.liferay.portlet.asset.model.AssetEntrySoap updateEntry(
238 long groupId, java.lang.String className, long classPK,
239 java.lang.String classUuid, long classTypeId, long[] categoryIds,
240 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
241 java.util.Date endDate, java.util.Date publishDate,
242 java.util.Date expirationDate, java.lang.String mimeType,
243 java.lang.String title, java.lang.String description,
244 java.lang.String summary, java.lang.String url,
245 java.lang.String layoutUuid, int height, int width,
246 java.lang.Integer priority, boolean sync) throws RemoteException {
247 try {
248 com.liferay.portlet.asset.model.AssetEntry returnValue = AssetEntryServiceUtil.updateEntry(groupId,
249 className, classPK, classUuid, classTypeId, categoryIds,
250 tagNames, visible, startDate, endDate, publishDate,
251 expirationDate, mimeType, title, description, summary, url,
252 layoutUuid, height, width, priority, sync);
253
254 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModel(returnValue);
255 }
256 catch (Exception e) {
257 _log.error(e, e);
258
259 throw new RemoteException(e.getMessage());
260 }
261 }
262
263
269 @Deprecated
270 public static com.liferay.portlet.asset.model.AssetEntrySoap updateEntry(
271 long groupId, java.lang.String className, long classPK,
272 java.lang.String classUuid, long classTypeId, long[] categoryIds,
273 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
274 java.util.Date endDate, java.util.Date expirationDate,
275 java.lang.String mimeType, java.lang.String title,
276 java.lang.String description, java.lang.String summary,
277 java.lang.String url, java.lang.String layoutUuid, int height,
278 int width, java.lang.Integer priority, boolean sync)
279 throws RemoteException {
280 try {
281 com.liferay.portlet.asset.model.AssetEntry returnValue = AssetEntryServiceUtil.updateEntry(groupId,
282 className, classPK, classUuid, classTypeId, categoryIds,
283 tagNames, visible, startDate, endDate, expirationDate,
284 mimeType, title, description, summary, url, layoutUuid,
285 height, width, priority, sync);
286
287 return com.liferay.portlet.asset.model.AssetEntrySoap.toSoapModel(returnValue);
288 }
289 catch (Exception e) {
290 _log.error(e, e);
291
292 throw new RemoteException(e.getMessage());
293 }
294 }
295
296 private static Log _log = LogFactoryUtil.getLog(AssetEntryServiceSoap.class);
297 }