PageRenderTime 36ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/dxp/apps/portal-workflow/portal-workflow-kaleo-forms-api/src/main/java/com/liferay/portal/workflow/kaleo/forms/model/KaleoProcessWrapper.java

http://github.com/liferay/liferay-portal
Java | 492 lines | 251 code | 79 blank | 162 comment | 24 complexity | 224bf68a93980461f6c986110d2a2507 MD5 | raw file
Possible License(s): LGPL-2.0
  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.portal.workflow.kaleo.forms.model;
  15. import com.liferay.exportimport.kernel.lar.StagedModelType;
  16. import com.liferay.portal.kernel.model.ModelWrapper;
  17. import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;
  18. import java.util.Date;
  19. import java.util.HashMap;
  20. import java.util.Map;
  21. /**
  22. * <p>
  23. * This class is a wrapper for {@link KaleoProcess}.
  24. * </p>
  25. *
  26. * @author Marcellus Tavares
  27. * @see KaleoProcess
  28. * @generated
  29. */
  30. public class KaleoProcessWrapper
  31. extends BaseModelWrapper<KaleoProcess>
  32. implements KaleoProcess, ModelWrapper<KaleoProcess> {
  33. public KaleoProcessWrapper(KaleoProcess kaleoProcess) {
  34. super(kaleoProcess);
  35. }
  36. @Override
  37. public Map<String, Object> getModelAttributes() {
  38. Map<String, Object> attributes = new HashMap<String, Object>();
  39. attributes.put("uuid", getUuid());
  40. attributes.put("kaleoProcessId", getKaleoProcessId());
  41. attributes.put("groupId", getGroupId());
  42. attributes.put("companyId", getCompanyId());
  43. attributes.put("userId", getUserId());
  44. attributes.put("userName", getUserName());
  45. attributes.put("createDate", getCreateDate());
  46. attributes.put("modifiedDate", getModifiedDate());
  47. attributes.put("DDLRecordSetId", getDDLRecordSetId());
  48. attributes.put("DDMTemplateId", getDDMTemplateId());
  49. attributes.put("workflowDefinitionName", getWorkflowDefinitionName());
  50. attributes.put(
  51. "workflowDefinitionVersion", getWorkflowDefinitionVersion());
  52. return attributes;
  53. }
  54. @Override
  55. public void setModelAttributes(Map<String, Object> attributes) {
  56. String uuid = (String)attributes.get("uuid");
  57. if (uuid != null) {
  58. setUuid(uuid);
  59. }
  60. Long kaleoProcessId = (Long)attributes.get("kaleoProcessId");
  61. if (kaleoProcessId != null) {
  62. setKaleoProcessId(kaleoProcessId);
  63. }
  64. Long groupId = (Long)attributes.get("groupId");
  65. if (groupId != null) {
  66. setGroupId(groupId);
  67. }
  68. Long companyId = (Long)attributes.get("companyId");
  69. if (companyId != null) {
  70. setCompanyId(companyId);
  71. }
  72. Long userId = (Long)attributes.get("userId");
  73. if (userId != null) {
  74. setUserId(userId);
  75. }
  76. String userName = (String)attributes.get("userName");
  77. if (userName != null) {
  78. setUserName(userName);
  79. }
  80. Date createDate = (Date)attributes.get("createDate");
  81. if (createDate != null) {
  82. setCreateDate(createDate);
  83. }
  84. Date modifiedDate = (Date)attributes.get("modifiedDate");
  85. if (modifiedDate != null) {
  86. setModifiedDate(modifiedDate);
  87. }
  88. Long DDLRecordSetId = (Long)attributes.get("DDLRecordSetId");
  89. if (DDLRecordSetId != null) {
  90. setDDLRecordSetId(DDLRecordSetId);
  91. }
  92. Long DDMTemplateId = (Long)attributes.get("DDMTemplateId");
  93. if (DDMTemplateId != null) {
  94. setDDMTemplateId(DDMTemplateId);
  95. }
  96. String workflowDefinitionName = (String)attributes.get(
  97. "workflowDefinitionName");
  98. if (workflowDefinitionName != null) {
  99. setWorkflowDefinitionName(workflowDefinitionName);
  100. }
  101. Integer workflowDefinitionVersion = (Integer)attributes.get(
  102. "workflowDefinitionVersion");
  103. if (workflowDefinitionVersion != null) {
  104. setWorkflowDefinitionVersion(workflowDefinitionVersion);
  105. }
  106. }
  107. @Override
  108. public KaleoProcess cloneWithOriginalValues() {
  109. return wrap(model.cloneWithOriginalValues());
  110. }
  111. /**
  112. * Returns the company ID of this kaleo process.
  113. *
  114. * @return the company ID of this kaleo process
  115. */
  116. @Override
  117. public long getCompanyId() {
  118. return model.getCompanyId();
  119. }
  120. /**
  121. * Returns the create date of this kaleo process.
  122. *
  123. * @return the create date of this kaleo process
  124. */
  125. @Override
  126. public Date getCreateDate() {
  127. return model.getCreateDate();
  128. }
  129. @Override
  130. public com.liferay.dynamic.data.lists.model.DDLRecordSet getDDLRecordSet()
  131. throws com.liferay.portal.kernel.exception.PortalException {
  132. return model.getDDLRecordSet();
  133. }
  134. /**
  135. * Returns the ddl record set ID of this kaleo process.
  136. *
  137. * @return the ddl record set ID of this kaleo process
  138. */
  139. @Override
  140. public long getDDLRecordSetId() {
  141. return model.getDDLRecordSetId();
  142. }
  143. @Override
  144. public com.liferay.dynamic.data.mapping.model.DDMTemplate getDDMTemplate()
  145. throws com.liferay.portal.kernel.exception.PortalException {
  146. return model.getDDMTemplate();
  147. }
  148. /**
  149. * Returns the ddm template ID of this kaleo process.
  150. *
  151. * @return the ddm template ID of this kaleo process
  152. */
  153. @Override
  154. public long getDDMTemplateId() {
  155. return model.getDDMTemplateId();
  156. }
  157. @Override
  158. public String getDescription()
  159. throws com.liferay.portal.kernel.exception.PortalException {
  160. return model.getDescription();
  161. }
  162. @Override
  163. public String getDescription(java.util.Locale locale)
  164. throws com.liferay.portal.kernel.exception.PortalException {
  165. return model.getDescription(locale);
  166. }
  167. /**
  168. * Returns the group ID of this kaleo process.
  169. *
  170. * @return the group ID of this kaleo process
  171. */
  172. @Override
  173. public long getGroupId() {
  174. return model.getGroupId();
  175. }
  176. /**
  177. * Returns the kaleo process ID of this kaleo process.
  178. *
  179. * @return the kaleo process ID of this kaleo process
  180. */
  181. @Override
  182. public long getKaleoProcessId() {
  183. return model.getKaleoProcessId();
  184. }
  185. @Override
  186. public java.util.List<KaleoProcessLink> getKaleoProcessLinks() {
  187. return model.getKaleoProcessLinks();
  188. }
  189. /**
  190. * Returns the modified date of this kaleo process.
  191. *
  192. * @return the modified date of this kaleo process
  193. */
  194. @Override
  195. public Date getModifiedDate() {
  196. return model.getModifiedDate();
  197. }
  198. @Override
  199. public String getName()
  200. throws com.liferay.portal.kernel.exception.PortalException {
  201. return model.getName();
  202. }
  203. @Override
  204. public String getName(java.util.Locale locale)
  205. throws com.liferay.portal.kernel.exception.PortalException {
  206. return model.getName(locale);
  207. }
  208. /**
  209. * Returns the primary key of this kaleo process.
  210. *
  211. * @return the primary key of this kaleo process
  212. */
  213. @Override
  214. public long getPrimaryKey() {
  215. return model.getPrimaryKey();
  216. }
  217. /**
  218. * Returns the user ID of this kaleo process.
  219. *
  220. * @return the user ID of this kaleo process
  221. */
  222. @Override
  223. public long getUserId() {
  224. return model.getUserId();
  225. }
  226. /**
  227. * Returns the user name of this kaleo process.
  228. *
  229. * @return the user name of this kaleo process
  230. */
  231. @Override
  232. public String getUserName() {
  233. return model.getUserName();
  234. }
  235. /**
  236. * Returns the user uuid of this kaleo process.
  237. *
  238. * @return the user uuid of this kaleo process
  239. */
  240. @Override
  241. public String getUserUuid() {
  242. return model.getUserUuid();
  243. }
  244. /**
  245. * Returns the uuid of this kaleo process.
  246. *
  247. * @return the uuid of this kaleo process
  248. */
  249. @Override
  250. public String getUuid() {
  251. return model.getUuid();
  252. }
  253. @Override
  254. public String getWorkflowDefinition() {
  255. return model.getWorkflowDefinition();
  256. }
  257. /**
  258. * Returns the workflow definition name of this kaleo process.
  259. *
  260. * @return the workflow definition name of this kaleo process
  261. */
  262. @Override
  263. public String getWorkflowDefinitionName() {
  264. return model.getWorkflowDefinitionName();
  265. }
  266. /**
  267. * Returns the workflow definition version of this kaleo process.
  268. *
  269. * @return the workflow definition version of this kaleo process
  270. */
  271. @Override
  272. public int getWorkflowDefinitionVersion() {
  273. return model.getWorkflowDefinitionVersion();
  274. }
  275. @Override
  276. public void persist() {
  277. model.persist();
  278. }
  279. /**
  280. * Sets the company ID of this kaleo process.
  281. *
  282. * @param companyId the company ID of this kaleo process
  283. */
  284. @Override
  285. public void setCompanyId(long companyId) {
  286. model.setCompanyId(companyId);
  287. }
  288. /**
  289. * Sets the create date of this kaleo process.
  290. *
  291. * @param createDate the create date of this kaleo process
  292. */
  293. @Override
  294. public void setCreateDate(Date createDate) {
  295. model.setCreateDate(createDate);
  296. }
  297. /**
  298. * Sets the ddl record set ID of this kaleo process.
  299. *
  300. * @param DDLRecordSetId the ddl record set ID of this kaleo process
  301. */
  302. @Override
  303. public void setDDLRecordSetId(long DDLRecordSetId) {
  304. model.setDDLRecordSetId(DDLRecordSetId);
  305. }
  306. /**
  307. * Sets the ddm template ID of this kaleo process.
  308. *
  309. * @param DDMTemplateId the ddm template ID of this kaleo process
  310. */
  311. @Override
  312. public void setDDMTemplateId(long DDMTemplateId) {
  313. model.setDDMTemplateId(DDMTemplateId);
  314. }
  315. /**
  316. * Sets the group ID of this kaleo process.
  317. *
  318. * @param groupId the group ID of this kaleo process
  319. */
  320. @Override
  321. public void setGroupId(long groupId) {
  322. model.setGroupId(groupId);
  323. }
  324. /**
  325. * Sets the kaleo process ID of this kaleo process.
  326. *
  327. * @param kaleoProcessId the kaleo process ID of this kaleo process
  328. */
  329. @Override
  330. public void setKaleoProcessId(long kaleoProcessId) {
  331. model.setKaleoProcessId(kaleoProcessId);
  332. }
  333. /**
  334. * Sets the modified date of this kaleo process.
  335. *
  336. * @param modifiedDate the modified date of this kaleo process
  337. */
  338. @Override
  339. public void setModifiedDate(Date modifiedDate) {
  340. model.setModifiedDate(modifiedDate);
  341. }
  342. /**
  343. * Sets the primary key of this kaleo process.
  344. *
  345. * @param primaryKey the primary key of this kaleo process
  346. */
  347. @Override
  348. public void setPrimaryKey(long primaryKey) {
  349. model.setPrimaryKey(primaryKey);
  350. }
  351. /**
  352. * Sets the user ID of this kaleo process.
  353. *
  354. * @param userId the user ID of this kaleo process
  355. */
  356. @Override
  357. public void setUserId(long userId) {
  358. model.setUserId(userId);
  359. }
  360. /**
  361. * Sets the user name of this kaleo process.
  362. *
  363. * @param userName the user name of this kaleo process
  364. */
  365. @Override
  366. public void setUserName(String userName) {
  367. model.setUserName(userName);
  368. }
  369. /**
  370. * Sets the user uuid of this kaleo process.
  371. *
  372. * @param userUuid the user uuid of this kaleo process
  373. */
  374. @Override
  375. public void setUserUuid(String userUuid) {
  376. model.setUserUuid(userUuid);
  377. }
  378. /**
  379. * Sets the uuid of this kaleo process.
  380. *
  381. * @param uuid the uuid of this kaleo process
  382. */
  383. @Override
  384. public void setUuid(String uuid) {
  385. model.setUuid(uuid);
  386. }
  387. /**
  388. * Sets the workflow definition name of this kaleo process.
  389. *
  390. * @param workflowDefinitionName the workflow definition name of this kaleo process
  391. */
  392. @Override
  393. public void setWorkflowDefinitionName(String workflowDefinitionName) {
  394. model.setWorkflowDefinitionName(workflowDefinitionName);
  395. }
  396. /**
  397. * Sets the workflow definition version of this kaleo process.
  398. *
  399. * @param workflowDefinitionVersion the workflow definition version of this kaleo process
  400. */
  401. @Override
  402. public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
  403. model.setWorkflowDefinitionVersion(workflowDefinitionVersion);
  404. }
  405. @Override
  406. public StagedModelType getStagedModelType() {
  407. return model.getStagedModelType();
  408. }
  409. @Override
  410. protected KaleoProcessWrapper wrap(KaleoProcess kaleoProcess) {
  411. return new KaleoProcessWrapper(kaleoProcess);
  412. }
  413. }