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