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 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
044 long userId, java.lang.String name, java.lang.String type,
045 java.lang.String tags, java.lang.String shortDescription,
046 java.lang.String longDescription, java.lang.String pageURL,
047 java.lang.String author, java.lang.String repoGroupId,
048 java.lang.String repoArtifactId, long[] licenseIds,
049 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
050 com.liferay.portal.service.ServiceContext serviceContext)
051 throws com.liferay.portal.kernel.exception.PortalException {
052 return getService()
053 .addProductEntry(userId, name, type, tags, shortDescription,
054 longDescription, pageURL, author, repoGroupId, repoArtifactId,
055 licenseIds, thumbnails, fullImages, serviceContext);
056 }
057
058 public static void addProductEntryResources(
059 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
060 boolean addGroupPermissions, boolean addGuestPermissions)
061 throws com.liferay.portal.kernel.exception.PortalException {
062 getService()
063 .addProductEntryResources(productEntry, addGroupPermissions,
064 addGuestPermissions);
065 }
066
067 public static void addProductEntryResources(
068 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
069 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
070 throws com.liferay.portal.kernel.exception.PortalException {
071 getService().addProductEntryResources(productEntry, modelPermissions);
072 }
073
074 public static void addProductEntryResources(long productEntryId,
075 boolean addGroupPermissions, boolean addGuestPermissions)
076 throws com.liferay.portal.kernel.exception.PortalException {
077 getService()
078 .addProductEntryResources(productEntryId, addGroupPermissions,
079 addGuestPermissions);
080 }
081
082 public static void addProductEntryResources(long productEntryId,
083 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
084 throws com.liferay.portal.kernel.exception.PortalException {
085 getService().addProductEntryResources(productEntryId, modelPermissions);
086 }
087
088 public static void addSCLicenseSCProductEntries(long licenseId,
089 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries) {
090 getService().addSCLicenseSCProductEntries(licenseId, SCProductEntries);
091 }
092
093 public static void addSCLicenseSCProductEntries(long licenseId,
094 long[] productEntryIds) {
095 getService().addSCLicenseSCProductEntries(licenseId, productEntryIds);
096 }
097
098 public static void addSCLicenseSCProductEntry(long licenseId,
099 long productEntryId) {
100 getService().addSCLicenseSCProductEntry(licenseId, productEntryId);
101 }
102
103 public static void addSCLicenseSCProductEntry(long licenseId,
104 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
105 getService().addSCLicenseSCProductEntry(licenseId, scProductEntry);
106 }
107
108
114 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
115 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
116 return getService().addSCProductEntry(scProductEntry);
117 }
118
119 public static void clearSCLicenseSCProductEntries(long licenseId) {
120 getService().clearSCLicenseSCProductEntries(licenseId);
121 }
122
123
129 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
130 long productEntryId) {
131 return getService().createSCProductEntry(productEntryId);
132 }
133
134
137 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
138 com.liferay.portal.model.PersistedModel persistedModel)
139 throws com.liferay.portal.kernel.exception.PortalException {
140 return getService().deletePersistedModel(persistedModel);
141 }
142
143 public static void deleteProductEntries(long groupId)
144 throws com.liferay.portal.kernel.exception.PortalException {
145 getService().deleteProductEntries(groupId);
146 }
147
148 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
149 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
150 throws com.liferay.portal.kernel.exception.PortalException {
151 return getService().deleteProductEntry(productEntry);
152 }
153
154 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
155 long productEntryId)
156 throws com.liferay.portal.kernel.exception.PortalException {
157 return getService().deleteProductEntry(productEntryId);
158 }
159
160 public static void deleteSCLicenseSCProductEntries(long licenseId,
161 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries) {
162 getService().deleteSCLicenseSCProductEntries(licenseId, SCProductEntries);
163 }
164
165 public static void deleteSCLicenseSCProductEntries(long licenseId,
166 long[] productEntryIds) {
167 getService().deleteSCLicenseSCProductEntries(licenseId, productEntryIds);
168 }
169
170 public static void deleteSCLicenseSCProductEntry(long licenseId,
171 long productEntryId) {
172 getService().deleteSCLicenseSCProductEntry(licenseId, productEntryId);
173 }
174
175 public static void deleteSCLicenseSCProductEntry(long licenseId,
176 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
177 getService().deleteSCLicenseSCProductEntry(licenseId, scProductEntry);
178 }
179
180
187 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
188 long productEntryId)
189 throws com.liferay.portal.kernel.exception.PortalException {
190 return getService().deleteSCProductEntry(productEntryId);
191 }
192
193
199 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
200 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
201 return getService().deleteSCProductEntry(scProductEntry);
202 }
203
204 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
205 return getService().dynamicQuery();
206 }
207
208
214 public static <T> java.util.List<T> dynamicQuery(
215 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
216 return getService().dynamicQuery(dynamicQuery);
217 }
218
219
231 public static <T> java.util.List<T> dynamicQuery(
232 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
233 int end) {
234 return getService().dynamicQuery(dynamicQuery, start, end);
235 }
236
237
250 public static <T> java.util.List<T> dynamicQuery(
251 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
252 int end,
253 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
254 return getService()
255 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
256 }
257
258
264 public static long dynamicQueryCount(
265 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
266 return getService().dynamicQueryCount(dynamicQuery);
267 }
268
269
276 public static long dynamicQueryCount(
277 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
278 com.liferay.portal.kernel.dao.orm.Projection projection) {
279 return getService().dynamicQueryCount(dynamicQuery, projection);
280 }
281
282 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
283 long productEntryId) {
284 return getService().fetchSCProductEntry(productEntryId);
285 }
286
287 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
288 return getService().getActionableDynamicQuery();
289 }
290
291
296 public static java.lang.String getBeanIdentifier() {
297 return getService().getBeanIdentifier();
298 }
299
300 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
301 long companyId, int start, int end) {
302 return getService().getCompanyProductEntries(companyId, start, end);
303 }
304
305 public static int getCompanyProductEntriesCount(long companyId) {
306 return getService().getCompanyProductEntriesCount(companyId);
307 }
308
309 public static com.liferay.portal.model.PersistedModel getPersistedModel(
310 java.io.Serializable primaryKeyObj)
311 throws com.liferay.portal.kernel.exception.PortalException {
312 return getService().getPersistedModel(primaryKeyObj);
313 }
314
315 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
316 long groupId, int start, int end) {
317 return getService().getProductEntries(groupId, start, end);
318 }
319
320 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
321 long groupId, int start, int end,
322 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> obc) {
323 return getService().getProductEntries(groupId, start, end, obc);
324 }
325
326 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
327 long groupId, long userId, int start, int end) {
328 return getService().getProductEntries(groupId, userId, start, end);
329 }
330
331 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
332 long groupId, long userId, int start, int end,
333 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> obc) {
334 return getService().getProductEntries(groupId, userId, start, end, obc);
335 }
336
337 public static int getProductEntriesCount(long groupId) {
338 return getService().getProductEntriesCount(groupId);
339 }
340
341 public static int getProductEntriesCount(long groupId, long userId) {
342 return getService().getProductEntriesCount(groupId, userId);
343 }
344
345 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
346 long productEntryId)
347 throws com.liferay.portal.kernel.exception.PortalException {
348 return getService().getProductEntry(productEntryId);
349 }
350
351 public static java.lang.String getRepositoryXML(long groupId,
352 java.lang.String baseImageURL, java.util.Date oldestDate,
353 int maxNumOfVersions, java.util.Properties repoSettings) {
354 return getService()
355 .getRepositoryXML(groupId, baseImageURL, oldestDate,
356 maxNumOfVersions, repoSettings);
357 }
358
359 public static java.lang.String getRepositoryXML(long groupId,
360 java.lang.String version, java.lang.String baseImageURL,
361 java.util.Date oldestDate, int maxNumOfVersions,
362 java.util.Properties repoSettings) {
363 return getService()
364 .getRepositoryXML(groupId, version, baseImageURL,
365 oldestDate, maxNumOfVersions, repoSettings);
366 }
367
368
374 public static long[] getSCLicensePrimaryKeys(long productEntryId) {
375 return getService().getSCLicensePrimaryKeys(productEntryId);
376 }
377
378 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
379 long licenseId) {
380 return getService().getSCLicenseSCProductEntries(licenseId);
381 }
382
383 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
384 long licenseId, int start, int end) {
385 return getService().getSCLicenseSCProductEntries(licenseId, start, end);
386 }
387
388 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
389 long licenseId, int start, int end,
390 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> orderByComparator) {
391 return getService()
392 .getSCLicenseSCProductEntries(licenseId, start, end,
393 orderByComparator);
394 }
395
396 public static int getSCLicenseSCProductEntriesCount(long licenseId) {
397 return getService().getSCLicenseSCProductEntriesCount(licenseId);
398 }
399
400
411 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
412 int start, int end) {
413 return getService().getSCProductEntries(start, end);
414 }
415
416
421 public static int getSCProductEntriesCount() {
422 return getService().getSCProductEntriesCount();
423 }
424
425
432 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
433 long productEntryId)
434 throws com.liferay.portal.kernel.exception.PortalException {
435 return getService().getSCProductEntry(productEntryId);
436 }
437
438 public static boolean hasSCLicenseSCProductEntries(long licenseId) {
439 return getService().hasSCLicenseSCProductEntries(licenseId);
440 }
441
442 public static boolean hasSCLicenseSCProductEntry(long licenseId,
443 long productEntryId) {
444 return getService().hasSCLicenseSCProductEntry(licenseId, productEntryId);
445 }
446
447
452 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
453 getService().setBeanIdentifier(beanIdentifier);
454 }
455
456 public static void setSCLicenseSCProductEntries(long licenseId,
457 long[] productEntryIds) {
458 getService().setSCLicenseSCProductEntries(licenseId, productEntryIds);
459 }
460
461 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
462 long productEntryId, java.lang.String name, java.lang.String type,
463 java.lang.String tags, java.lang.String shortDescription,
464 java.lang.String longDescription, java.lang.String pageURL,
465 java.lang.String author, java.lang.String repoGroupId,
466 java.lang.String repoArtifactId, long[] licenseIds,
467 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
468 throws com.liferay.portal.kernel.exception.PortalException {
469 return getService()
470 .updateProductEntry(productEntryId, name, type, tags,
471 shortDescription, longDescription, pageURL, author, repoGroupId,
472 repoArtifactId, licenseIds, thumbnails, fullImages);
473 }
474
475
481 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
482 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
483 return getService().updateSCProductEntry(scProductEntry);
484 }
485
486 public static SCProductEntryLocalService getService() {
487 if (_service == null) {
488 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
489
490 ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
491 "_service");
492 }
493
494 return _service;
495 }
496
497
500 @Deprecated
501 public void setService(SCProductEntryLocalService service) {
502 }
503
504 private static SCProductEntryLocalService _service;
505 }