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 SCLicenseLocalService extends BaseLocalService,
044 PersistedModelLocalService {
045
050 public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
051 java.lang.String name, java.lang.String url, boolean openSource,
052 boolean active, boolean recommended)
053 throws com.liferay.portal.kernel.exception.PortalException;
054
055
061 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
062 public com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
063 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
064
065 public void addSCProductEntrySCLicense(long productEntryId, long licenseId);
066
067 public void addSCProductEntrySCLicense(long productEntryId,
068 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
069
070 public void addSCProductEntrySCLicenses(long productEntryId,
071 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses);
072
073 public void addSCProductEntrySCLicenses(long productEntryId,
074 long[] licenseIds);
075
076 public void clearSCProductEntrySCLicenses(long productEntryId);
077
078
084 public com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
085 long licenseId);
086
087 public void deleteLicense(
088 com.liferay.portlet.softwarecatalog.model.SCLicense license);
089
090 public void deleteLicense(long licenseId)
091 throws com.liferay.portal.kernel.exception.PortalException;
092
093
096 @Override
097 public com.liferay.portal.model.PersistedModel deletePersistedModel(
098 com.liferay.portal.model.PersistedModel persistedModel)
099 throws com.liferay.portal.kernel.exception.PortalException;
100
101
108 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
109 public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
110 long licenseId)
111 throws com.liferay.portal.kernel.exception.PortalException;
112
113
119 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
120 public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
121 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
122
123 public void deleteSCProductEntrySCLicense(long productEntryId,
124 long licenseId);
125
126 public void deleteSCProductEntrySCLicense(long productEntryId,
127 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
128
129 public void deleteSCProductEntrySCLicenses(long productEntryId,
130 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses);
131
132 public void deleteSCProductEntrySCLicenses(long productEntryId,
133 long[] licenseIds);
134
135 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
136
137
143 public <T> java.util.List<T> dynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
145
146
158 public <T> java.util.List<T> dynamicQuery(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
160 int end);
161
162
175 public <T> java.util.List<T> dynamicQuery(
176 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
177 int end,
178 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
179
180
186 public long dynamicQueryCount(
187 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
188
189
196 public long dynamicQueryCount(
197 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
198 com.liferay.portal.kernel.dao.orm.Projection projection);
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public com.liferay.portlet.softwarecatalog.model.SCLicense fetchSCLicense(
202 long licenseId);
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
206
207
212 public java.lang.String getBeanIdentifier();
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
216 long licenseId)
217 throws com.liferay.portal.kernel.exception.PortalException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses();
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
224 boolean active, boolean recommended);
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
228 boolean active, boolean recommended, int start, int end);
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
232 int start, int end);
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public int getLicensesCount();
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public int getLicensesCount(boolean active, boolean recommended);
239
240 @Override
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public com.liferay.portal.model.PersistedModel getPersistedModel(
243 java.io.Serializable primaryKeyObj)
244 throws com.liferay.portal.kernel.exception.PortalException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
248 long productEntryId);
249
250
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
259 long licenseId)
260 throws com.liferay.portal.kernel.exception.PortalException;
261
262
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
275 int start, int end);
276
277
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getSCLicensesCount();
284
285
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public long[] getSCProductEntryPrimaryKeys(long licenseId);
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
296 long productEntryId);
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
300 long productEntryId, int start, int end);
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
304 long productEntryId, int start, int end,
305 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCLicense> orderByComparator);
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public int getSCProductEntrySCLicensesCount(long productEntryId);
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public boolean hasSCProductEntrySCLicense(long productEntryId,
312 long licenseId);
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public boolean hasSCProductEntrySCLicenses(long productEntryId);
316
317
322 public void setBeanIdentifier(java.lang.String beanIdentifier);
323
324 public void setSCProductEntrySCLicenses(long productEntryId,
325 long[] licenseIds);
326
327 public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
328 long licenseId, java.lang.String name, java.lang.String url,
329 boolean openSource, boolean active, boolean recommended)
330 throws com.liferay.portal.kernel.exception.PortalException;
331
332
338 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
339 public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
340 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
341 }