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="SCLicenseLocalServiceUtil.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 SCLicenseLocalService} 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       SCLicenseLocalService
37   * @generated
38   */
39  public class SCLicenseLocalServiceUtil {
40      public static com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
41          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
42          throws com.liferay.portal.SystemException {
43          return getService().addSCLicense(scLicense);
44      }
45  
46      public static com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
47          long licenseId) {
48          return getService().createSCLicense(licenseId);
49      }
50  
51      public static void deleteSCLicense(long licenseId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteSCLicense(licenseId);
55      }
56  
57      public static void deleteSCLicense(
58          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
59          throws com.liferay.portal.SystemException {
60          getService().deleteSCLicense(scLicense);
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.SCLicense getSCLicense(
91          long licenseId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          return getService().getSCLicense(licenseId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
98          int start, int end) throws com.liferay.portal.SystemException {
99          return getService().getSCLicenses(start, end);
100     }
101 
102     public static int getSCLicensesCount()
103         throws com.liferay.portal.SystemException {
104         return getService().getSCLicensesCount();
105     }
106 
107     public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
108         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
109         throws com.liferay.portal.SystemException {
110         return getService().updateSCLicense(scLicense);
111     }
112 
113     public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
114         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
115         boolean merge) throws com.liferay.portal.SystemException {
116         return getService().updateSCLicense(scLicense, merge);
117     }
118 
119     public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
120         java.lang.String name, java.lang.String url, boolean openSource,
121         boolean active, boolean recommended)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return getService()
125                    .addLicense(name, url, openSource, active, recommended);
126     }
127 
128     public static void deleteLicense(long licenseId)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         getService().deleteLicense(licenseId);
132     }
133 
134     public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
135         long licenseId)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return getService().getLicense(licenseId);
139     }
140 
141     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
142         throws com.liferay.portal.SystemException {
143         return getService().getLicenses();
144     }
145 
146     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
147         boolean active, boolean recommended)
148         throws com.liferay.portal.SystemException {
149         return getService().getLicenses(active, recommended);
150     }
151 
152     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
153         boolean active, boolean recommended, int start, int end)
154         throws com.liferay.portal.SystemException {
155         return getService().getLicenses(active, recommended, start, end);
156     }
157 
158     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
159         int start, int end) throws com.liferay.portal.SystemException {
160         return getService().getLicenses(start, end);
161     }
162 
163     public static int getLicensesCount()
164         throws com.liferay.portal.SystemException {
165         return getService().getLicensesCount();
166     }
167 
168     public static int getLicensesCount(boolean active, boolean recommended)
169         throws com.liferay.portal.SystemException {
170         return getService().getLicensesCount(active, recommended);
171     }
172 
173     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
174         long productEntryId) throws com.liferay.portal.SystemException {
175         return getService().getProductEntryLicenses(productEntryId);
176     }
177 
178     public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
179         long licenseId, java.lang.String name, java.lang.String url,
180         boolean openSource, boolean active, boolean recommended)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         return getService()
184                    .updateLicense(licenseId, name, url, openSource, active,
185             recommended);
186     }
187 
188     public static SCLicenseLocalService getService() {
189         if (_service == null) {
190             _service = (SCLicenseLocalService)PortalBeanLocatorUtil.locate(SCLicenseLocalService.class.getName());
191         }
192 
193         return _service;
194     }
195 
196     public void setService(SCLicenseLocalService service) {
197         _service = service;
198     }
199 
200     private static SCLicenseLocalService _service;
201 }