use of org.wso2.carbon.apimgt.keymgt.model.SubscriptionDataStore in project carbon-apimgt by wso2.
the class KeyManagerDataServiceImpl method updateDeployedAPIRevision.
@Override
public void updateDeployedAPIRevision(DeployAPIInGatewayEvent event) {
if (log.isDebugEnabled()) {
log.debug("Add or Update API in datastore in tenant " + event.getTenantDomain());
}
SubscriptionDataStore store = SubscriptionDataHolder.getInstance().getTenantSubscriptionStore(event.getTenantDomain());
if (store == null) {
if (log.isDebugEnabled()) {
log.debug("Ignoring the Event due to tenant " + event.getTenantDomain() + " not loaded");
}
return;
}
store.addOrUpdateAPIRevisionWithUrlTemplates(event);
}
use of org.wso2.carbon.apimgt.keymgt.model.SubscriptionDataStore in project carbon-apimgt by wso2.
the class KeyManagerDataServiceImpl method addOrUpdateApplicationPolicy.
@Override
public void addOrUpdateApplicationPolicy(ApplicationPolicyEvent event) {
if (log.isDebugEnabled()) {
log.debug("Add or Update Application Policy in datastore in tenant " + event.getTenantDomain());
}
SubscriptionDataStore store = SubscriptionDataHolder.getInstance().getTenantSubscriptionStore(event.getTenantDomain());
if (store == null) {
if (log.isDebugEnabled()) {
log.debug("Ignoring the Event due to tenant " + event.getTenantDomain() + " not loaded");
}
return;
}
store.addOrUpdateApplicationPolicy(getApplicationPolicyFromApplicationPolicyEvent(event));
}
use of org.wso2.carbon.apimgt.keymgt.model.SubscriptionDataStore in project carbon-apimgt by wso2.
the class KeyManagerDataServiceImpl method removeAPI.
@Override
public void removeAPI(APIEvent event) {
if (log.isDebugEnabled()) {
log.debug("Remove API in datastore in tenant " + event.getTenantDomain());
}
SubscriptionDataStore store = SubscriptionDataHolder.getInstance().getTenantSubscriptionStore(event.getTenantDomain());
if (store == null) {
if (log.isDebugEnabled()) {
log.debug("Ignoring the Event due to tenant " + event.getTenantDomain() + " not loaded");
}
return;
}
store.removeAPI(getAPIFromAPIEvent(event));
}
use of org.wso2.carbon.apimgt.keymgt.model.SubscriptionDataStore in project carbon-apimgt by wso2.
the class KeyManagerDataServiceImpl method addOrUpdateApplication.
@Override
public void addOrUpdateApplication(ApplicationEvent event) {
if (log.isDebugEnabled()) {
log.debug("Add or Update Application in datastore in tenant " + event.getTenantDomain());
}
SubscriptionDataStore store = SubscriptionDataHolder.getInstance().getTenantSubscriptionStore(event.getTenantDomain());
if (store == null) {
if (log.isDebugEnabled()) {
log.debug("Ignoring the Event due to tenant " + event.getTenantDomain() + " not loaded");
}
return;
}
store.addOrUpdateApplication(getApplicationFromApplicationEvent(event));
}
use of org.wso2.carbon.apimgt.keymgt.model.SubscriptionDataStore in project carbon-apimgt by wso2.
the class KeyManagerDataServiceImpl method addOrUpdateAPI.
@Override
public void addOrUpdateAPI(APIEvent event) {
if (log.isDebugEnabled()) {
log.debug("Add or Update API in datastore in tenant " + event.getTenantDomain());
}
SubscriptionDataStore store = SubscriptionDataHolder.getInstance().getTenantSubscriptionStore(event.getTenantDomain());
if (store == null) {
if (log.isDebugEnabled()) {
log.debug("Ignoring the Event due to tenant " + event.getTenantDomain() + " not loaded");
}
return;
}
store.addOrUpdateAPIWithUrlTemplates(getAPIFromAPIEvent(event));
}
Aggregations