1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="SCProductVersionServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link SCProductVersionService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       SCProductVersionService
37   * @generated
38   */
39  public class SCProductVersionServiceUtil {
40      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
41          long productEntryId, java.lang.String version,
42          java.lang.String changeLog, java.lang.String downloadPageURL,
43          java.lang.String directDownloadURL, boolean testDirectDownloadURL,
44          boolean repoStoreArtifact, long[] frameworkVersionIds,
45          com.liferay.portal.service.ServiceContext serviceContext)
46          throws com.liferay.portal.kernel.exception.PortalException,
47              com.liferay.portal.kernel.exception.SystemException {
48          return getService()
49                     .addProductVersion(productEntryId, version, changeLog,
50              downloadPageURL, directDownloadURL, testDirectDownloadURL,
51              repoStoreArtifact, frameworkVersionIds, serviceContext);
52      }
53  
54      public static void deleteProductVersion(long productVersionId)
55          throws com.liferay.portal.kernel.exception.PortalException,
56              com.liferay.portal.kernel.exception.SystemException {
57          getService().deleteProductVersion(productVersionId);
58      }
59  
60      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
61          long productVersionId)
62          throws com.liferay.portal.kernel.exception.PortalException,
63              com.liferay.portal.kernel.exception.SystemException {
64          return getService().getProductVersion(productVersionId);
65      }
66  
67      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
68          long productEntryId, int start, int end)
69          throws com.liferay.portal.kernel.exception.PortalException,
70              com.liferay.portal.kernel.exception.SystemException {
71          return getService().getProductVersions(productEntryId, start, end);
72      }
73  
74      public static int getProductVersionsCount(long productEntryId)
75          throws com.liferay.portal.kernel.exception.PortalException,
76              com.liferay.portal.kernel.exception.SystemException {
77          return getService().getProductVersionsCount(productEntryId);
78      }
79  
80      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
81          long productVersionId, java.lang.String version,
82          java.lang.String changeLog, java.lang.String downloadPageURL,
83          java.lang.String directDownloadURL, boolean testDirectDownloadURL,
84          boolean repoStoreArtifact, long[] frameworkVersionIds)
85          throws com.liferay.portal.kernel.exception.PortalException,
86              com.liferay.portal.kernel.exception.SystemException {
87          return getService()
88                     .updateProductVersion(productVersionId, version, changeLog,
89              downloadPageURL, directDownloadURL, testDirectDownloadURL,
90              repoStoreArtifact, frameworkVersionIds);
91      }
92  
93      public static SCProductVersionService getService() {
94          if (_service == null) {
95              _service = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName());
96          }
97  
98          return _service;
99      }
100 
101     public void setService(SCProductVersionService service) {
102         _service = service;
103     }
104 
105     private static SCProductVersionService _service;
106 }