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.core.persistence.jpa;
20  
21  import java.util.Collection;
22  import java.util.Optional;
23  import org.apache.syncope.common.lib.to.ConnInstanceTO;
24  import org.apache.syncope.common.lib.types.ConnConfProperty;
25  import org.apache.syncope.common.lib.types.ConnectorCapability;
26  import org.apache.syncope.core.persistence.api.entity.ConnInstance;
27  import org.apache.syncope.core.persistence.api.entity.ExternalResource;
28  import org.apache.syncope.core.provisioning.api.Connector;
29  import org.apache.syncope.core.provisioning.api.ConnectorManager;
30  
31  public class DummyConnectorManager implements ConnectorManager {
32  
33      @Override
34      public void registerConnector(final ExternalResource resource) {
35      }
36  
37      @Override
38      public void unregisterConnector(final ExternalResource resource) {
39      }
40  
41      @Override
42      public ConnInstance buildConnInstanceOverride(
43              final ConnInstanceTO connInstance,
44              final Collection<ConnConfProperty> confOverride,
45              final Optional<Collection<ConnectorCapability>> capabilitiesOverride) {
46  
47          return null;
48      }
49  
50      @Override
51      public Connector createConnector(final ConnInstance connInstance) {
52          return null;
53      }
54  
55      @Override
56      public Connector getConnector(final ExternalResource resource) {
57          return null;
58      }
59  
60      @Override
61      public Optional<Connector> readConnector(final ExternalResource resource) {
62          return Optional.empty();
63      }
64  
65      @Override
66      public void load() {
67      }
68  
69      @Override
70      public void unload() {
71      }
72  }