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 com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
76          long productVersionId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.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) throws com.liferay.portal.SystemException {
84          return getService().getSCProductVersions(start, end);
85      }
86  
87      public static int getSCProductVersionsCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getSCProductVersionsCount();
90      }
91  
92      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
93          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
94          throws com.liferay.portal.SystemException {
95          return getService().updateSCProductVersion(scProductVersion);
96      }
97  
98      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
99          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
100         boolean merge) throws com.liferay.portal.SystemException {
101         return getService().updateSCProductVersion(scProductVersion, merge);
102     }
103 
104     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
105         long userId, long productEntryId, java.lang.String version,
106         java.lang.String changeLog, java.lang.String downloadPageURL,
107         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
108         boolean repoStoreArtifact, long[] frameworkVersionIds,
109         boolean addCommunityPermissions, boolean addGuestPermissions)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException {
112         return getService()
113                    .addProductVersion(userId, productEntryId, version,
114             changeLog, downloadPageURL, directDownloadURL,
115             testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
116             addCommunityPermissions, addGuestPermissions);
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         java.lang.Boolean addCommunityPermissions,
125         java.lang.Boolean addGuestPermissions,
126         java.lang.String[] communityPermissions,
127         java.lang.String[] guestPermissions)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         return getService()
131                    .addProductVersion(userId, productEntryId, version,
132             changeLog, downloadPageURL, directDownloadURL,
133             testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
134             addCommunityPermissions, addGuestPermissions, communityPermissions,
135             guestPermissions);
136     }
137 
138     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
139         long userId, long productEntryId, java.lang.String version,
140         java.lang.String changeLog, java.lang.String downloadPageURL,
141         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
142         boolean repoStoreArtifact, long[] frameworkVersionIds,
143         java.lang.String[] communityPermissions,
144         java.lang.String[] guestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         return getService()
148                    .addProductVersion(userId, productEntryId, version,
149             changeLog, downloadPageURL, directDownloadURL,
150             testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
151             communityPermissions, guestPermissions);
152     }
153 
154     public static void deleteProductVersion(long productVersionId)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         getService().deleteProductVersion(productVersionId);
158     }
159 
160     public static void deleteProductVersion(
161         com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
162         throws com.liferay.portal.SystemException {
163         getService().deleteProductVersion(productVersion);
164     }
165 
166     public static void deleteProductVersions(long productEntryId)
167         throws com.liferay.portal.SystemException {
168         getService().deleteProductVersions(productEntryId);
169     }
170 
171     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
172         long productVersionId)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         return getService().getProductVersion(productVersionId);
176     }
177 
178     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
179         java.lang.String directDownloadURL)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         return getService()
183                    .getProductVersionByDirectDownloadURL(directDownloadURL);
184     }
185 
186     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
187         long productEntryId, int start, int end)
188         throws com.liferay.portal.SystemException {
189         return getService().getProductVersions(productEntryId, start, end);
190     }
191 
192     public static int getProductVersionsCount(long productEntryId)
193         throws com.liferay.portal.SystemException {
194         return getService().getProductVersionsCount(productEntryId);
195     }
196 
197     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
198         long productVersionId, java.lang.String version,
199         java.lang.String changeLog, java.lang.String downloadPageURL,
200         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
201         boolean repoStoreArtifact, long[] frameworkVersionIds)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         return getService()
205                    .updateProductVersion(productVersionId, version, changeLog,
206             downloadPageURL, directDownloadURL, testDirectDownloadURL,
207             repoStoreArtifact, frameworkVersionIds);
208     }
209 
210     public static SCProductVersionLocalService getService() {
211         if (_service == null) {
212             _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
213         }
214 
215         return _service;
216     }
217 
218     public void setService(SCProductVersionLocalService service) {
219         _service = service;
220     }
221 
222     private static SCProductVersionLocalService _service;
223 }