Class DefaultConnectorManager
java.lang.Object
org.apache.syncope.core.provisioning.java.DefaultConnectorManager
- All Implemented Interfaces:
ConnectorManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AsyncConnectorFacade
protected final ConnIdBundleManager
protected final ConnInstanceDataBinder
protected final EntityFactory
protected static final Logger
protected final RealmDAO
protected final RealmSearchDAO
protected final ExternalResourceDAO
-
Constructor Summary
ConstructorDescriptionDefaultConnectorManager
(ConnIdBundleManager connIdBundleManager, RealmDAO realmDAO, RealmSearchDAO realmSearchDAO, ExternalResourceDAO resourceDAO, ConnInstanceDataBinder connInstanceDataBinder, AsyncConnectorFacade asyncFacade, EntityFactory entityFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildConnInstanceOverride
(ConnInstanceTO connInstance, Optional<List<ConnConfProperty>> confOverride, Optional<Set<ConnectorCapability>> capabilitiesOverride) Builds connector instance override over base connector instance, configuration and capabilities.createConnector
(ConnInstance connInstance) Create connector from given connector instance.protected static String
getBeanName
(ExternalResource resource) getConnector
(ExternalResource resource) Get existing connector bean for the given resource or create if not found.void
load()
Load connectors for all existing resources.readConnector
(ExternalResource resource) void
registerConnector
(ExternalResource resource) Create and register into Spring context a bean for the given resource.void
unload()
Unload connectors for all existing resources.protected void
void
unregisterConnector
(ExternalResource resource) Removes the Spring bean for the given resource from the context.
-
Field Details
-
LOG
-
connIdBundleManager
-
realmDAO
-
realmSearchDAO
-
resourceDAO
-
connInstanceDataBinder
-
asyncFacade
-
entityFactory
-
-
Constructor Details
-
DefaultConnectorManager
public DefaultConnectorManager(ConnIdBundleManager connIdBundleManager, RealmDAO realmDAO, RealmSearchDAO realmSearchDAO, ExternalResourceDAO resourceDAO, ConnInstanceDataBinder connInstanceDataBinder, AsyncConnectorFacade asyncFacade, EntityFactory entityFactory)
-
-
Method Details
-
getBeanName
-
readConnector
- Specified by:
readConnector
in interfaceConnectorManager
-
getConnector
Description copied from interface:ConnectorManager
Get existing connector bean for the given resource or create if not found.- Specified by:
getConnector
in interfaceConnectorManager
- Parameters:
resource
- the resource- Returns:
- live connector bean for given resource
-
buildConnInstanceOverride
public ConnInstance buildConnInstanceOverride(ConnInstanceTO connInstance, Optional<List<ConnConfProperty>> confOverride, Optional<Set<ConnectorCapability>> capabilitiesOverride) Description copied from interface:ConnectorManager
Builds connector instance override over base connector instance, configuration and capabilities.- Specified by:
buildConnInstanceOverride
in interfaceConnectorManager
- Parameters:
connInstance
- base connector instanceconfOverride
- configuration overridecapabilitiesOverride
- capabilities override- Returns:
- connector instance override over base connector instance, configuration and capabilities
-
createConnector
Description copied from interface:ConnectorManager
Create connector from given connector instance.- Specified by:
createConnector
in interfaceConnectorManager
- Parameters:
connInstance
- connector instance- Returns:
- connector
-
registerConnector
Description copied from interface:ConnectorManager
Create and register into Spring context a bean for the given resource.- Specified by:
registerConnector
in interfaceConnectorManager
- Parameters:
resource
- external resource
-
unregisterConnector
-
unregisterConnector
Description copied from interface:ConnectorManager
Removes the Spring bean for the given resource from the context.- Specified by:
unregisterConnector
in interfaceConnectorManager
- Parameters:
resource
- external resource
-
load
Description copied from interface:ConnectorManager
Load connectors for all existing resources.- Specified by:
load
in interfaceConnectorManager
- See Also:
-
unload
Description copied from interface:ConnectorManager
Unload connectors for all existing resources.- Specified by:
unload
in interfaceConnectorManager
- See Also:
-