/portal-service/src/com/liferay/portlet/softwarecatalog/service/SCLicenseLocalServiceWrapper.java

https://github.com/Oggi/liferay-portal · Java · 359 lines · 176 code · 37 blank · 146 comment · 0 complexity · bb6e3d31203355d9e2e87bb49d87f375 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.portlet.softwarecatalog.service;
  15. import com.liferay.portal.service.ServiceWrapper;
  16. /**
  17. * <p>
  18. * This class is a wrapper for {@link SCLicenseLocalService}.
  19. * </p>
  20. *
  21. * @author Brian Wing Shun Chan
  22. * @see SCLicenseLocalService
  23. * @generated
  24. */
  25. public class SCLicenseLocalServiceWrapper implements SCLicenseLocalService,
  26. ServiceWrapper<SCLicenseLocalService> {
  27. public SCLicenseLocalServiceWrapper(
  28. SCLicenseLocalService scLicenseLocalService) {
  29. _scLicenseLocalService = scLicenseLocalService;
  30. }
  31. /**
  32. * Adds the s c license to the database. Also notifies the appropriate model listeners.
  33. *
  34. * @param scLicense the s c license
  35. * @return the s c license that was added
  36. * @throws SystemException if a system exception occurred
  37. */
  38. public com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
  39. com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
  40. throws com.liferay.portal.kernel.exception.SystemException {
  41. return _scLicenseLocalService.addSCLicense(scLicense);
  42. }
  43. /**
  44. * Creates a new s c license with the primary key. Does not add the s c license to the database.
  45. *
  46. * @param licenseId the primary key for the new s c license
  47. * @return the new s c license
  48. */
  49. public com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
  50. long licenseId) {
  51. return _scLicenseLocalService.createSCLicense(licenseId);
  52. }
  53. /**
  54. * Deletes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
  55. *
  56. * @param licenseId the primary key of the s c license
  57. * @throws PortalException if a s c license with the primary key could not be found
  58. * @throws SystemException if a system exception occurred
  59. */
  60. public void deleteSCLicense(long licenseId)
  61. throws com.liferay.portal.kernel.exception.PortalException,
  62. com.liferay.portal.kernel.exception.SystemException {
  63. _scLicenseLocalService.deleteSCLicense(licenseId);
  64. }
  65. /**
  66. * Deletes the s c license from the database. Also notifies the appropriate model listeners.
  67. *
  68. * @param scLicense the s c license
  69. * @throws SystemException if a system exception occurred
  70. */
  71. public void deleteSCLicense(
  72. com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
  73. throws com.liferay.portal.kernel.exception.SystemException {
  74. _scLicenseLocalService.deleteSCLicense(scLicense);
  75. }
  76. /**
  77. * Performs a dynamic query on the database and returns the matching rows.
  78. *
  79. * @param dynamicQuery the dynamic query
  80. * @return the matching rows
  81. * @throws SystemException if a system exception occurred
  82. */
  83. @SuppressWarnings("rawtypes")
  84. public java.util.List dynamicQuery(
  85. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  86. throws com.liferay.portal.kernel.exception.SystemException {
  87. return _scLicenseLocalService.dynamicQuery(dynamicQuery);
  88. }
  89. /**
  90. * Performs a dynamic query on the database and returns a range of the matching rows.
  91. *
  92. * <p>
  93. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  94. * </p>
  95. *
  96. * @param dynamicQuery the dynamic query
  97. * @param start the lower bound of the range of model instances
  98. * @param end the upper bound of the range of model instances (not inclusive)
  99. * @return the range of matching rows
  100. * @throws SystemException if a system exception occurred
  101. */
  102. @SuppressWarnings("rawtypes")
  103. public java.util.List dynamicQuery(
  104. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  105. int end) throws com.liferay.portal.kernel.exception.SystemException {
  106. return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end);
  107. }
  108. /**
  109. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  110. *
  111. * <p>
  112. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  113. * </p>
  114. *
  115. * @param dynamicQuery the dynamic query
  116. * @param start the lower bound of the range of model instances
  117. * @param end the upper bound of the range of model instances (not inclusive)
  118. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  119. * @return the ordered range of matching rows
  120. * @throws SystemException if a system exception occurred
  121. */
  122. @SuppressWarnings("rawtypes")
  123. public java.util.List dynamicQuery(
  124. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  125. int end,
  126. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  127. throws com.liferay.portal.kernel.exception.SystemException {
  128. return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end,
  129. orderByComparator);
  130. }
  131. /**
  132. * Returns the number of rows that match the dynamic query.
  133. *
  134. * @param dynamicQuery the dynamic query
  135. * @return the number of rows that match the dynamic query
  136. * @throws SystemException if a system exception occurred
  137. */
  138. public long dynamicQueryCount(
  139. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  140. throws com.liferay.portal.kernel.exception.SystemException {
  141. return _scLicenseLocalService.dynamicQueryCount(dynamicQuery);
  142. }
  143. public com.liferay.portlet.softwarecatalog.model.SCLicense fetchSCLicense(
  144. long licenseId)
  145. throws com.liferay.portal.kernel.exception.SystemException {
  146. return _scLicenseLocalService.fetchSCLicense(licenseId);
  147. }
  148. /**
  149. * Returns the s c license with the primary key.
  150. *
  151. * @param licenseId the primary key of the s c license
  152. * @return the s c license
  153. * @throws PortalException if a s c license with the primary key could not be found
  154. * @throws SystemException if a system exception occurred
  155. */
  156. public com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
  157. long licenseId)
  158. throws com.liferay.portal.kernel.exception.PortalException,
  159. com.liferay.portal.kernel.exception.SystemException {
  160. return _scLicenseLocalService.getSCLicense(licenseId);
  161. }
  162. public com.liferay.portal.model.PersistedModel getPersistedModel(
  163. java.io.Serializable primaryKeyObj)
  164. throws com.liferay.portal.kernel.exception.PortalException,
  165. com.liferay.portal.kernel.exception.SystemException {
  166. return _scLicenseLocalService.getPersistedModel(primaryKeyObj);
  167. }
  168. /**
  169. * Returns a range of all the s c licenses.
  170. *
  171. * <p>
  172. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  173. * </p>
  174. *
  175. * @param start the lower bound of the range of s c licenses
  176. * @param end the upper bound of the range of s c licenses (not inclusive)
  177. * @return the range of s c licenses
  178. * @throws SystemException if a system exception occurred
  179. */
  180. public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
  181. int start, int end)
  182. throws com.liferay.portal.kernel.exception.SystemException {
  183. return _scLicenseLocalService.getSCLicenses(start, end);
  184. }
  185. /**
  186. * Returns the number of s c licenses.
  187. *
  188. * @return the number of s c licenses
  189. * @throws SystemException if a system exception occurred
  190. */
  191. public int getSCLicensesCount()
  192. throws com.liferay.portal.kernel.exception.SystemException {
  193. return _scLicenseLocalService.getSCLicensesCount();
  194. }
  195. /**
  196. * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  197. *
  198. * @param scLicense the s c license
  199. * @return the s c license that was updated
  200. * @throws SystemException if a system exception occurred
  201. */
  202. public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
  203. com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
  204. throws com.liferay.portal.kernel.exception.SystemException {
  205. return _scLicenseLocalService.updateSCLicense(scLicense);
  206. }
  207. /**
  208. * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  209. *
  210. * @param scLicense the s c license
  211. * @param merge whether to merge the s c license with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
  212. * @return the s c license that was updated
  213. * @throws SystemException if a system exception occurred
  214. */
  215. public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
  216. com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
  217. boolean merge)
  218. throws com.liferay.portal.kernel.exception.SystemException {
  219. return _scLicenseLocalService.updateSCLicense(scLicense, merge);
  220. }
  221. /**
  222. * Returns the Spring bean ID for this bean.
  223. *
  224. * @return the Spring bean ID for this bean
  225. */
  226. public java.lang.String getBeanIdentifier() {
  227. return _scLicenseLocalService.getBeanIdentifier();
  228. }
  229. /**
  230. * Sets the Spring bean ID for this bean.
  231. *
  232. * @param beanIdentifier the Spring bean ID for this bean
  233. */
  234. public void setBeanIdentifier(java.lang.String beanIdentifier) {
  235. _scLicenseLocalService.setBeanIdentifier(beanIdentifier);
  236. }
  237. public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
  238. java.lang.String name, java.lang.String url, boolean openSource,
  239. boolean active, boolean recommended)
  240. throws com.liferay.portal.kernel.exception.PortalException,
  241. com.liferay.portal.kernel.exception.SystemException {
  242. return _scLicenseLocalService.addLicense(name, url, openSource, active,
  243. recommended);
  244. }
  245. public void deleteLicense(long licenseId)
  246. throws com.liferay.portal.kernel.exception.PortalException,
  247. com.liferay.portal.kernel.exception.SystemException {
  248. _scLicenseLocalService.deleteLicense(licenseId);
  249. }
  250. public void deleteLicense(
  251. com.liferay.portlet.softwarecatalog.model.SCLicense license)
  252. throws com.liferay.portal.kernel.exception.SystemException {
  253. _scLicenseLocalService.deleteLicense(license);
  254. }
  255. public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
  256. long licenseId)
  257. throws com.liferay.portal.kernel.exception.PortalException,
  258. com.liferay.portal.kernel.exception.SystemException {
  259. return _scLicenseLocalService.getLicense(licenseId);
  260. }
  261. public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
  262. throws com.liferay.portal.kernel.exception.SystemException {
  263. return _scLicenseLocalService.getLicenses();
  264. }
  265. public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
  266. boolean active, boolean recommended)
  267. throws com.liferay.portal.kernel.exception.SystemException {
  268. return _scLicenseLocalService.getLicenses(active, recommended);
  269. }
  270. public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
  271. boolean active, boolean recommended, int start, int end)
  272. throws com.liferay.portal.kernel.exception.SystemException {
  273. return _scLicenseLocalService.getLicenses(active, recommended, start,
  274. end);
  275. }
  276. public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
  277. int start, int end)
  278. throws com.liferay.portal.kernel.exception.SystemException {
  279. return _scLicenseLocalService.getLicenses(start, end);
  280. }
  281. public int getLicensesCount()
  282. throws com.liferay.portal.kernel.exception.SystemException {
  283. return _scLicenseLocalService.getLicensesCount();
  284. }
  285. public int getLicensesCount(boolean active, boolean recommended)
  286. throws com.liferay.portal.kernel.exception.SystemException {
  287. return _scLicenseLocalService.getLicensesCount(active, recommended);
  288. }
  289. public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
  290. long productEntryId)
  291. throws com.liferay.portal.kernel.exception.SystemException {
  292. return _scLicenseLocalService.getProductEntryLicenses(productEntryId);
  293. }
  294. public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
  295. long licenseId, java.lang.String name, java.lang.String url,
  296. boolean openSource, boolean active, boolean recommended)
  297. throws com.liferay.portal.kernel.exception.PortalException,
  298. com.liferay.portal.kernel.exception.SystemException {
  299. return _scLicenseLocalService.updateLicense(licenseId, name, url,
  300. openSource, active, recommended);
  301. }
  302. /**
  303. * @deprecated Renamed to {@link #getWrappedService}
  304. */
  305. public SCLicenseLocalService getWrappedSCLicenseLocalService() {
  306. return _scLicenseLocalService;
  307. }
  308. /**
  309. * @deprecated Renamed to {@link #setWrappedService}
  310. */
  311. public void setWrappedSCLicenseLocalService(
  312. SCLicenseLocalService scLicenseLocalService) {
  313. _scLicenseLocalService = scLicenseLocalService;
  314. }
  315. public SCLicenseLocalService getWrappedService() {
  316. return _scLicenseLocalService;
  317. }
  318. public void setWrappedService(SCLicenseLocalService scLicenseLocalService) {
  319. _scLicenseLocalService = scLicenseLocalService;
  320. }
  321. private SCLicenseLocalService _scLicenseLocalService;
  322. }