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  
19  /**
20   * <a href="SCFrameworkVersionLocalServiceUtil.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 SCFrameworkVersionLocalService} 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       SCFrameworkVersionLocalService
37   * @generated
38   */
39  public class SCFrameworkVersionLocalServiceUtil {
40      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
41          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
42          throws com.liferay.portal.SystemException {
43          return getService().addSCFrameworkVersion(scFrameworkVersion);
44      }
45  
46      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion createSCFrameworkVersion(
47          long frameworkVersionId) {
48          return getService().createSCFrameworkVersion(frameworkVersionId);
49      }
50  
51      public static void deleteSCFrameworkVersion(long frameworkVersionId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteSCFrameworkVersion(frameworkVersionId);
55      }
56  
57      public static void deleteSCFrameworkVersion(
58          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
59          throws com.liferay.portal.SystemException {
60          getService().deleteSCFrameworkVersion(scFrameworkVersion);
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 java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
91          long frameworkVersionId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          return getService().getSCFrameworkVersion(frameworkVersionId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
98          int start, int end) throws com.liferay.portal.SystemException {
99          return getService().getSCFrameworkVersions(start, end);
100     }
101 
102     public static int getSCFrameworkVersionsCount()
103         throws com.liferay.portal.SystemException {
104         return getService().getSCFrameworkVersionsCount();
105     }
106 
107     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
108         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
109         throws com.liferay.portal.SystemException {
110         return getService().updateSCFrameworkVersion(scFrameworkVersion);
111     }
112 
113     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
114         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
115         boolean merge) throws com.liferay.portal.SystemException {
116         return getService().updateSCFrameworkVersion(scFrameworkVersion, merge);
117     }
118 
119     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
120         long userId, java.lang.String name, java.lang.String url,
121         boolean active, int priority,
122         com.liferay.portal.service.ServiceContext serviceContext)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         return getService()
126                    .addFrameworkVersion(userId, name, url, active, priority,
127             serviceContext);
128     }
129 
130     public static void addFrameworkVersionResources(long frameworkVersionId,
131         boolean addCommunityPermissions, boolean addGuestPermissions)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         getService()
135             .addFrameworkVersionResources(frameworkVersionId,
136             addCommunityPermissions, addGuestPermissions);
137     }
138 
139     public static void addFrameworkVersionResources(
140         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
141         boolean addCommunityPermissions, boolean addGuestPermissions)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException {
144         getService()
145             .addFrameworkVersionResources(frameworkVersion,
146             addCommunityPermissions, addGuestPermissions);
147     }
148 
149     public static void addFrameworkVersionResources(long frameworkVersionId,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         getService()
155             .addFrameworkVersionResources(frameworkVersionId,
156             communityPermissions, guestPermissions);
157     }
158 
159     public static void addFrameworkVersionResources(
160         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
161         java.lang.String[] communityPermissions,
162         java.lang.String[] guestPermissions)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         getService()
166             .addFrameworkVersionResources(frameworkVersion,
167             communityPermissions, guestPermissions);
168     }
169 
170     public static void deleteFrameworkVersion(long frameworkVersionId)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         getService().deleteFrameworkVersion(frameworkVersionId);
174     }
175 
176     public static void deleteFrameworkVersion(
177         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion)
178         throws com.liferay.portal.SystemException {
179         getService().deleteFrameworkVersion(frameworkVersion);
180     }
181 
182     public static void deleteFrameworkVersions(long groupId)
183         throws com.liferay.portal.SystemException {
184         getService().deleteFrameworkVersions(groupId);
185     }
186 
187     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
188         long frameworkVersionId)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         return getService().getFrameworkVersion(frameworkVersionId);
192     }
193 
194     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
195         long groupId, int start, int end)
196         throws com.liferay.portal.SystemException {
197         return getService().getFrameworkVersions(groupId, start, end);
198     }
199 
200     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
201         long groupId, boolean active) throws com.liferay.portal.SystemException {
202         return getService().getFrameworkVersions(groupId, active);
203     }
204 
205     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
206         long groupId, boolean active, int start, int end)
207         throws com.liferay.portal.SystemException {
208         return getService().getFrameworkVersions(groupId, active, start, end);
209     }
210 
211     public static int getFrameworkVersionsCount(long groupId)
212         throws com.liferay.portal.SystemException {
213         return getService().getFrameworkVersionsCount(groupId);
214     }
215 
216     public static int getFrameworkVersionsCount(long groupId, boolean active)
217         throws com.liferay.portal.SystemException {
218         return getService().getFrameworkVersionsCount(groupId, active);
219     }
220 
221     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
222         long productVersionId) throws com.liferay.portal.SystemException {
223         return getService().getProductVersionFrameworkVersions(productVersionId);
224     }
225 
226     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
227         long frameworkVersionId, java.lang.String name, java.lang.String url,
228         boolean active, int priority)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException {
231         return getService()
232                    .updateFrameworkVersion(frameworkVersionId, name, url,
233             active, priority);
234     }
235 
236     public static SCFrameworkVersionLocalService getService() {
237         if (_service == null) {
238             _service = (SCFrameworkVersionLocalService)PortalBeanLocatorUtil.locate(SCFrameworkVersionLocalService.class.getName());
239         }
240 
241         return _service;
242     }
243 
244     public void setService(SCFrameworkVersionLocalService service) {
245         _service = service;
246     }
247 
248     private static SCFrameworkVersionLocalService _service;
249 }