use of org.wso2.carbon.apimgt.core.exception.GatewayException in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method deleteApplication.
@Override
public void deleteApplication(String applicationId) throws GatewayException {
if (applicationId != null) {
ApplicationEvent applicationEvent = new ApplicationEvent(APIMgtConstants.GatewayEventTypes.APPLICATION_DELETE);
applicationEvent.setApplicationId(applicationId);
publishToStoreTopic(applicationEvent);
if (log.isDebugEnabled()) {
log.debug("Application : " + applicationId + " deleted event has been successfully published " + "to broker");
}
}
}
use of org.wso2.carbon.apimgt.core.exception.GatewayException in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method updateAPISubscriptionStatus.
@Override
public void updateAPISubscriptionStatus(List<SubscriptionValidationData> subscriptionValidationDataList) throws GatewayException {
SubscriptionEvent subscriptionBlockEvent = new SubscriptionEvent(APIMgtConstants.GatewayEventTypes.SUBSCRIPTION_STATUS_CHANGE);
subscriptionBlockEvent.setSubscriptionsList(subscriptionValidationDataList);
publishToStoreTopic(subscriptionBlockEvent);
if (log.isDebugEnabled()) {
log.debug("Subscription updated event has been successfully published to broker");
}
}
use of org.wso2.carbon.apimgt.core.exception.GatewayException in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method updateThreatProtectionPolicy.
/**
* {@inheritDoc}
*/
@Override
public void updateThreatProtectionPolicy(ThreatProtectionPolicy policy) throws GatewayException {
ThreatProtectionEvent event = new ThreatProtectionEvent(APIMgtConstants.GatewayEventTypes.THREAT_PROTECTION_POLICY_UPDATE);
event.setPolicy(policy);
publishToThreatProtectionTopic(event);
}
use of org.wso2.carbon.apimgt.core.exception.GatewayException in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method updateAPI.
@Override
public void updateAPI(API api) throws GatewayException {
// build the message to send
APIEvent apiUpdateEvent = new APIEvent(APIMgtConstants.GatewayEventTypes.API_UPDATE);
apiUpdateEvent.setLabels(api.getLabels());
apiUpdateEvent.setApiSummary(toAPISummary(api));
publishToPublisherTopic(apiUpdateEvent);
if (log.isDebugEnabled()) {
log.debug("API : " + api.getName() + " updated event has been successfully published to broker");
}
}
use of org.wso2.carbon.apimgt.core.exception.GatewayException in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method deleteEndpoint.
@Override
public void deleteEndpoint(Endpoint endpoint) throws GatewayException {
EndpointEvent dto = new EndpointEvent(APIMgtConstants.GatewayEventTypes.ENDPOINT_DELETE);
dto.setEndpoint(endpoint);
publishToPublisherTopic(dto);
}
Aggregations