com.evolveum.midpoint.provisioning.impl
Class ConnectorTypeManager

java.lang.Object
  extended by com.evolveum.midpoint.provisioning.impl.ConnectorTypeManager

@Component
public class ConnectorTypeManager
extends java.lang.Object

Class that manages the ConnectorType objects in repository. It creates new ConnectorType objects when a new local connector is discovered, takes care of remote connector discovery, etc.

Author:
Radovan Semancik

Constructor Summary
ConnectorTypeManager()
           
 
Method Summary
 java.util.Set<ConnectorType> discoverConnectors(ConnectorHostType hostType, OperationResult parentResult)
          Lists local connectors and makes sure that appropriate ConnectorType objects for them exist in repository.
 java.util.Set<ConnectorType> discoverLocalConnectors(OperationResult parentResult)
           
 ConnectorInstance getConfiguredConnectorInstance(ResourceType resource, OperationResult result)
           
 ConnectorType getConnectorType(ResourceType resource, OperationResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorTypeManager

public ConnectorTypeManager()
Method Detail

getConfiguredConnectorInstance

public ConnectorInstance getConfiguredConnectorInstance(ResourceType resource,
                                                        OperationResult result)
                                                 throws ObjectNotFoundException,
                                                        SchemaException,
                                                        CommunicationException
Throws:
ObjectNotFoundException
SchemaException
CommunicationException

getConnectorType

public ConnectorType getConnectorType(ResourceType resource,
                                      OperationResult result)
                               throws ObjectNotFoundException,
                                      SchemaException
Throws:
ObjectNotFoundException
SchemaException

discoverLocalConnectors

public java.util.Set<ConnectorType> discoverLocalConnectors(OperationResult parentResult)

discoverConnectors

public java.util.Set<ConnectorType> discoverConnectors(ConnectorHostType hostType,
                                                       OperationResult parentResult)
                                                throws CommunicationException
Lists local connectors and makes sure that appropriate ConnectorType objects for them exist in repository. It will never delete any repository object, even if the corresponding connector cannot be found. The connector may temporarily removed, may be present on a different node, manual upgrade may be needed etc.

Returns:
set of discovered connectors (new connectors found)
Throws:
CommunicationException


Copyright © 2011 evolveum. All Rights Reserved.