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.ReferenceRegistry;
019
020
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
073 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion deleteSCProductVersion(
074 long productVersionId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteSCProductVersion(productVersionId);
078 }
079
080
087 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion deleteSCProductVersion(
088 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteSCProductVersion(scProductVersion);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchSCProductVersion(
184 long productVersionId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchSCProductVersion(productVersionId);
187 }
188
189
197 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
198 long productVersionId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException {
201 return getService().getSCProductVersion(productVersionId);
202 }
203
204 public static com.liferay.portal.model.PersistedModel getPersistedModel(
205 java.io.Serializable primaryKeyObj)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getPersistedModel(primaryKeyObj);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getSCProductVersions(start, end);
227 }
228
229
235 public static int getSCProductVersionsCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getSCProductVersionsCount();
238 }
239
240
247 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
248 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateSCProductVersion(scProductVersion);
251 }
252
253
256 public static void addSCFrameworkVersionSCProductVersion(
257 long frameworkVersionId, long productVersionId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getService()
260 .addSCFrameworkVersionSCProductVersion(frameworkVersionId,
261 productVersionId);
262 }
263
264
267 public static void addSCFrameworkVersionSCProductVersion(
268 long frameworkVersionId,
269 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
270 throws com.liferay.portal.kernel.exception.SystemException {
271 getService()
272 .addSCFrameworkVersionSCProductVersion(frameworkVersionId,
273 scProductVersion);
274 }
275
276
279 public static void addSCFrameworkVersionSCProductVersions(
280 long frameworkVersionId, long[] productVersionIds)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 getService()
283 .addSCFrameworkVersionSCProductVersions(frameworkVersionId,
284 productVersionIds);
285 }
286
287
290 public static void addSCFrameworkVersionSCProductVersions(
291 long frameworkVersionId,
292 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> SCProductVersions)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService()
295 .addSCFrameworkVersionSCProductVersions(frameworkVersionId,
296 SCProductVersions);
297 }
298
299
302 public static void clearSCFrameworkVersionSCProductVersions(
303 long frameworkVersionId)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().clearSCFrameworkVersionSCProductVersions(frameworkVersionId);
306 }
307
308
311 public static void deleteSCFrameworkVersionSCProductVersion(
312 long frameworkVersionId, long productVersionId)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 getService()
315 .deleteSCFrameworkVersionSCProductVersion(frameworkVersionId,
316 productVersionId);
317 }
318
319
322 public static void deleteSCFrameworkVersionSCProductVersion(
323 long frameworkVersionId,
324 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 getService()
327 .deleteSCFrameworkVersionSCProductVersion(frameworkVersionId,
328 scProductVersion);
329 }
330
331
334 public static void deleteSCFrameworkVersionSCProductVersions(
335 long frameworkVersionId, long[] productVersionIds)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 getService()
338 .deleteSCFrameworkVersionSCProductVersions(frameworkVersionId,
339 productVersionIds);
340 }
341
342
345 public static void deleteSCFrameworkVersionSCProductVersions(
346 long frameworkVersionId,
347 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> SCProductVersions)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 getService()
350 .deleteSCFrameworkVersionSCProductVersions(frameworkVersionId,
351 SCProductVersions);
352 }
353
354
357 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCFrameworkVersionSCProductVersions(
358 long frameworkVersionId)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 return getService()
361 .getSCFrameworkVersionSCProductVersions(frameworkVersionId);
362 }
363
364
367 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCFrameworkVersionSCProductVersions(
368 long frameworkVersionId, int start, int end)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getService()
371 .getSCFrameworkVersionSCProductVersions(frameworkVersionId,
372 start, end);
373 }
374
375
378 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCFrameworkVersionSCProductVersions(
379 long frameworkVersionId, int start, int end,
380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getService()
383 .getSCFrameworkVersionSCProductVersions(frameworkVersionId,
384 start, end, orderByComparator);
385 }
386
387
390 public static int getSCFrameworkVersionSCProductVersionsCount(
391 long frameworkVersionId)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 return getService()
394 .getSCFrameworkVersionSCProductVersionsCount(frameworkVersionId);
395 }
396
397
400 public static boolean hasSCFrameworkVersionSCProductVersion(
401 long frameworkVersionId, long productVersionId)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 return getService()
404 .hasSCFrameworkVersionSCProductVersion(frameworkVersionId,
405 productVersionId);
406 }
407
408
411 public static boolean hasSCFrameworkVersionSCProductVersions(
412 long frameworkVersionId)
413 throws com.liferay.portal.kernel.exception.SystemException {
414 return getService()
415 .hasSCFrameworkVersionSCProductVersions(frameworkVersionId);
416 }
417
418
421 public static void setSCFrameworkVersionSCProductVersions(
422 long frameworkVersionId, long[] productVersionIds)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 getService()
425 .setSCFrameworkVersionSCProductVersions(frameworkVersionId,
426 productVersionIds);
427 }
428
429
434 public static java.lang.String getBeanIdentifier() {
435 return getService().getBeanIdentifier();
436 }
437
438
443 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
444 getService().setBeanIdentifier(beanIdentifier);
445 }
446
447 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
448 long userId, long productEntryId, java.lang.String version,
449 java.lang.String changeLog, java.lang.String downloadPageURL,
450 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
451 boolean repoStoreArtifact, long[] frameworkVersionIds,
452 com.liferay.portal.service.ServiceContext serviceContext)
453 throws com.liferay.portal.kernel.exception.PortalException,
454 com.liferay.portal.kernel.exception.SystemException {
455 return getService()
456 .addProductVersion(userId, productEntryId, version,
457 changeLog, downloadPageURL, directDownloadURL,
458 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
459 serviceContext);
460 }
461
462 public static void deleteProductVersion(long productVersionId)
463 throws com.liferay.portal.kernel.exception.PortalException,
464 com.liferay.portal.kernel.exception.SystemException {
465 getService().deleteProductVersion(productVersionId);
466 }
467
468 public static void deleteProductVersion(
469 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 getService().deleteProductVersion(productVersion);
472 }
473
474 public static void deleteProductVersions(long productEntryId)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 getService().deleteProductVersions(productEntryId);
477 }
478
479 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
480 long productVersionId)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException {
483 return getService().getProductVersion(productVersionId);
484 }
485
486 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
487 java.lang.String directDownloadURL)
488 throws com.liferay.portal.kernel.exception.PortalException,
489 com.liferay.portal.kernel.exception.SystemException {
490 return getService()
491 .getProductVersionByDirectDownloadURL(directDownloadURL);
492 }
493
494 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
495 long productEntryId, int start, int end)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 return getService().getProductVersions(productEntryId, start, end);
498 }
499
500 public static int getProductVersionsCount(long productEntryId)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getService().getProductVersionsCount(productEntryId);
503 }
504
505 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
506 long productVersionId, java.lang.String version,
507 java.lang.String changeLog, java.lang.String downloadPageURL,
508 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
509 boolean repoStoreArtifact, long[] frameworkVersionIds)
510 throws com.liferay.portal.kernel.exception.PortalException,
511 com.liferay.portal.kernel.exception.SystemException {
512 return getService()
513 .updateProductVersion(productVersionId, version, changeLog,
514 downloadPageURL, directDownloadURL, testDirectDownloadURL,
515 repoStoreArtifact, frameworkVersionIds);
516 }
517
518 public static SCProductVersionLocalService getService() {
519 if (_service == null) {
520 _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
521
522 ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
523 "_service");
524 }
525
526 return _service;
527 }
528
529
532 public void setService(SCProductVersionLocalService service) {
533 }
534
535 private static SCProductVersionLocalService _service;
536 }