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.service.ParameterEvaluator;
19
20
21
22
23
24 public class AlwaysSucceedParameterEvaluatorImpl implements ParameterEvaluator {
25 private static final AlwaysSucceedParameterEvaluatorImpl instance = new AlwaysSucceedParameterEvaluatorImpl();
26
27 public static ParameterEvaluator getInstance() {
28 return instance;
29 }
30
31 private AlwaysSucceedParameterEvaluatorImpl() {
32 }
33
34 public boolean constraintIsAllow() {
35 return Boolean.TRUE;
36 }
37
38
39 public boolean evaluateAndAddError(Class businessObjectOrDocumentClass, String constrainedPropertyName, String userEditablePropertyName) {
40 return evaluationSucceeds();
41 }
42
43 public boolean evaluateAndAddError(Class businessObjectOrDocumentClass, String constrainedPropertyName) {
44 return evaluationSucceeds();
45 }
46
47 public boolean evaluationSucceeds() {
48 return Boolean.TRUE;
49 }
50
51 public String getName() {
52 return AlwaysSucceedParameterEvaluatorImpl.class.getName();
53 }
54
55 public String getParameterValuesForMessage() {
56 return AlwaysSucceedParameterEvaluatorImpl.class.getName();
57 }
58
59 public String getValue() {
60 return AlwaysSucceedParameterEvaluatorImpl.class.getName();
61 }
62
63 public void setConstrainedValue(String constrainedValue) {
64 }
65 }