1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.common.lib.types;
20
21 public enum EntityViolationType {
22
23 Standard,
24 InvalidAnyType,
25 InvalidADynMemberships,
26 InvalidConnInstanceLocation,
27 InvalidConnPoolConf,
28 InvalidFormPropertyDef,
29 InvalidMapping,
30 InvalidKey,
31 InvalidName,
32 InvalidPassword,
33 InvalidPolicy,
34 InvalidPropagationTask,
35 InvalidRealm,
36 InvalidDynRealm,
37 InvalidReport,
38 InvalidResource,
39 InvalidGroupOwner,
40 InvalidSchemaEncrypted,
41 InvalidSchemaEnum,
42 InvalidSchemaMultivalueUnique,
43 InvalidSchedTask,
44 InvalidProvisioningTask,
45 InvalidPlainAttr,
46 InvalidUsername,
47 InvalidValueList,
48 InvalidRemediation,
49 MoreThanOneNonNull;
50
51 private String message;
52
53 private String propertyPath;
54
55 private Object invalidValue;
56
57 public void setMessage(final String message) {
58 this.message = message;
59 }
60
61 public String getMessage() {
62 return message;
63 }
64
65 public String getPropertyPath() {
66 return propertyPath;
67 }
68
69 public void setPropertyPath(final String propertyPath) {
70 this.propertyPath = propertyPath;
71 }
72
73 public void setInvalidValue(final Object invalidValue) {
74 this.invalidValue = invalidValue;
75 }
76
77 public Object getInvalidValue() {
78 return invalidValue;
79 }
80
81 @Override
82 public String toString() {
83 return name() + "{"
84 + "message=" + message
85 + ", propertyPath=" + propertyPath
86 + ", invalidValue=" + invalidValue
87 + '}';
88 }
89 }