@Override
public ExecutionResult execute(PolicyContext context) {
AbstractComponent rootComponent = PlatformAccess.getPlatform().getRootComponent();
ExecutionResult trueResult = new ExecutionResult(context, true, EM_STR);
TelemetryDataTaxonomyComponent component = context.getProperty(PolicyContext.PropertyName.TARGET_COMPONENT.getName(), TelemetryDataTaxonomyComponent.class);
if (component == null || component != rootComponent)
return trueResult;
ViewType viewType = context.getProperty(PolicyContext.PropertyName.VIEW_TYPE.getName(), ViewType.class);
return viewType != ViewType.OBJECT ? trueResult : new ExecutionResult(context, false, EM_STR);