View Javadoc

1   package org.kuali.rice.krms.dto;
2   
3   import org.kuali.rice.krad.web.form.UifFormBase;
4   import org.kuali.rice.krms.api.repository.agenda.AgendaDefinition;
5   import org.kuali.rice.krms.api.repository.agenda.AgendaDefinitionContract;
6   
7   import java.io.Serializable;
8   import java.util.List;
9   import java.util.Map;
10  
11  /**
12   * Created with IntelliJ IDEA.
13   * User: danie
14   * Date: 3/7/13
15   * Time: 4:27 PM
16   * To change this template use File | Settings | File Templates.
17   */
18  public class AgendaEditor extends UifFormBase implements AgendaDefinitionContract, Serializable {
19  
20      private String id;
21      private String name;
22      private String typeId;
23      private String contextId;
24      private boolean active = true;
25      private String firstItemId;
26      private Map<String, String> attributes;
27      private Long versionNumber;
28      private String courseName;
29  
30      private List<RuleEditor> ruleEditors;
31  
32      public AgendaEditor() {
33          super();
34      }
35  
36      public AgendaEditor(AgendaDefinition definition) {
37          this.id = definition.getId();
38          this.name = definition.getName();
39          this.typeId = definition.getTypeId();
40          this.contextId = definition.getContextId();
41          this.active = definition.isActive();
42          this.firstItemId = definition.getFirstItemId();
43          this.attributes = definition.getAttributes();
44          this.versionNumber = definition.getVersionNumber();
45      }
46  
47      public String getId() {
48          return id;
49      }
50  
51      public void setId(String id) {
52          this.id = id;
53      }
54  
55      public String getName() {
56          return name;
57      }
58  
59      public void setName(String name) {
60          this.name = name;
61      }
62  
63      public String getTypeId() {
64          return typeId;
65      }
66  
67      public void setTypeId(String typeId) {
68          this.typeId = typeId;
69      }
70  
71      public String getContextId() {
72          return contextId;
73      }
74  
75      public void setContextId(String contextId) {
76          this.contextId = contextId;
77      }
78  
79      public boolean isActive() {
80          return active;
81      }
82  
83      public void setActive(boolean active) {
84          this.active = active;
85      }
86  
87      public String getFirstItemId() {
88          return firstItemId;
89      }
90  
91      public void setFirstItemId(String firstItemId) {
92          this.firstItemId = firstItemId;
93      }
94  
95      public Map<String, String> getAttributes() {
96          return attributes;
97      }
98  
99      public void setAttributes(Map<String, String> attributes) {
100         this.attributes = attributes;
101     }
102 
103     public Long getVersionNumber() {
104         return versionNumber;
105     }
106 
107     public void setVersionNumber(Long versionNumber) {
108         this.versionNumber = versionNumber;
109     }
110 
111     public List<RuleEditor> getRuleEditors() {
112         return ruleEditors;
113     }
114 
115     public void setRuleEditors(List<RuleEditor> ruleEditors) {
116         this.ruleEditors = ruleEditors;
117     }
118 
119     public String getCourseName() {
120         return courseName;
121     }
122 
123     public void setCourseName(String courseName) {
124         this.courseName = courseName;
125     }
126 
127 }