Class RemoteConnectorInfoManagerImpl
- java.lang.Object
-
- org.identityconnectors.framework.impl.api.remote.RemoteConnectorInfoManagerImpl
-
- All Implemented Interfaces:
Runnable
,ConnectorEventPublisher
,ConnectorInfoManager
public class RemoteConnectorInfoManagerImpl extends Object implements ConnectorInfoManager, ConnectorEventPublisher, Runnable
-
-
Constructor Summary
Constructors Constructor Description RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info)
RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info, boolean loadConnectorInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnectorEventHandler(ConnectorEventHandler hook)
Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set.void
deleteConnectorEventHandler(ConnectorEventHandler hook)
Deletes an observer from the set of observers of this object.RemoteConnectorInfoManagerImpl
derive(RemoteFrameworkConnectionInfo info)
Derives another RemoteConnectorInfoManagerImpl with a different RemoteFrameworkConnectionInfo but with the same metadata.ConnectorInfo
findConnectorInfo(ConnectorKey key)
Returns theConnectorInfo
that is associated with the specifiedConnectorKey
.List<ConnectorInfo>
getConnectorInfos()
Returns the list ofConnectorInfo
instances.List<ConnectorKey>
getConnectorKeys()
Map<String,Object>
getServerInfo()
void
run()
-
-
-
Constructor Detail
-
RemoteConnectorInfoManagerImpl
public RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info) throws RuntimeException
- Throws:
RuntimeException
-
RemoteConnectorInfoManagerImpl
public RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info, boolean loadConnectorInfo)
-
-
Method Detail
-
derive
public RemoteConnectorInfoManagerImpl derive(RemoteFrameworkConnectionInfo info)
Derives another RemoteConnectorInfoManagerImpl with a different RemoteFrameworkConnectionInfo but with the same metadata.- Parameters:
info
-- Returns:
-
findConnectorInfo
public ConnectorInfo findConnectorInfo(ConnectorKey key)
Description copied from interface:ConnectorInfoManager
Returns theConnectorInfo
that is associated with the specifiedConnectorKey
.- Specified by:
findConnectorInfo
in interfaceConnectorInfoManager
- Parameters:
key
- The key of a connector.- Returns:
- The
ConnectorInfo
ornull
if none was associated with the specified key.
-
getConnectorInfos
public List<ConnectorInfo> getConnectorInfos()
Description copied from interface:ConnectorInfoManager
Returns the list ofConnectorInfo
instances.- Specified by:
getConnectorInfos
in interfaceConnectorInfoManager
- Returns:
- the list of
ConnectorInfo
instances.
-
addConnectorEventHandler
public void addConnectorEventHandler(ConnectorEventHandler hook)
Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set. The order in which notifications will be delivered to multiple observers is not specified. See the class comment.- Specified by:
addConnectorEventHandler
in interfaceConnectorEventPublisher
- Parameters:
hook
- an observer to be added.
-
deleteConnectorEventHandler
public void deleteConnectorEventHandler(ConnectorEventHandler hook)
Deletes an observer from the set of observers of this object. Passingnull
to this method will have no effect.- Specified by:
deleteConnectorEventHandler
in interfaceConnectorEventPublisher
- Parameters:
hook
- the observer to be deleted.
-
getServerInfo
public Map<String,Object> getServerInfo() throws RuntimeException
- Throws:
RuntimeException
-
getConnectorKeys
public List<ConnectorKey> getConnectorKeys() throws RuntimeException
- Throws:
RuntimeException
-
-