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) throws PortalException;
053
054
060 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
061 public com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
062 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
063
064 public void addSCProductEntrySCLicense(long productEntryId, long licenseId);
065
066 public void addSCProductEntrySCLicense(long productEntryId,
067 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
068
069 public void addSCProductEntrySCLicenses(long productEntryId,
070 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses);
071
072 public void addSCProductEntrySCLicenses(long productEntryId,
073 long[] licenseIds);
074
075 public void clearSCProductEntrySCLicenses(long productEntryId);
076
077
083 public com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
084 long licenseId);
085
086 public void deleteLicense(
087 com.liferay.portlet.softwarecatalog.model.SCLicense license);
088
089 public void deleteLicense(long licenseId) throws PortalException;
090
091
094 @Override
095 public com.liferay.portal.model.PersistedModel deletePersistedModel(
096 com.liferay.portal.model.PersistedModel persistedModel)
097 throws PortalException;
098
099
106 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
107 public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
108 long licenseId) throws PortalException;
109
110
116 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
117 public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
118 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
119
120 public void deleteSCProductEntrySCLicense(long productEntryId,
121 long licenseId);
122
123 public void deleteSCProductEntrySCLicense(long productEntryId,
124 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
125
126 public void deleteSCProductEntrySCLicenses(long productEntryId,
127 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses);
128
129 public void deleteSCProductEntrySCLicenses(long productEntryId,
130 long[] licenseIds);
131
132 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
133
134
140 public <T> java.util.List<T> dynamicQuery(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
142
143
155 public <T> java.util.List<T> dynamicQuery(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
157 int end);
158
159
172 public <T> java.util.List<T> dynamicQuery(
173 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
174 int end,
175 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
176
177
183 public long dynamicQueryCount(
184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
185
186
193 public long dynamicQueryCount(
194 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
195 com.liferay.portal.kernel.dao.orm.Projection projection);
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.softwarecatalog.model.SCLicense fetchSCLicense(
199 long licenseId);
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
206 long licenseId) throws PortalException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses();
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
213 boolean active, boolean recommended);
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
217 boolean active, boolean recommended, int start, int end);
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
221 int start, int end);
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public int getLicensesCount();
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public int getLicensesCount(boolean active, boolean recommended);
228
229
234 public java.lang.String getOSGiServiceIdentifier();
235
236 @Override
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portal.model.PersistedModel getPersistedModel(
239 java.io.Serializable primaryKeyObj) throws PortalException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
243 long productEntryId);
244
245
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
254 long licenseId) throws PortalException;
255
256
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
269 int start, int end);
270
271
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public int getSCLicensesCount();
278
279
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public long[] getSCProductEntryPrimaryKeys(long licenseId);
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
290 long productEntryId);
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
294 long productEntryId, int start, int end);
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
298 long productEntryId, int start, int end,
299 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.softwarecatalog.model.SCLicense> orderByComparator);
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public int getSCProductEntrySCLicensesCount(long productEntryId);
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public boolean hasSCProductEntrySCLicense(long productEntryId,
306 long licenseId);
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public boolean hasSCProductEntrySCLicenses(long productEntryId);
310
311 public void setSCProductEntrySCLicenses(long productEntryId,
312 long[] licenseIds);
313
314 public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
315 long licenseId, java.lang.String name, java.lang.String url,
316 boolean openSource, boolean active, boolean recommended)
317 throws PortalException;
318
319
325 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
326 public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
327 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
328 }