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="SCProductVersionLocalServiceUtil.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 SCProductVersionLocalService} 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       SCProductVersionLocalService
37   * @generated
38   */
39  public class SCProductVersionLocalServiceUtil {
40      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
41          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addSCProductVersion(scProductVersion);
44      }
45  
46      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
47          long productVersionId) {
48          return getService().createSCProductVersion(productVersionId);
49      }
50  
51      public static void deleteSCProductVersion(long productVersionId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteSCProductVersion(productVersionId);
55      }
56  
57      public static void deleteSCProductVersion(
58          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteSCProductVersion(scProductVersion);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
76          long productVersionId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getSCProductVersion(productVersionId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getSCProductVersions(start, end);
86      }
87  
88      public static int getSCProductVersionsCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getSCProductVersionsCount();
91      }
92  
93      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
94          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateSCProductVersion(scProductVersion);
97      }
98  
99      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
100         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().updateSCProductVersion(scProductVersion, merge);
104     }
105 
106     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
107         long userId, long productEntryId, java.lang.String version,
108         java.lang.String changeLog, java.lang.String downloadPageURL,
109         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
110         boolean repoStoreArtifact, long[] frameworkVersionIds,
111         com.liferay.portal.service.ServiceContext serviceContext)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException {
114         return getService()
115                    .addProductVersion(userId, productEntryId, version,
116             changeLog, downloadPageURL, directDownloadURL,
117             testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
118             serviceContext);
119     }
120 
121     public static void deleteProductVersion(long productVersionId)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException {
124         getService().deleteProductVersion(productVersionId);
125     }
126 
127     public static void deleteProductVersion(
128         com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         getService().deleteProductVersion(productVersion);
131     }
132 
133     public static void deleteProductVersions(long productEntryId)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         getService().deleteProductVersions(productEntryId);
136     }
137 
138     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
139         long productVersionId)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException {
142         return getService().getProductVersion(productVersionId);
143     }
144 
145     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
146         java.lang.String directDownloadURL)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         return getService()
150                    .getProductVersionByDirectDownloadURL(directDownloadURL);
151     }
152 
153     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
154         long productEntryId, int start, int end)
155         throws com.liferay.portal.kernel.exception.SystemException {
156         return getService().getProductVersions(productEntryId, start, end);
157     }
158 
159     public static int getProductVersionsCount(long productEntryId)
160         throws com.liferay.portal.kernel.exception.SystemException {
161         return getService().getProductVersionsCount(productEntryId);
162     }
163 
164     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
165         long productVersionId, java.lang.String version,
166         java.lang.String changeLog, java.lang.String downloadPageURL,
167         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
168         boolean repoStoreArtifact, long[] frameworkVersionIds)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException {
171         return getService()
172                    .updateProductVersion(productVersionId, version, changeLog,
173             downloadPageURL, directDownloadURL, testDirectDownloadURL,
174             repoStoreArtifact, frameworkVersionIds);
175     }
176 
177     public static SCProductVersionLocalService getService() {
178         if (_service == null) {
179             _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
180         }
181 
182         return _service;
183     }
184 
185     public void setService(SCProductVersionLocalService service) {
186         _service = service;
187     }
188 
189     private static SCProductVersionLocalService _service;
190 }