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 PortalException;
060
061 public void addProductEntryResources(
062 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
063 boolean addGroupPermissions, boolean addGuestPermissions)
064 throws 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 PortalException;
070
071 public void addProductEntryResources(long productEntryId,
072 boolean addGroupPermissions, boolean addGuestPermissions)
073 throws PortalException;
074
075 public void addProductEntryResources(long productEntryId,
076 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
077 throws 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 PortalException;
118
119 public void deleteProductEntries(long groupId) throws PortalException;
120
121 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
122 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
123 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
124 throws PortalException;
125
126 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
127 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
128 long productEntryId) throws PortalException;
129
130 public void deleteSCLicenseSCProductEntries(long licenseId,
131 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries);
132
133 public void deleteSCLicenseSCProductEntries(long licenseId,
134 long[] productEntryIds);
135
136 public void deleteSCLicenseSCProductEntry(long licenseId,
137 long productEntryId);
138
139 public void deleteSCLicenseSCProductEntry(long licenseId,
140 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
141
142
149 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
150 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
151 long productEntryId) throws PortalException;
152
153
159 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
160 public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
161 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
162
163 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
164
165
171 public <T> java.util.List<T> dynamicQuery(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
173
174
186 public <T> java.util.List<T> dynamicQuery(
187 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
188 int end);
189
190
203 public <T> java.util.List<T> dynamicQuery(
204 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
205 int end,
206 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
207
208
214 public long dynamicQueryCount(
215 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
216
217
224 public long dynamicQueryCount(
225 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
226 com.liferay.portal.kernel.dao.orm.Projection projection);
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
230 long productEntryId);
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
234
235
240 public java.lang.String getBeanIdentifier();
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
244 long companyId, int start, int end);
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public int getCompanyProductEntriesCount(long companyId);
248
249 @Override
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public com.liferay.portal.model.PersistedModel getPersistedModel(
252 java.io.Serializable primaryKeyObj) throws PortalException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
256 long groupId, int start, int end);
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 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> obc);
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
265 long groupId, long userId, int start, int end);
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 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> obc);
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public int getProductEntriesCount(long groupId);
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public int getProductEntriesCount(long groupId, long userId);
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
280 long productEntryId) throws PortalException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public java.lang.String getRepositoryXML(long groupId,
284 java.lang.String baseImageURL, java.util.Date oldestDate,
285 int maxNumOfVersions, java.util.Properties repoSettings);
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public java.lang.String getRepositoryXML(long groupId,
289 java.lang.String version, java.lang.String baseImageURL,
290 java.util.Date oldestDate, int maxNumOfVersions,
291 java.util.Properties repoSettings);
292
293
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public long[] getSCLicensePrimaryKeys(long productEntryId);
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
304 long licenseId);
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
308 long licenseId, int start, int end);
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
312 long licenseId, int start, int end,
313 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCProductEntry> orderByComparator);
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public int getSCLicenseSCProductEntriesCount(long licenseId);
317
318
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
331 int start, int end);
332
333
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public int getSCProductEntriesCount();
340
341
348 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
350 long productEntryId) throws PortalException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public boolean hasSCLicenseSCProductEntries(long licenseId);
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public boolean hasSCLicenseSCProductEntry(long licenseId,
357 long productEntryId);
358
359
364 public void setBeanIdentifier(java.lang.String beanIdentifier);
365
366 public void setSCLicenseSCProductEntries(long licenseId,
367 long[] productEntryIds);
368
369 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
370 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
371 long productEntryId, 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 throws PortalException;
378
379
385 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
386 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
387 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
388 }