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
033 public class SCProductEntryLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
048 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addSCProductEntry(scProductEntry);
051 }
052
053
059 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
060 long productEntryId) {
061 return getService().createSCProductEntry(productEntryId);
062 }
063
064
072 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
073 long productEntryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteSCProductEntry(productEntryId);
077 }
078
079
086 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
087 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteSCProductEntry(scProductEntry);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
168 long productEntryId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchSCProductEntry(productEntryId);
171 }
172
173
181 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
182 long productEntryId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getSCProductEntry(productEntryId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getSCProductEntries(start, end);
211 }
212
213
219 public static int getSCProductEntriesCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getSCProductEntriesCount();
222 }
223
224
231 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
232 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateSCProductEntry(scProductEntry);
235 }
236
237
245 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
246 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
247 boolean merge)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateSCProductEntry(scProductEntry, merge);
250 }
251
252
255 public static void addSCLicenseSCProductEntry(long licenseId,
256 long productEntryId)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 getService().addSCLicenseSCProductEntry(licenseId, productEntryId);
259 }
260
261
264 public static void addSCLicenseSCProductEntry(long licenseId,
265 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 getService().addSCLicenseSCProductEntry(licenseId, scProductEntry);
268 }
269
270
273 public static void addSCLicenseSCProductEntries(long licenseId,
274 long[] productEntryIds)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 getService().addSCLicenseSCProductEntries(licenseId, productEntryIds);
277 }
278
279
282 public static void addSCLicenseSCProductEntries(long licenseId,
283 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 getService().addSCLicenseSCProductEntries(licenseId, SCProductEntries);
286 }
287
288
291 public static void clearSCLicenseSCProductEntries(long licenseId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 getService().clearSCLicenseSCProductEntries(licenseId);
294 }
295
296
299 public static void deleteSCLicenseSCProductEntry(long licenseId,
300 long productEntryId)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 getService().deleteSCLicenseSCProductEntry(licenseId, productEntryId);
303 }
304
305
308 public static void deleteSCLicenseSCProductEntry(long licenseId,
309 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 getService().deleteSCLicenseSCProductEntry(licenseId, scProductEntry);
312 }
313
314
317 public static void deleteSCLicenseSCProductEntries(long licenseId,
318 long[] productEntryIds)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 getService().deleteSCLicenseSCProductEntries(licenseId, productEntryIds);
321 }
322
323
326 public static void deleteSCLicenseSCProductEntries(long licenseId,
327 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 getService().deleteSCLicenseSCProductEntries(licenseId, SCProductEntries);
330 }
331
332
335 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
336 long licenseId)
337 throws com.liferay.portal.kernel.exception.SystemException {
338 return getService().getSCLicenseSCProductEntries(licenseId);
339 }
340
341
344 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
345 long licenseId, int start, int end)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getService().getSCLicenseSCProductEntries(licenseId, start, end);
348 }
349
350
353 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
354 long licenseId, int start, int end,
355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getService()
358 .getSCLicenseSCProductEntries(licenseId, start, end,
359 orderByComparator);
360 }
361
362
365 public static int getSCLicenseSCProductEntriesCount(long licenseId)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getService().getSCLicenseSCProductEntriesCount(licenseId);
368 }
369
370
373 public static boolean hasSCLicenseSCProductEntry(long licenseId,
374 long productEntryId)
375 throws com.liferay.portal.kernel.exception.SystemException {
376 return getService().hasSCLicenseSCProductEntry(licenseId, productEntryId);
377 }
378
379
382 public static boolean hasSCLicenseSCProductEntries(long licenseId)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 return getService().hasSCLicenseSCProductEntries(licenseId);
385 }
386
387
390 public static void setSCLicenseSCProductEntries(long licenseId,
391 long[] productEntryIds)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 getService().setSCLicenseSCProductEntries(licenseId, productEntryIds);
394 }
395
396
401 public static java.lang.String getBeanIdentifier() {
402 return getService().getBeanIdentifier();
403 }
404
405
410 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
411 getService().setBeanIdentifier(beanIdentifier);
412 }
413
414 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
415 long userId, java.lang.String name, java.lang.String type,
416 java.lang.String tags, java.lang.String shortDescription,
417 java.lang.String longDescription, java.lang.String pageURL,
418 java.lang.String author, java.lang.String repoGroupId,
419 java.lang.String repoArtifactId, long[] licenseIds,
420 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
421 com.liferay.portal.service.ServiceContext serviceContext)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException {
424 return getService()
425 .addProductEntry(userId, name, type, tags, shortDescription,
426 longDescription, pageURL, author, repoGroupId, repoArtifactId,
427 licenseIds, thumbnails, fullImages, serviceContext);
428 }
429
430 public static void addProductEntryResources(long productEntryId,
431 boolean addGroupPermissions, boolean addGuestPermissions)
432 throws com.liferay.portal.kernel.exception.PortalException,
433 com.liferay.portal.kernel.exception.SystemException {
434 getService()
435 .addProductEntryResources(productEntryId, addGroupPermissions,
436 addGuestPermissions);
437 }
438
439 public static void addProductEntryResources(long productEntryId,
440 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
441 throws com.liferay.portal.kernel.exception.PortalException,
442 com.liferay.portal.kernel.exception.SystemException {
443 getService()
444 .addProductEntryResources(productEntryId, groupPermissions,
445 guestPermissions);
446 }
447
448 public static void addProductEntryResources(
449 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
450 boolean addGroupPermissions, boolean addGuestPermissions)
451 throws com.liferay.portal.kernel.exception.PortalException,
452 com.liferay.portal.kernel.exception.SystemException {
453 getService()
454 .addProductEntryResources(productEntry, addGroupPermissions,
455 addGuestPermissions);
456 }
457
458 public static void addProductEntryResources(
459 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
460 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException {
463 getService()
464 .addProductEntryResources(productEntry, groupPermissions,
465 guestPermissions);
466 }
467
468 public static void deleteProductEntries(long groupId)
469 throws com.liferay.portal.kernel.exception.PortalException,
470 com.liferay.portal.kernel.exception.SystemException {
471 getService().deleteProductEntries(groupId);
472 }
473
474 public static void deleteProductEntry(long productEntryId)
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException {
477 getService().deleteProductEntry(productEntryId);
478 }
479
480 public static void deleteProductEntry(
481 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException {
484 getService().deleteProductEntry(productEntry);
485 }
486
487 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
488 long companyId, int start, int end)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 return getService().getCompanyProductEntries(companyId, start, end);
491 }
492
493 public static int getCompanyProductEntriesCount(long companyId)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 return getService().getCompanyProductEntriesCount(companyId);
496 }
497
498 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
499 long groupId, int start, int end)
500 throws com.liferay.portal.kernel.exception.SystemException {
501 return getService().getProductEntries(groupId, start, end);
502 }
503
504 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
505 long groupId, int start, int end,
506 com.liferay.portal.kernel.util.OrderByComparator obc)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 return getService().getProductEntries(groupId, start, end, obc);
509 }
510
511 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
512 long groupId, long userId, int start, int end)
513 throws com.liferay.portal.kernel.exception.SystemException {
514 return getService().getProductEntries(groupId, userId, start, end);
515 }
516
517 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
518 long groupId, long userId, int start, int end,
519 com.liferay.portal.kernel.util.OrderByComparator obc)
520 throws com.liferay.portal.kernel.exception.SystemException {
521 return getService().getProductEntries(groupId, userId, start, end, obc);
522 }
523
524 public static int getProductEntriesCount(long groupId)
525 throws com.liferay.portal.kernel.exception.SystemException {
526 return getService().getProductEntriesCount(groupId);
527 }
528
529 public static int getProductEntriesCount(long groupId, long userId)
530 throws com.liferay.portal.kernel.exception.SystemException {
531 return getService().getProductEntriesCount(groupId, userId);
532 }
533
534 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
535 long productEntryId)
536 throws com.liferay.portal.kernel.exception.PortalException,
537 com.liferay.portal.kernel.exception.SystemException {
538 return getService().getProductEntry(productEntryId);
539 }
540
541 public static java.lang.String getRepositoryXML(long groupId,
542 java.lang.String baseImageURL, java.util.Date oldestDate,
543 int maxNumOfVersions, java.util.Properties repoSettings)
544 throws com.liferay.portal.kernel.exception.SystemException {
545 return getService()
546 .getRepositoryXML(groupId, baseImageURL, oldestDate,
547 maxNumOfVersions, repoSettings);
548 }
549
550 public static java.lang.String getRepositoryXML(long groupId,
551 java.lang.String version, java.lang.String baseImageURL,
552 java.util.Date oldestDate, int maxNumOfVersions,
553 java.util.Properties repoSettings)
554 throws com.liferay.portal.kernel.exception.SystemException {
555 return getService()
556 .getRepositoryXML(groupId, version, baseImageURL,
557 oldestDate, maxNumOfVersions, repoSettings);
558 }
559
560 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
561 long productEntryId, java.lang.String name, java.lang.String type,
562 java.lang.String tags, java.lang.String shortDescription,
563 java.lang.String longDescription, java.lang.String pageURL,
564 java.lang.String author, java.lang.String repoGroupId,
565 java.lang.String repoArtifactId, long[] licenseIds,
566 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
567 throws com.liferay.portal.kernel.exception.PortalException,
568 com.liferay.portal.kernel.exception.SystemException {
569 return getService()
570 .updateProductEntry(productEntryId, name, type, tags,
571 shortDescription, longDescription, pageURL, author, repoGroupId,
572 repoArtifactId, licenseIds, thumbnails, fullImages);
573 }
574
575 public static SCProductEntryLocalService getService() {
576 if (_service == null) {
577 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
578
579 ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
580 "_service");
581 }
582
583 return _service;
584 }
585
586
589 public void setService(SCProductEntryLocalService service) {
590 }
591
592 private static SCProductEntryLocalService _service;
593 }