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 public String toParam() {
63 viewId = (StringUtils.isNotBlank(viewId)) ? viewId : "null";
64 pageId = (StringUtils.isNotBlank(pageId)) ? pageId : "null";
65 title = (StringUtils.isNotBlank(title)) ? title : "null";
66 url = (StringUtils.isNotBlank(url)) ? url : "null";
67 formKey = (StringUtils.isNotBlank(formKey)) ? formKey : "null";
68
69 return viewId
70 + History.VAR_TOKEN
71 + pageId
72 + History.VAR_TOKEN
73 + title
74 + History.VAR_TOKEN
75 + url
76 + History.VAR_TOKEN
77 + formKey;
78 }
79
80
81
82
83
84
85 @BeanTagAttribute(name="viewId")
86 public String getViewId() {
87 return this.viewId;
88 }
89
90
91
92
93 public void setViewId(String viewId) {
94 this.viewId = viewId;
95 }
96
97
98
99
100
101
102 @BeanTagAttribute(name="pageId")
103 public String getPageId() {
104 return this.pageId;
105 }
106
107
108
109
110 public void setPageId(String pageId) {
111 this.pageId = pageId;
112 }
113
114
115
116
117
118
119 @BeanTagAttribute(name="title")
120 public String getTitle() {
121 return this.title;
122 }
123
124
125
126
127 public void setTitle(String title) {
128 this.title = title;
129 }
130
131
132
133
134
135
136 @BeanTagAttribute(name="url")
137 public String getUrl() {
138 return this.url;
139 }
140
141
142
143
144 public void setUrl(String url) {
145 this.url = url;
146 }
147
148
149
150
151 @BeanTagAttribute(name="formKey")
152 public String getFormKey() {
153 return this.formKey;
154 }
155
156
157
158
159
160
161 public void setFormKey(String formKey) {
162 this.formKey = formKey;
163 }
164
165 }