Search in sources :

Example 1 with ThreatProtectionEvent

use of org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent 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);
}
Also used : ThreatProtectionEvent(org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent)

Example 2 with ThreatProtectionEvent

use of org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent in project carbon-apimgt by wso2.

the class APIGatewayPublisherImpl method deleteThreatProtectionPolicy.

/**
 * {@inheritDoc}
 */
@Override
public void deleteThreatProtectionPolicy(ThreatProtectionPolicy policy) throws GatewayException {
    ThreatProtectionEvent event = new ThreatProtectionEvent(APIMgtConstants.GatewayEventTypes.THREAT_PROTECTION_POLICY_DELETE);
    event.setPolicy(policy);
    publishToThreatProtectionTopic(event);
}
Also used : ThreatProtectionEvent(org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent)

Example 3 with ThreatProtectionEvent

use of org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent in project carbon-apimgt by wso2.

the class APIGatewayPublisherImpl method addThreatProtectionPolicy.

/**
 * {@inheritDoc}
 */
@Override
public void addThreatProtectionPolicy(ThreatProtectionPolicy policy) throws GatewayException {
    ThreatProtectionEvent event = new ThreatProtectionEvent(APIMgtConstants.GatewayEventTypes.THREAT_PROTECTION_POLICY_ADD);
    event.setPolicy(policy);
    publishToThreatProtectionTopic(event);
}
Also used : ThreatProtectionEvent(org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent)

Aggregations

ThreatProtectionEvent (org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent)3