/modules/dxp/apps/multi-factor-authentication/multi-factor-authentication-email-otp-api/src/main/java/com/liferay/multi/factor/authentication/email/otp/service/MFAEmailOTPEntryLocalServiceWrapper.java

https://github.com/danielreuther/liferay-portal · Java · 408 lines · 199 code · 61 blank · 148 comment · 0 complexity · b977b9c8fed80d9002fbe20c5cbc13e6 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * The contents of this file are subject to the terms of the Liferay Enterprise
  5. * Subscription License ("License"). You may not use this file except in
  6. * compliance with the License. You can obtain a copy of the License by
  7. * contacting Liferay, Inc. See the License for the specific language governing
  8. * permissions and limitations under the License, including but not limited to
  9. * distribution rights of the Software.
  10. *
  11. *
  12. *
  13. */
  14. package com.liferay.multi.factor.authentication.email.otp.service;
  15. import com.liferay.portal.kernel.service.ServiceWrapper;
  16. /**
  17. * Provides a wrapper for {@link MFAEmailOTPEntryLocalService}.
  18. *
  19. * @author Arthur Chan
  20. * @see MFAEmailOTPEntryLocalService
  21. * @generated
  22. */
  23. public class MFAEmailOTPEntryLocalServiceWrapper
  24. implements MFAEmailOTPEntryLocalService,
  25. ServiceWrapper<MFAEmailOTPEntryLocalService> {
  26. public MFAEmailOTPEntryLocalServiceWrapper() {
  27. this(null);
  28. }
  29. public MFAEmailOTPEntryLocalServiceWrapper(
  30. MFAEmailOTPEntryLocalService mfaEmailOTPEntryLocalService) {
  31. _mfaEmailOTPEntryLocalService = mfaEmailOTPEntryLocalService;
  32. }
  33. @Override
  34. public
  35. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  36. addMFAEmailOTPEntry(long userId)
  37. throws com.liferay.portal.kernel.exception.PortalException {
  38. return _mfaEmailOTPEntryLocalService.addMFAEmailOTPEntry(userId);
  39. }
  40. /**
  41. * Adds the mfa email otp entry to the database. Also notifies the appropriate model listeners.
  42. *
  43. * <p>
  44. * <strong>Important:</strong> Inspect MFAEmailOTPEntryLocalServiceImpl 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.
  45. * </p>
  46. *
  47. * @param mfaEmailOTPEntry the mfa email otp entry
  48. * @return the mfa email otp entry that was added
  49. */
  50. @Override
  51. public
  52. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  53. addMFAEmailOTPEntry(
  54. com.liferay.multi.factor.authentication.email.otp.model.
  55. MFAEmailOTPEntry mfaEmailOTPEntry) {
  56. return _mfaEmailOTPEntryLocalService.addMFAEmailOTPEntry(
  57. mfaEmailOTPEntry);
  58. }
  59. /**
  60. * Creates a new mfa email otp entry with the primary key. Does not add the mfa email otp entry to the database.
  61. *
  62. * @param mfaEmailOTPEntryId the primary key for the new mfa email otp entry
  63. * @return the new mfa email otp entry
  64. */
  65. @Override
  66. public
  67. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  68. createMFAEmailOTPEntry(long mfaEmailOTPEntryId) {
  69. return _mfaEmailOTPEntryLocalService.createMFAEmailOTPEntry(
  70. mfaEmailOTPEntryId);
  71. }
  72. /**
  73. * @throws PortalException
  74. */
  75. @Override
  76. public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(
  77. java.io.Serializable primaryKeyObj)
  78. throws com.liferay.portal.kernel.exception.PortalException {
  79. return _mfaEmailOTPEntryLocalService.createPersistedModel(
  80. primaryKeyObj);
  81. }
  82. /**
  83. * Deletes the mfa email otp entry with the primary key from the database. Also notifies the appropriate model listeners.
  84. *
  85. * <p>
  86. * <strong>Important:</strong> Inspect MFAEmailOTPEntryLocalServiceImpl 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.
  87. * </p>
  88. *
  89. * @param mfaEmailOTPEntryId the primary key of the mfa email otp entry
  90. * @return the mfa email otp entry that was removed
  91. * @throws PortalException if a mfa email otp entry with the primary key could not be found
  92. */
  93. @Override
  94. public
  95. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  96. deleteMFAEmailOTPEntry(long mfaEmailOTPEntryId)
  97. throws com.liferay.portal.kernel.exception.PortalException {
  98. return _mfaEmailOTPEntryLocalService.deleteMFAEmailOTPEntry(
  99. mfaEmailOTPEntryId);
  100. }
  101. /**
  102. * Deletes the mfa email otp entry from the database. Also notifies the appropriate model listeners.
  103. *
  104. * <p>
  105. * <strong>Important:</strong> Inspect MFAEmailOTPEntryLocalServiceImpl 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.
  106. * </p>
  107. *
  108. * @param mfaEmailOTPEntry the mfa email otp entry
  109. * @return the mfa email otp entry that was removed
  110. */
  111. @Override
  112. public
  113. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  114. deleteMFAEmailOTPEntry(
  115. com.liferay.multi.factor.authentication.email.otp.model.
  116. MFAEmailOTPEntry mfaEmailOTPEntry) {
  117. return _mfaEmailOTPEntryLocalService.deleteMFAEmailOTPEntry(
  118. mfaEmailOTPEntry);
  119. }
  120. /**
  121. * @throws PortalException
  122. */
  123. @Override
  124. public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
  125. com.liferay.portal.kernel.model.PersistedModel persistedModel)
  126. throws com.liferay.portal.kernel.exception.PortalException {
  127. return _mfaEmailOTPEntryLocalService.deletePersistedModel(
  128. persistedModel);
  129. }
  130. @Override
  131. public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
  132. return _mfaEmailOTPEntryLocalService.dslQuery(dslQuery);
  133. }
  134. @Override
  135. public int dslQueryCount(
  136. com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
  137. return _mfaEmailOTPEntryLocalService.dslQueryCount(dslQuery);
  138. }
  139. @Override
  140. public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
  141. return _mfaEmailOTPEntryLocalService.dynamicQuery();
  142. }
  143. /**
  144. * Performs a dynamic query on the database and returns the matching rows.
  145. *
  146. * @param dynamicQuery the dynamic query
  147. * @return the matching rows
  148. */
  149. @Override
  150. public <T> java.util.List<T> dynamicQuery(
  151. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  152. return _mfaEmailOTPEntryLocalService.dynamicQuery(dynamicQuery);
  153. }
  154. /**
  155. * Performs a dynamic query on the database and returns a range of the matching rows.
  156. *
  157. * <p>
  158. * 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.multi.factor.authentication.email.otp.model.impl.MFAEmailOTPEntryModelImpl</code>.
  159. * </p>
  160. *
  161. * @param dynamicQuery the dynamic query
  162. * @param start the lower bound of the range of model instances
  163. * @param end the upper bound of the range of model instances (not inclusive)
  164. * @return the range of matching rows
  165. */
  166. @Override
  167. public <T> java.util.List<T> dynamicQuery(
  168. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  169. int end) {
  170. return _mfaEmailOTPEntryLocalService.dynamicQuery(
  171. dynamicQuery, start, end);
  172. }
  173. /**
  174. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  175. *
  176. * <p>
  177. * 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.multi.factor.authentication.email.otp.model.impl.MFAEmailOTPEntryModelImpl</code>.
  178. * </p>
  179. *
  180. * @param dynamicQuery the dynamic query
  181. * @param start the lower bound of the range of model instances
  182. * @param end the upper bound of the range of model instances (not inclusive)
  183. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  184. * @return the ordered range of matching rows
  185. */
  186. @Override
  187. public <T> java.util.List<T> dynamicQuery(
  188. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  189. int end,
  190. com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
  191. return _mfaEmailOTPEntryLocalService.dynamicQuery(
  192. dynamicQuery, start, end, orderByComparator);
  193. }
  194. /**
  195. * Returns the number of rows matching the dynamic query.
  196. *
  197. * @param dynamicQuery the dynamic query
  198. * @return the number of rows matching the dynamic query
  199. */
  200. @Override
  201. public long dynamicQueryCount(
  202. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  203. return _mfaEmailOTPEntryLocalService.dynamicQueryCount(dynamicQuery);
  204. }
  205. /**
  206. * Returns the number of rows matching the dynamic query.
  207. *
  208. * @param dynamicQuery the dynamic query
  209. * @param projection the projection to apply to the query
  210. * @return the number of rows matching the dynamic query
  211. */
  212. @Override
  213. public long dynamicQueryCount(
  214. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
  215. com.liferay.portal.kernel.dao.orm.Projection projection) {
  216. return _mfaEmailOTPEntryLocalService.dynamicQueryCount(
  217. dynamicQuery, projection);
  218. }
  219. @Override
  220. public
  221. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  222. fetchMFAEmailOTPEntry(long mfaEmailOTPEntryId) {
  223. return _mfaEmailOTPEntryLocalService.fetchMFAEmailOTPEntry(
  224. mfaEmailOTPEntryId);
  225. }
  226. @Override
  227. public
  228. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  229. fetchMFAEmailOTPEntryByUserId(long userId) {
  230. return _mfaEmailOTPEntryLocalService.fetchMFAEmailOTPEntryByUserId(
  231. userId);
  232. }
  233. @Override
  234. public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
  235. getActionableDynamicQuery() {
  236. return _mfaEmailOTPEntryLocalService.getActionableDynamicQuery();
  237. }
  238. @Override
  239. public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
  240. getIndexableActionableDynamicQuery() {
  241. return _mfaEmailOTPEntryLocalService.
  242. getIndexableActionableDynamicQuery();
  243. }
  244. /**
  245. * Returns a range of all the mfa email otp entries.
  246. *
  247. * <p>
  248. * 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.multi.factor.authentication.email.otp.model.impl.MFAEmailOTPEntryModelImpl</code>.
  249. * </p>
  250. *
  251. * @param start the lower bound of the range of mfa email otp entries
  252. * @param end the upper bound of the range of mfa email otp entries (not inclusive)
  253. * @return the range of mfa email otp entries
  254. */
  255. @Override
  256. public java.util.List
  257. <com.liferay.multi.factor.authentication.email.otp.model.
  258. MFAEmailOTPEntry> getMFAEmailOTPEntries(int start, int end) {
  259. return _mfaEmailOTPEntryLocalService.getMFAEmailOTPEntries(start, end);
  260. }
  261. /**
  262. * Returns the number of mfa email otp entries.
  263. *
  264. * @return the number of mfa email otp entries
  265. */
  266. @Override
  267. public int getMFAEmailOTPEntriesCount() {
  268. return _mfaEmailOTPEntryLocalService.getMFAEmailOTPEntriesCount();
  269. }
  270. /**
  271. * Returns the mfa email otp entry with the primary key.
  272. *
  273. * @param mfaEmailOTPEntryId the primary key of the mfa email otp entry
  274. * @return the mfa email otp entry
  275. * @throws PortalException if a mfa email otp entry with the primary key could not be found
  276. */
  277. @Override
  278. public
  279. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  280. getMFAEmailOTPEntry(long mfaEmailOTPEntryId)
  281. throws com.liferay.portal.kernel.exception.PortalException {
  282. return _mfaEmailOTPEntryLocalService.getMFAEmailOTPEntry(
  283. mfaEmailOTPEntryId);
  284. }
  285. /**
  286. * Returns the OSGi service identifier.
  287. *
  288. * @return the OSGi service identifier
  289. */
  290. @Override
  291. public String getOSGiServiceIdentifier() {
  292. return _mfaEmailOTPEntryLocalService.getOSGiServiceIdentifier();
  293. }
  294. /**
  295. * @throws PortalException
  296. */
  297. @Override
  298. public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
  299. java.io.Serializable primaryKeyObj)
  300. throws com.liferay.portal.kernel.exception.PortalException {
  301. return _mfaEmailOTPEntryLocalService.getPersistedModel(primaryKeyObj);
  302. }
  303. @Override
  304. public
  305. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  306. resetFailedAttempts(long userId)
  307. throws com.liferay.portal.kernel.exception.PortalException {
  308. return _mfaEmailOTPEntryLocalService.resetFailedAttempts(userId);
  309. }
  310. @Override
  311. public
  312. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  313. updateAttempts(long userId, String ip, boolean success)
  314. throws com.liferay.portal.kernel.exception.PortalException {
  315. return _mfaEmailOTPEntryLocalService.updateAttempts(
  316. userId, ip, success);
  317. }
  318. /**
  319. * Updates the mfa email otp entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  320. *
  321. * <p>
  322. * <strong>Important:</strong> Inspect MFAEmailOTPEntryLocalServiceImpl 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.
  323. * </p>
  324. *
  325. * @param mfaEmailOTPEntry the mfa email otp entry
  326. * @return the mfa email otp entry that was updated
  327. */
  328. @Override
  329. public
  330. com.liferay.multi.factor.authentication.email.otp.model.MFAEmailOTPEntry
  331. updateMFAEmailOTPEntry(
  332. com.liferay.multi.factor.authentication.email.otp.model.
  333. MFAEmailOTPEntry mfaEmailOTPEntry) {
  334. return _mfaEmailOTPEntryLocalService.updateMFAEmailOTPEntry(
  335. mfaEmailOTPEntry);
  336. }
  337. @Override
  338. public MFAEmailOTPEntryLocalService getWrappedService() {
  339. return _mfaEmailOTPEntryLocalService;
  340. }
  341. @Override
  342. public void setWrappedService(
  343. MFAEmailOTPEntryLocalService mfaEmailOTPEntryLocalService) {
  344. _mfaEmailOTPEntryLocalService = mfaEmailOTPEntryLocalService;
  345. }
  346. private MFAEmailOTPEntryLocalService _mfaEmailOTPEntryLocalService;
  347. }