1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.demo.uif.controller;
17
18 import org.kuali.rice.krad.inquiry.InquiryViewPresentationControllerBase;
19 import org.kuali.rice.krad.uif.container.Group;
20 import org.kuali.rice.krad.uif.field.Field;
21 import org.kuali.rice.krad.uif.view.View;
22 import org.kuali.rice.krad.uif.view.ViewModel;
23
24
25
26
27
28
29
30
31 public class DemoInquiryViewPresentationController extends InquiryViewPresentationControllerBase {
32
33
34 @Override
35 public boolean canViewField(View view, ViewModel model, Field field, String propertyName) {
36
37
38 if(propertyName.equals("travelAuthorizationDocumentId")) {
39 return false;
40 }
41
42 return super.canViewField(view,model,field,propertyName);
43 }
44
45 @Override
46 public boolean canViewGroup(View view, ViewModel model, Group group, String groupId) {
47
48
49 if(groupId.equals("TravelAccount-InquiryView-Costs")) {
50 return false;
51 }
52
53 return super.canViewGroup(view, model,group,groupId);
54 }
55
56 }