All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.mt.subscription.exits.SubscribeExit Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
/*******************************************************************************
 *   © 2019-2024 SAP SE or an SAP affiliate company. All rights reserved.
 ******************************************************************************/
package com.sap.cloud.mt.subscription.exits;

import com.sap.cloud.mt.subscription.exceptions.InternalError;
import com.sap.cloud.mt.subscription.json.SubscriptionPayload;
import com.sap.cloud.mt.tools.api.InstanceCreationOptions;

import java.net.URL;

public interface SubscribeExit {
	default InstanceCreationOptions onBeforeSubscribe(String tenantId, SubscriptionPayload subscriptionPayload) throws InternalError {
		return null;
	}

	default InstanceCreationOptions onBeforeAsyncSubscribe(String tenantId, SubscriptionPayload subscriptionPayload) throws InternalError {
		return null;
	}

	default void onAfterSubscribe(String tenantId, SubscriptionPayload subscriptionPayload, boolean wasSuccessful) {
	}

	default void onAfterAsyncSubscribe(String tenantId, SubscriptionPayload subscriptionPayload, boolean wasSuccessful) {
	}

	default URL uiURL() {
		return null;
	}

	default URL uiURL(SubscriptionPayload subscriptionPayload) {
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy