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 SCLicenseLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
048 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addSCLicense(scLicense);
051 }
052
053
059 public static com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
060 long licenseId) {
061 return getService().createSCLicense(licenseId);
062 }
063
064
072 public static com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
073 long licenseId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteSCLicense(licenseId);
077 }
078
079
086 public static com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
087 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteSCLicense(scLicense);
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.SCLicense fetchSCLicense(
168 long licenseId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchSCLicense(licenseId);
171 }
172
173
181 public static com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
182 long licenseId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getSCLicense(licenseId);
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.SCLicense> getSCLicenses(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getSCLicenses(start, end);
211 }
212
213
219 public static int getSCLicensesCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getSCLicensesCount();
222 }
223
224
231 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
232 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateSCLicense(scLicense);
235 }
236
237
240 public static void addSCProductEntrySCLicense(long productEntryId,
241 long licenseId)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 getService().addSCProductEntrySCLicense(productEntryId, licenseId);
244 }
245
246
249 public static void addSCProductEntrySCLicense(long productEntryId,
250 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 getService().addSCProductEntrySCLicense(productEntryId, scLicense);
253 }
254
255
258 public static void addSCProductEntrySCLicenses(long productEntryId,
259 long[] licenseIds)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 getService().addSCProductEntrySCLicenses(productEntryId, licenseIds);
262 }
263
264
267 public static void addSCProductEntrySCLicenses(long productEntryId,
268 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 getService().addSCProductEntrySCLicenses(productEntryId, SCLicenses);
271 }
272
273
276 public static void clearSCProductEntrySCLicenses(long productEntryId)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 getService().clearSCProductEntrySCLicenses(productEntryId);
279 }
280
281
284 public static void deleteSCProductEntrySCLicense(long productEntryId,
285 long licenseId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 getService().deleteSCProductEntrySCLicense(productEntryId, licenseId);
288 }
289
290
293 public static void deleteSCProductEntrySCLicense(long productEntryId,
294 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 getService().deleteSCProductEntrySCLicense(productEntryId, scLicense);
297 }
298
299
302 public static void deleteSCProductEntrySCLicenses(long productEntryId,
303 long[] licenseIds)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().deleteSCProductEntrySCLicenses(productEntryId, licenseIds);
306 }
307
308
311 public static void deleteSCProductEntrySCLicenses(long productEntryId,
312 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 getService().deleteSCProductEntrySCLicenses(productEntryId, SCLicenses);
315 }
316
317
320 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
321 long productEntryId)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getService().getSCProductEntrySCLicenses(productEntryId);
324 }
325
326
329 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
330 long productEntryId, int start, int end)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getService()
333 .getSCProductEntrySCLicenses(productEntryId, start, end);
334 }
335
336
339 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
340 long productEntryId, int start, int end,
341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getService()
344 .getSCProductEntrySCLicenses(productEntryId, start, end,
345 orderByComparator);
346 }
347
348
351 public static int getSCProductEntrySCLicensesCount(long productEntryId)
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return getService().getSCProductEntrySCLicensesCount(productEntryId);
354 }
355
356
359 public static boolean hasSCProductEntrySCLicense(long productEntryId,
360 long licenseId)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getService().hasSCProductEntrySCLicense(productEntryId, licenseId);
363 }
364
365
368 public static boolean hasSCProductEntrySCLicenses(long productEntryId)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getService().hasSCProductEntrySCLicenses(productEntryId);
371 }
372
373
376 public static void setSCProductEntrySCLicenses(long productEntryId,
377 long[] licenseIds)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 getService().setSCProductEntrySCLicenses(productEntryId, licenseIds);
380 }
381
382
387 public static java.lang.String getBeanIdentifier() {
388 return getService().getBeanIdentifier();
389 }
390
391
396 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
397 getService().setBeanIdentifier(beanIdentifier);
398 }
399
400 public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
401 java.lang.String name, java.lang.String url, boolean openSource,
402 boolean active, boolean recommended)
403 throws com.liferay.portal.kernel.exception.PortalException,
404 com.liferay.portal.kernel.exception.SystemException {
405 return getService()
406 .addLicense(name, url, openSource, active, recommended);
407 }
408
409 public static void deleteLicense(long licenseId)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 getService().deleteLicense(licenseId);
413 }
414
415 public static void deleteLicense(
416 com.liferay.portlet.softwarecatalog.model.SCLicense license)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 getService().deleteLicense(license);
419 }
420
421 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
422 long licenseId)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException {
425 return getService().getLicense(licenseId);
426 }
427
428 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
429 throws com.liferay.portal.kernel.exception.SystemException {
430 return getService().getLicenses();
431 }
432
433 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
434 boolean active, boolean recommended)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return getService().getLicenses(active, recommended);
437 }
438
439 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
440 boolean active, boolean recommended, int start, int end)
441 throws com.liferay.portal.kernel.exception.SystemException {
442 return getService().getLicenses(active, recommended, start, end);
443 }
444
445 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
446 int start, int end)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 return getService().getLicenses(start, end);
449 }
450
451 public static int getLicensesCount()
452 throws com.liferay.portal.kernel.exception.SystemException {
453 return getService().getLicensesCount();
454 }
455
456 public static int getLicensesCount(boolean active, boolean recommended)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getService().getLicensesCount(active, recommended);
459 }
460
461 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
462 long productEntryId)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getService().getProductEntryLicenses(productEntryId);
465 }
466
467 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
468 long licenseId, java.lang.String name, java.lang.String url,
469 boolean openSource, boolean active, boolean recommended)
470 throws com.liferay.portal.kernel.exception.PortalException,
471 com.liferay.portal.kernel.exception.SystemException {
472 return getService()
473 .updateLicense(licenseId, name, url, openSource, active,
474 recommended);
475 }
476
477 public static SCLicenseLocalService getService() {
478 if (_service == null) {
479 _service = (SCLicenseLocalService)PortalBeanLocatorUtil.locate(SCLicenseLocalService.class.getName());
480
481 ReferenceRegistry.registerReference(SCLicenseLocalServiceUtil.class,
482 "_service");
483 }
484
485 return _service;
486 }
487
488
491 public void setService(SCLicenseLocalService service) {
492 }
493
494 private static SCLicenseLocalService _service;
495 }