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.client.console.policies;
20  
21  import java.io.Serializable;
22  import org.apache.syncope.common.lib.policy.RuleConf;
23  import org.apache.syncope.common.lib.types.ImplementationEngine;
24  
25  public class PolicyRuleWrapper implements Serializable {
26  
27      private static final long serialVersionUID = 2472755929742424558L;
28  
29      private final boolean isNew;
30  
31      private String implementationKey;
32  
33      private ImplementationEngine implementationEngine;
34  
35      private RuleConf conf;
36  
37      public PolicyRuleWrapper(final boolean isNew) {
38          this.isNew = isNew;
39      }
40  
41      public boolean isNew() {
42          return isNew;
43      }
44  
45      public String getImplementationKey() {
46          return implementationKey;
47      }
48  
49      public PolicyRuleWrapper setImplementationKey(final String implementationKey) {
50          this.implementationKey = implementationKey;
51          return this;
52      }
53  
54      public ImplementationEngine getImplementationEngine() {
55          return implementationEngine;
56      }
57  
58      public PolicyRuleWrapper setImplementationEngine(final ImplementationEngine implementationEngine) {
59          this.implementationEngine = implementationEngine;
60          return this;
61      }
62  
63      public RuleConf getConf() {
64          return conf;
65      }
66  
67      public PolicyRuleWrapper setConf(final RuleConf conf) {
68          this.conf = conf;
69          return this;
70      }
71  }