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 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
051 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
052 long userId, java.lang.String name, java.lang.String type,
053 java.lang.String tags, java.lang.String shortDescription,
054 java.lang.String longDescription, java.lang.String pageURL,
055 java.lang.String author, java.lang.String repoGroupId,
056 java.lang.String repoArtifactId, long[] licenseIds,
057 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
058 com.liferay.portal.service.ServiceContext serviceContext)
059 throws com.liferay.portal.kernel.exception.PortalException;
060
061 public void addProductEntryResources(
062 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
063 boolean addGroupPermissions, boolean addGuestPermissions)
064 throws com.liferay.portal.kernel.exception.PortalException;
065
066 public void addProductEntryResources(
067 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
068 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
069 throws com.liferay.portal.kernel.exception.PortalException;
070
071 public void addProductEntryResources(long productEntryId,
072 boolean addGroupPermissions, boolean addGuestPermissions)
073 throws com.liferay.portal.kernel.exception.PortalException;
074
075 public void addProductEntryResources(long productEntryId,
076 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
077 throws com.liferay.portal.kernel.exception.PortalException;
078
079 public void addSCLicenseSCProductEntries(long licenseId,
080 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries);
081
082 public void addSCLicenseSCProductEntries(long licenseId,
083 long[] productEntryIds);
084
085 public void addSCLicenseSCProductEntry(long licenseId, long productEntryId);
086
087 public void addSCLicenseSCProductEntry(long licenseId,
088 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
089
090
096 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
097 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
098 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
099
100 public void clearSCLicenseSCProductEntries(long licenseId);
101
102
108 public com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
109 long productEntryId);
110
111
114 @Override
115 public com.liferay.portal.model.PersistedModel deletePersistedModel(
116 com.liferay.portal.model.PersistedModel persistedModel)
117 throws com.liferay.portal.kernel.exception.PortalException;
118
119 public void deleteProductEntries(long groupId)
120 throws com.liferay.portal.kernel.exception.PortalException;
121
122 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
123 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
124 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
125 throws com.liferay.portal.kernel.exception.PortalException;
126
127 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
128 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
129 long productEntryId)
130 throws com.liferay.portal.kernel.exception.PortalException;
131
132 public void deleteSCLicenseSCProductEntries(long licenseId,
133 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries);
134
135 public void deleteSCLicenseSCProductEntries(long licenseId,
136 long[] productEntryIds);
137
138 public void deleteSCLicenseSCProductEntry(long licenseId,
139 long productEntryId);
140
141 public void deleteSCLicenseSCProductEntry(long licenseId,
142 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
143
144
151 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
152 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
153 long productEntryId)
154 throws com.liferay.portal.kernel.exception.PortalException;
155
156
162 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
163 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
164 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
165
166 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
167
168
174 public <T> java.util.List<T> dynamicQuery(
175 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
176
177
189 public <T> java.util.List<T> dynamicQuery(
190 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
191 int end);
192
193
206 public <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
211
217 public long dynamicQueryCount(
218 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
219
220
227 public long dynamicQueryCount(
228 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
229 com.liferay.portal.kernel.dao.orm.Projection projection);
230
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
233 long productEntryId);
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
237
238
243 public java.lang.String getBeanIdentifier();
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
247 long companyId, int start, int end);
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public int getCompanyProductEntriesCount(long companyId);
251
252 @Override
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public com.liferay.portal.model.PersistedModel getPersistedModel(
255 java.io.Serializable primaryKeyObj)
256 throws com.liferay.portal.kernel.exception.PortalException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
260 long groupId, int start, int end);
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
264 long groupId, int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> obc);
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
269 long groupId, long userId, int start, int end);
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
273 long groupId, long userId, int start, int end,
274 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> obc);
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public int getProductEntriesCount(long groupId);
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public int getProductEntriesCount(long groupId, long userId);
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
284 long productEntryId)
285 throws com.liferay.portal.kernel.exception.PortalException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public java.lang.String getRepositoryXML(long groupId,
289 java.lang.String baseImageURL, java.util.Date oldestDate,
290 int maxNumOfVersions, java.util.Properties repoSettings);
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.lang.String getRepositoryXML(long groupId,
294 java.lang.String version, java.lang.String baseImageURL,
295 java.util.Date oldestDate, int maxNumOfVersions,
296 java.util.Properties repoSettings);
297
298
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public long[] getSCLicensePrimaryKeys(long productEntryId);
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
309 long licenseId);
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
313 long licenseId, int start, int end);
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
317 long licenseId, int start, int end,
318 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> orderByComparator);
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public int getSCLicenseSCProductEntriesCount(long licenseId);
322
323
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
336 int start, int end);
337
338
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public int getSCProductEntriesCount();
345
346
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
355 long productEntryId)
356 throws com.liferay.portal.kernel.exception.PortalException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public boolean hasSCLicenseSCProductEntries(long licenseId);
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public boolean hasSCLicenseSCProductEntry(long licenseId,
363 long productEntryId);
364
365
370 public void setBeanIdentifier(java.lang.String beanIdentifier);
371
372 public void setSCLicenseSCProductEntries(long licenseId,
373 long[] productEntryIds);
374
375 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
376 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
377 long productEntryId, java.lang.String name, java.lang.String type,
378 java.lang.String tags, java.lang.String shortDescription,
379 java.lang.String longDescription, java.lang.String pageURL,
380 java.lang.String author, java.lang.String repoGroupId,
381 java.lang.String repoArtifactId, long[] licenseIds,
382 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
383 throws com.liferay.portal.kernel.exception.PortalException;
384
385
391 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
392 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
393 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
394 }