001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.service.BaseLocalService;
026 import com.liferay.portal.service.PersistedModelLocalService;
027
028
040 @ProviderType
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface SCProductEntryLocalService extends BaseLocalService,
044 PersistedModelLocalService {
045
050
051
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
060 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063
069 public com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
070 long productEntryId);
071
072
080 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
081 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
082 long productEntryId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086
093 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
094 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
095 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
099
100
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112
125 @SuppressWarnings("rawtypes")
126 public java.util.List dynamicQuery(
127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128 int end) throws com.liferay.portal.kernel.exception.SystemException;
129
130
144 @SuppressWarnings("rawtypes")
145 public 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
151
158 public long dynamicQueryCount(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162
170 public long dynamicQueryCount(
171 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
172 com.liferay.portal.kernel.dao.orm.Projection projection)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
177 long productEntryId)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
190 long productEntryId)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194 @Override
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portal.model.PersistedModel getPersistedModel(
197 java.io.Serializable primaryKeyObj)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException;
200
201
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
215 int start, int end)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public int getSCProductEntriesCount()
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228
235 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
236 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
237 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240
243 public void addSCLicenseSCProductEntry(long licenseId, long productEntryId)
244 throws com.liferay.portal.kernel.exception.SystemException;
245
246
249 public void addSCLicenseSCProductEntry(long licenseId,
250 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253
256 public void addSCLicenseSCProductEntries(long licenseId,
257 long[] productEntryIds)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260
263 public void addSCLicenseSCProductEntries(long licenseId,
264 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267
270 public void clearSCLicenseSCProductEntries(long licenseId)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273
276 public void deleteSCLicenseSCProductEntry(long licenseId,
277 long productEntryId)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280
283 public void deleteSCLicenseSCProductEntry(long licenseId,
284 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287
290 public void deleteSCLicenseSCProductEntries(long licenseId,
291 long[] productEntryIds)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294
297 public void deleteSCLicenseSCProductEntries(long licenseId,
298 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
306 long licenseId)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
314 long licenseId, int start, int end)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
322 long licenseId, int start, int end,
323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public int getSCLicenseSCProductEntriesCount(long licenseId)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public boolean hasSCLicenseSCProductEntry(long licenseId,
338 long productEntryId)
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public boolean hasSCLicenseSCProductEntries(long licenseId)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348
351 public void setSCLicenseSCProductEntries(long licenseId,
352 long[] productEntryIds)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355
360 public java.lang.String getBeanIdentifier();
361
362
367 public void setBeanIdentifier(java.lang.String beanIdentifier);
368
369 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
370 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
371 long userId, java.lang.String name, java.lang.String type,
372 java.lang.String tags, java.lang.String shortDescription,
373 java.lang.String longDescription, java.lang.String pageURL,
374 java.lang.String author, java.lang.String repoGroupId,
375 java.lang.String repoArtifactId, long[] licenseIds,
376 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
377 com.liferay.portal.service.ServiceContext serviceContext)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException;
380
381 public void addProductEntryResources(long productEntryId,
382 boolean addGroupPermissions, boolean addGuestPermissions)
383 throws com.liferay.portal.kernel.exception.PortalException,
384 com.liferay.portal.kernel.exception.SystemException;
385
386 public void addProductEntryResources(long productEntryId,
387 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
388 throws com.liferay.portal.kernel.exception.PortalException,
389 com.liferay.portal.kernel.exception.SystemException;
390
391 public void addProductEntryResources(
392 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
393 boolean addGroupPermissions, boolean addGuestPermissions)
394 throws com.liferay.portal.kernel.exception.PortalException,
395 com.liferay.portal.kernel.exception.SystemException;
396
397 public void addProductEntryResources(
398 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
399 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
400 throws com.liferay.portal.kernel.exception.PortalException,
401 com.liferay.portal.kernel.exception.SystemException;
402
403 public void deleteProductEntries(long groupId)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException;
406
407 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
408 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
409 long productEntryId)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException;
412
413 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
414 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
415 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
416 throws com.liferay.portal.kernel.exception.PortalException,
417 com.liferay.portal.kernel.exception.SystemException;
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
421 long companyId, int start, int end)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public int getCompanyProductEntriesCount(long companyId)
426 throws com.liferay.portal.kernel.exception.SystemException;
427
428 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
430 long groupId, int start, int end)
431 throws com.liferay.portal.kernel.exception.SystemException;
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
435 long groupId, int start, int end,
436 com.liferay.portal.kernel.util.OrderByComparator obc)
437 throws com.liferay.portal.kernel.exception.SystemException;
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
441 long groupId, long userId, int start, int end)
442 throws com.liferay.portal.kernel.exception.SystemException;
443
444 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
446 long groupId, long userId, int start, int end,
447 com.liferay.portal.kernel.util.OrderByComparator obc)
448 throws com.liferay.portal.kernel.exception.SystemException;
449
450 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451 public int getProductEntriesCount(long groupId)
452 throws com.liferay.portal.kernel.exception.SystemException;
453
454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455 public int getProductEntriesCount(long groupId, long userId)
456 throws com.liferay.portal.kernel.exception.SystemException;
457
458 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
460 long productEntryId)
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public java.lang.String getRepositoryXML(long groupId,
466 java.lang.String baseImageURL, java.util.Date oldestDate,
467 int maxNumOfVersions, java.util.Properties repoSettings)
468 throws com.liferay.portal.kernel.exception.SystemException;
469
470 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471 public java.lang.String getRepositoryXML(long groupId,
472 java.lang.String version, java.lang.String baseImageURL,
473 java.util.Date oldestDate, int maxNumOfVersions,
474 java.util.Properties repoSettings)
475 throws com.liferay.portal.kernel.exception.SystemException;
476
477 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
478 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
479 long productEntryId, java.lang.String name, java.lang.String type,
480 java.lang.String tags, java.lang.String shortDescription,
481 java.lang.String longDescription, java.lang.String pageURL,
482 java.lang.String author, java.lang.String repoGroupId,
483 java.lang.String repoArtifactId, long[] licenseIds,
484 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
485 throws com.liferay.portal.kernel.exception.PortalException,
486 com.liferay.portal.kernel.exception.SystemException;
487 }