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 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 }