PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/l15k4/liferay-plugins
Java | 550 lines | 231 code | 73 blank | 246 comment | 0 complexity | 9a2d7af01901a72119b01e13ee7532de 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.model;
  15. import com.liferay.portal.model.ModelWrapper;
  16. /**
  17. * <p>
  18. * This class is a wrapper for {@link KaleoDefinition}.
  19. * </p>
  20. *
  21. * @author Brian Wing Shun Chan
  22. * @see KaleoDefinition
  23. * @generated
  24. */
  25. public class KaleoDefinitionWrapper implements KaleoDefinition,
  26. ModelWrapper<KaleoDefinition> {
  27. public KaleoDefinitionWrapper(KaleoDefinition kaleoDefinition) {
  28. _kaleoDefinition = kaleoDefinition;
  29. }
  30. public Class<?> getModelClass() {
  31. return KaleoDefinition.class;
  32. }
  33. public String getModelClassName() {
  34. return KaleoDefinition.class.getName();
  35. }
  36. /**
  37. * Returns the primary key of this kaleo definition.
  38. *
  39. * @return the primary key of this kaleo definition
  40. */
  41. public long getPrimaryKey() {
  42. return _kaleoDefinition.getPrimaryKey();
  43. }
  44. /**
  45. * Sets the primary key of this kaleo definition.
  46. *
  47. * @param primaryKey the primary key of this kaleo definition
  48. */
  49. public void setPrimaryKey(long primaryKey) {
  50. _kaleoDefinition.setPrimaryKey(primaryKey);
  51. }
  52. /**
  53. * Returns the kaleo definition ID of this kaleo definition.
  54. *
  55. * @return the kaleo definition ID of this kaleo definition
  56. */
  57. public long getKaleoDefinitionId() {
  58. return _kaleoDefinition.getKaleoDefinitionId();
  59. }
  60. /**
  61. * Sets the kaleo definition ID of this kaleo definition.
  62. *
  63. * @param kaleoDefinitionId the kaleo definition ID of this kaleo definition
  64. */
  65. public void setKaleoDefinitionId(long kaleoDefinitionId) {
  66. _kaleoDefinition.setKaleoDefinitionId(kaleoDefinitionId);
  67. }
  68. /**
  69. * Returns the group ID of this kaleo definition.
  70. *
  71. * @return the group ID of this kaleo definition
  72. */
  73. public long getGroupId() {
  74. return _kaleoDefinition.getGroupId();
  75. }
  76. /**
  77. * Sets the group ID of this kaleo definition.
  78. *
  79. * @param groupId the group ID of this kaleo definition
  80. */
  81. public void setGroupId(long groupId) {
  82. _kaleoDefinition.setGroupId(groupId);
  83. }
  84. /**
  85. * Returns the company ID of this kaleo definition.
  86. *
  87. * @return the company ID of this kaleo definition
  88. */
  89. public long getCompanyId() {
  90. return _kaleoDefinition.getCompanyId();
  91. }
  92. /**
  93. * Sets the company ID of this kaleo definition.
  94. *
  95. * @param companyId the company ID of this kaleo definition
  96. */
  97. public void setCompanyId(long companyId) {
  98. _kaleoDefinition.setCompanyId(companyId);
  99. }
  100. /**
  101. * Returns the user ID of this kaleo definition.
  102. *
  103. * @return the user ID of this kaleo definition
  104. */
  105. public long getUserId() {
  106. return _kaleoDefinition.getUserId();
  107. }
  108. /**
  109. * Sets the user ID of this kaleo definition.
  110. *
  111. * @param userId the user ID of this kaleo definition
  112. */
  113. public void setUserId(long userId) {
  114. _kaleoDefinition.setUserId(userId);
  115. }
  116. /**
  117. * Returns the user uuid of this kaleo definition.
  118. *
  119. * @return the user uuid of this kaleo definition
  120. * @throws SystemException if a system exception occurred
  121. */
  122. public java.lang.String getUserUuid()
  123. throws com.liferay.portal.kernel.exception.SystemException {
  124. return _kaleoDefinition.getUserUuid();
  125. }
  126. /**
  127. * Sets the user uuid of this kaleo definition.
  128. *
  129. * @param userUuid the user uuid of this kaleo definition
  130. */
  131. public void setUserUuid(java.lang.String userUuid) {
  132. _kaleoDefinition.setUserUuid(userUuid);
  133. }
  134. /**
  135. * Returns the user name of this kaleo definition.
  136. *
  137. * @return the user name of this kaleo definition
  138. */
  139. public java.lang.String getUserName() {
  140. return _kaleoDefinition.getUserName();
  141. }
  142. /**
  143. * Sets the user name of this kaleo definition.
  144. *
  145. * @param userName the user name of this kaleo definition
  146. */
  147. public void setUserName(java.lang.String userName) {
  148. _kaleoDefinition.setUserName(userName);
  149. }
  150. /**
  151. * Returns the create date of this kaleo definition.
  152. *
  153. * @return the create date of this kaleo definition
  154. */
  155. public java.util.Date getCreateDate() {
  156. return _kaleoDefinition.getCreateDate();
  157. }
  158. /**
  159. * Sets the create date of this kaleo definition.
  160. *
  161. * @param createDate the create date of this kaleo definition
  162. */
  163. public void setCreateDate(java.util.Date createDate) {
  164. _kaleoDefinition.setCreateDate(createDate);
  165. }
  166. /**
  167. * Returns the modified date of this kaleo definition.
  168. *
  169. * @return the modified date of this kaleo definition
  170. */
  171. public java.util.Date getModifiedDate() {
  172. return _kaleoDefinition.getModifiedDate();
  173. }
  174. /**
  175. * Sets the modified date of this kaleo definition.
  176. *
  177. * @param modifiedDate the modified date of this kaleo definition
  178. */
  179. public void setModifiedDate(java.util.Date modifiedDate) {
  180. _kaleoDefinition.setModifiedDate(modifiedDate);
  181. }
  182. /**
  183. * Returns the name of this kaleo definition.
  184. *
  185. * @return the name of this kaleo definition
  186. */
  187. public java.lang.String getName() {
  188. return _kaleoDefinition.getName();
  189. }
  190. /**
  191. * Sets the name of this kaleo definition.
  192. *
  193. * @param name the name of this kaleo definition
  194. */
  195. public void setName(java.lang.String name) {
  196. _kaleoDefinition.setName(name);
  197. }
  198. /**
  199. * Returns the title of this kaleo definition.
  200. *
  201. * @return the title of this kaleo definition
  202. */
  203. public java.lang.String getTitle() {
  204. return _kaleoDefinition.getTitle();
  205. }
  206. /**
  207. * Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
  208. *
  209. * @param locale the locale of the language
  210. * @return the localized title of this kaleo definition
  211. */
  212. public java.lang.String getTitle(java.util.Locale locale) {
  213. return _kaleoDefinition.getTitle(locale);
  214. }
  215. /**
  216. * Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
  217. *
  218. * @param locale the local of the language
  219. * @param useDefault whether to use the default language if no localization exists for the requested language
  220. * @return the localized title of this kaleo definition. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
  221. */
  222. public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
  223. return _kaleoDefinition.getTitle(locale, useDefault);
  224. }
  225. /**
  226. * Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
  227. *
  228. * @param languageId the ID of the language
  229. * @return the localized title of this kaleo definition
  230. */
  231. public java.lang.String getTitle(java.lang.String languageId) {
  232. return _kaleoDefinition.getTitle(languageId);
  233. }
  234. /**
  235. * Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
  236. *
  237. * @param languageId the ID of the language
  238. * @param useDefault whether to use the default language if no localization exists for the requested language
  239. * @return the localized title of this kaleo definition
  240. */
  241. public java.lang.String getTitle(java.lang.String languageId,
  242. boolean useDefault) {
  243. return _kaleoDefinition.getTitle(languageId, useDefault);
  244. }
  245. public java.lang.String getTitleCurrentLanguageId() {
  246. return _kaleoDefinition.getTitleCurrentLanguageId();
  247. }
  248. public java.lang.String getTitleCurrentValue() {
  249. return _kaleoDefinition.getTitleCurrentValue();
  250. }
  251. /**
  252. * Returns a map of the locales and localized titles of this kaleo definition.
  253. *
  254. * @return the locales and localized titles of this kaleo definition
  255. */
  256. public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
  257. return _kaleoDefinition.getTitleMap();
  258. }
  259. /**
  260. * Sets the title of this kaleo definition.
  261. *
  262. * @param title the title of this kaleo definition
  263. */
  264. public void setTitle(java.lang.String title) {
  265. _kaleoDefinition.setTitle(title);
  266. }
  267. /**
  268. * Sets the localized title of this kaleo definition in the language.
  269. *
  270. * @param title the localized title of this kaleo definition
  271. * @param locale the locale of the language
  272. */
  273. public void setTitle(java.lang.String title, java.util.Locale locale) {
  274. _kaleoDefinition.setTitle(title, locale);
  275. }
  276. /**
  277. * Sets the localized title of this kaleo definition in the language, and sets the default locale.
  278. *
  279. * @param title the localized title of this kaleo definition
  280. * @param locale the locale of the language
  281. * @param defaultLocale the default locale
  282. */
  283. public void setTitle(java.lang.String title, java.util.Locale locale,
  284. java.util.Locale defaultLocale) {
  285. _kaleoDefinition.setTitle(title, locale, defaultLocale);
  286. }
  287. public void setTitleCurrentLanguageId(java.lang.String languageId) {
  288. _kaleoDefinition.setTitleCurrentLanguageId(languageId);
  289. }
  290. /**
  291. * Sets the localized titles of this kaleo definition from the map of locales and localized titles.
  292. *
  293. * @param titleMap the locales and localized titles of this kaleo definition
  294. */
  295. public void setTitleMap(
  296. java.util.Map<java.util.Locale, java.lang.String> titleMap) {
  297. _kaleoDefinition.setTitleMap(titleMap);
  298. }
  299. /**
  300. * Sets the localized titles of this kaleo definition from the map of locales and localized titles, and sets the default locale.
  301. *
  302. * @param titleMap the locales and localized titles of this kaleo definition
  303. * @param defaultLocale the default locale
  304. */
  305. public void setTitleMap(
  306. java.util.Map<java.util.Locale, java.lang.String> titleMap,
  307. java.util.Locale defaultLocale) {
  308. _kaleoDefinition.setTitleMap(titleMap, defaultLocale);
  309. }
  310. /**
  311. * Returns the description of this kaleo definition.
  312. *
  313. * @return the description of this kaleo definition
  314. */
  315. public java.lang.String getDescription() {
  316. return _kaleoDefinition.getDescription();
  317. }
  318. /**
  319. * Sets the description of this kaleo definition.
  320. *
  321. * @param description the description of this kaleo definition
  322. */
  323. public void setDescription(java.lang.String description) {
  324. _kaleoDefinition.setDescription(description);
  325. }
  326. /**
  327. * Returns the content of this kaleo definition.
  328. *
  329. * @return the content of this kaleo definition
  330. */
  331. public java.lang.String getContent() {
  332. return _kaleoDefinition.getContent();
  333. }
  334. /**
  335. * Sets the content of this kaleo definition.
  336. *
  337. * @param content the content of this kaleo definition
  338. */
  339. public void setContent(java.lang.String content) {
  340. _kaleoDefinition.setContent(content);
  341. }
  342. /**
  343. * Returns the version of this kaleo definition.
  344. *
  345. * @return the version of this kaleo definition
  346. */
  347. public int getVersion() {
  348. return _kaleoDefinition.getVersion();
  349. }
  350. /**
  351. * Sets the version of this kaleo definition.
  352. *
  353. * @param version the version of this kaleo definition
  354. */
  355. public void setVersion(int version) {
  356. _kaleoDefinition.setVersion(version);
  357. }
  358. /**
  359. * Returns the active of this kaleo definition.
  360. *
  361. * @return the active of this kaleo definition
  362. */
  363. public boolean getActive() {
  364. return _kaleoDefinition.getActive();
  365. }
  366. /**
  367. * Returns <code>true</code> if this kaleo definition is active.
  368. *
  369. * @return <code>true</code> if this kaleo definition is active; <code>false</code> otherwise
  370. */
  371. public boolean isActive() {
  372. return _kaleoDefinition.isActive();
  373. }
  374. /**
  375. * Sets whether this kaleo definition is active.
  376. *
  377. * @param active the active of this kaleo definition
  378. */
  379. public void setActive(boolean active) {
  380. _kaleoDefinition.setActive(active);
  381. }
  382. /**
  383. * Returns the start kaleo node ID of this kaleo definition.
  384. *
  385. * @return the start kaleo node ID of this kaleo definition
  386. */
  387. public long getStartKaleoNodeId() {
  388. return _kaleoDefinition.getStartKaleoNodeId();
  389. }
  390. /**
  391. * Sets the start kaleo node ID of this kaleo definition.
  392. *
  393. * @param startKaleoNodeId the start kaleo node ID of this kaleo definition
  394. */
  395. public void setStartKaleoNodeId(long startKaleoNodeId) {
  396. _kaleoDefinition.setStartKaleoNodeId(startKaleoNodeId);
  397. }
  398. public boolean isNew() {
  399. return _kaleoDefinition.isNew();
  400. }
  401. public void setNew(boolean n) {
  402. _kaleoDefinition.setNew(n);
  403. }
  404. public boolean isCachedModel() {
  405. return _kaleoDefinition.isCachedModel();
  406. }
  407. public void setCachedModel(boolean cachedModel) {
  408. _kaleoDefinition.setCachedModel(cachedModel);
  409. }
  410. public boolean isEscapedModel() {
  411. return _kaleoDefinition.isEscapedModel();
  412. }
  413. public java.io.Serializable getPrimaryKeyObj() {
  414. return _kaleoDefinition.getPrimaryKeyObj();
  415. }
  416. public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
  417. _kaleoDefinition.setPrimaryKeyObj(primaryKeyObj);
  418. }
  419. public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
  420. return _kaleoDefinition.getExpandoBridge();
  421. }
  422. public void setExpandoBridgeAttributes(
  423. com.liferay.portal.service.ServiceContext serviceContext) {
  424. _kaleoDefinition.setExpandoBridgeAttributes(serviceContext);
  425. }
  426. @Override
  427. public java.lang.Object clone() {
  428. return new KaleoDefinitionWrapper((KaleoDefinition)_kaleoDefinition.clone());
  429. }
  430. public int compareTo(
  431. com.liferay.portal.workflow.kaleo.model.KaleoDefinition kaleoDefinition) {
  432. return _kaleoDefinition.compareTo(kaleoDefinition);
  433. }
  434. @Override
  435. public int hashCode() {
  436. return _kaleoDefinition.hashCode();
  437. }
  438. public com.liferay.portal.model.CacheModel<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> toCacheModel() {
  439. return _kaleoDefinition.toCacheModel();
  440. }
  441. public com.liferay.portal.workflow.kaleo.model.KaleoDefinition toEscapedModel() {
  442. return new KaleoDefinitionWrapper(_kaleoDefinition.toEscapedModel());
  443. }
  444. @Override
  445. public java.lang.String toString() {
  446. return _kaleoDefinition.toString();
  447. }
  448. public java.lang.String toXmlString() {
  449. return _kaleoDefinition.toXmlString();
  450. }
  451. public void persist()
  452. throws com.liferay.portal.kernel.exception.SystemException {
  453. _kaleoDefinition.persist();
  454. }
  455. public com.liferay.portal.workflow.kaleo.model.KaleoNode getKaleoStartNode()
  456. throws com.liferay.portal.kernel.exception.PortalException,
  457. com.liferay.portal.kernel.exception.SystemException {
  458. return _kaleoDefinition.getKaleoStartNode();
  459. }
  460. public boolean hasIncompleteKaleoInstances()
  461. throws com.liferay.portal.kernel.exception.SystemException {
  462. return _kaleoDefinition.hasIncompleteKaleoInstances();
  463. }
  464. /**
  465. * @deprecated Renamed to {@link #getWrappedModel}
  466. */
  467. public KaleoDefinition getWrappedKaleoDefinition() {
  468. return _kaleoDefinition;
  469. }
  470. public KaleoDefinition getWrappedModel() {
  471. return _kaleoDefinition;
  472. }
  473. public void resetOriginalValues() {
  474. _kaleoDefinition.resetOriginalValues();
  475. }
  476. private KaleoDefinition _kaleoDefinition;
  477. }