1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.view;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase;
20 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
21 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
22
23 import java.io.Serializable;
24
25
26
27
28
29
30
31
32
33 @BeanTag(name = "historyEntry-bean", parent = "Uif-HistoryEntry")
34 public class HistoryEntry extends UifDictionaryBeanBase implements Serializable {
35 private static final long serialVersionUID = -8310916657379268794L;
36
37 private String viewId;
38 private String pageId;
39 private String title;
40 private String url;
41 private String formKey;
42
43 public HistoryEntry() {
44 super();
45 }
46
47 public HistoryEntry(String viewId, String pageId, String title, String url, String formKey) {
48 super();
49
50 this.viewId = viewId;
51 this.pageId = pageId;
52 this.title = title;
53 this.url = url;
54 this.formKey = formKey;
55 }
56
57
58
59
60
61
62 @BeanTagAttribute(name="viewId")
63 public String getViewId() {
64 return this.viewId;
65 }
66
67
68
69
70 public void setViewId(String viewId) {
71 this.viewId = viewId;
72 }
73
74
75
76
77
78
79 @BeanTagAttribute(name="pageId")
80 public String getPageId() {
81 return this.pageId;
82 }
83
84
85
86
87 public void setPageId(String pageId) {
88 this.pageId = pageId;
89 }
90
91
92
93
94
95
96 @BeanTagAttribute(name="title")
97 public String getTitle() {
98 return this.title;
99 }
100
101
102
103
104 public void setTitle(String title) {
105 this.title = title;
106 }
107
108
109
110
111
112
113 @BeanTagAttribute(name="url")
114 public String getUrl() {
115 return this.url;
116 }
117
118
119
120
121 public void setUrl(String url) {
122 this.url = url;
123 }
124
125
126
127
128 @BeanTagAttribute(name="formKey")
129 public String getFormKey() {
130 return this.formKey;
131 }
132
133
134
135
136
137
138 public void setFormKey(String formKey) {
139 this.formKey = formKey;
140 }
141
142
143
144
145 @Override
146 protected <T> void copyProperties(T component) {
147 super.copyProperties(component);
148 HistoryEntry historyEntryCopy = (HistoryEntry) component;
149 historyEntryCopy.setViewId(this.getViewId());
150 historyEntryCopy.setPageId(this.getPageId());
151 historyEntryCopy.setTitle(this.getTitle());
152 historyEntryCopy.setUrl(this.getUrl());
153 historyEntryCopy.setFormKey(this.getFormKey());
154 }
155 }