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 SCProductEntryLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
049 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addSCProductEntry(scProductEntry);
052 }
053
054
060 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
061 long productEntryId) {
062 return getService().createSCProductEntry(productEntryId);
063 }
064
065
073 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
074 long productEntryId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteSCProductEntry(productEntryId);
078 }
079
080
087 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
088 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteSCProductEntry(scProductEntry);
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.SCProductEntry fetchSCProductEntry(
184 long productEntryId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchSCProductEntry(productEntryId);
187 }
188
189
197 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
198 long productEntryId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException {
201 return getService().getSCProductEntry(productEntryId);
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.SCProductEntry> getSCProductEntries(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getSCProductEntries(start, end);
227 }
228
229
235 public static int getSCProductEntriesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getSCProductEntriesCount();
238 }
239
240
247 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
248 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateSCProductEntry(scProductEntry);
251 }
252
253
256 public static void addSCLicenseSCProductEntry(long licenseId,
257 long productEntryId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getService().addSCLicenseSCProductEntry(licenseId, productEntryId);
260 }
261
262
265 public static void addSCLicenseSCProductEntry(long licenseId,
266 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 getService().addSCLicenseSCProductEntry(licenseId, scProductEntry);
269 }
270
271
274 public static void addSCLicenseSCProductEntries(long licenseId,
275 long[] productEntryIds)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getService().addSCLicenseSCProductEntries(licenseId, productEntryIds);
278 }
279
280
283 public static void addSCLicenseSCProductEntries(long licenseId,
284 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getService().addSCLicenseSCProductEntries(licenseId, SCProductEntries);
287 }
288
289
292 public static void clearSCLicenseSCProductEntries(long licenseId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().clearSCLicenseSCProductEntries(licenseId);
295 }
296
297
300 public static void deleteSCLicenseSCProductEntry(long licenseId,
301 long productEntryId)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteSCLicenseSCProductEntry(licenseId, productEntryId);
304 }
305
306
309 public static void deleteSCLicenseSCProductEntry(long licenseId,
310 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 getService().deleteSCLicenseSCProductEntry(licenseId, scProductEntry);
313 }
314
315
318 public static void deleteSCLicenseSCProductEntries(long licenseId,
319 long[] productEntryIds)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getService().deleteSCLicenseSCProductEntries(licenseId, productEntryIds);
322 }
323
324
327 public static void deleteSCLicenseSCProductEntries(long licenseId,
328 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 getService().deleteSCLicenseSCProductEntries(licenseId, SCProductEntries);
331 }
332
333
336 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
337 long licenseId)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService().getSCLicenseSCProductEntries(licenseId);
340 }
341
342
345 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
346 long licenseId, int start, int end)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().getSCLicenseSCProductEntries(licenseId, start, end);
349 }
350
351
354 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
355 long licenseId, int start, int end,
356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357 throws com.liferay.portal.kernel.exception.SystemException {
358 return getService()
359 .getSCLicenseSCProductEntries(licenseId, start, end,
360 orderByComparator);
361 }
362
363
366 public static int getSCLicenseSCProductEntriesCount(long licenseId)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 return getService().getSCLicenseSCProductEntriesCount(licenseId);
369 }
370
371
374 public static boolean hasSCLicenseSCProductEntry(long licenseId,
375 long productEntryId)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 return getService().hasSCLicenseSCProductEntry(licenseId, productEntryId);
378 }
379
380
383 public static boolean hasSCLicenseSCProductEntries(long licenseId)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getService().hasSCLicenseSCProductEntries(licenseId);
386 }
387
388
391 public static void setSCLicenseSCProductEntries(long licenseId,
392 long[] productEntryIds)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 getService().setSCLicenseSCProductEntries(licenseId, productEntryIds);
395 }
396
397
402 public static java.lang.String getBeanIdentifier() {
403 return getService().getBeanIdentifier();
404 }
405
406
411 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
412 getService().setBeanIdentifier(beanIdentifier);
413 }
414
415 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
416 long userId, java.lang.String name, java.lang.String type,
417 java.lang.String tags, java.lang.String shortDescription,
418 java.lang.String longDescription, java.lang.String pageURL,
419 java.lang.String author, java.lang.String repoGroupId,
420 java.lang.String repoArtifactId, long[] licenseIds,
421 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
422 com.liferay.portal.service.ServiceContext serviceContext)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException {
425 return getService()
426 .addProductEntry(userId, name, type, tags, shortDescription,
427 longDescription, pageURL, author, repoGroupId, repoArtifactId,
428 licenseIds, thumbnails, fullImages, serviceContext);
429 }
430
431 public static void addProductEntryResources(long productEntryId,
432 boolean addGroupPermissions, boolean addGuestPermissions)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException {
435 getService()
436 .addProductEntryResources(productEntryId, addGroupPermissions,
437 addGuestPermissions);
438 }
439
440 public static void addProductEntryResources(long productEntryId,
441 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
442 throws com.liferay.portal.kernel.exception.PortalException,
443 com.liferay.portal.kernel.exception.SystemException {
444 getService()
445 .addProductEntryResources(productEntryId, groupPermissions,
446 guestPermissions);
447 }
448
449 public static void addProductEntryResources(
450 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
451 boolean addGroupPermissions, boolean addGuestPermissions)
452 throws com.liferay.portal.kernel.exception.PortalException,
453 com.liferay.portal.kernel.exception.SystemException {
454 getService()
455 .addProductEntryResources(productEntry, addGroupPermissions,
456 addGuestPermissions);
457 }
458
459 public static void addProductEntryResources(
460 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
461 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
462 throws com.liferay.portal.kernel.exception.PortalException,
463 com.liferay.portal.kernel.exception.SystemException {
464 getService()
465 .addProductEntryResources(productEntry, groupPermissions,
466 guestPermissions);
467 }
468
469 public static void deleteProductEntries(long groupId)
470 throws com.liferay.portal.kernel.exception.PortalException,
471 com.liferay.portal.kernel.exception.SystemException {
472 getService().deleteProductEntries(groupId);
473 }
474
475 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
476 long productEntryId)
477 throws com.liferay.portal.kernel.exception.PortalException,
478 com.liferay.portal.kernel.exception.SystemException {
479 return getService().deleteProductEntry(productEntryId);
480 }
481
482 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
483 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return getService().deleteProductEntry(productEntry);
487 }
488
489 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
490 long companyId, int start, int end)
491 throws com.liferay.portal.kernel.exception.SystemException {
492 return getService().getCompanyProductEntries(companyId, start, end);
493 }
494
495 public static int getCompanyProductEntriesCount(long companyId)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 return getService().getCompanyProductEntriesCount(companyId);
498 }
499
500 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
501 long groupId, int start, int end)
502 throws com.liferay.portal.kernel.exception.SystemException {
503 return getService().getProductEntries(groupId, start, end);
504 }
505
506 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
507 long groupId, int start, int end,
508 com.liferay.portal.kernel.util.OrderByComparator obc)
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return getService().getProductEntries(groupId, start, end, obc);
511 }
512
513 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
514 long groupId, long userId, int start, int end)
515 throws com.liferay.portal.kernel.exception.SystemException {
516 return getService().getProductEntries(groupId, userId, start, end);
517 }
518
519 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
520 long groupId, long userId, int start, int end,
521 com.liferay.portal.kernel.util.OrderByComparator obc)
522 throws com.liferay.portal.kernel.exception.SystemException {
523 return getService().getProductEntries(groupId, userId, start, end, obc);
524 }
525
526 public static int getProductEntriesCount(long groupId)
527 throws com.liferay.portal.kernel.exception.SystemException {
528 return getService().getProductEntriesCount(groupId);
529 }
530
531 public static int getProductEntriesCount(long groupId, long userId)
532 throws com.liferay.portal.kernel.exception.SystemException {
533 return getService().getProductEntriesCount(groupId, userId);
534 }
535
536 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
537 long productEntryId)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException {
540 return getService().getProductEntry(productEntryId);
541 }
542
543 public static java.lang.String getRepositoryXML(long groupId,
544 java.lang.String baseImageURL, java.util.Date oldestDate,
545 int maxNumOfVersions, java.util.Properties repoSettings)
546 throws com.liferay.portal.kernel.exception.SystemException {
547 return getService()
548 .getRepositoryXML(groupId, baseImageURL, oldestDate,
549 maxNumOfVersions, repoSettings);
550 }
551
552 public static java.lang.String getRepositoryXML(long groupId,
553 java.lang.String version, java.lang.String baseImageURL,
554 java.util.Date oldestDate, int maxNumOfVersions,
555 java.util.Properties repoSettings)
556 throws com.liferay.portal.kernel.exception.SystemException {
557 return getService()
558 .getRepositoryXML(groupId, version, baseImageURL,
559 oldestDate, maxNumOfVersions, repoSettings);
560 }
561
562 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
563 long productEntryId, java.lang.String name, java.lang.String type,
564 java.lang.String tags, java.lang.String shortDescription,
565 java.lang.String longDescription, java.lang.String pageURL,
566 java.lang.String author, java.lang.String repoGroupId,
567 java.lang.String repoArtifactId, long[] licenseIds,
568 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
569 throws com.liferay.portal.kernel.exception.PortalException,
570 com.liferay.portal.kernel.exception.SystemException {
571 return getService()
572 .updateProductEntry(productEntryId, name, type, tags,
573 shortDescription, longDescription, pageURL, author, repoGroupId,
574 repoArtifactId, licenseIds, thumbnails, fullImages);
575 }
576
577 public static SCProductEntryLocalService getService() {
578 if (_service == null) {
579 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
580
581 ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
582 "_service");
583 }
584
585 return _service;
586 }
587
588
591 public void setService(SCProductEntryLocalService service) {
592 }
593
594 private static SCProductEntryLocalService _service;
595 }