1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.krad.document.authorization; |
17 | |
|
18 | |
import java.util.HashSet; |
19 | |
import java.util.Set; |
20 | |
|
21 | |
import org.kuali.rice.krad.bo.BusinessObject; |
22 | |
import org.kuali.rice.krad.document.MaintenanceDocument; |
23 | |
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; |
24 | |
import org.kuali.rice.krad.service.MaintenanceDocumentDictionaryService; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | 0 | public class MaintenanceDocumentPresentationControllerBase extends |
30 | |
DocumentPresentationControllerBase implements |
31 | |
MaintenanceDocumentPresentationController { |
32 | |
|
33 | |
|
34 | |
|
35 | |
protected static MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService; |
36 | |
|
37 | |
public boolean canCreate(Class boClass) { |
38 | 0 | return getMaintenanceDocumentDictionaryService().getAllowsNewOrCopy( |
39 | |
getMaintenanceDocumentDictionaryService().getDocumentTypeName( |
40 | |
boClass)); |
41 | |
} |
42 | |
|
43 | |
public Set<String> getConditionallyHiddenPropertyNames( |
44 | |
BusinessObject businessObject) { |
45 | 0 | return new HashSet<String>(); |
46 | |
} |
47 | |
|
48 | |
public Set<String> getConditionallyHiddenSectionIds( |
49 | |
BusinessObject businessObject) { |
50 | 0 | return new HashSet<String>(); |
51 | |
} |
52 | |
|
53 | |
public Set<String> getConditionallyReadOnlyPropertyNames( |
54 | |
MaintenanceDocument document) { |
55 | 0 | return new HashSet<String>(); |
56 | |
} |
57 | |
|
58 | |
public Set<String> getConditionallyReadOnlySectionIds( |
59 | |
MaintenanceDocument document) { |
60 | 0 | return new HashSet<String>(); |
61 | |
} |
62 | |
|
63 | |
public Set<String> getConditionallyRequiredPropertyNames( |
64 | |
MaintenanceDocument document) { |
65 | 0 | return new HashSet<String>(); |
66 | |
} |
67 | |
|
68 | |
public static MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService() { |
69 | 0 | if (maintenanceDocumentDictionaryService == null) { |
70 | 0 | maintenanceDocumentDictionaryService = KRADServiceLocatorWeb.getMaintenanceDocumentDictionaryService(); |
71 | |
|
72 | |
} |
73 | 0 | return maintenanceDocumentDictionaryService; |
74 | |
} |
75 | |
|
76 | |
} |