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  import java.util.Map;
22  import org.apache.commons.lang3.tuple.Pair;
23  
24  public final class IdRepoImplementationType {
25  
26      public static final String ACCOUNT_RULE = "ACCOUNT_RULE";
27  
28      public static final String PASSWORD_RULE = "PASSWORD_RULE";
29  
30      public static final String TASKJOB_DELEGATE = "TASKJOB_DELEGATE";
31  
32      public static final String REPORT_DELEGATE = "REPORT_DELEGATE";
33  
34      public static final String LOGIC_ACTIONS = "LOGIC_ACTIONS";
35  
36      public static final String VALIDATOR = "VALIDATOR";
37  
38      public static final String COMMAND = "COMMAND";
39  
40      public static final String RECIPIENTS_PROVIDER = "RECIPIENTS_PROVIDER";
41  
42      public static final String ITEM_TRANSFORMER = "ITEM_TRANSFORMER";
43  
44      private static final Map<String, String> VALUES = Map.ofEntries(
45              Pair.of(ACCOUNT_RULE, "org.apache.syncope.core.provisioning.api.rules.AccountRule"),
46              Pair.of(PASSWORD_RULE, "org.apache.syncope.core.provisioning.api.rules.PasswordRule"),
47              Pair.of(TASKJOB_DELEGATE, "org.apache.syncope.core.provisioning.api.job.SchedTaskJobDelegate"),
48              Pair.of(REPORT_DELEGATE, "org.apache.syncope.core.provisioning.api.job.report.ReportJobDelegate"),
49              Pair.of(LOGIC_ACTIONS, "org.apache.syncope.core.logic.api.LogicActions"),
50              Pair.of(VALIDATOR, "org.apache.syncope.core.persistence.api.attrvalue.validation.PlainAttrValueValidator"),
51              Pair.of(COMMAND, "org.apache.syncope.core.logic.api.Command"),
52              Pair.of(RECIPIENTS_PROVIDER, "org.apache.syncope.core.provisioning.api.notification.RecipientsProvider"),
53              Pair.of(ITEM_TRANSFORMER, "org.apache.syncope.core.provisioning.api.data.ItemTransformer"));
54  
55      public static Map<String, String> values() {
56          return VALUES;
57      }
58  
59      private IdRepoImplementationType() {
60          // private constructor for static utility class
61      }
62  }