1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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="SCFrameworkVersionLocalServiceUtil.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   * {@link SCFrameworkVersionLocalService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       SCFrameworkVersionLocalService
44   * @generated
45   */
46  public class SCFrameworkVersionLocalServiceUtil {
47      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
48          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
49          throws com.liferay.portal.SystemException {
50          return getService().addSCFrameworkVersion(scFrameworkVersion);
51      }
52  
53      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion createSCFrameworkVersion(
54          long frameworkVersionId) {
55          return getService().createSCFrameworkVersion(frameworkVersionId);
56      }
57  
58      public static void deleteSCFrameworkVersion(long frameworkVersionId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          getService().deleteSCFrameworkVersion(frameworkVersionId);
62      }
63  
64      public static void deleteSCFrameworkVersion(
65          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
66          throws com.liferay.portal.SystemException {
67          getService().deleteSCFrameworkVersion(scFrameworkVersion);
68      }
69  
70      public static java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException {
73          return getService().dynamicQuery(dynamicQuery);
74      }
75  
76      public static java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException {
79          return getService().dynamicQuery(dynamicQuery, start, end);
80      }
81  
82      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
83          long frameworkVersionId)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return getService().getSCFrameworkVersion(frameworkVersionId);
87      }
88  
89      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return getService().getSCFrameworkVersions(start, end);
92      }
93  
94      public static int getSCFrameworkVersionsCount()
95          throws com.liferay.portal.SystemException {
96          return getService().getSCFrameworkVersionsCount();
97      }
98  
99      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
100         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
101         throws com.liferay.portal.SystemException {
102         return getService().updateSCFrameworkVersion(scFrameworkVersion);
103     }
104 
105     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
106         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
107         boolean merge) throws com.liferay.portal.SystemException {
108         return getService().updateSCFrameworkVersion(scFrameworkVersion, merge);
109     }
110 
111     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
112         long userId, java.lang.String name, java.lang.String url,
113         boolean active, int priority,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return getService()
118                    .addFrameworkVersion(userId, name, url, active, priority,
119             serviceContext);
120     }
121 
122     public static void addFrameworkVersionResources(long frameworkVersionId,
123         boolean addCommunityPermissions, boolean addGuestPermissions)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         getService()
127             .addFrameworkVersionResources(frameworkVersionId,
128             addCommunityPermissions, addGuestPermissions);
129     }
130 
131     public static void addFrameworkVersionResources(
132         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
133         boolean addCommunityPermissions, boolean addGuestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException {
136         getService()
137             .addFrameworkVersionResources(frameworkVersion,
138             addCommunityPermissions, addGuestPermissions);
139     }
140 
141     public static void addFrameworkVersionResources(long frameworkVersionId,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         getService()
147             .addFrameworkVersionResources(frameworkVersionId,
148             communityPermissions, guestPermissions);
149     }
150 
151     public static void addFrameworkVersionResources(
152         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         getService()
158             .addFrameworkVersionResources(frameworkVersion,
159             communityPermissions, guestPermissions);
160     }
161 
162     public static void deleteFrameworkVersion(long frameworkVersionId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         getService().deleteFrameworkVersion(frameworkVersionId);
166     }
167 
168     public static void deleteFrameworkVersion(
169         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion)
170         throws com.liferay.portal.SystemException {
171         getService().deleteFrameworkVersion(frameworkVersion);
172     }
173 
174     public static void deleteFrameworkVersions(long groupId)
175         throws com.liferay.portal.SystemException {
176         getService().deleteFrameworkVersions(groupId);
177     }
178 
179     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
180         long frameworkVersionId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         return getService().getFrameworkVersion(frameworkVersionId);
184     }
185 
186     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
187         long groupId, int start, int end)
188         throws com.liferay.portal.SystemException {
189         return getService().getFrameworkVersions(groupId, start, end);
190     }
191 
192     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
193         long groupId, boolean active) throws com.liferay.portal.SystemException {
194         return getService().getFrameworkVersions(groupId, active);
195     }
196 
197     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
198         long groupId, boolean active, int start, int end)
199         throws com.liferay.portal.SystemException {
200         return getService().getFrameworkVersions(groupId, active, start, end);
201     }
202 
203     public static int getFrameworkVersionsCount(long groupId)
204         throws com.liferay.portal.SystemException {
205         return getService().getFrameworkVersionsCount(groupId);
206     }
207 
208     public static int getFrameworkVersionsCount(long groupId, boolean active)
209         throws com.liferay.portal.SystemException {
210         return getService().getFrameworkVersionsCount(groupId, active);
211     }
212 
213     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
214         long productVersionId) throws com.liferay.portal.SystemException {
215         return getService().getProductVersionFrameworkVersions(productVersionId);
216     }
217 
218     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
219         long frameworkVersionId, java.lang.String name, java.lang.String url,
220         boolean active, int priority)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         return getService()
224                    .updateFrameworkVersion(frameworkVersionId, name, url,
225             active, priority);
226     }
227 
228     public static SCFrameworkVersionLocalService getService() {
229         if (_service == null) {
230             throw new RuntimeException(
231                 "SCFrameworkVersionLocalService is not set");
232         }
233 
234         return _service;
235     }
236 
237     public void setService(SCFrameworkVersionLocalService service) {
238         _service = service;
239     }
240 
241     private static SCFrameworkVersionLocalService _service;
242 }