1 package org.kuali.rice.krms.dto;
2
3 import org.kuali.rice.krms.api.repository.action.ActionDefinition;
4 import org.kuali.rice.krms.api.repository.action.ActionDefinitionContract;
5
6 import java.io.Serializable;
7 import java.util.Map;
8
9
10
11
12
13
14
15
16 public class ActionEditor implements ActionDefinitionContract, Serializable {
17
18 private String id;
19 private String name;
20 private String namespace;
21 private String description;
22 private String typeId;
23 private String ruleId;
24 private Integer sequenceNumber;
25
26 private Map<String, String> attributes;
27 private Long versionNumber;
28
29 public ActionEditor() {
30 super();
31 }
32
33 public ActionEditor(ActionDefinitionContract definition){
34 this.setId(definition.getId());
35 this.setName(definition.getName());
36 this.setNamespace(definition.getNamespace());
37 this.setDescription(definition.getDescription());
38 this.setTypeId(definition.getTypeId());
39 this.setRuleId(definition.getRuleId());
40 this.setSequenceNumber(definition.getSequenceNumber());
41
42 this.setAttributes(definition.getAttributes());
43 this.setVersionNumber(definition.getVersionNumber());
44 }
45
46 public void setId(String id) {
47 this.id = id;
48 }
49
50 @Override
51 public String getId() {
52 return this.id;
53 }
54
55 public void setVersionNumber(Long versionNumber) {
56 this.versionNumber = versionNumber;
57 }
58
59 @Override
60 public Long getVersionNumber() {
61 return this.versionNumber;
62 }
63
64 public void setName(String name) {
65 this.name = name;
66 }
67
68 @Override
69 public String getName() {
70 return this.name;
71 }
72
73 public void setNamespace(String namespace) {
74 this.namespace = namespace;
75 }
76
77 @Override
78 public String getNamespace() {
79 return this.namespace;
80 }
81
82 public void setDescription(String description) {
83 this.description = description;
84 }
85
86 @Override
87 public String getDescription() {
88 return this.description;
89 }
90
91 public void setTypeId(String typeId) {
92 this.typeId = typeId;
93 }
94
95 @Override
96 public String getTypeId() {
97 return this.typeId;
98 }
99
100 public void setRuleId(String ruleId) {
101 this.ruleId = ruleId;
102 }
103
104 @Override
105 public String getRuleId() {
106 return this.ruleId;
107 }
108
109 public void setSequenceNumber(Integer sequenceNumber) {
110 this.sequenceNumber = sequenceNumber;
111 }
112
113 @Override
114 public Integer getSequenceNumber() {
115 return this.sequenceNumber;
116 }
117
118 public void setAttributes(Map<String, String> attributes) {
119 this.attributes = attributes;
120 }
121
122 @Override
123 public Map<String, String> getAttributes() {
124 return this.attributes;
125 }
126
127 }