/modules/apps/powwow/powwow-portlet/docroot/WEB-INF/service/com/liferay/powwow/service/PowwowServerLocalServiceWrapper.java

https://github.com/kiyoshilee/liferay-portal · Java · 350 lines · 167 code · 57 blank · 126 comment · 0 complexity · 653ff184ea85330afeaa0031bb73bc1b 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.powwow.service;
  15. import com.liferay.portal.kernel.service.ServiceWrapper;
  16. /**
  17. * Provides a wrapper for {@link PowwowServerLocalService}.
  18. *
  19. * @author Shinn Lok
  20. * @see PowwowServerLocalService
  21. * @generated
  22. */
  23. public class PowwowServerLocalServiceWrapper
  24. implements PowwowServerLocalService,
  25. ServiceWrapper<PowwowServerLocalService> {
  26. public PowwowServerLocalServiceWrapper(
  27. PowwowServerLocalService powwowServerLocalService) {
  28. _powwowServerLocalService = powwowServerLocalService;
  29. }
  30. @Override
  31. public com.liferay.powwow.model.PowwowServer addPowwowServer(
  32. long userId, String name, String providerType, String url,
  33. String apiKey, String secret,
  34. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  35. throws com.liferay.portal.kernel.exception.PortalException {
  36. return _powwowServerLocalService.addPowwowServer(
  37. userId, name, providerType, url, apiKey, secret, serviceContext);
  38. }
  39. /**
  40. * Adds the powwow server to the database. Also notifies the appropriate model listeners.
  41. *
  42. * @param powwowServer the powwow server
  43. * @return the powwow server that was added
  44. */
  45. @Override
  46. public com.liferay.powwow.model.PowwowServer addPowwowServer(
  47. com.liferay.powwow.model.PowwowServer powwowServer) {
  48. return _powwowServerLocalService.addPowwowServer(powwowServer);
  49. }
  50. @Override
  51. public void checkPowwowServers() {
  52. _powwowServerLocalService.checkPowwowServers();
  53. }
  54. /**
  55. * Creates a new powwow server with the primary key. Does not add the powwow server to the database.
  56. *
  57. * @param powwowServerId the primary key for the new powwow server
  58. * @return the new powwow server
  59. */
  60. @Override
  61. public com.liferay.powwow.model.PowwowServer createPowwowServer(
  62. long powwowServerId) {
  63. return _powwowServerLocalService.createPowwowServer(powwowServerId);
  64. }
  65. /**
  66. * @throws PortalException
  67. */
  68. @Override
  69. public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
  70. com.liferay.portal.kernel.model.PersistedModel persistedModel)
  71. throws com.liferay.portal.kernel.exception.PortalException {
  72. return _powwowServerLocalService.deletePersistedModel(persistedModel);
  73. }
  74. /**
  75. * Deletes the powwow server with the primary key from the database. Also notifies the appropriate model listeners.
  76. *
  77. * @param powwowServerId the primary key of the powwow server
  78. * @return the powwow server that was removed
  79. * @throws PortalException if a powwow server with the primary key could not be found
  80. */
  81. @Override
  82. public com.liferay.powwow.model.PowwowServer deletePowwowServer(
  83. long powwowServerId)
  84. throws com.liferay.portal.kernel.exception.PortalException {
  85. return _powwowServerLocalService.deletePowwowServer(powwowServerId);
  86. }
  87. /**
  88. * Deletes the powwow server from the database. Also notifies the appropriate model listeners.
  89. *
  90. * @param powwowServer the powwow server
  91. * @return the powwow server that was removed
  92. */
  93. @Override
  94. public com.liferay.powwow.model.PowwowServer deletePowwowServer(
  95. com.liferay.powwow.model.PowwowServer powwowServer) {
  96. return _powwowServerLocalService.deletePowwowServer(powwowServer);
  97. }
  98. @Override
  99. public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
  100. return _powwowServerLocalService.dynamicQuery();
  101. }
  102. /**
  103. * Performs a dynamic query on the database and returns the matching rows.
  104. *
  105. * @param dynamicQuery the dynamic query
  106. * @return the matching rows
  107. */
  108. @Override
  109. public <T> java.util.List<T> dynamicQuery(
  110. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  111. return _powwowServerLocalService.dynamicQuery(dynamicQuery);
  112. }
  113. /**
  114. * Performs a dynamic query on the database and returns a range of the matching rows.
  115. *
  116. * <p>
  117. * 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.powwow.model.impl.PowwowServerModelImpl</code>.
  118. * </p>
  119. *
  120. * @param dynamicQuery the dynamic query
  121. * @param start the lower bound of the range of model instances
  122. * @param end the upper bound of the range of model instances (not inclusive)
  123. * @return the range of matching rows
  124. */
  125. @Override
  126. public <T> java.util.List<T> dynamicQuery(
  127. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  128. int end) {
  129. return _powwowServerLocalService.dynamicQuery(dynamicQuery, start, end);
  130. }
  131. /**
  132. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  133. *
  134. * <p>
  135. * 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.powwow.model.impl.PowwowServerModelImpl</code>.
  136. * </p>
  137. *
  138. * @param dynamicQuery the dynamic query
  139. * @param start the lower bound of the range of model instances
  140. * @param end the upper bound of the range of model instances (not inclusive)
  141. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  142. * @return the ordered range of matching rows
  143. */
  144. @Override
  145. public <T> java.util.List<T> dynamicQuery(
  146. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  147. int end,
  148. com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
  149. return _powwowServerLocalService.dynamicQuery(
  150. dynamicQuery, start, end, orderByComparator);
  151. }
  152. /**
  153. * Returns the number of rows matching the dynamic query.
  154. *
  155. * @param dynamicQuery the dynamic query
  156. * @return the number of rows matching the dynamic query
  157. */
  158. @Override
  159. public long dynamicQueryCount(
  160. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
  161. return _powwowServerLocalService.dynamicQueryCount(dynamicQuery);
  162. }
  163. /**
  164. * Returns the number of rows matching the dynamic query.
  165. *
  166. * @param dynamicQuery the dynamic query
  167. * @param projection the projection to apply to the query
  168. * @return the number of rows matching the dynamic query
  169. */
  170. @Override
  171. public long dynamicQueryCount(
  172. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
  173. com.liferay.portal.kernel.dao.orm.Projection projection) {
  174. return _powwowServerLocalService.dynamicQueryCount(
  175. dynamicQuery, projection);
  176. }
  177. @Override
  178. public com.liferay.powwow.model.PowwowServer fetchPowwowServer(
  179. long powwowServerId) {
  180. return _powwowServerLocalService.fetchPowwowServer(powwowServerId);
  181. }
  182. @Override
  183. public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
  184. getActionableDynamicQuery() {
  185. return _powwowServerLocalService.getActionableDynamicQuery();
  186. }
  187. @Override
  188. public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
  189. getIndexableActionableDynamicQuery() {
  190. return _powwowServerLocalService.getIndexableActionableDynamicQuery();
  191. }
  192. /**
  193. * Returns the OSGi service identifier.
  194. *
  195. * @return the OSGi service identifier
  196. */
  197. @Override
  198. public String getOSGiServiceIdentifier() {
  199. return _powwowServerLocalService.getOSGiServiceIdentifier();
  200. }
  201. @Override
  202. public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
  203. java.io.Serializable primaryKeyObj)
  204. throws com.liferay.portal.kernel.exception.PortalException {
  205. return _powwowServerLocalService.getPersistedModel(primaryKeyObj);
  206. }
  207. /**
  208. * Returns the powwow server with the primary key.
  209. *
  210. * @param powwowServerId the primary key of the powwow server
  211. * @return the powwow server
  212. * @throws PortalException if a powwow server with the primary key could not be found
  213. */
  214. @Override
  215. public com.liferay.powwow.model.PowwowServer getPowwowServer(
  216. long powwowServerId)
  217. throws com.liferay.portal.kernel.exception.PortalException {
  218. return _powwowServerLocalService.getPowwowServer(powwowServerId);
  219. }
  220. /**
  221. * Returns a range of all the powwow servers.
  222. *
  223. * <p>
  224. * 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.powwow.model.impl.PowwowServerModelImpl</code>.
  225. * </p>
  226. *
  227. * @param start the lower bound of the range of powwow servers
  228. * @param end the upper bound of the range of powwow servers (not inclusive)
  229. * @return the range of powwow servers
  230. */
  231. @Override
  232. public java.util.List<com.liferay.powwow.model.PowwowServer>
  233. getPowwowServers(int start, int end) {
  234. return _powwowServerLocalService.getPowwowServers(start, end);
  235. }
  236. @Override
  237. public java.util.List<com.liferay.powwow.model.PowwowServer>
  238. getPowwowServers(
  239. int start, int end,
  240. com.liferay.portal.kernel.util.OrderByComparator obc) {
  241. return _powwowServerLocalService.getPowwowServers(start, end, obc);
  242. }
  243. @Override
  244. public java.util.List<com.liferay.powwow.model.PowwowServer>
  245. getPowwowServers(String providerType, boolean active) {
  246. return _powwowServerLocalService.getPowwowServers(providerType, active);
  247. }
  248. /**
  249. * Returns the number of powwow servers.
  250. *
  251. * @return the number of powwow servers
  252. */
  253. @Override
  254. public int getPowwowServersCount() {
  255. return _powwowServerLocalService.getPowwowServersCount();
  256. }
  257. @Override
  258. public int getPowwowServersCount(String providerType, boolean active) {
  259. return _powwowServerLocalService.getPowwowServersCount(
  260. providerType, active);
  261. }
  262. @Override
  263. public com.liferay.powwow.model.PowwowServer updatePowwowServer(
  264. long powwowServerId, String name, String providerType, String url,
  265. String apiKey, String secret,
  266. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  267. throws com.liferay.portal.kernel.exception.PortalException {
  268. return _powwowServerLocalService.updatePowwowServer(
  269. powwowServerId, name, providerType, url, apiKey, secret,
  270. serviceContext);
  271. }
  272. /**
  273. * Updates the powwow server in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  274. *
  275. * @param powwowServer the powwow server
  276. * @return the powwow server that was updated
  277. */
  278. @Override
  279. public com.liferay.powwow.model.PowwowServer updatePowwowServer(
  280. com.liferay.powwow.model.PowwowServer powwowServer) {
  281. return _powwowServerLocalService.updatePowwowServer(powwowServer);
  282. }
  283. @Override
  284. public PowwowServerLocalService getWrappedService() {
  285. return _powwowServerLocalService;
  286. }
  287. @Override
  288. public void setWrappedService(
  289. PowwowServerLocalService powwowServerLocalService) {
  290. _powwowServerLocalService = powwowServerLocalService;
  291. }
  292. private PowwowServerLocalService _powwowServerLocalService;
  293. }