1   /**
2    * Copyright (c) 2000-2007 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   * <a href="SCFrameworkVersionLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This class provides static methods for the <code>com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService</code>
35   * bean. The static methods of this class calls the same methods of the bean instance.
36   * It's convenient to be able to just write one line to call a method on a bean
37   * instead of writing a lookup call and a method call.
38   * </p>
39   *
40   * <p>
41   * <code>com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceFactory</code>
42   * is responsible for the lookup of the bean.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService
48   * @see com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceFactory
49   *
50   */
51  public class SCFrameworkVersionLocalServiceUtil {
52      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
53          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion model)
54          throws com.liferay.portal.SystemException {
55          SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
56  
57          return scFrameworkVersionLocalService.addSCFrameworkVersion(model);
58      }
59  
60      public static java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62          throws com.liferay.portal.SystemException {
63          SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
64  
65          return scFrameworkVersionLocalService.dynamicQuery(queryInitializer);
66      }
67  
68      public static java.util.List dynamicQuery(
69          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70          int begin, int end) throws com.liferay.portal.SystemException {
71          SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
72  
73          return scFrameworkVersionLocalService.dynamicQuery(queryInitializer,
74              begin, end);
75      }
76  
77      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
78          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion model)
79          throws com.liferay.portal.SystemException {
80          SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
81  
82          return scFrameworkVersionLocalService.updateSCFrameworkVersion(model);
83      }
84  
85      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
86          long userId, long plid, java.lang.String name, java.lang.String url,
87          boolean active, int priority, boolean addCommunityPermissions,
88          boolean addGuestPermissions)
89          throws com.liferay.portal.PortalException, 
90              com.liferay.portal.SystemException {
91          SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
92  
93          return scFrameworkVersionLocalService.addFrameworkVersion(userId, plid,
94              name, url, active, priority, addCommunityPermissions,
95              addGuestPermissions);
96      }
97  
98      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
99          long userId, long plid, java.lang.String name, java.lang.String url,
100         boolean active, int priority, java.lang.String[] communityPermissions,
101         java.lang.String[] guestPermissions)
102         throws com.liferay.portal.PortalException, 
103             com.liferay.portal.SystemException {
104         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
105 
106         return scFrameworkVersionLocalService.addFrameworkVersion(userId, plid,
107             name, url, active, priority, communityPermissions, guestPermissions);
108     }
109 
110     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
111         long userId, long plid, java.lang.String name, java.lang.String url,
112         boolean active, int priority,
113         java.lang.Boolean addCommunityPermissions,
114         java.lang.Boolean addGuestPermissions,
115         java.lang.String[] communityPermissions,
116         java.lang.String[] guestPermissions)
117         throws com.liferay.portal.PortalException, 
118             com.liferay.portal.SystemException {
119         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
120 
121         return scFrameworkVersionLocalService.addFrameworkVersion(userId, plid,
122             name, url, active, priority, addCommunityPermissions,
123             addGuestPermissions, communityPermissions, guestPermissions);
124     }
125 
126     public static void addFrameworkVersionResources(long frameworkVersionId,
127         boolean addCommunityPermissions, boolean addGuestPermissions)
128         throws com.liferay.portal.PortalException, 
129             com.liferay.portal.SystemException {
130         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
131         scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersionId,
132             addCommunityPermissions, addGuestPermissions);
133     }
134 
135     public static void addFrameworkVersionResources(
136         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
137         boolean addCommunityPermissions, boolean addGuestPermissions)
138         throws com.liferay.portal.PortalException, 
139             com.liferay.portal.SystemException {
140         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
141         scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersion,
142             addCommunityPermissions, addGuestPermissions);
143     }
144 
145     public static void addFrameworkVersionResources(long frameworkVersionId,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.PortalException, 
149             com.liferay.portal.SystemException {
150         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
151         scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersionId,
152             communityPermissions, guestPermissions);
153     }
154 
155     public static void addFrameworkVersionResources(
156         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
157         java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.PortalException, 
160             com.liferay.portal.SystemException {
161         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
162         scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersion,
163             communityPermissions, guestPermissions);
164     }
165 
166     public static void deleteFrameworkVersion(long frameworkVersionId)
167         throws com.liferay.portal.PortalException, 
168             com.liferay.portal.SystemException {
169         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
170         scFrameworkVersionLocalService.deleteFrameworkVersion(frameworkVersionId);
171     }
172 
173     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
174         long frameworkVersionId)
175         throws com.liferay.portal.PortalException, 
176             com.liferay.portal.SystemException {
177         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
178 
179         return scFrameworkVersionLocalService.getFrameworkVersion(frameworkVersionId);
180     }
181 
182     public static java.util.List getFrameworkVersions(long groupId, int begin,
183         int end) throws com.liferay.portal.SystemException {
184         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
185 
186         return scFrameworkVersionLocalService.getFrameworkVersions(groupId,
187             begin, end);
188     }
189 
190     public static java.util.List getFrameworkVersions(long groupId,
191         boolean active) throws com.liferay.portal.SystemException {
192         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
193 
194         return scFrameworkVersionLocalService.getFrameworkVersions(groupId,
195             active);
196     }
197 
198     public static java.util.List getFrameworkVersions(long groupId,
199         boolean active, int begin, int end)
200         throws com.liferay.portal.SystemException {
201         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
202 
203         return scFrameworkVersionLocalService.getFrameworkVersions(groupId,
204             active, begin, end);
205     }
206 
207     public static int getFrameworkVersionsCount(long groupId)
208         throws com.liferay.portal.SystemException {
209         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
210 
211         return scFrameworkVersionLocalService.getFrameworkVersionsCount(groupId);
212     }
213 
214     public static int getFrameworkVersionsCount(long groupId, boolean active)
215         throws com.liferay.portal.SystemException {
216         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
217 
218         return scFrameworkVersionLocalService.getFrameworkVersionsCount(groupId,
219             active);
220     }
221 
222     public static java.util.List getProductVersionFrameworkVersions(
223         long productVersionId)
224         throws com.liferay.portal.PortalException, 
225             com.liferay.portal.SystemException {
226         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
227 
228         return scFrameworkVersionLocalService.getProductVersionFrameworkVersions(productVersionId);
229     }
230 
231     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
232         long frameworkVersionId, java.lang.String name, java.lang.String url,
233         boolean active, int priority)
234         throws com.liferay.portal.PortalException, 
235             com.liferay.portal.SystemException {
236         SCFrameworkVersionLocalService scFrameworkVersionLocalService = SCFrameworkVersionLocalServiceFactory.getService();
237 
238         return scFrameworkVersionLocalService.updateFrameworkVersion(frameworkVersionId,
239             name, url, active, priority);
240     }
241 }