1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kns.service.impl; |
17 | |
|
18 | |
import org.kuali.rice.kns.datadictionary.exporter.DataDictionaryMap; |
19 | |
import org.kuali.rice.kns.rule.PromptBeforeValidation; |
20 | |
import org.kuali.rice.kns.service.DataDictionaryService; |
21 | |
import org.kuali.rice.kns.datadictionary.DocumentEntry; |
22 | |
import org.kuali.rice.krad.datadictionary.DataDictionary; |
23 | |
|
24 | |
import java.util.Map; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
public class DataDictionaryServiceImpl extends org.kuali.rice.krad.service.impl.DataDictionaryServiceImpl implements DataDictionaryService { |
30 | |
|
31 | 0 | private DataDictionaryMap dataDictionaryMap = new DataDictionaryMap(this); |
32 | |
|
33 | |
public DataDictionaryServiceImpl() { |
34 | 0 | super(); |
35 | 0 | } |
36 | |
|
37 | |
public DataDictionaryServiceImpl(DataDictionary dataDictionary) { |
38 | 0 | super(dataDictionary); |
39 | 0 | } |
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
public Class<? extends PromptBeforeValidation> getPromptBeforeValidationClass(String docTypeName) { |
45 | 0 | Class preRulesCheckClass = null; |
46 | |
|
47 | 0 | DocumentEntry documentEntry = (DocumentEntry) getDataDictionary().getDocumentEntry(docTypeName); |
48 | 0 | if (documentEntry != null) { |
49 | 0 | preRulesCheckClass = documentEntry.getPromptBeforeValidationClass(); |
50 | |
} |
51 | |
|
52 | 0 | return preRulesCheckClass; |
53 | |
} |
54 | |
|
55 | |
public Map getDataDictionaryMap() { |
56 | 0 | return dataDictionaryMap; |
57 | |
} |
58 | |
} |