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.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.PortalException,
53              com.liferay.portal.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.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.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.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
91          long productVersionId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          return getService().getSCProductVersion(productVersionId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
98          int start, int end) throws com.liferay.portal.SystemException {
99          return getService().getSCProductVersions(start, end);
100     }
101 
102     public static int getSCProductVersionsCount()
103         throws com.liferay.portal.SystemException {
104         return getService().getSCProductVersionsCount();
105     }
106 
107     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
108         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
109         throws com.liferay.portal.SystemException {
110         return getService().updateSCProductVersion(scProductVersion);
111     }
112 
113     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
114         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
115         boolean merge) throws com.liferay.portal.SystemException {
116         return getService().updateSCProductVersion(scProductVersion, merge);
117     }
118 
119     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
120         long userId, long productEntryId, java.lang.String version,
121         java.lang.String changeLog, java.lang.String downloadPageURL,
122         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
123         boolean repoStoreArtifact, long[] frameworkVersionIds,
124         com.liferay.portal.service.ServiceContext serviceContext)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return getService()
128                    .addProductVersion(userId, productEntryId, version,
129             changeLog, downloadPageURL, directDownloadURL,
130             testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
131             serviceContext);
132     }
133 
134     public static void deleteProductVersion(long productVersionId)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         getService().deleteProductVersion(productVersionId);
138     }
139 
140     public static void deleteProductVersion(
141         com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
142         throws com.liferay.portal.SystemException {
143         getService().deleteProductVersion(productVersion);
144     }
145 
146     public static void deleteProductVersions(long productEntryId)
147         throws com.liferay.portal.SystemException {
148         getService().deleteProductVersions(productEntryId);
149     }
150 
151     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
152         long productVersionId)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException {
155         return getService().getProductVersion(productVersionId);
156     }
157 
158     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
159         java.lang.String directDownloadURL)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         return getService()
163                    .getProductVersionByDirectDownloadURL(directDownloadURL);
164     }
165 
166     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
167         long productEntryId, int start, int end)
168         throws com.liferay.portal.SystemException {
169         return getService().getProductVersions(productEntryId, start, end);
170     }
171 
172     public static int getProductVersionsCount(long productEntryId)
173         throws com.liferay.portal.SystemException {
174         return getService().getProductVersionsCount(productEntryId);
175     }
176 
177     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
178         long productVersionId, java.lang.String version,
179         java.lang.String changeLog, java.lang.String downloadPageURL,
180         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
181         boolean repoStoreArtifact, long[] frameworkVersionIds)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         return getService()
185                    .updateProductVersion(productVersionId, version, changeLog,
186             downloadPageURL, directDownloadURL, testDirectDownloadURL,
187             repoStoreArtifact, frameworkVersionIds);
188     }
189 
190     public static SCProductVersionLocalService getService() {
191         if (_service == null) {
192             _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
193         }
194 
195         return _service;
196     }
197 
198     public void setService(SCProductVersionLocalService service) {
199         _service = service;
200     }
201 
202     private static SCProductVersionLocalService _service;
203 }