Interface PreEnableResourceCallback


  • public interface PreEnableResourceCallback
    Callback which is called before executing the main logic of enabling a resource
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ConnectorResponse execute​(String resourceIngestionDefinitionId)
      Callback which is called before executing the main logic of enabling a resource and after validation (whether a given resource exists and whether the resource is not already enabled).
    • Method Detail

      • execute

        ConnectorResponse execute​(String resourceIngestionDefinitionId)
        Callback which is called before executing the main logic of enabling a resource and after validation (whether a given resource exists and whether the resource is not already enabled). If it returns a response with code different from OK, the enabling logic will not be executed and ENABLE_RESOURCE procedure will return this error.
        Parameters:
        resourceIngestionDefinitionId - id of a resource ingestion definition which is planned to be enabled
        Returns:
        a response with the code OK if the execution was successful, otherwise a response with an error code and an error message