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