001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class SCProductEntryLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
052 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addSCProductEntry(scProductEntry);
055 }
056
057
063 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
064 long productEntryId) {
065 return getService().createSCProductEntry(productEntryId);
066 }
067
068
076 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
077 long productEntryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteSCProductEntry(productEntryId);
081 }
082
083
090 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
091 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteSCProductEntry(scProductEntry);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
187 long productEntryId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchSCProductEntry(productEntryId);
190 }
191
192
200 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
201 long productEntryId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getSCProductEntry(productEntryId);
205 }
206
207 public static com.liferay.portal.model.PersistedModel getPersistedModel(
208 java.io.Serializable primaryKeyObj)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService().getPersistedModel(primaryKeyObj);
212 }
213
214
226 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
227 int start, int end)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getService().getSCProductEntries(start, end);
230 }
231
232
238 public static int getSCProductEntriesCount()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getSCProductEntriesCount();
241 }
242
243
250 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
251 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getService().updateSCProductEntry(scProductEntry);
254 }
255
256
259 public static void addSCLicenseSCProductEntry(long licenseId,
260 long productEntryId)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 getService().addSCLicenseSCProductEntry(licenseId, productEntryId);
263 }
264
265
268 public static void addSCLicenseSCProductEntry(long licenseId,
269 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
270 throws com.liferay.portal.kernel.exception.SystemException {
271 getService().addSCLicenseSCProductEntry(licenseId, scProductEntry);
272 }
273
274
277 public static void addSCLicenseSCProductEntries(long licenseId,
278 long[] productEntryIds)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 getService().addSCLicenseSCProductEntries(licenseId, productEntryIds);
281 }
282
283
286 public static void addSCLicenseSCProductEntries(long licenseId,
287 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 getService().addSCLicenseSCProductEntries(licenseId, SCProductEntries);
290 }
291
292
295 public static void clearSCLicenseSCProductEntries(long licenseId)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 getService().clearSCLicenseSCProductEntries(licenseId);
298 }
299
300
303 public static void deleteSCLicenseSCProductEntry(long licenseId,
304 long productEntryId)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 getService().deleteSCLicenseSCProductEntry(licenseId, productEntryId);
307 }
308
309
312 public static void deleteSCLicenseSCProductEntry(long licenseId,
313 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getService().deleteSCLicenseSCProductEntry(licenseId, scProductEntry);
316 }
317
318
321 public static void deleteSCLicenseSCProductEntries(long licenseId,
322 long[] productEntryIds)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 getService().deleteSCLicenseSCProductEntries(licenseId, productEntryIds);
325 }
326
327
330 public static void deleteSCLicenseSCProductEntries(long licenseId,
331 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 getService().deleteSCLicenseSCProductEntries(licenseId, SCProductEntries);
334 }
335
336
339 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
340 long licenseId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getService().getSCLicenseSCProductEntries(licenseId);
343 }
344
345
348 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
349 long licenseId, int start, int end)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getService().getSCLicenseSCProductEntries(licenseId, start, end);
352 }
353
354
357 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
358 long licenseId, int start, int end,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 return getService()
362 .getSCLicenseSCProductEntries(licenseId, start, end,
363 orderByComparator);
364 }
365
366
369 public static int getSCLicenseSCProductEntriesCount(long licenseId)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 return getService().getSCLicenseSCProductEntriesCount(licenseId);
372 }
373
374
377 public static boolean hasSCLicenseSCProductEntry(long licenseId,
378 long productEntryId)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getService().hasSCLicenseSCProductEntry(licenseId, productEntryId);
381 }
382
383
386 public static boolean hasSCLicenseSCProductEntries(long licenseId)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return getService().hasSCLicenseSCProductEntries(licenseId);
389 }
390
391
394 public static void setSCLicenseSCProductEntries(long licenseId,
395 long[] productEntryIds)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 getService().setSCLicenseSCProductEntries(licenseId, productEntryIds);
398 }
399
400
405 public static java.lang.String getBeanIdentifier() {
406 return getService().getBeanIdentifier();
407 }
408
409
414 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
415 getService().setBeanIdentifier(beanIdentifier);
416 }
417
418 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
419 long userId, java.lang.String name, java.lang.String type,
420 java.lang.String tags, java.lang.String shortDescription,
421 java.lang.String longDescription, java.lang.String pageURL,
422 java.lang.String author, java.lang.String repoGroupId,
423 java.lang.String repoArtifactId, long[] licenseIds,
424 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
425 com.liferay.portal.service.ServiceContext serviceContext)
426 throws com.liferay.portal.kernel.exception.PortalException,
427 com.liferay.portal.kernel.exception.SystemException {
428 return getService()
429 .addProductEntry(userId, name, type, tags, shortDescription,
430 longDescription, pageURL, author, repoGroupId, repoArtifactId,
431 licenseIds, thumbnails, fullImages, serviceContext);
432 }
433
434 public static void addProductEntryResources(long productEntryId,
435 boolean addGroupPermissions, boolean addGuestPermissions)
436 throws com.liferay.portal.kernel.exception.PortalException,
437 com.liferay.portal.kernel.exception.SystemException {
438 getService()
439 .addProductEntryResources(productEntryId, addGroupPermissions,
440 addGuestPermissions);
441 }
442
443 public static void addProductEntryResources(long productEntryId,
444 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
445 throws com.liferay.portal.kernel.exception.PortalException,
446 com.liferay.portal.kernel.exception.SystemException {
447 getService()
448 .addProductEntryResources(productEntryId, groupPermissions,
449 guestPermissions);
450 }
451
452 public static void addProductEntryResources(
453 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
454 boolean addGroupPermissions, boolean addGuestPermissions)
455 throws com.liferay.portal.kernel.exception.PortalException,
456 com.liferay.portal.kernel.exception.SystemException {
457 getService()
458 .addProductEntryResources(productEntry, addGroupPermissions,
459 addGuestPermissions);
460 }
461
462 public static void addProductEntryResources(
463 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
464 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException {
467 getService()
468 .addProductEntryResources(productEntry, groupPermissions,
469 guestPermissions);
470 }
471
472 public static void deleteProductEntries(long groupId)
473 throws com.liferay.portal.kernel.exception.PortalException,
474 com.liferay.portal.kernel.exception.SystemException {
475 getService().deleteProductEntries(groupId);
476 }
477
478 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
479 long productEntryId)
480 throws com.liferay.portal.kernel.exception.PortalException,
481 com.liferay.portal.kernel.exception.SystemException {
482 return getService().deleteProductEntry(productEntryId);
483 }
484
485 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
486 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
487 throws com.liferay.portal.kernel.exception.PortalException,
488 com.liferay.portal.kernel.exception.SystemException {
489 return getService().deleteProductEntry(productEntry);
490 }
491
492 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
493 long companyId, int start, int end)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 return getService().getCompanyProductEntries(companyId, start, end);
496 }
497
498 public static int getCompanyProductEntriesCount(long companyId)
499 throws com.liferay.portal.kernel.exception.SystemException {
500 return getService().getCompanyProductEntriesCount(companyId);
501 }
502
503 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
504 long groupId, int start, int end)
505 throws com.liferay.portal.kernel.exception.SystemException {
506 return getService().getProductEntries(groupId, start, end);
507 }
508
509 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
510 long groupId, int start, int end,
511 com.liferay.portal.kernel.util.OrderByComparator obc)
512 throws com.liferay.portal.kernel.exception.SystemException {
513 return getService().getProductEntries(groupId, start, end, obc);
514 }
515
516 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
517 long groupId, long userId, int start, int end)
518 throws com.liferay.portal.kernel.exception.SystemException {
519 return getService().getProductEntries(groupId, userId, start, end);
520 }
521
522 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
523 long groupId, long userId, int start, int end,
524 com.liferay.portal.kernel.util.OrderByComparator obc)
525 throws com.liferay.portal.kernel.exception.SystemException {
526 return getService().getProductEntries(groupId, userId, start, end, obc);
527 }
528
529 public static int getProductEntriesCount(long groupId)
530 throws com.liferay.portal.kernel.exception.SystemException {
531 return getService().getProductEntriesCount(groupId);
532 }
533
534 public static int getProductEntriesCount(long groupId, long userId)
535 throws com.liferay.portal.kernel.exception.SystemException {
536 return getService().getProductEntriesCount(groupId, userId);
537 }
538
539 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
540 long productEntryId)
541 throws com.liferay.portal.kernel.exception.PortalException,
542 com.liferay.portal.kernel.exception.SystemException {
543 return getService().getProductEntry(productEntryId);
544 }
545
546 public static java.lang.String getRepositoryXML(long groupId,
547 java.lang.String baseImageURL, java.util.Date oldestDate,
548 int maxNumOfVersions, java.util.Properties repoSettings)
549 throws com.liferay.portal.kernel.exception.SystemException {
550 return getService()
551 .getRepositoryXML(groupId, baseImageURL, oldestDate,
552 maxNumOfVersions, repoSettings);
553 }
554
555 public static java.lang.String getRepositoryXML(long groupId,
556 java.lang.String version, java.lang.String baseImageURL,
557 java.util.Date oldestDate, int maxNumOfVersions,
558 java.util.Properties repoSettings)
559 throws com.liferay.portal.kernel.exception.SystemException {
560 return getService()
561 .getRepositoryXML(groupId, version, baseImageURL,
562 oldestDate, maxNumOfVersions, repoSettings);
563 }
564
565 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
566 long productEntryId, java.lang.String name, java.lang.String type,
567 java.lang.String tags, java.lang.String shortDescription,
568 java.lang.String longDescription, java.lang.String pageURL,
569 java.lang.String author, java.lang.String repoGroupId,
570 java.lang.String repoArtifactId, long[] licenseIds,
571 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
572 throws com.liferay.portal.kernel.exception.PortalException,
573 com.liferay.portal.kernel.exception.SystemException {
574 return getService()
575 .updateProductEntry(productEntryId, name, type, tags,
576 shortDescription, longDescription, pageURL, author, repoGroupId,
577 repoArtifactId, licenseIds, thumbnails, fullImages);
578 }
579
580 public static SCProductEntryLocalService getService() {
581 if (_service == null) {
582 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
583
584 ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
585 "_service");
586 }
587
588 return _service;
589 }
590
591
594 public void setService(SCProductEntryLocalService service) {
595 }
596
597 private static SCProductEntryLocalService _service;
598 }