001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class SCProductVersionLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
049 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addSCProductVersion(scProductVersion);
052 }
053
054
060 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
061 long productVersionId) {
062 return getService().createSCProductVersion(productVersionId);
063 }
064
065
072 public static void deleteSCProductVersion(long productVersionId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteSCProductVersion(productVersionId);
076 }
077
078
084 public static void deleteSCProductVersion(
085 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteSCProductVersion(scProductVersion);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchSCProductVersion(
162 long productVersionId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchSCProductVersion(productVersionId);
165 }
166
167
175 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
176 long productVersionId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getSCProductVersion(productVersionId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
201 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
202 int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getService().getSCProductVersions(start, end);
205 }
206
207
213 public static int getSCProductVersionsCount()
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().getSCProductVersionsCount();
216 }
217
218
225 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
226 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().updateSCProductVersion(scProductVersion);
229 }
230
231
239 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
240 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
241 boolean merge)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService().updateSCProductVersion(scProductVersion, merge);
244 }
245
246
251 public static java.lang.String getBeanIdentifier() {
252 return getService().getBeanIdentifier();
253 }
254
255
260 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
261 getService().setBeanIdentifier(beanIdentifier);
262 }
263
264 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
265 long userId, long productEntryId, java.lang.String version,
266 java.lang.String changeLog, java.lang.String downloadPageURL,
267 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
268 boolean repoStoreArtifact, long[] frameworkVersionIds,
269 com.liferay.portal.service.ServiceContext serviceContext)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException {
272 return getService()
273 .addProductVersion(userId, productEntryId, version,
274 changeLog, downloadPageURL, directDownloadURL,
275 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
276 serviceContext);
277 }
278
279 public static void deleteProductVersion(long productVersionId)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException {
282 getService().deleteProductVersion(productVersionId);
283 }
284
285 public static void deleteProductVersion(
286 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getService().deleteProductVersion(productVersion);
289 }
290
291 public static void deleteProductVersions(long productEntryId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 getService().deleteProductVersions(productEntryId);
294 }
295
296 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
297 long productVersionId)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException {
300 return getService().getProductVersion(productVersionId);
301 }
302
303 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
304 java.lang.String directDownloadURL)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 return getService()
308 .getProductVersionByDirectDownloadURL(directDownloadURL);
309 }
310
311 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
312 long productEntryId, int start, int end)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getService().getProductVersions(productEntryId, start, end);
315 }
316
317 public static int getProductVersionsCount(long productEntryId)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return getService().getProductVersionsCount(productEntryId);
320 }
321
322 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
323 long productVersionId, java.lang.String version,
324 java.lang.String changeLog, java.lang.String downloadPageURL,
325 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
326 boolean repoStoreArtifact, long[] frameworkVersionIds)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException {
329 return getService()
330 .updateProductVersion(productVersionId, version, changeLog,
331 downloadPageURL, directDownloadURL, testDirectDownloadURL,
332 repoStoreArtifact, frameworkVersionIds);
333 }
334
335 public static SCProductVersionLocalService getService() {
336 if (_service == null) {
337 _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
338
339 ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
340 "_service");
341 MethodCache.remove(SCProductVersionLocalService.class);
342 }
343
344 return _service;
345 }
346
347 public void setService(SCProductVersionLocalService service) {
348 MethodCache.remove(SCProductVersionLocalService.class);
349
350 _service = service;
351
352 ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
353 "_service");
354 MethodCache.remove(SCProductVersionLocalService.class);
355 }
356
357 private static SCProductVersionLocalService _service;
358 }