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      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  }