/modules/apps/document-library/document-library-api/src/main/java/com/liferay/document/library/service/DLStorageQuotaLocalServiceWrapper.java

https://github.com/danielreuther/liferay-portal · Java · 377 lines · 170 code · 59 blank · 148 comment · 0 complexity · 2a7c16feeca2eb7f5956be04eaa57632 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-present 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.document.library.service;
  15. import com.liferay.portal.kernel.service.ServiceWrapper;
  16. /**
  17. * Provides a wrapper for {@link DLStorageQuotaLocalService}.
  18. *
  19. * @author Brian Wing Shun Chan
  20. * @see DLStorageQuotaLocalService
  21. * @generated
  22. */
  23. public class DLStorageQuotaLocalServiceWrapper
  24. implements DLStorageQuotaLocalService,
  25. ServiceWrapper<DLStorageQuotaLocalService> {
  26. public DLStorageQuotaLocalServiceWrapper() {
  27. this(null);
  28. }
  29. public DLStorageQuotaLocalServiceWrapper(
  30. DLStorageQuotaLocalService dlStorageQuotaLocalService) {
  31. _dlStorageQuotaLocalService = dlStorageQuotaLocalService;
  32. }
  33. /**
  34. * Adds the dl storage quota to the database. Also notifies the appropriate model listeners.
  35. *
  36. * <p>
  37. * <strong>Important:</strong> Inspect DLStorageQuotaLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
  38. * </p>
  39. *
  40. * @param dlStorageQuota the dl storage quota
  41. * @return the dl storage quota that was added
  42. */
  43. @Override
  44. public com.liferay.document.library.model.DLStorageQuota addDLStorageQuota(
  45. com.liferay.document.library.model.DLStorageQuota dlStorageQuota) {
  46. return _dlStorageQuotaLocalService.addDLStorageQuota(dlStorageQuota);
  47. }
  48. /**
  49. * Creates a new dl storage quota with the primary key. Does not add the dl storage quota to the database.
  50. *
  51. * @param dlStorageQuotaId the primary key for the new dl storage quota
  52. * @return the new dl storage quota
  53. */
  54. @Override
  55. public com.liferay.document.library.model.DLStorageQuota
  56. createDLStorageQuota(long dlStorageQuotaId) {
  57. return _dlStorageQuotaLocalService.createDLStorageQuota(
  58. dlStorageQuotaId);
  59. }
  60. /**
  61. * @throws PortalException
  62. */
  63. @Override
  64. public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(
  65. java.io.Serializable primaryKeyObj)
  66. throws com.liferay.portal.kernel.exception.PortalException {
  67. return _dlStorageQuotaLocalService.createPersistedModel(primaryKeyObj);
  68. }
  69. /**
  70. * Deletes the dl storage quota from the database. Also notifies the appropriate model listeners.
  71. *
  72. * <p>
  73. * <strong>Important:</strong> Inspect DLStorageQuotaLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
  74. * </p>
  75. *
  76. * @param dlStorageQuota the dl storage quota
  77. * @return the dl storage quota that was removed
  78. */
  79. @Override
  80. public com.liferay.document.library.model.DLStorageQuota
  81. deleteDLStorageQuota(
  82. com.liferay.document.library.model.DLStorageQuota dlStorageQuota) {
  83. return _dlStorageQuotaLocalService.deleteDLStorageQuota(dlStorageQuota);
  84. }
  85. /**
  86. * Deletes the dl storage quota with the primary key from the database. Also notifies the appropriate model listeners.
  87. *
  88. * <p>
  89. * <strong>Important:</strong> Inspect DLStorageQuotaLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
  90. * </p>
  91. *
  92. * @param dlStorageQuotaId the primary key of the dl storage quota
  93. * @return the dl storage quota that was removed
  94. * @throws PortalException if a dl storage quota with the primary key could not be found
  95. */
  96. @Override
  97. public com.liferay.document.library.model.DLStorageQuota
  98. deleteDLStorageQuota(long dlStorageQuotaId)
  99. throws com.liferay.portal.kernel.exception.PortalException {
  100. return _dlStorageQuotaLocalService.deleteDLStorageQuota(
  101. dlStorageQuotaId);
  102. }
  103. /**
  104. * @throws PortalException
  105. */
  106. @Override
  107. public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
  108. com.liferay.portal.kernel.model.PersistedModel persistedModel)
  109. throws com.liferay.portal.kernel.exception.PortalException {
  110. return _dlStorageQuotaLocalService.deletePersistedModel(persistedModel);
  111. }
  112. @Override
  113. public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
  114. return _dlStorageQuotaLocalService.dslQuery(dslQuery);
  115. }
  116. @Override
  117. public int dslQueryCount(
  118. com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
  119. return _dlStorageQuotaLocalService.dslQueryCount(dslQuery);
  120. }
  121. @Override
  122. public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
  123. return _dlStorageQuotaLocalService.dynamicQuery();
  124. }
  125. /**
  126. * Performs a dynamic query on the database and returns the matching rows.
  127. *
  128. * @param dynamicQuery the dynamic query
  129. * @return the matching rows
  130. */
  131. @Override
  132. public <T> java.util.List<T> dynamicQuery(
  133. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  134. return _dlStorageQuotaLocalService.dynamicQuery(dynamicQuery);
  135. }
  136. /**
  137. * Performs a dynamic query on the database and returns a range of the matching rows.
  138. *
  139. * <p>
  140. * 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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.document.library.model.impl.DLStorageQuotaModelImpl</code>.
  141. * </p>
  142. *
  143. * @param dynamicQuery the dynamic query
  144. * @param start the lower bound of the range of model instances
  145. * @param end the upper bound of the range of model instances (not inclusive)
  146. * @return the range of matching rows
  147. */
  148. @Override
  149. public <T> java.util.List<T> dynamicQuery(
  150. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  151. int end) {
  152. return _dlStorageQuotaLocalService.dynamicQuery(
  153. dynamicQuery, start, end);
  154. }
  155. /**
  156. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  157. *
  158. * <p>
  159. * 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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.document.library.model.impl.DLStorageQuotaModelImpl</code>.
  160. * </p>
  161. *
  162. * @param dynamicQuery the dynamic query
  163. * @param start the lower bound of the range of model instances
  164. * @param end the upper bound of the range of model instances (not inclusive)
  165. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  166. * @return the ordered range of matching rows
  167. */
  168. @Override
  169. public <T> java.util.List<T> dynamicQuery(
  170. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  171. int end,
  172. com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
  173. return _dlStorageQuotaLocalService.dynamicQuery(
  174. dynamicQuery, start, end, orderByComparator);
  175. }
  176. /**
  177. * Returns the number of rows matching the dynamic query.
  178. *
  179. * @param dynamicQuery the dynamic query
  180. * @return the number of rows matching the dynamic query
  181. */
  182. @Override
  183. public long dynamicQueryCount(
  184. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  185. return _dlStorageQuotaLocalService.dynamicQueryCount(dynamicQuery);
  186. }
  187. /**
  188. * Returns the number of rows matching the dynamic query.
  189. *
  190. * @param dynamicQuery the dynamic query
  191. * @param projection the projection to apply to the query
  192. * @return the number of rows matching the dynamic query
  193. */
  194. @Override
  195. public long dynamicQueryCount(
  196. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
  197. com.liferay.portal.kernel.dao.orm.Projection projection) {
  198. return _dlStorageQuotaLocalService.dynamicQueryCount(
  199. dynamicQuery, projection);
  200. }
  201. @Override
  202. public com.liferay.document.library.model.DLStorageQuota
  203. fetchDLStorageQuota(long dlStorageQuotaId) {
  204. return _dlStorageQuotaLocalService.fetchDLStorageQuota(
  205. dlStorageQuotaId);
  206. }
  207. @Override
  208. public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
  209. getActionableDynamicQuery() {
  210. return _dlStorageQuotaLocalService.getActionableDynamicQuery();
  211. }
  212. @Override
  213. public com.liferay.document.library.model.DLStorageQuota
  214. getCompanyDLStorageQuota(long companyId)
  215. throws com.liferay.portal.kernel.exception.PortalException {
  216. return _dlStorageQuotaLocalService.getCompanyDLStorageQuota(companyId);
  217. }
  218. /**
  219. * Returns the dl storage quota with the primary key.
  220. *
  221. * @param dlStorageQuotaId the primary key of the dl storage quota
  222. * @return the dl storage quota
  223. * @throws PortalException if a dl storage quota with the primary key could not be found
  224. */
  225. @Override
  226. public com.liferay.document.library.model.DLStorageQuota getDLStorageQuota(
  227. long dlStorageQuotaId)
  228. throws com.liferay.portal.kernel.exception.PortalException {
  229. return _dlStorageQuotaLocalService.getDLStorageQuota(dlStorageQuotaId);
  230. }
  231. /**
  232. * Returns a range of all the dl storage quotas.
  233. *
  234. * <p>
  235. * 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 <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.document.library.model.impl.DLStorageQuotaModelImpl</code>.
  236. * </p>
  237. *
  238. * @param start the lower bound of the range of dl storage quotas
  239. * @param end the upper bound of the range of dl storage quotas (not inclusive)
  240. * @return the range of dl storage quotas
  241. */
  242. @Override
  243. public java.util.List<com.liferay.document.library.model.DLStorageQuota>
  244. getDLStorageQuotas(int start, int end) {
  245. return _dlStorageQuotaLocalService.getDLStorageQuotas(start, end);
  246. }
  247. /**
  248. * Returns the number of dl storage quotas.
  249. *
  250. * @return the number of dl storage quotas
  251. */
  252. @Override
  253. public int getDLStorageQuotasCount() {
  254. return _dlStorageQuotaLocalService.getDLStorageQuotasCount();
  255. }
  256. @Override
  257. public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
  258. getIndexableActionableDynamicQuery() {
  259. return _dlStorageQuotaLocalService.getIndexableActionableDynamicQuery();
  260. }
  261. /**
  262. * Returns the OSGi service identifier.
  263. *
  264. * @return the OSGi service identifier
  265. */
  266. @Override
  267. public String getOSGiServiceIdentifier() {
  268. return _dlStorageQuotaLocalService.getOSGiServiceIdentifier();
  269. }
  270. /**
  271. * @throws PortalException
  272. */
  273. @Override
  274. public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
  275. java.io.Serializable primaryKeyObj)
  276. throws com.liferay.portal.kernel.exception.PortalException {
  277. return _dlStorageQuotaLocalService.getPersistedModel(primaryKeyObj);
  278. }
  279. @Override
  280. public void incrementStorageSize(long companyId, long increment) {
  281. _dlStorageQuotaLocalService.incrementStorageSize(companyId, increment);
  282. }
  283. /**
  284. * Updates the dl storage quota in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  285. *
  286. * <p>
  287. * <strong>Important:</strong> Inspect DLStorageQuotaLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
  288. * </p>
  289. *
  290. * @param dlStorageQuota the dl storage quota
  291. * @return the dl storage quota that was updated
  292. */
  293. @Override
  294. public com.liferay.document.library.model.DLStorageQuota
  295. updateDLStorageQuota(
  296. com.liferay.document.library.model.DLStorageQuota dlStorageQuota) {
  297. return _dlStorageQuotaLocalService.updateDLStorageQuota(dlStorageQuota);
  298. }
  299. @Override
  300. public void updateStorageSize(long companyId) {
  301. _dlStorageQuotaLocalService.updateStorageSize(companyId);
  302. }
  303. @Override
  304. public void validateStorageQuota(long companyId, long increment)
  305. throws com.liferay.portal.kernel.exception.PortalException {
  306. _dlStorageQuotaLocalService.validateStorageQuota(companyId, increment);
  307. }
  308. @Override
  309. public DLStorageQuotaLocalService getWrappedService() {
  310. return _dlStorageQuotaLocalService;
  311. }
  312. @Override
  313. public void setWrappedService(
  314. DLStorageQuotaLocalService dlStorageQuotaLocalService) {
  315. _dlStorageQuotaLocalService = dlStorageQuotaLocalService;
  316. }
  317. private DLStorageQuotaLocalService _dlStorageQuotaLocalService;
  318. }