1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kns.datadictionary;
17
18 import org.kuali.rice.kns.document.authorization.DocumentAuthorizer;
19 import org.kuali.rice.kns.document.authorization.DocumentPresentationController;
20 import org.kuali.rice.kns.document.authorization.TransactionalDocumentAuthorizerBase;
21 import org.kuali.rice.kns.document.authorization.TransactionalDocumentPresentationControllerBase;
22 import org.kuali.rice.kns.rule.PromptBeforeValidation;
23 import org.kuali.rice.kns.web.derivedvaluesetter.DerivedValuesSetter;
24 import org.kuali.rice.krad.datadictionary.ReferenceDefinition;
25
26 import java.util.ArrayList;
27 import java.util.List;
28
29
30
31
32
33
34 @Deprecated
35 public class TransactionalDocumentEntry extends org.kuali.rice.krad.datadictionary.TransactionalDocumentEntry implements KNSDocumentEntry {
36
37 protected Class<? extends PromptBeforeValidation> promptBeforeValidationClass;
38 protected Class<? extends DerivedValuesSetter> derivedValuesSetterClass;
39 protected List<String> webScriptFiles = new ArrayList<String>(3);
40 protected List<HeaderNavigation> headerNavigationList = new ArrayList<HeaderNavigation>();
41
42 protected boolean sessionDocument = false;
43
44 public TransactionalDocumentEntry() {
45 super();
46
47 documentAuthorizerClass = TransactionalDocumentAuthorizerBase.class;
48 documentPresentationControllerClass = TransactionalDocumentPresentationControllerBase.class;
49 }
50
51 @Override
52 public List<HeaderNavigation> getHeaderNavigationList() {
53 return headerNavigationList;
54 }
55
56 @Override
57 public List<String> getWebScriptFiles() {
58 return webScriptFiles;
59 }
60
61
62
63
64 @Override
65 public Class<? extends PromptBeforeValidation> getPromptBeforeValidationClass() {
66 return promptBeforeValidationClass;
67 }
68
69
70
71
72
73
74
75
76
77 @Override
78 public void setPromptBeforeValidationClass(Class<? extends PromptBeforeValidation> preRulesCheckClass) {
79 this.promptBeforeValidationClass = preRulesCheckClass;
80 }
81
82
83
84
85
86
87 @Override
88 public void setWebScriptFiles(List<String> webScriptFiles) {
89 this.webScriptFiles = webScriptFiles;
90 }
91
92
93
94
95
96 @Override
97 public void setHeaderNavigationList(List<HeaderNavigation> headerNavigationList) {
98 this.headerNavigationList = headerNavigationList;
99 }
100
101 @Override
102 public boolean isSessionDocument() {
103 return this.sessionDocument;
104 }
105
106 @Override
107 public void setSessionDocument(boolean sessionDocument) {
108 this.sessionDocument = sessionDocument;
109 }
110
111
112
113
114 @Override
115 public Class<? extends DerivedValuesSetter> getDerivedValuesSetterClass() {
116 return this.derivedValuesSetterClass;
117 }
118
119
120
121
122 @Override
123 public void setDerivedValuesSetterClass(Class<? extends DerivedValuesSetter> derivedValuesSetter) {
124 this.derivedValuesSetterClass = derivedValuesSetter;
125 }
126
127
128
129
130
131
132
133
134
135 @Override
136 public Class<? extends DocumentAuthorizer> getDocumentAuthorizerClass() {
137 return (Class<? extends DocumentAuthorizer>) super.getDocumentAuthorizerClass();
138 }
139
140
141
142
143
144
145
146
147
148
149
150 @Override
151 public Class<? extends DocumentPresentationController> getDocumentPresentationControllerClass() {
152 return (Class<? extends DocumentPresentationController>) super.getDocumentPresentationControllerClass();
153 }
154
155
156
157
158 @Override
159 public void completeValidation() {
160 super.completeValidation();
161 for (ReferenceDefinition reference : defaultExistenceChecks) {
162 reference.completeValidation(documentClass, null);
163 }
164 }
165
166 @Override
167 public String toString() {
168 return "TransactionalDocumentEntry for documentType " + getDocumentTypeName();
169 }
170 }