1
14
15 package com.liferay.portlet.softwarecatalog.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
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 com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
76 long licenseId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getSCLicense(licenseId);
80 }
81
82 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getSCLicenses(start, end);
85 }
86
87 public static int getSCLicensesCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getSCLicensesCount();
90 }
91
92 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
93 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
94 throws com.liferay.portal.SystemException {
95 return getService().updateSCLicense(scLicense);
96 }
97
98 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
99 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
100 boolean merge) throws com.liferay.portal.SystemException {
101 return getService().updateSCLicense(scLicense, merge);
102 }
103
104 public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
105 java.lang.String name, java.lang.String url, boolean openSource,
106 boolean active, boolean recommended)
107 throws com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException {
109 return getService()
110 .addLicense(name, url, openSource, active, recommended);
111 }
112
113 public static void deleteLicense(long licenseId)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 getService().deleteLicense(licenseId);
117 }
118
119 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
120 long licenseId)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 return getService().getLicense(licenseId);
124 }
125
126 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
127 throws com.liferay.portal.SystemException {
128 return getService().getLicenses();
129 }
130
131 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
132 boolean active, boolean recommended)
133 throws com.liferay.portal.SystemException {
134 return getService().getLicenses(active, recommended);
135 }
136
137 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
138 boolean active, boolean recommended, int start, int end)
139 throws com.liferay.portal.SystemException {
140 return getService().getLicenses(active, recommended, start, end);
141 }
142
143 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
144 int start, int end) throws com.liferay.portal.SystemException {
145 return getService().getLicenses(start, end);
146 }
147
148 public static int getLicensesCount()
149 throws com.liferay.portal.SystemException {
150 return getService().getLicensesCount();
151 }
152
153 public static int getLicensesCount(boolean active, boolean recommended)
154 throws com.liferay.portal.SystemException {
155 return getService().getLicensesCount(active, recommended);
156 }
157
158 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
159 long productEntryId) throws com.liferay.portal.SystemException {
160 return getService().getProductEntryLicenses(productEntryId);
161 }
162
163 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
164 long licenseId, java.lang.String name, java.lang.String url,
165 boolean openSource, boolean active, boolean recommended)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 return getService()
169 .updateLicense(licenseId, name, url, openSource, active,
170 recommended);
171 }
172
173 public static SCLicenseLocalService getService() {
174 if (_service == null) {
175 _service = (SCLicenseLocalService)PortalBeanLocatorUtil.locate(SCLicenseLocalService.class.getName());
176 }
177
178 return _service;
179 }
180
181 public void setService(SCLicenseLocalService service) {
182 _service = service;
183 }
184
185 private static SCLicenseLocalService _service;
186 }