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  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="SCFrameworkVersionLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link SCFrameworkVersionLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       SCFrameworkVersionLocalService
39   * @generated
40   */
41  public class SCFrameworkVersionLocalServiceUtil {
42      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
43          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
44          throws com.liferay.portal.SystemException {
45          return getService().addSCFrameworkVersion(scFrameworkVersion);
46      }
47  
48      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion createSCFrameworkVersion(
49          long frameworkVersionId) {
50          return getService().createSCFrameworkVersion(frameworkVersionId);
51      }
52  
53      public static void deleteSCFrameworkVersion(long frameworkVersionId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteSCFrameworkVersion(frameworkVersionId);
57      }
58  
59      public static void deleteSCFrameworkVersion(
60          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
61          throws com.liferay.portal.SystemException {
62          getService().deleteSCFrameworkVersion(scFrameworkVersion);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
96          long frameworkVersionId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getSCFrameworkVersion(frameworkVersionId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getSCFrameworkVersions(start, end);
105     }
106 
107     public static int getSCFrameworkVersionsCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getSCFrameworkVersionsCount();
110     }
111 
112     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
113         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
114         throws com.liferay.portal.SystemException {
115         return getService().updateSCFrameworkVersion(scFrameworkVersion);
116     }
117 
118     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
119         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getService().updateSCFrameworkVersion(scFrameworkVersion, merge);
122     }
123 
124     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
125         long userId, java.lang.String name, java.lang.String url,
126         boolean active, int priority,
127         com.liferay.portal.service.ServiceContext serviceContext)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         return getService()
131                    .addFrameworkVersion(userId, name, url, active, priority,
132             serviceContext);
133     }
134 
135     public static void addFrameworkVersionResources(long frameworkVersionId,
136         boolean addCommunityPermissions, boolean addGuestPermissions)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         getService()
140             .addFrameworkVersionResources(frameworkVersionId,
141             addCommunityPermissions, addGuestPermissions);
142     }
143 
144     public static void addFrameworkVersionResources(
145         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
146         boolean addCommunityPermissions, boolean addGuestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         getService()
150             .addFrameworkVersionResources(frameworkVersion,
151             addCommunityPermissions, addGuestPermissions);
152     }
153 
154     public static void addFrameworkVersionResources(long frameworkVersionId,
155         java.lang.String[] communityPermissions,
156         java.lang.String[] guestPermissions)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         getService()
160             .addFrameworkVersionResources(frameworkVersionId,
161             communityPermissions, guestPermissions);
162     }
163 
164     public static void addFrameworkVersionResources(
165         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
166         java.lang.String[] communityPermissions,
167         java.lang.String[] guestPermissions)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         getService()
171             .addFrameworkVersionResources(frameworkVersion,
172             communityPermissions, guestPermissions);
173     }
174 
175     public static void deleteFrameworkVersion(long frameworkVersionId)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException {
178         getService().deleteFrameworkVersion(frameworkVersionId);
179     }
180 
181     public static void deleteFrameworkVersion(
182         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion)
183         throws com.liferay.portal.SystemException {
184         getService().deleteFrameworkVersion(frameworkVersion);
185     }
186 
187     public static void deleteFrameworkVersions(long groupId)
188         throws com.liferay.portal.SystemException {
189         getService().deleteFrameworkVersions(groupId);
190     }
191 
192     public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
193         long frameworkVersionId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException {
196         return getService().getFrameworkVersion(frameworkVersionId);
197     }
198 
199     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
200         long groupId, int start, int end)
201         throws com.liferay.portal.SystemException {
202         return getService().getFrameworkVersions(groupId, start, end);
203     }
204 
205     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
206         long groupId, boolean active) throws com.liferay.portal.SystemException {
207         return getService().getFrameworkVersions(groupId, active);
208     }
209 
210     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
211         long groupId, boolean active, int start, int end)
212         throws com.liferay.portal.SystemException {
213         return getService().getFrameworkVersions(groupId, active, start, end);
214     }
215 
216     public static int getFrameworkVersionsCount(long groupId)
217         throws com.liferay.portal.SystemException {
218         return getService().getFrameworkVersionsCount(groupId);
219     }
220 
221     public static int getFrameworkVersionsCount(long groupId, boolean active)
222         throws com.liferay.portal.SystemException {
223         return getService().getFrameworkVersionsCount(groupId, active);
224     }
225 
226     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
227         long productVersionId) throws com.liferay.portal.SystemException {
228         return getService().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         return getService()
237                    .updateFrameworkVersion(frameworkVersionId, name, url,
238             active, priority);
239     }
240 
241     public static SCFrameworkVersionLocalService getService() {
242         if (_service == null) {
243             _service = (SCFrameworkVersionLocalService)PortalBeanLocatorUtil.locate(SCFrameworkVersionLocalService.class.getName());
244 
245             ReferenceRegistry.registerReference(SCFrameworkVersionLocalServiceUtil.class,
246                 "_service");
247             MethodCache.remove(SCFrameworkVersionLocalService.class);
248         }
249 
250         return _service;
251     }
252 
253     public void setService(SCFrameworkVersionLocalService service) {
254         MethodCache.remove(SCFrameworkVersionLocalService.class);
255 
256         _service = service;
257 
258         ReferenceRegistry.registerReference(SCFrameworkVersionLocalServiceUtil.class,
259             "_service");
260         MethodCache.remove(SCFrameworkVersionLocalService.class);
261     }
262 
263     private static SCFrameworkVersionLocalService _service;
264 }