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 SCLicenseLocalServiceUtil {
038
043 public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
044 java.lang.String name, java.lang.String url, boolean openSource,
045 boolean active, boolean recommended)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService()
048 .addLicense(name, url, openSource, active, recommended);
049 }
050
051
057 public static com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
058 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
059 return getService().addSCLicense(scLicense);
060 }
061
062 public static void addSCProductEntrySCLicense(long productEntryId,
063 long licenseId) {
064 getService().addSCProductEntrySCLicense(productEntryId, licenseId);
065 }
066
067 public static void addSCProductEntrySCLicense(long productEntryId,
068 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
069 getService().addSCProductEntrySCLicense(productEntryId, scLicense);
070 }
071
072 public static void addSCProductEntrySCLicenses(long productEntryId,
073 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses) {
074 getService().addSCProductEntrySCLicenses(productEntryId, SCLicenses);
075 }
076
077 public static void addSCProductEntrySCLicenses(long productEntryId,
078 long[] licenseIds) {
079 getService().addSCProductEntrySCLicenses(productEntryId, licenseIds);
080 }
081
082 public static void clearSCProductEntrySCLicenses(long productEntryId) {
083 getService().clearSCProductEntrySCLicenses(productEntryId);
084 }
085
086
092 public static com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
093 long licenseId) {
094 return getService().createSCLicense(licenseId);
095 }
096
097 public static void deleteLicense(
098 com.liferay.portlet.softwarecatalog.model.SCLicense license) {
099 getService().deleteLicense(license);
100 }
101
102 public static void deleteLicense(long licenseId)
103 throws com.liferay.portal.kernel.exception.PortalException {
104 getService().deleteLicense(licenseId);
105 }
106
107
110 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
111 com.liferay.portal.model.PersistedModel persistedModel)
112 throws com.liferay.portal.kernel.exception.PortalException {
113 return getService().deletePersistedModel(persistedModel);
114 }
115
116
123 public static com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
124 long licenseId)
125 throws com.liferay.portal.kernel.exception.PortalException {
126 return getService().deleteSCLicense(licenseId);
127 }
128
129
135 public static com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
136 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
137 return getService().deleteSCLicense(scLicense);
138 }
139
140 public static void deleteSCProductEntrySCLicense(long productEntryId,
141 long licenseId) {
142 getService().deleteSCProductEntrySCLicense(productEntryId, licenseId);
143 }
144
145 public static void deleteSCProductEntrySCLicense(long productEntryId,
146 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
147 getService().deleteSCProductEntrySCLicense(productEntryId, scLicense);
148 }
149
150 public static void deleteSCProductEntrySCLicenses(long productEntryId,
151 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses) {
152 getService().deleteSCProductEntrySCLicenses(productEntryId, SCLicenses);
153 }
154
155 public static void deleteSCProductEntrySCLicenses(long productEntryId,
156 long[] licenseIds) {
157 getService().deleteSCProductEntrySCLicenses(productEntryId, licenseIds);
158 }
159
160 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
161 return getService().dynamicQuery();
162 }
163
164
170 public static <T> java.util.List<T> dynamicQuery(
171 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
172 return getService().dynamicQuery(dynamicQuery);
173 }
174
175
187 public static <T> java.util.List<T> dynamicQuery(
188 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
189 int end) {
190 return getService().dynamicQuery(dynamicQuery, start, end);
191 }
192
193
206 public static <T> java.util.List<T> dynamicQuery(
207 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
208 int end,
209 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
210 return getService()
211 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
212 }
213
214
220 public static long dynamicQueryCount(
221 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
222 return getService().dynamicQueryCount(dynamicQuery);
223 }
224
225
232 public static long dynamicQueryCount(
233 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
234 com.liferay.portal.kernel.dao.orm.Projection projection) {
235 return getService().dynamicQueryCount(dynamicQuery, projection);
236 }
237
238 public static com.liferay.portlet.softwarecatalog.model.SCLicense fetchSCLicense(
239 long licenseId) {
240 return getService().fetchSCLicense(licenseId);
241 }
242
243 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
244 return getService().getActionableDynamicQuery();
245 }
246
247 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
248 long licenseId)
249 throws com.liferay.portal.kernel.exception.PortalException {
250 return getService().getLicense(licenseId);
251 }
252
253 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses() {
254 return getService().getLicenses();
255 }
256
257 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
258 boolean active, boolean recommended) {
259 return getService().getLicenses(active, recommended);
260 }
261
262 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
263 boolean active, boolean recommended, int start, int end) {
264 return getService().getLicenses(active, recommended, start, end);
265 }
266
267 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
268 int start, int end) {
269 return getService().getLicenses(start, end);
270 }
271
272 public static int getLicensesCount() {
273 return getService().getLicensesCount();
274 }
275
276 public static int getLicensesCount(boolean active, boolean recommended) {
277 return getService().getLicensesCount(active, recommended);
278 }
279
280
285 public static java.lang.String getOSGiServiceIdentifier() {
286 return getService().getOSGiServiceIdentifier();
287 }
288
289 public static com.liferay.portal.model.PersistedModel getPersistedModel(
290 java.io.Serializable primaryKeyObj)
291 throws com.liferay.portal.kernel.exception.PortalException {
292 return getService().getPersistedModel(primaryKeyObj);
293 }
294
295 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
296 long productEntryId) {
297 return getService().getProductEntryLicenses(productEntryId);
298 }
299
300
307 public static com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
308 long licenseId)
309 throws com.liferay.portal.kernel.exception.PortalException {
310 return getService().getSCLicense(licenseId);
311 }
312
313
324 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
325 int start, int end) {
326 return getService().getSCLicenses(start, end);
327 }
328
329
334 public static int getSCLicensesCount() {
335 return getService().getSCLicensesCount();
336 }
337
338
344 public static long[] getSCProductEntryPrimaryKeys(long licenseId) {
345 return getService().getSCProductEntryPrimaryKeys(licenseId);
346 }
347
348 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
349 long productEntryId) {
350 return getService().getSCProductEntrySCLicenses(productEntryId);
351 }
352
353 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
354 long productEntryId, int start, int end) {
355 return getService()
356 .getSCProductEntrySCLicenses(productEntryId, start, end);
357 }
358
359 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
360 long productEntryId, int start, int end,
361 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCLicense> orderByComparator) {
362 return getService()
363 .getSCProductEntrySCLicenses(productEntryId, start, end,
364 orderByComparator);
365 }
366
367 public static int getSCProductEntrySCLicensesCount(long productEntryId) {
368 return getService().getSCProductEntrySCLicensesCount(productEntryId);
369 }
370
371 public static boolean hasSCProductEntrySCLicense(long productEntryId,
372 long licenseId) {
373 return getService().hasSCProductEntrySCLicense(productEntryId, licenseId);
374 }
375
376 public static boolean hasSCProductEntrySCLicenses(long productEntryId) {
377 return getService().hasSCProductEntrySCLicenses(productEntryId);
378 }
379
380 public static void setSCProductEntrySCLicenses(long productEntryId,
381 long[] licenseIds) {
382 getService().setSCProductEntrySCLicenses(productEntryId, licenseIds);
383 }
384
385 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
386 long licenseId, java.lang.String name, java.lang.String url,
387 boolean openSource, boolean active, boolean recommended)
388 throws com.liferay.portal.kernel.exception.PortalException {
389 return getService()
390 .updateLicense(licenseId, name, url, openSource, active,
391 recommended);
392 }
393
394
400 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
401 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
402 return getService().updateSCLicense(scLicense);
403 }
404
405 public static SCLicenseLocalService getService() {
406 if (_service == null) {
407 _service = (SCLicenseLocalService)PortalBeanLocatorUtil.locate(SCLicenseLocalService.class.getName());
408
409 ReferenceRegistry.registerReference(SCLicenseLocalServiceUtil.class,
410 "_service");
411 }
412
413 return _service;
414 }
415
416
419 @Deprecated
420 public void setService(SCLicenseLocalService service) {
421 }
422
423 private static SCLicenseLocalService _service;
424 }