001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class SCProductVersionLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
049 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addSCProductVersion(scProductVersion);
052 }
053
054
060 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
061 long productVersionId) {
062 return getService().createSCProductVersion(productVersionId);
063 }
064
065
072 public static void deleteSCProductVersion(long productVersionId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteSCProductVersion(productVersionId);
076 }
077
078
084 public static void deleteSCProductVersion(
085 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteSCProductVersion(scProductVersion);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161
169 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
170 long productVersionId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getService().getSCProductVersion(productVersionId);
174 }
175
176 public static com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getService().getPersistedModel(primaryKeyObj);
181 }
182
183
195 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
196 int start, int end)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getService().getSCProductVersions(start, end);
199 }
200
201
207 public static int getSCProductVersionsCount()
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().getSCProductVersionsCount();
210 }
211
212
219 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
220 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().updateSCProductVersion(scProductVersion);
223 }
224
225
233 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
234 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
235 boolean merge)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().updateSCProductVersion(scProductVersion, merge);
238 }
239
240
245 public static java.lang.String getBeanIdentifier() {
246 return getService().getBeanIdentifier();
247 }
248
249
254 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
255 getService().setBeanIdentifier(beanIdentifier);
256 }
257
258 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
259 long userId, long productEntryId, java.lang.String version,
260 java.lang.String changeLog, java.lang.String downloadPageURL,
261 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
262 boolean repoStoreArtifact, long[] frameworkVersionIds,
263 com.liferay.portal.service.ServiceContext serviceContext)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException {
266 return getService()
267 .addProductVersion(userId, productEntryId, version,
268 changeLog, downloadPageURL, directDownloadURL,
269 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
270 serviceContext);
271 }
272
273 public static void deleteProductVersion(long productVersionId)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 getService().deleteProductVersion(productVersionId);
277 }
278
279 public static void deleteProductVersion(
280 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 getService().deleteProductVersion(productVersion);
283 }
284
285 public static void deleteProductVersions(long productEntryId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 getService().deleteProductVersions(productEntryId);
288 }
289
290 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
291 long productVersionId)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException {
294 return getService().getProductVersion(productVersionId);
295 }
296
297 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
298 java.lang.String directDownloadURL)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException {
301 return getService()
302 .getProductVersionByDirectDownloadURL(directDownloadURL);
303 }
304
305 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
306 long productEntryId, int start, int end)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getService().getProductVersions(productEntryId, start, end);
309 }
310
311 public static int getProductVersionsCount(long productEntryId)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getService().getProductVersionsCount(productEntryId);
314 }
315
316 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
317 long productVersionId, java.lang.String version,
318 java.lang.String changeLog, java.lang.String downloadPageURL,
319 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
320 boolean repoStoreArtifact, long[] frameworkVersionIds)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 return getService()
324 .updateProductVersion(productVersionId, version, changeLog,
325 downloadPageURL, directDownloadURL, testDirectDownloadURL,
326 repoStoreArtifact, frameworkVersionIds);
327 }
328
329 public static SCProductVersionLocalService getService() {
330 if (_service == null) {
331 _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
332
333 ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
334 "_service");
335 MethodCache.remove(SCProductVersionLocalService.class);
336 }
337
338 return _service;
339 }
340
341 public void setService(SCProductVersionLocalService service) {
342 MethodCache.remove(SCProductVersionLocalService.class);
343
344 _service = service;
345
346 ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
347 "_service");
348 MethodCache.remove(SCProductVersionLocalService.class);
349 }
350
351 private static SCProductVersionLocalService _service;
352 }