// retrieve validation info for the tenant
String tenantValidationInfoResourcePath =
StratosConstants.TENANT_USER_VALIDATION_STORE_PATH +
RegistryConstants.PATH_SEPARATOR + tenantId;
ThrottlingAccessValidation accessValidation = throttlingDataContext.getAccessValidation();
if (accessValidation == null) {
accessValidation = new ThrottlingAccessValidation();
throttlingDataContext.setAccessValidation(accessValidation);
}
try {
Registry governanceSystemRegistry = Util.getSuperTenantGovernanceSystemRegistry();
if (governanceSystemRegistry.resourceExists(tenantValidationInfoResourcePath)) {
Resource tenantValidationInfoResource =
governanceSystemRegistry.get(tenantValidationInfoResourcePath);
Properties properties = tenantValidationInfoResource.getProperties();
Set<String> actions = MeteringAccessValidationUtils.getAvailableActions(properties);
for (String action : actions) {
String blockActionStr =
tenantValidationInfoResource.getProperty(MeteringAccessValidationUtils
.generateIsBlockedPropertyKey(action));
String blockActionMsg =
tenantValidationInfoResource.getProperty(MeteringAccessValidationUtils
.generateErrorMsgPropertyKey(action));
accessValidation.setTenantBlocked(action, "true".equals(blockActionStr),
blockActionMsg);
}
}
} catch (RegistryException e) {