001
014
015 package com.liferay.portlet.asset.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.asset.kernel.service.AssetEntryServiceUtil;
020
021 import com.liferay.portal.kernel.log.Log;
022 import com.liferay.portal.kernel.log.LogFactoryUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class AssetEntryServiceSoap {
068 public static com.liferay.asset.kernel.model.AssetEntrySoap fetchEntry(
069 long entryId) throws RemoteException {
070 try {
071 com.liferay.asset.kernel.model.AssetEntry returnValue = AssetEntryServiceUtil.fetchEntry(entryId);
072
073 return com.liferay.asset.kernel.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.asset.kernel.model.AssetEntrySoap[] getCompanyEntries(
083 long companyId, int start, int end) throws RemoteException {
084 try {
085 java.util.List<com.liferay.asset.kernel.model.AssetEntry> returnValue =
086 AssetEntryServiceUtil.getCompanyEntries(companyId, start, end);
087
088 return com.liferay.asset.kernel.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.asset.kernel.model.AssetEntrySoap[] getEntries(
112 com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
113 throws RemoteException {
114 try {
115 java.util.List<com.liferay.asset.kernel.model.AssetEntry> returnValue =
116 AssetEntryServiceUtil.getEntries(entryQuery);
117
118 return com.liferay.asset.kernel.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.asset.kernel.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.asset.kernel.model.AssetEntrySoap getEntry(
143 long entryId) throws RemoteException {
144 try {
145 com.liferay.asset.kernel.model.AssetEntry returnValue = AssetEntryServiceUtil.getEntry(entryId);
146
147 return com.liferay.asset.kernel.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.asset.kernel.model.AssetEntrySoap incrementViewCounter(
157 java.lang.String className, long classPK) throws RemoteException {
158 try {
159 com.liferay.asset.kernel.model.AssetEntry returnValue = AssetEntryServiceUtil.incrementViewCounter(className,
160 classPK);
161
162 return com.liferay.asset.kernel.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.asset.kernel.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.asset.kernel.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.asset.kernel.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.asset.kernel.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.asset.kernel.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.asset.kernel.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 private static Log _log = LogFactoryUtil.getLog(AssetEntryServiceSoap.class);
231 }