Interface PreDisableResourceCallback


  • public interface PreDisableResourceCallback
    Callback which is called at the beginning of disabling a resource
    • Method Detail

      • execute

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