001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class SCLicenseLocalServiceUtil {
033 public static com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
034 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addSCLicense(scLicense);
037 }
038
039 public static com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
040 long licenseId) {
041 return getService().createSCLicense(licenseId);
042 }
043
044 public static void deleteSCLicense(long licenseId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteSCLicense(licenseId);
048 }
049
050 public static void deleteSCLicense(
051 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteSCLicense(scLicense);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
087 long licenseId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getSCLicense(licenseId);
091 }
092
093 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getSCLicenses(start, end);
097 }
098
099 public static int getSCLicensesCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getSCLicensesCount();
102 }
103
104 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
105 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateSCLicense(scLicense);
108 }
109
110 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
111 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
112 boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateSCLicense(scLicense, merge);
115 }
116
117 public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
118 java.lang.String name, java.lang.String url, boolean openSource,
119 boolean active, boolean recommended)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException {
122 return getService()
123 .addLicense(name, url, openSource, active, recommended);
124 }
125
126 public static void deleteLicense(long licenseId)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException {
129 getService().deleteLicense(licenseId);
130 }
131
132 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
133 long licenseId)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 return getService().getLicense(licenseId);
137 }
138
139 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getService().getLicenses();
142 }
143
144 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
145 boolean active, boolean recommended)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getService().getLicenses(active, recommended);
148 }
149
150 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
151 boolean active, boolean recommended, int start, int end)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getService().getLicenses(active, recommended, start, end);
154 }
155
156 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
157 int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getService().getLicenses(start, end);
160 }
161
162 public static int getLicensesCount()
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().getLicensesCount();
165 }
166
167 public static int getLicensesCount(boolean active, boolean recommended)
168 throws com.liferay.portal.kernel.exception.SystemException {
169 return getService().getLicensesCount(active, recommended);
170 }
171
172 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
173 long productEntryId)
174 throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.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 }