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 SCLicenseLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
049 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addSCLicense(scLicense);
052 }
053
054
060 public static com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
061 long licenseId) {
062 return getService().createSCLicense(licenseId);
063 }
064
065
073 public static com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
074 long licenseId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteSCLicense(licenseId);
078 }
079
080
087 public static com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
088 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteSCLicense(scLicense);
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.SCLicense fetchSCLicense(
184 long licenseId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchSCLicense(licenseId);
187 }
188
189
197 public static com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
198 long licenseId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException {
201 return getService().getSCLicense(licenseId);
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.SCLicense> getSCLicenses(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getSCLicenses(start, end);
227 }
228
229
235 public static int getSCLicensesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getSCLicensesCount();
238 }
239
240
247 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
248 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateSCLicense(scLicense);
251 }
252
253
256 public static void addSCProductEntrySCLicense(long productEntryId,
257 long licenseId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getService().addSCProductEntrySCLicense(productEntryId, licenseId);
260 }
261
262
265 public static void addSCProductEntrySCLicense(long productEntryId,
266 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 getService().addSCProductEntrySCLicense(productEntryId, scLicense);
269 }
270
271
274 public static void addSCProductEntrySCLicenses(long productEntryId,
275 long[] licenseIds)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getService().addSCProductEntrySCLicenses(productEntryId, licenseIds);
278 }
279
280
283 public static void addSCProductEntrySCLicenses(long productEntryId,
284 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getService().addSCProductEntrySCLicenses(productEntryId, SCLicenses);
287 }
288
289
292 public static void clearSCProductEntrySCLicenses(long productEntryId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().clearSCProductEntrySCLicenses(productEntryId);
295 }
296
297
300 public static void deleteSCProductEntrySCLicense(long productEntryId,
301 long licenseId)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteSCProductEntrySCLicense(productEntryId, licenseId);
304 }
305
306
309 public static void deleteSCProductEntrySCLicense(long productEntryId,
310 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 getService().deleteSCProductEntrySCLicense(productEntryId, scLicense);
313 }
314
315
318 public static void deleteSCProductEntrySCLicenses(long productEntryId,
319 long[] licenseIds)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getService().deleteSCProductEntrySCLicenses(productEntryId, licenseIds);
322 }
323
324
327 public static void deleteSCProductEntrySCLicenses(long productEntryId,
328 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 getService().deleteSCProductEntrySCLicenses(productEntryId, SCLicenses);
331 }
332
333
336 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
337 long productEntryId)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService().getSCProductEntrySCLicenses(productEntryId);
340 }
341
342
345 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
346 long productEntryId, int start, int end)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService()
349 .getSCProductEntrySCLicenses(productEntryId, start, end);
350 }
351
352
355 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
356 long productEntryId, int start, int end,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getService()
360 .getSCProductEntrySCLicenses(productEntryId, start, end,
361 orderByComparator);
362 }
363
364
367 public static int getSCProductEntrySCLicensesCount(long productEntryId)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getService().getSCProductEntrySCLicensesCount(productEntryId);
370 }
371
372
375 public static boolean hasSCProductEntrySCLicense(long productEntryId,
376 long licenseId)
377 throws com.liferay.portal.kernel.exception.SystemException {
378 return getService().hasSCProductEntrySCLicense(productEntryId, licenseId);
379 }
380
381
384 public static boolean hasSCProductEntrySCLicenses(long productEntryId)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getService().hasSCProductEntrySCLicenses(productEntryId);
387 }
388
389
392 public static void setSCProductEntrySCLicenses(long productEntryId,
393 long[] licenseIds)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 getService().setSCProductEntrySCLicenses(productEntryId, licenseIds);
396 }
397
398
403 public static java.lang.String getBeanIdentifier() {
404 return getService().getBeanIdentifier();
405 }
406
407
412 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
413 getService().setBeanIdentifier(beanIdentifier);
414 }
415
416 public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
417 java.lang.String name, java.lang.String url, boolean openSource,
418 boolean active, boolean recommended)
419 throws com.liferay.portal.kernel.exception.PortalException,
420 com.liferay.portal.kernel.exception.SystemException {
421 return getService()
422 .addLicense(name, url, openSource, active, recommended);
423 }
424
425 public static void deleteLicense(long licenseId)
426 throws com.liferay.portal.kernel.exception.PortalException,
427 com.liferay.portal.kernel.exception.SystemException {
428 getService().deleteLicense(licenseId);
429 }
430
431 public static void deleteLicense(
432 com.liferay.portlet.softwarecatalog.model.SCLicense license)
433 throws com.liferay.portal.kernel.exception.SystemException {
434 getService().deleteLicense(license);
435 }
436
437 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
438 long licenseId)
439 throws com.liferay.portal.kernel.exception.PortalException,
440 com.liferay.portal.kernel.exception.SystemException {
441 return getService().getLicense(licenseId);
442 }
443
444 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
445 throws com.liferay.portal.kernel.exception.SystemException {
446 return getService().getLicenses();
447 }
448
449 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
450 boolean active, boolean recommended)
451 throws com.liferay.portal.kernel.exception.SystemException {
452 return getService().getLicenses(active, recommended);
453 }
454
455 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
456 boolean active, boolean recommended, int start, int end)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getService().getLicenses(active, recommended, start, end);
459 }
460
461 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
462 int start, int end)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getService().getLicenses(start, end);
465 }
466
467 public static int getLicensesCount()
468 throws com.liferay.portal.kernel.exception.SystemException {
469 return getService().getLicensesCount();
470 }
471
472 public static int getLicensesCount(boolean active, boolean recommended)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 return getService().getLicensesCount(active, recommended);
475 }
476
477 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
478 long productEntryId)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return getService().getProductEntryLicenses(productEntryId);
481 }
482
483 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
484 long licenseId, java.lang.String name, java.lang.String url,
485 boolean openSource, boolean active, boolean recommended)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException {
488 return getService()
489 .updateLicense(licenseId, name, url, openSource, active,
490 recommended);
491 }
492
493 public static SCLicenseLocalService getService() {
494 if (_service == null) {
495 _service = (SCLicenseLocalService)PortalBeanLocatorUtil.locate(SCLicenseLocalService.class.getName());
496
497 ReferenceRegistry.registerReference(SCLicenseLocalServiceUtil.class,
498 "_service");
499 }
500
501 return _service;
502 }
503
504
507 public void setService(SCLicenseLocalService service) {
508 }
509
510 private static SCLicenseLocalService _service;
511 }