/webs/kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/service/KaleoDefinitionLocalServiceWrapper.java

https://github.com/stevenjiancao/liferay-plugins · Java · 435 lines · 253 code · 42 blank · 140 comment · 0 complexity · 953524e8f4404e99418790749e036921 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.portal.workflow.kaleo.service;
  15. /**
  16. * <p>
  17. * This class is a wrapper for {@link KaleoDefinitionLocalService}.
  18. * </p>
  19. *
  20. * @author Brian Wing Shun Chan
  21. * @see KaleoDefinitionLocalService
  22. * @generated
  23. */
  24. public class KaleoDefinitionLocalServiceWrapper
  25. implements KaleoDefinitionLocalService {
  26. public KaleoDefinitionLocalServiceWrapper(
  27. KaleoDefinitionLocalService kaleoDefinitionLocalService) {
  28. _kaleoDefinitionLocalService = kaleoDefinitionLocalService;
  29. }
  30. /**
  31. * Adds the kaleo definition to the database. Also notifies the appropriate model listeners.
  32. *
  33. * @param kaleoDefinition the kaleo definition
  34. * @return the kaleo definition that was added
  35. * @throws SystemException if a system exception occurred
  36. */
  37. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition addKaleoDefinition(
  38. com.liferay.portal.workflow.kaleo.model.KaleoDefinition kaleoDefinition)
  39. throws com.liferay.portal.kernel.exception.SystemException {
  40. return _kaleoDefinitionLocalService.addKaleoDefinition(kaleoDefinition);
  41. }
  42. /**
  43. * Creates a new kaleo definition with the primary key. Does not add the kaleo definition to the database.
  44. *
  45. * @param kaleoDefinitionId the primary key for the new kaleo definition
  46. * @return the new kaleo definition
  47. */
  48. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition createKaleoDefinition(
  49. long kaleoDefinitionId) {
  50. return _kaleoDefinitionLocalService.createKaleoDefinition(kaleoDefinitionId);
  51. }
  52. /**
  53. * Deletes the kaleo definition with the primary key from the database. Also notifies the appropriate model listeners.
  54. *
  55. * @param kaleoDefinitionId the primary key of the kaleo definition
  56. * @throws PortalException if a kaleo definition with the primary key could not be found
  57. * @throws SystemException if a system exception occurred
  58. */
  59. public void deleteKaleoDefinition(long kaleoDefinitionId)
  60. throws com.liferay.portal.kernel.exception.PortalException,
  61. com.liferay.portal.kernel.exception.SystemException {
  62. _kaleoDefinitionLocalService.deleteKaleoDefinition(kaleoDefinitionId);
  63. }
  64. /**
  65. * Deletes the kaleo definition from the database. Also notifies the appropriate model listeners.
  66. *
  67. * @param kaleoDefinition the kaleo definition
  68. * @throws SystemException if a system exception occurred
  69. */
  70. public void deleteKaleoDefinition(
  71. com.liferay.portal.workflow.kaleo.model.KaleoDefinition kaleoDefinition)
  72. throws com.liferay.portal.kernel.exception.SystemException {
  73. _kaleoDefinitionLocalService.deleteKaleoDefinition(kaleoDefinition);
  74. }
  75. /**
  76. * Performs a dynamic query on the database and returns the matching rows.
  77. *
  78. * @param dynamicQuery the dynamic query
  79. * @return the matching rows
  80. * @throws SystemException if a system exception occurred
  81. */
  82. @SuppressWarnings("rawtypes")
  83. public java.util.List dynamicQuery(
  84. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  85. throws com.liferay.portal.kernel.exception.SystemException {
  86. return _kaleoDefinitionLocalService.dynamicQuery(dynamicQuery);
  87. }
  88. /**
  89. * Performs a dynamic query on the database and returns a range of the matching rows.
  90. *
  91. * <p>
  92. * 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.
  93. * </p>
  94. *
  95. * @param dynamicQuery the dynamic query
  96. * @param start the lower bound of the range of model instances
  97. * @param end the upper bound of the range of model instances (not inclusive)
  98. * @return the range of matching rows
  99. * @throws SystemException if a system exception occurred
  100. */
  101. @SuppressWarnings("rawtypes")
  102. public java.util.List dynamicQuery(
  103. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  104. int end) throws com.liferay.portal.kernel.exception.SystemException {
  105. return _kaleoDefinitionLocalService.dynamicQuery(dynamicQuery, start,
  106. 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 _kaleoDefinitionLocalService.dynamicQuery(dynamicQuery, start,
  129. end, 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 _kaleoDefinitionLocalService.dynamicQueryCount(dynamicQuery);
  142. }
  143. /**
  144. * Returns the kaleo definition with the primary key.
  145. *
  146. * @param kaleoDefinitionId the primary key of the kaleo definition
  147. * @return the kaleo definition
  148. * @throws PortalException if a kaleo definition with the primary key could not be found
  149. * @throws SystemException if a system exception occurred
  150. */
  151. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition getKaleoDefinition(
  152. long kaleoDefinitionId)
  153. throws com.liferay.portal.kernel.exception.PortalException,
  154. com.liferay.portal.kernel.exception.SystemException {
  155. return _kaleoDefinitionLocalService.getKaleoDefinition(kaleoDefinitionId);
  156. }
  157. public com.liferay.portal.model.PersistedModel getPersistedModel(
  158. java.io.Serializable primaryKeyObj)
  159. throws com.liferay.portal.kernel.exception.PortalException,
  160. com.liferay.portal.kernel.exception.SystemException {
  161. return _kaleoDefinitionLocalService.getPersistedModel(primaryKeyObj);
  162. }
  163. /**
  164. * Returns a range of all the kaleo definitions.
  165. *
  166. * <p>
  167. * 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.
  168. * </p>
  169. *
  170. * @param start the lower bound of the range of kaleo definitions
  171. * @param end the upper bound of the range of kaleo definitions (not inclusive)
  172. * @return the range of kaleo definitions
  173. * @throws SystemException if a system exception occurred
  174. */
  175. public java.util.List<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> getKaleoDefinitions(
  176. int start, int end)
  177. throws com.liferay.portal.kernel.exception.SystemException {
  178. return _kaleoDefinitionLocalService.getKaleoDefinitions(start, end);
  179. }
  180. /**
  181. * Returns the number of kaleo definitions.
  182. *
  183. * @return the number of kaleo definitions
  184. * @throws SystemException if a system exception occurred
  185. */
  186. public int getKaleoDefinitionsCount()
  187. throws com.liferay.portal.kernel.exception.SystemException {
  188. return _kaleoDefinitionLocalService.getKaleoDefinitionsCount();
  189. }
  190. /**
  191. * Updates the kaleo definition in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  192. *
  193. * @param kaleoDefinition the kaleo definition
  194. * @return the kaleo definition that was updated
  195. * @throws SystemException if a system exception occurred
  196. */
  197. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition updateKaleoDefinition(
  198. com.liferay.portal.workflow.kaleo.model.KaleoDefinition kaleoDefinition)
  199. throws com.liferay.portal.kernel.exception.SystemException {
  200. return _kaleoDefinitionLocalService.updateKaleoDefinition(kaleoDefinition);
  201. }
  202. /**
  203. * Updates the kaleo definition in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  204. *
  205. * @param kaleoDefinition the kaleo definition
  206. * @param merge whether to merge the kaleo definition 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.
  207. * @return the kaleo definition that was updated
  208. * @throws SystemException if a system exception occurred
  209. */
  210. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition updateKaleoDefinition(
  211. com.liferay.portal.workflow.kaleo.model.KaleoDefinition kaleoDefinition,
  212. boolean merge)
  213. throws com.liferay.portal.kernel.exception.SystemException {
  214. return _kaleoDefinitionLocalService.updateKaleoDefinition(kaleoDefinition,
  215. merge);
  216. }
  217. /**
  218. * Returns the Spring bean ID for this bean.
  219. *
  220. * @return the Spring bean ID for this bean
  221. */
  222. public java.lang.String getBeanIdentifier() {
  223. return _kaleoDefinitionLocalService.getBeanIdentifier();
  224. }
  225. /**
  226. * Sets the Spring bean ID for this bean.
  227. *
  228. * @param beanIdentifier the Spring bean ID for this bean
  229. */
  230. public void setBeanIdentifier(java.lang.String beanIdentifier) {
  231. _kaleoDefinitionLocalService.setBeanIdentifier(beanIdentifier);
  232. }
  233. public void activateKaleoDefinition(long kaleoDefinitionId,
  234. long startKaleoNodeId,
  235. com.liferay.portal.service.ServiceContext serviceContext)
  236. throws com.liferay.portal.kernel.exception.PortalException,
  237. com.liferay.portal.kernel.exception.SystemException {
  238. _kaleoDefinitionLocalService.activateKaleoDefinition(kaleoDefinitionId,
  239. startKaleoNodeId, serviceContext);
  240. }
  241. public void activateKaleoDefinition(long kaleoDefinitionId,
  242. com.liferay.portal.service.ServiceContext serviceContext)
  243. throws com.liferay.portal.kernel.exception.PortalException,
  244. com.liferay.portal.kernel.exception.SystemException {
  245. _kaleoDefinitionLocalService.activateKaleoDefinition(kaleoDefinitionId,
  246. serviceContext);
  247. }
  248. public void activateKaleoDefinition(java.lang.String name, int version,
  249. com.liferay.portal.service.ServiceContext serviceContext)
  250. throws com.liferay.portal.kernel.exception.PortalException,
  251. com.liferay.portal.kernel.exception.SystemException {
  252. _kaleoDefinitionLocalService.activateKaleoDefinition(name, version,
  253. serviceContext);
  254. }
  255. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition addKaleoDefinition(
  256. java.lang.String name, java.lang.String title,
  257. java.lang.String description, java.lang.String content, int version,
  258. long scope, com.liferay.portal.service.ServiceContext serviceContext)
  259. throws com.liferay.portal.kernel.exception.PortalException,
  260. com.liferay.portal.kernel.exception.SystemException {
  261. return _kaleoDefinitionLocalService.addKaleoDefinition(name, title,
  262. description, content, version, scope, serviceContext);
  263. }
  264. public void deactivateKaleoDefinition(java.lang.String name, int version,
  265. com.liferay.portal.service.ServiceContext serviceContext)
  266. throws com.liferay.portal.kernel.exception.PortalException,
  267. com.liferay.portal.kernel.exception.SystemException {
  268. _kaleoDefinitionLocalService.deactivateKaleoDefinition(name, version,
  269. serviceContext);
  270. }
  271. public void deleteCompanyKaleoDefinitions(long companyId)
  272. throws com.liferay.portal.kernel.exception.SystemException {
  273. _kaleoDefinitionLocalService.deleteCompanyKaleoDefinitions(companyId);
  274. }
  275. public void deleteKaleoDefinition(java.lang.String name, int version,
  276. com.liferay.portal.service.ServiceContext serviceContext)
  277. throws com.liferay.portal.kernel.exception.PortalException,
  278. com.liferay.portal.kernel.exception.SystemException {
  279. _kaleoDefinitionLocalService.deleteKaleoDefinition(name, version,
  280. serviceContext);
  281. }
  282. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition getKaleoDefinition(
  283. java.lang.String name, int version,
  284. com.liferay.portal.service.ServiceContext serviceContext)
  285. throws com.liferay.portal.kernel.exception.PortalException,
  286. com.liferay.portal.kernel.exception.SystemException {
  287. return _kaleoDefinitionLocalService.getKaleoDefinition(name, version,
  288. serviceContext);
  289. }
  290. public java.util.List<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> getKaleoDefinitions(
  291. boolean active, int start, int end,
  292. com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
  293. com.liferay.portal.service.ServiceContext serviceContext)
  294. throws com.liferay.portal.kernel.exception.SystemException {
  295. return _kaleoDefinitionLocalService.getKaleoDefinitions(active, start,
  296. end, orderByComparator, serviceContext);
  297. }
  298. public java.util.List<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> getKaleoDefinitions(
  299. int start, int end,
  300. com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
  301. com.liferay.portal.service.ServiceContext serviceContext)
  302. throws com.liferay.portal.kernel.exception.SystemException {
  303. return _kaleoDefinitionLocalService.getKaleoDefinitions(start, end,
  304. orderByComparator, serviceContext);
  305. }
  306. public java.util.List<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> getKaleoDefinitions(
  307. java.lang.String name, boolean active, int start, int end,
  308. com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
  309. com.liferay.portal.service.ServiceContext serviceContext)
  310. throws com.liferay.portal.kernel.exception.SystemException {
  311. return _kaleoDefinitionLocalService.getKaleoDefinitions(name, active,
  312. start, end, orderByComparator, serviceContext);
  313. }
  314. public java.util.List<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> getKaleoDefinitions(
  315. java.lang.String name, int start, int end,
  316. com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
  317. com.liferay.portal.service.ServiceContext serviceContext)
  318. throws com.liferay.portal.kernel.exception.SystemException {
  319. return _kaleoDefinitionLocalService.getKaleoDefinitions(name, start,
  320. end, orderByComparator, serviceContext);
  321. }
  322. public int getKaleoDefinitionsCount(boolean active,
  323. com.liferay.portal.service.ServiceContext serviceContext)
  324. throws com.liferay.portal.kernel.exception.SystemException {
  325. return _kaleoDefinitionLocalService.getKaleoDefinitionsCount(active,
  326. serviceContext);
  327. }
  328. public int getKaleoDefinitionsCount(
  329. com.liferay.portal.service.ServiceContext serviceContext)
  330. throws com.liferay.portal.kernel.exception.SystemException {
  331. return _kaleoDefinitionLocalService.getKaleoDefinitionsCount(serviceContext);
  332. }
  333. public int getKaleoDefinitionsCount(java.lang.String name, boolean active,
  334. com.liferay.portal.service.ServiceContext serviceContext)
  335. throws com.liferay.portal.kernel.exception.SystemException {
  336. return _kaleoDefinitionLocalService.getKaleoDefinitionsCount(name,
  337. active, serviceContext);
  338. }
  339. public int getKaleoDefinitionsCount(java.lang.String name,
  340. com.liferay.portal.service.ServiceContext serviceContext)
  341. throws com.liferay.portal.kernel.exception.SystemException {
  342. return _kaleoDefinitionLocalService.getKaleoDefinitionsCount(name,
  343. serviceContext);
  344. }
  345. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition getLatestKaleoDefinition(
  346. java.lang.String name,
  347. com.liferay.portal.service.ServiceContext serviceContext)
  348. throws com.liferay.portal.kernel.exception.PortalException,
  349. com.liferay.portal.kernel.exception.SystemException {
  350. return _kaleoDefinitionLocalService.getLatestKaleoDefinition(name,
  351. serviceContext);
  352. }
  353. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition incrementKaleoDefinition(
  354. java.lang.String name, java.lang.String title,
  355. com.liferay.portal.service.ServiceContext serviceContext)
  356. throws com.liferay.portal.kernel.exception.PortalException,
  357. com.liferay.portal.kernel.exception.SystemException {
  358. return _kaleoDefinitionLocalService.incrementKaleoDefinition(name,
  359. title, serviceContext);
  360. }
  361. public java.util.List<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> search(
  362. java.lang.String name, java.lang.Boolean active, java.lang.Long scope,
  363. int start, int end,
  364. com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
  365. com.liferay.portal.service.ServiceContext serviceContext)
  366. throws com.liferay.portal.kernel.exception.SystemException {
  367. return _kaleoDefinitionLocalService.search(name, active, scope, start,
  368. end, orderByComparator, serviceContext);
  369. }
  370. public int searchCount(java.lang.String name, java.lang.Boolean active,
  371. java.lang.Long scope,
  372. com.liferay.portal.service.ServiceContext serviceContext)
  373. throws com.liferay.portal.kernel.exception.SystemException {
  374. return _kaleoDefinitionLocalService.searchCount(name, active, scope,
  375. serviceContext);
  376. }
  377. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition updateTitle(
  378. java.lang.String name, int version, java.lang.String title,
  379. com.liferay.portal.service.ServiceContext serviceContext)
  380. throws com.liferay.portal.kernel.exception.PortalException,
  381. com.liferay.portal.kernel.exception.SystemException {
  382. return _kaleoDefinitionLocalService.updateTitle(name, version, title,
  383. serviceContext);
  384. }
  385. public KaleoDefinitionLocalService getWrappedKaleoDefinitionLocalService() {
  386. return _kaleoDefinitionLocalService;
  387. }
  388. public void setWrappedKaleoDefinitionLocalService(
  389. KaleoDefinitionLocalService kaleoDefinitionLocalService) {
  390. _kaleoDefinitionLocalService = kaleoDefinitionLocalService;
  391. }
  392. private KaleoDefinitionLocalService _kaleoDefinitionLocalService;
  393. }