Build an Adapter Package

Ensure that the adapter package contains the following folders:

  • adapterCode. Under this folder, create a folder named PushExampleAdapter, which will contain the .jar file we created from the PushExampleAdapter.java. It will also contain a folder named mappings, where you can place the mapping file created earlier, computerIPMapping.xml. It should also contain another folder named scripts that contains the PushFunctions.groovy file.

  • discoveryConfigFiles. To contain configuration files such as the error codes used when reporting an error using UpdateResult. In this example, the folder is empty.

  • discoveryPatterns. To contain the push_example_adapter.xml.

  • tql. To contain the TQL query created for the example. This folder is optional, but when the package is deployed, the TQL query is automatically created.

Enable/Disable Attribute and Link Validation at Adapter Level

You can enable or disable attribute and link validation at adapter level for generic adapters by adding the following setting:

<adapter-settings>
        <adapter-setting name="enable.attributes.links.validation">true</adapter-setting>
</adapter-settings>

To enable adapter level validation of attribute and link, set the adapter setting enable.attributes.links.validation to true.

To disable adapter level validation of attribute and link, set the adapter setting enable.attributes.links.validation to false.

Note: If the setting is not present, its default value is true, which means that by default the attribute and link validation is enabled.