Class ConnectorServiceImpl

    • Constructor Detail

      • ConnectorServiceImpl

        public ConnectorServiceImpl​(ConnectorLogic logic)
    • Method Detail

      • create

        public javax.ws.rs.core.Response create​(ConnInstanceTO connInstanceTO)
        Description copied from interface: ConnectorService
        Creates a new connector instance.
        Specified by:
        create in interface ConnectorService
        Parameters:
        connInstanceTO - connector instance to be created
        Returns:
        Response object featuring Location header of created connector instance
      • delete

        public void delete​(String key)
        Description copied from interface: ConnectorService
        Deletes the connector instance matching the provided key.
        Specified by:
        delete in interface ConnectorService
        Parameters:
        key - connector instance key to be deleted
      • getBundles

        public List<ConnIdBundle> getBundles​(String lang)
        Description copied from interface: ConnectorService
        Returns available connector bundles with property keys in selected language.
        Specified by:
        getBundles in interface ConnectorService
        Parameters:
        lang - language to select property keys; default language is English
        Returns:
        available connector bundles with property keys in selected language
      • buildObjectClassInfo

        public List<ConnIdObjectClass> buildObjectClassInfo​(ConnInstanceTO connInstanceTO,
                                                            boolean includeSpecial)
        Description copied from interface: ConnectorService
        Builds the list of ConnId object classes information for the connector bundle matching the given connector instance key, with the provided configuration.
        Specified by:
        buildObjectClassInfo in interface ConnectorService
        Parameters:
        connInstanceTO - connector instance object providing configuration properties
        includeSpecial - if set to true, special schema names (like '__PASSWORD__') will be included; default is false
        Returns:
        supported object classes info for the connector bundle matching the given connector instance key, with the provided configuration
      • list

        public List<ConnInstanceTO> list​(String lang)
        Description copied from interface: ConnectorService
        Returns a list of all connector instances with property keys in the matching language.
        Specified by:
        list in interface ConnectorService
        Parameters:
        lang - language to select property keys, null for default (English). An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length.
        Returns:
        list of all connector instances with property keys in the matching language
      • read

        public ConnInstanceTO read​(String key,
                                   String lang)
        Description copied from interface: ConnectorService
        Returns connector instance with matching key.
        Specified by:
        read in interface ConnectorService
        Parameters:
        key - connector instance key to be read
        lang - language to select property keys, null for default (English). An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length.
        Returns:
        connector instance with matching key
      • readByResource

        public ConnInstanceTO readByResource​(String resourceName,
                                             String lang)
        Description copied from interface: ConnectorService
        Returns connector instance for matching resource.
        Specified by:
        readByResource in interface ConnectorService
        Parameters:
        resourceName - resource name to be used for connector lookup
        lang - language to select property keys, null for default (English). An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length.
        Returns:
        connector instance for matching resource
      • update

        public void update​(ConnInstanceTO connInstanceTO)
        Description copied from interface: ConnectorService
        Updates the connector instance matching the provided key.
        Specified by:
        update in interface ConnectorService
        Parameters:
        connInstanceTO - connector instance to be stored
      • check

        public void check​(ConnInstanceTO connInstanceTO)
        Description copied from interface: ConnectorService
        Checks whether the connection to resource could be established.
        Specified by:
        check in interface ConnectorService
        Parameters:
        connInstanceTO - connector instance to be used for connection check