View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
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      InvalidMapping,
29      InvalidKey,
30      InvalidName,
31      InvalidPassword,
32      InvalidPolicy,
33      InvalidPropagationTask,
34      InvalidRealm,
35      InvalidDynRealm,
36      InvalidReport,
37      InvalidResource,
38      InvalidGroupOwner,
39      InvalidSchemaEncrypted,
40      InvalidSchemaEnum,
41      InvalidSchemaMultivalueUnique,
42      InvalidSchedTask,
43      InvalidProvisioningTask,
44      InvalidPlainAttr,
45      InvalidUsername,
46      InvalidValueList,
47      InvalidRemediation,
48      MoreThanOneNonNull;
49  
50      private String message;
51  
52      private String propertyPath;
53  
54      private Object invalidValue;
55  
56      public void setMessage(final String message) {
57          this.message = message;
58      }
59  
60      public String getMessage() {
61          return message;
62      }
63  
64      public String getPropertyPath() {
65          return propertyPath;
66      }
67  
68      public void setPropertyPath(final String propertyPath) {
69          this.propertyPath = propertyPath;
70      }
71  
72      public void setInvalidValue(final Object invalidValue) {
73          this.invalidValue = invalidValue;
74      }
75  
76      public Object getInvalidValue() {
77          return invalidValue;
78      }
79  
80      @Override
81      public String toString() {
82          return name() + "{"
83                  + "message=" + message
84                  + ", propertyPath=" + propertyPath
85                  + ", invalidValue=" + invalidValue
86                  + '}';
87      }
88  }