1 | |
package org.kuali.student.lum.common.client.configuration; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.configurable.mvc.Configurer; |
4 | |
import org.kuali.student.common.ui.client.mvc.DataModel; |
5 | |
import org.kuali.student.common.ui.client.widgets.field.layout.element.MessageKeyInfo; |
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | 0 | public abstract class AbstractConfiguration implements Configuration { |
13 | |
|
14 | |
protected Configurer configurer; |
15 | |
|
16 | |
public void setConfigurer(Configurer configurer) { |
17 | 0 | this.configurer = configurer; |
18 | 0 | } |
19 | |
|
20 | |
@Override |
21 | |
public void applyRestrictions() { |
22 | 0 | } |
23 | |
|
24 | |
@Override |
25 | |
public boolean checkPermission(DataModel model) { |
26 | 0 | return false; |
27 | |
} |
28 | |
|
29 | |
@Override |
30 | |
public void removeRestrictions() { |
31 | |
|
32 | 0 | } |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
public MessageKeyInfo generateMessageInfo(String labelKey) { |
42 | 0 | return this.configurer.generateMessageInfo(labelKey); |
43 | |
} |
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
public String getLabel(String labelKey) { |
51 | 0 | return this.configurer.getLabel(labelKey); |
52 | |
} |
53 | |
} |