1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.service;
24  
25  
26  /**
27   * <a href="SCProductVersionLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService
50   * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory
51   *
52   */
53  public class SCProductVersionLocalServiceUtil {
54      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
55          com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
56          throws com.liferay.portal.SystemException {
57          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
58  
59          return scProductVersionLocalService.addSCProductVersion(model);
60      }
61  
62      public static java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64          throws com.liferay.portal.SystemException {
65          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
66  
67          return scProductVersionLocalService.dynamicQuery(queryInitializer);
68      }
69  
70      public static java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException {
73          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
74  
75          return scProductVersionLocalService.dynamicQuery(queryInitializer,
76              begin, end);
77      }
78  
79      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
80          com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
81          throws com.liferay.portal.SystemException {
82          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
83  
84          return scProductVersionLocalService.updateSCProductVersion(model);
85      }
86  
87      public static com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence getSCLicensePersistence() {
88          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
89  
90          return scProductVersionLocalService.getSCLicensePersistence();
91      }
92  
93      public static void setSCLicensePersistence(
94          com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence) {
95          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
96  
97          scProductVersionLocalService.setSCLicensePersistence(scLicensePersistence);
98      }
99  
100     public static com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
101         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
102 
103         return scProductVersionLocalService.getSCFrameworkVersionPersistence();
104     }
105 
106     public static void setSCFrameworkVersionPersistence(
107         com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
108         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
109 
110         scProductVersionLocalService.setSCFrameworkVersionPersistence(scFrameworkVersionPersistence);
111     }
112 
113     public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence getSCProductEntryPersistence() {
114         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
115 
116         return scProductVersionLocalService.getSCProductEntryPersistence();
117     }
118 
119     public static void setSCProductEntryPersistence(
120         com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence) {
121         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
122 
123         scProductVersionLocalService.setSCProductEntryPersistence(scProductEntryPersistence);
124     }
125 
126     public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
127         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
128 
129         return scProductVersionLocalService.getSCProductScreenshotPersistence();
130     }
131 
132     public static void setSCProductScreenshotPersistence(
133         com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence) {
134         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
135 
136         scProductVersionLocalService.setSCProductScreenshotPersistence(scProductScreenshotPersistence);
137     }
138 
139     public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence getSCProductVersionPersistence() {
140         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
141 
142         return scProductVersionLocalService.getSCProductVersionPersistence();
143     }
144 
145     public static void setSCProductVersionPersistence(
146         com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence) {
147         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
148 
149         scProductVersionLocalService.setSCProductVersionPersistence(scProductVersionPersistence);
150     }
151 
152     public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
153         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
154 
155         return scProductVersionLocalService.getUserPersistence();
156     }
157 
158     public static void setUserPersistence(
159         com.liferay.portal.service.persistence.UserPersistence userPersistence) {
160         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
161 
162         scProductVersionLocalService.setUserPersistence(userPersistence);
163     }
164 
165     public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
166         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
167 
168         return scProductVersionLocalService.getUserFinder();
169     }
170 
171     public static void setUserFinder(
172         com.liferay.portal.service.persistence.UserFinder userFinder) {
173         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
174 
175         scProductVersionLocalService.setUserFinder(userFinder);
176     }
177 
178     public static void afterPropertiesSet() {
179         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
180 
181         scProductVersionLocalService.afterPropertiesSet();
182     }
183 
184     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
185         long userId, long productEntryId, java.lang.String version,
186         java.lang.String changeLog, java.lang.String downloadPageURL,
187         java.lang.String directDownloadURL, boolean repoStoreArtifact,
188         long[] frameworkVersionIds, boolean addCommunityPermissions,
189         boolean addGuestPermissions)
190         throws com.liferay.portal.PortalException, 
191             com.liferay.portal.SystemException {
192         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
193 
194         return scProductVersionLocalService.addProductVersion(userId,
195             productEntryId, version, changeLog, downloadPageURL,
196             directDownloadURL, repoStoreArtifact, frameworkVersionIds,
197             addCommunityPermissions, addGuestPermissions);
198     }
199 
200     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
201         long userId, long productEntryId, java.lang.String version,
202         java.lang.String changeLog, java.lang.String downloadPageURL,
203         java.lang.String directDownloadURL, boolean repoStoreArtifact,
204         long[] frameworkVersionIds, java.lang.String[] communityPermissions,
205         java.lang.String[] guestPermissions)
206         throws com.liferay.portal.PortalException, 
207             com.liferay.portal.SystemException {
208         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
209 
210         return scProductVersionLocalService.addProductVersion(userId,
211             productEntryId, version, changeLog, downloadPageURL,
212             directDownloadURL, repoStoreArtifact, frameworkVersionIds,
213             communityPermissions, guestPermissions);
214     }
215 
216     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
217         long userId, long productEntryId, java.lang.String version,
218         java.lang.String changeLog, java.lang.String downloadPageURL,
219         java.lang.String directDownloadURL, boolean repoStoreArtifact,
220         long[] frameworkVersionIds, java.lang.Boolean addCommunityPermissions,
221         java.lang.Boolean addGuestPermissions,
222         java.lang.String[] communityPermissions,
223         java.lang.String[] guestPermissions)
224         throws com.liferay.portal.PortalException, 
225             com.liferay.portal.SystemException {
226         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
227 
228         return scProductVersionLocalService.addProductVersion(userId,
229             productEntryId, version, changeLog, downloadPageURL,
230             directDownloadURL, repoStoreArtifact, frameworkVersionIds,
231             addCommunityPermissions, addGuestPermissions, communityPermissions,
232             guestPermissions);
233     }
234 
235     public static void deleteProductVersion(long productVersionId)
236         throws com.liferay.portal.PortalException, 
237             com.liferay.portal.SystemException {
238         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
239 
240         scProductVersionLocalService.deleteProductVersion(productVersionId);
241     }
242 
243     public static void deleteProductVersion(
244         com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
245         throws com.liferay.portal.PortalException, 
246             com.liferay.portal.SystemException {
247         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
248 
249         scProductVersionLocalService.deleteProductVersion(productVersion);
250     }
251 
252     public static void deleteProductVersions(long productEntryId)
253         throws com.liferay.portal.PortalException, 
254             com.liferay.portal.SystemException {
255         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
256 
257         scProductVersionLocalService.deleteProductVersions(productEntryId);
258     }
259 
260     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
261         long productVersionId)
262         throws com.liferay.portal.PortalException, 
263             com.liferay.portal.SystemException {
264         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
265 
266         return scProductVersionLocalService.getProductVersion(productVersionId);
267     }
268 
269     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
270         java.lang.String directDownloadURL)
271         throws com.liferay.portal.PortalException, 
272             com.liferay.portal.SystemException {
273         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
274 
275         return scProductVersionLocalService.getProductVersionByDirectDownloadURL(directDownloadURL);
276     }
277 
278     public static java.util.List getProductVersions(long productEntryId,
279         int begin, int end) throws com.liferay.portal.SystemException {
280         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
281 
282         return scProductVersionLocalService.getProductVersions(productEntryId,
283             begin, end);
284     }
285 
286     public static int getProductVersionsCount(long productEntryId)
287         throws com.liferay.portal.SystemException {
288         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
289 
290         return scProductVersionLocalService.getProductVersionsCount(productEntryId);
291     }
292 
293     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
294         long productVersionId, java.lang.String version,
295         java.lang.String changeLog, java.lang.String downloadPageURL,
296         java.lang.String directDownloadURL, boolean repoStoreArtifact,
297         long[] frameworkVersionIds)
298         throws com.liferay.portal.PortalException, 
299             com.liferay.portal.SystemException {
300         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
301 
302         return scProductVersionLocalService.updateProductVersion(productVersionId,
303             version, changeLog, downloadPageURL, directDownloadURL,
304             repoStoreArtifact, frameworkVersionIds);
305     }
306 }