001 package org.kuali.rice.krms.dto;
002
003 import org.kuali.rice.krad.web.form.UifFormBase;
004 import org.kuali.rice.krms.api.repository.agenda.AgendaDefinition;
005 import org.kuali.rice.krms.api.repository.agenda.AgendaDefinitionContract;
006
007 import java.io.Serializable;
008 import java.util.List;
009 import java.util.Map;
010
011 /**
012 * Created with IntelliJ IDEA.
013 * User: danie
014 * Date: 3/7/13
015 * Time: 4:27 PM
016 * To change this template use File | Settings | File Templates.
017 */
018 public class AgendaEditor extends UifFormBase implements AgendaDefinitionContract, Serializable {
019
020 private String id;
021 private String name;
022 private String typeId;
023 private String contextId;
024 private boolean active = true;
025 private String firstItemId;
026 private Map<String, String> attributes;
027 private Long versionNumber;
028 private String courseName;
029
030 private List<RuleEditor> ruleEditors;
031
032 public AgendaEditor() {
033 super();
034 }
035
036 public AgendaEditor(AgendaDefinition definition) {
037 this.id = definition.getId();
038 this.name = definition.getName();
039 this.typeId = definition.getTypeId();
040 this.contextId = definition.getContextId();
041 this.active = definition.isActive();
042 this.firstItemId = definition.getFirstItemId();
043 this.attributes = definition.getAttributes();
044 this.versionNumber = definition.getVersionNumber();
045 }
046
047 public String getId() {
048 return id;
049 }
050
051 public void setId(String id) {
052 this.id = id;
053 }
054
055 public String getName() {
056 return name;
057 }
058
059 public void setName(String name) {
060 this.name = name;
061 }
062
063 public String getTypeId() {
064 return typeId;
065 }
066
067 public void setTypeId(String typeId) {
068 this.typeId = typeId;
069 }
070
071 public String getContextId() {
072 return contextId;
073 }
074
075 public void setContextId(String contextId) {
076 this.contextId = contextId;
077 }
078
079 public boolean isActive() {
080 return active;
081 }
082
083 public void setActive(boolean active) {
084 this.active = active;
085 }
086
087 public String getFirstItemId() {
088 return firstItemId;
089 }
090
091 public void setFirstItemId(String firstItemId) {
092 this.firstItemId = firstItemId;
093 }
094
095 public Map<String, String> getAttributes() {
096 return attributes;
097 }
098
099 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 }