congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ManagedConnector
Code IndexAdd Tabnine to your IDE (free)

How to use
ManagedConnector
in
com.evolveum.midpoint.provisioning.ucf.api

Best Java code snippets using com.evolveum.midpoint.provisioning.ucf.api.ManagedConnector (Showing top 5 results out of 315)

origin: Evolveum/midpoint

@ManagedConnector(type="ManualConnector", version="1.0.0")
public class ManualConnectorInstance extends AbstractManualConnectorInstance implements RepositoryAware, CaseManagerAware, TaskManagerAware {
origin: Evolveum/midpoint

private ConnectorStruct createConnectorStruct(Class connectorClass, ManagedConnector annotation) throws ObjectNotFoundException, SchemaException {
  ConnectorStruct struct = new ConnectorStruct();
  struct.connectorClass = connectorClass;
  ConnectorType connectorType = new ConnectorType();
  String bundleName = connectorClass.getPackage().getName();
  String type = annotation.type();
  if (type == null || type.isEmpty()) {
    type = connectorClass.getSimpleName();
  }
  String version = annotation.version();
  UcfUtil.addConnectorNames(connectorType, "Built-in", bundleName, type, version, null);
  connectorType.setConnectorBundle(bundleName);
  connectorType.setConnectorType(type);
  connectorType.setVersion(version);
  connectorType.setFramework(SchemaConstants.UCF_FRAMEWORK_URI_BUILTIN);
  String namespace = CONFIGURATION_NAMESPACE_PREFIX + bundleName + "/" + type;
  connectorType.setNamespace(namespace);
  struct.connectorObject = connectorType;
  PrismSchema connectorSchema = generateConnectorConfigurationSchema(struct);
  if (connectorSchema != null) {
    LOGGER.trace("Generated connector schema for {}: {} definitions",
        connectorType, connectorSchema.getDefinitions().size());
    UcfUtil.setConnectorSchema(connectorType, connectorSchema);
    struct.connectorConfigurationSchema = connectorSchema;
  } else {
    LOGGER.warn("No connector schema generated for {}", connectorType);
  }
  return struct;
}
origin: Evolveum/midpoint

private void discoverConnectors() {
  connectorMap = new HashMap<>();
  ClassPathScanningCandidateComponentProvider scanner =
      new ClassPathScanningCandidateComponentProvider(false);
  scanner.addIncludeFilter(new AnnotationTypeFilter(ManagedConnector.class));
  LOGGER.trace("Scanning package {}", SCAN_PACKAGE);
  for (BeanDefinition bd : scanner.findCandidateComponents(SCAN_PACKAGE)) {
    LOGGER.debug("Found connector class {}", bd);
    String beanClassName = bd.getBeanClassName();
    try {
      Class connectorClass = Class.forName(beanClassName);
      ManagedConnector annotation = (ManagedConnector) connectorClass.getAnnotation(ManagedConnector.class);
      String type = annotation.type();
      LOGGER.debug("Found connector {} class {}", type, connectorClass);
      ConnectorStruct struct = createConnectorStruct(connectorClass, annotation);
      connectorMap.put(type, struct);
    } catch (ClassNotFoundException e) {
      LOGGER.error("Error loading connector class {}: {}", beanClassName, e.getMessage(), e);
    } catch (ObjectNotFoundException | SchemaException e) {
      LOGGER.error("Error discovering the connector {}: {}", beanClassName, e.getMessage(), e);
    }
  }
  LOGGER.trace("Scan done");
}
origin: Evolveum/midpoint

@ManagedConnector
public abstract class AbstractManualConnectorInstance extends AbstractManagedConnectorInstance implements AsynchronousOperationQueryable {
origin: Evolveum/midpoint

@ManagedConnector(type="DummyItsmIntegrationConnector", version="1.0.0")
public class DummyItsmIntegrationConnectorInstance extends AbstractManualConnectorInstance {
com.evolveum.midpoint.provisioning.ucf.apiManagedConnector

Most used methods

  • <init>
  • type
  • version

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JList (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now