1   /**
2    * Copyright (c) 2000-2009 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="SCFrameworkVersionServiceUtil.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 SCFrameworkVersionService} 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       SCFrameworkVersionService
44   * @generated
45   */
46  public class SCFrameworkVersionServiceUtil {
47      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
48          long plid, java.lang.String name, java.lang.String url, boolean active,
49          int priority, boolean addCommunityPermissions,
50          boolean addGuestPermissions)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException, java.rmi.RemoteException {
53          return getService()
54                     .addFrameworkVersion(plid, name, url, active, priority,
55              addCommunityPermissions, addGuestPermissions);
56      }
57  
58      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
59          long plid, java.lang.String name, java.lang.String url, boolean active,
60          int priority, java.lang.String[] communityPermissions,
61          java.lang.String[] guestPermissions)
62          throws com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException, java.rmi.RemoteException {
64          return getService()
65                     .addFrameworkVersion(plid, name, url, active, priority,
66              communityPermissions, guestPermissions);
67      }
68  
69      public static void deleteFrameworkVersion(long frameworkVersionId)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException, java.rmi.RemoteException {
72          getService().deleteFrameworkVersion(frameworkVersionId);
73      }
74  
75      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
76          long frameworkVersionId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException, java.rmi.RemoteException {
79          return getService().getFrameworkVersion(frameworkVersionId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
83          long groupId, boolean active)
84          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
85          return getService().getFrameworkVersions(groupId, active);
86      }
87  
88      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
89          long groupId, boolean active, int start, int end)
90          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
91          return getService().getFrameworkVersions(groupId, active, start, end);
92      }
93  
94      public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
95          long frameworkVersionId, java.lang.String name, java.lang.String url,
96          boolean active, int priority)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException, java.rmi.RemoteException {
99          return getService()
100                    .updateFrameworkVersion(frameworkVersionId, name, url,
101             active, priority);
102     }
103 
104     public static SCFrameworkVersionService getService() {
105         if (_service == null) {
106             throw new RuntimeException("SCFrameworkVersionService is not set");
107         }
108 
109         return _service;
110     }
111 
112     public void setService(SCFrameworkVersionService service) {
113         _service = service;
114     }
115 
116     private static SCFrameworkVersionService _service;
117 }