1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="SCProductVersionLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link SCProductVersionLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       SCProductVersionLocalService
39   * @generated
40   */
41  public class SCProductVersionLocalServiceUtil {
42      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
43          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
44          throws com.liferay.portal.SystemException {
45          return getService().addSCProductVersion(scProductVersion);
46      }
47  
48      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
49          long productVersionId) {
50          return getService().createSCProductVersion(productVersionId);
51      }
52  
53      public static void deleteSCProductVersion(long productVersionId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteSCProductVersion(productVersionId);
57      }
58  
59      public static void deleteSCProductVersion(
60          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
61          throws com.liferay.portal.SystemException {
62          getService().deleteSCProductVersion(scProductVersion);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
96          long productVersionId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getSCProductVersion(productVersionId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getSCProductVersions(start, end);
105     }
106 
107     public static int getSCProductVersionsCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getSCProductVersionsCount();
110     }
111 
112     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
113         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
114         throws com.liferay.portal.SystemException {
115         return getService().updateSCProductVersion(scProductVersion);
116     }
117 
118     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
119         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
120         boolean merge) throws com.liferay.portal.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.PortalException,
131             com.liferay.portal.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.PortalException,
141             com.liferay.portal.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.SystemException {
148         getService().deleteProductVersion(productVersion);
149     }
150 
151     public static void deleteProductVersions(long productEntryId)
152         throws com.liferay.portal.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.PortalException,
159             com.liferay.portal.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.PortalException,
166             com.liferay.portal.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.SystemException {
174         return getService().getProductVersions(productEntryId, start, end);
175     }
176 
177     public static int getProductVersionsCount(long productEntryId)
178         throws com.liferay.portal.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.PortalException,
188             com.liferay.portal.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             ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
200                 "_service");
201             MethodCache.remove(SCProductVersionLocalService.class);
202         }
203 
204         return _service;
205     }
206 
207     public void setService(SCProductVersionLocalService service) {
208         MethodCache.remove(SCProductVersionLocalService.class);
209 
210         _service = service;
211 
212         ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
213             "_service");
214         MethodCache.remove(SCProductVersionLocalService.class);
215     }
216 
217     private static SCProductVersionLocalService _service;
218 }