if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.CONTROLLER_SERVICE.name())) { return authorizableLookup.getControllerService(componentId).getAuthorizable(); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.CONNECTION.name())) { return authorizableLookup.getConnection(componentId).getAuthorizable(); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.FUNNEL.name())) { return authorizableLookup.getFunnel(componentId); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.INPUT_PORT.name())) { return authorizableLookup.getInputPort(componentId); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.OUTPUT_PORT.name())) { return authorizableLookup.getOutputPort(componentId); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.LABEL.name())) { return authorizableLookup.getLabel(componentId); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.PROCESS_GROUP.name())) { return authorizableLookup.getProcessGroup(componentId).getAuthorizable(); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.PROCESSOR.name())) { return authorizableLookup.getProcessor(componentId).getAuthorizable(); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.REMOTE_INPUT_PORT.name())) { return authorizableLookup.getRemoteProcessGroup(versionedComponent.getInstanceGroupId()); if (componentTypeName.equals(org.apache.nifi.registry.flow.ComponentType.REMOTE_OUTPUT_PORT.name())) { return authorizableLookup.getRemoteProcessGroup(versionedComponent.getInstanceGroupId());
return createAffectedComponentEntity((InstantiatedVersionedComponent) localComponent, localComponent.getComponentType().name(), state); }) .collect(Collectors.toCollection(HashSet::new));