Class ConnectorConfigImpl

    • Field Detail

      • parserConfig

        protected ParserConfig parserConfig
        Parser configuration.
    • Constructor Detail

      • ConnectorConfigImpl

        public ConnectorConfigImpl()
        Non-arg constructor
      • ConnectorConfigImpl

        public ConnectorConfigImpl​(java.lang.Object config)
        Constructor with one parameter.
        Parameters:
        config -
    • Method Detail

      • init

        public void init()
                  throws java.lang.Exception
        This method initializes the ConnectorConfig object, adds children to it and initializes them too.
        Specified by:
        init in interface BaseConfiguration
        Overrides:
        init in class BaseConfigurationImpl
        Throws:
        java.lang.Exception - if could not parse or initialize some configuration
      • updateInheritsFrom

        public void updateInheritsFrom​(java.lang.String ref)
                                throws java.lang.Exception
        Sets the name of the object from which this object should inherit its values and calls the setupInheritanceChain to activate the change.
        Specified by:
        updateInheritsFrom in interface BaseConfiguration
        Overrides:
        updateInheritsFrom in class BaseConfigurationImpl
        Parameters:
        ref - The new inheritsFromRef value
        Throws:
        java.lang.Exception - if the operation does not succeed
      • getMode

        public java.lang.String getMode()
        Specified by:
        getMode in interface ConnectorConfig
        Returns:
        Connector mode; if it is not set return default value of "AddOnly"
      • setMode

        public void setMode​(java.lang.String mode)
        Sets the mode attribute of the ConnectorConfig object
        Specified by:
        setMode in interface ConnectorConfig
        Parameters:
        mode - The new mode value
      • getSchema

        public SchemaConfig getSchema​(java.lang.String name)
        Specified by:
        getSchema in interface ConnectorConfig
        Parameters:
        name - name of the schema
        Returns:
        a named Schema config
      • getSchema

        public SchemaConfig getSchema​(boolean input)
        Specified by:
        getSchema in interface ConnectorConfig
        Parameters:
        input - input if true return Input schema else Output schema
        Returns:
        input or output schema config
      • getConnectorScript

        public java.lang.String getConnectorScript()
        Script connectors
        Specified by:
        getConnectorScript in interface ConnectorConfig
        Returns:
        The connectorScript value
      • setConnectorScript

        public void setConnectorScript​(java.lang.String script)
        Sets the connectorScript attribute of the ConnectorConfig object
        Specified by:
        setConnectorScript in interface ConnectorConfig
        Parameters:
        script - The new connectorScript value
      • getAttributeMap

        public AttributeMapConfig getAttributeMap​(boolean input)
        Gets the attributeMap attribute of the ConnectorConfig object
        Specified by:
        getAttributeMap in interface ConnectorConfig
        Parameters:
        input - a boolean value specifying whether the input or output Attribute map to retrieve
        Returns:
        The attributeMap value
      • getAttributeMap

        public AttributeMapConfig getAttributeMap​(java.lang.Object name)
        Gets the attributeMap attribute of the ConnectorConfig object
        Specified by:
        getAttributeMap in interface ConnectorConfig
        Parameters:
        name - the name of the Attribute map to retrieve
        Returns:
        The attributeMap value
      • setAttributeMap

        public void setAttributeMap​(AttributeMapConfig attributeMap)
        Sets the attributeMap attribute of the ConnectorConfig object
        Specified by:
        setAttributeMap in interface ConnectorConfig
        Parameters:
        attributeMap - The new attributeMap value
      • setAttributeMap

        public void setAttributeMap​(AttributeMapConfig attributeMap,
                                    boolean input)
        Sets the attributeMap attribute of the ConnectorConfig object
        Specified by:
        setAttributeMap in interface ConnectorConfig
        Parameters:
        attributeMap - The new attributeMap value
        input - The new attributeMap value
      • setLinkCriteria

        public void setLinkCriteria​(LinkCriteriaConfig linkCriteria)
        Sets the linkCriteria attribute of the ConnectorConfig object
        Specified by:
        setLinkCriteria in interface ConnectorConfig
        Parameters:
        linkCriteria - The new linkCriteria value
      • setConnectionConfig

        public void setConnectionConfig​(RawConnectorConfig rcc)
        Sets the connectionConfig attribute of the connector config.
        Parameters:
        rcc - new RawConnectorConfig object to set
      • setParserConfig

        public void setParserConfig​(ParserConfig parser)
        Sets the parserConfig attribute of the ConnectorConfig object
        Specified by:
        setParserConfig in interface ConnectorConfig
        Parameters:
        parser - The new parserConfig value
      • getState

        public java.lang.String getState()
        State (typically used in the AssemblyLine)
        Specified by:
        getState in interface ConnectorConfig
        Returns:
        The configured state
      • setState

        public void setState​(java.lang.String state)
        Sets the state attribute of the ConnectorConfig object
        Specified by:
        setState in interface ConnectorConfig
        Parameters:
        state - The new state
      • getComputeChanges

        public boolean getComputeChanges()
        Returns the compute-changes flag for Update mode connector.
        Specified by:
        getComputeChanges in interface ConnectorConfig
        Returns:
        The enabled value
      • setComputeChanges

        public void setComputeChanges​(boolean cc)
        Sets the compute-changes flag for Update mode connector.
        Specified by:
        setComputeChanges in interface ConnectorConfig
        Parameters:
        cc - The compute-change flag to set.
      • setSkipLookup

        public void setSkipLookup​(boolean skipLookup)
        Sets the Skip Lookup option to the Connector.
        Specified by:
        setSkipLookup in interface ConnectorConfig
        Parameters:
        skipLookup - The new value of the Skip Lookup option.
      • getSkipLookup

        public boolean getSkipLookup()
        Gets the Skip Lookup option from the Connector.
        Specified by:
        getSkipLookup in interface ConnectorConfig
        Returns:
        true if Skip Lookup is enabled.
      • supportsSkipLookup

        public boolean supportsSkipLookup()
        Checks whether the Connector supports Skip Lookup.
        Specified by:
        supportsSkipLookup in interface ConnectorConfig
        Returns:
        true if the Connector supports Skip Lookup.
      • getDeltaBehavior

        public int getDeltaBehavior()
        Specified by:
        getDeltaBehavior in interface ConnectorConfig
        Returns:
        true if the connector uses delta behavior
      • setDeltaStrict

        public void setDeltaStrict​(boolean strict)
        Sets the delta strict flag.
        Specified by:
        setDeltaStrict in interface ConnectorConfig
      • getServerOption

        public java.lang.String getServerOption()
        Specified by:
        getServerOption in interface ConnectorConfig
        Returns:
        the server option (entry or connector) that determines whether the connector returns a connector instance or an entry in server mode.
      • getReplyRequired

        public boolean getReplyRequired()
        Specified by:
        getReplyRequired in interface ConnectorConfig
        Returns:
        true if the connector requires a response in server or iterator mode.
      • isEntryFeed

        public boolean isEntryFeed()
        Specified by:
        isEntryFeed in interface ConnectorConfig
        Returns:
        true if the connector is an entry feed connector
      • createOperation

        public OperationConfig createOperation​(java.lang.String name)
                                        throws java.lang.Exception
        This method creates a new operation object.
        Specified by:
        createOperation in interface OperationsConfig
        Throws:
        java.lang.Exception
      • getOperationCarrier

        public java.lang.String getOperationCarrier()
        Specified by:
        getOperationCarrier in interface ConnectorConfig
        Returns:
        the name of the operation carrier
      • setOperationCarrier

        public void setOperationCarrier​(java.lang.String name)
        This method sets the name of the operation carrier
        Specified by:
        setOperationCarrier in interface ConnectorConfig
      • getOperationCarrierIsProperty

        public boolean getOperationCarrierIsProperty()
        Specified by:
        getOperationCarrierIsProperty in interface ConnectorConfig
        Returns:
        whether the operation carrier is an entry attribute or entry property
      • setOperationCarrierIsProperty

        public void setOperationCarrierIsProperty​(boolean isproperty)
        This method sets whether the operation carrier is an entry attribute or entry property.
        Specified by:
        setOperationCarrierIsProperty in interface ConnectorConfig
      • flatten

        public boolean flatten​(java.util.List<java.lang.String> excludedNS)
                        throws java.lang.Exception
        This method combines all values from this object and its inherited objects into one single config object. After flattening, the object is a complete object with no inherited values except those from the excludedNS list.
        Specified by:
        flatten in interface BaseConfiguration
        Overrides:
        flatten in class BaseConfigurationImpl
        Parameters:
        excludedNS - List of namespaces to exclude from flattening
        Returns:
        true if object attempted flattening, FALSE is this object inherits from an excluded namespace or has no inheritance
        Throws:
        java.lang.Exception
      • getReferences

        public java.util.List<java.lang.String> getReferences​(java.util.List<java.lang.String> list)
        Specified by:
        getReferences in interface BaseConfiguration
        Overrides:
        getReferences in class BaseConfigurationImpl
        Parameters:
        list - If non-null, the object must use the provided list rather than creating its own
        Returns:
        a list of all references to other object from which this object or its children inherit from.
      • getInitializeOption

        public int getInitializeOption()
        Specified by:
        getInitializeOption in interface ConnectorConfig
        Returns:
        the initialization option for the component
      • setInitializeOption

        public void setInitializeOption​(int option)
        This method sets the the initialization option for the component
        Specified by:
        setInitializeOption in interface ConnectorConfig
      • setPublishedInitParams

        public void setPublishedInitParams​(SchemaConfig schema)
        Sets the Published Initialization Parameter Schema for the AssemblyLine
        Specified by:
        setPublishedInitParams in interface OperationsConfig
        Parameters:
        schema - The new schema
      • getLimitOption

        public java.lang.String getLimitOption()
        Returns the Read Limit or Loop Limit for the Connector
        Specified by:
        getLimitOption in interface ConnectorConfig
      • setLimitOption

        public void setLimitOption​(java.lang.String option)
        Sets the Read Limit or Loop Limit for the Connector
        Specified by:
        setLimitOption in interface ConnectorConfig
        Parameters:
        option - A string representing the number.
      • getSupportedModes

        public java.lang.String getSupportedModes()
        Description copied from interface: ConnectorConfig
        Returns the supported modes for this Connector.
        Specified by:
        getSupportedModes in interface ConnectorConfig
        Returns:
        the supported modes, as a comma separated String
      • setSupportedModes

        public void setSupportedModes​(java.lang.String modes)
        Description copied from interface: ConnectorConfig
        Sets the supported modes for this Connector
        Specified by:
        setSupportedModes in interface ConnectorConfig
        Parameters:
        modes - Supported modes as a comma separated String.