test_class.declarator: controllerServiceService
test_class.modifier: private
test_class.original_string: private FDControllerServiceService controllerServiceService;
test_class.type: FDControllerServiceService
test_class.var_name: controllerServiceService
test_class.file: efm/efm-flow-designer/efm-flow-designer-framework/src/test/java/com/cloudera/cem/efm/service/component/TestStandardFDControllerServiceService.java
test_class.identifier: TestStandardFDControllerServiceService
test_class.superclass: extends BaseFDServiceTest
test_case.body: @Test
      public void testDeleteControllerServiceSuccess() {
          when(flowManager.getFlow(flow.getFlowMetadata().getIdentifier())).thenReturn(Optional.of(flow));
          when(extensionManagers.getExtensionManager(flow.getFlowMetadata().getAgentClass())).thenReturn(Optional.of(extensionManager));
  
          assertEquals(1, group2.getControllerServices().size());
  
          controllerServiceService.delete(
                  flow.getFlowMetadata().getIdentifier(),
                  existingService.getIdentifier());
  
          assertEquals(0, group2.getControllerServices().size());
      }
test_case.class_method_signature: TestStandardFDControllerServiceService.testDeleteControllerServiceSuccess()
test_case.full_signature: @Test public void testDeleteControllerServiceSuccess()
test_case.identifier: testDeleteControllerServiceSuccess
test_case.invocations: thenReturn when getFlow getIdentifier getFlowMetadata of thenReturn when getExtensionManager getAgentClass getFlowMetadata of assertEquals size getControllerServices delete getIdentifier getFlowMetadata getIdentifier assertEquals size getControllerServices
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDeleteControllerServiceSuccess()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(StandardFDControllerServiceService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(StandardFDControllerServiceService.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: efm/efm-flow-designer/efm-flow-designer-framework/src/main/java/com/cloudera/cem/efm/service/component/StandardFDControllerServiceService.java
focal_class.identifier: StandardFDControllerServiceService
focal_class.interfaces: implements FDControllerServiceService
focal_class.class_method_signature: StandardFDControllerServiceService.StandardFDControllerServiceService(final FDFlowManager flowManager, final FDExtensionManagers extensionManagers, final ValidationService validationService)
focal_class.full_signature: @Autowired public  StandardFDControllerServiceService(final FDFlowManager flowManager, final FDExtensionManagers extensionManagers, final ValidationService validationService)
focal_class.identifier: StandardFDControllerServiceService
focal_class.modifiers: @Autowired public
focal_class.parameters: (final FDFlowManager flowManager, final FDExtensionManagers extensionManagers, final ValidationService validationService)
focal_class.signature:  StandardFDControllerServiceService(final FDFlowManager flowManager, final FDExtensionManagers extensionManagers, final ValidationService validationService)
focal_class.class_method_signature: StandardFDControllerServiceService.getControllerServiceTypes(final String flowId)
focal_class.full_signature: @Override public FDComponentTypes getControllerServiceTypes(final String flowId)
focal_class.identifier: getControllerServiceTypes
focal_class.modifiers: @Override public
focal_class.parameters: (final String flowId)
focal_class.return: FDComponentTypes
focal_class.signature: FDComponentTypes getControllerServiceTypes(final String flowId)
focal_class.class_method_signature: StandardFDControllerServiceService.create(final String flowId, final String processGroupId, final VersionedControllerService requestComponentConfig)
focal_class.full_signature: @Override public FDControllerService create(final String flowId, final String processGroupId, final VersionedControllerService requestComponentConfig)
focal_class.identifier: create
focal_class.modifiers: @Override public
focal_class.parameters: (final String flowId, final String processGroupId, final VersionedControllerService requestComponentConfig)
focal_class.return: FDControllerService
focal_class.signature: FDControllerService create(final String flowId, final String processGroupId, final VersionedControllerService requestComponentConfig)
focal_class.class_method_signature: StandardFDControllerServiceService.get(final String flowId, final String controllerServiceId)
focal_class.full_signature: @Override public FDControllerService get(final String flowId, final String controllerServiceId)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (final String flowId, final String controllerServiceId)
focal_class.return: FDControllerService
focal_class.signature: FDControllerService get(final String flowId, final String controllerServiceId)
focal_class.class_method_signature: StandardFDControllerServiceService.getForProcessGroup(final String flowId, final String processGroupId)
focal_class.full_signature: @Override public Set<FDControllerService> getForProcessGroup(final String flowId, final String processGroupId)
focal_class.identifier: getForProcessGroup
focal_class.modifiers: @Override public
focal_class.parameters: (final String flowId, final String processGroupId)
focal_class.return: Set<FDControllerService>
focal_class.signature: Set<FDControllerService> getForProcessGroup(final String flowId, final String processGroupId)
focal_class.class_method_signature: StandardFDControllerServiceService.getPropertyDescriptor(final String flowId, final String controllerServiceId, final String propertyName)
focal_class.full_signature: @Override public FDPropertyDescriptor getPropertyDescriptor(final String flowId, final String controllerServiceId, final String propertyName)
focal_class.identifier: getPropertyDescriptor
focal_class.modifiers: @Override public
focal_class.parameters: (final String flowId, final String controllerServiceId, final String propertyName)
focal_class.return: FDPropertyDescriptor
focal_class.signature: FDPropertyDescriptor getPropertyDescriptor(final String flowId, final String controllerServiceId, final String propertyName)
focal_class.class_method_signature: StandardFDControllerServiceService.getPropertyDescriptorFromExtensionManager(
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.full_signature: @Override protected Optional<PropertyDescriptor> getPropertyDescriptorFromExtensionManager(
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.identifier: getPropertyDescriptorFromExtensionManager
focal_class.modifiers: @Override protected
focal_class.parameters: (
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.return: Optional<PropertyDescriptor>
focal_class.signature: Optional<PropertyDescriptor> getPropertyDescriptorFromExtensionManager(
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.class_method_signature: StandardFDControllerServiceService.createDynamicPropertyDescriptorFromExtensionManager(
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.full_signature: @Override protected PropertyDescriptor createDynamicPropertyDescriptorFromExtensionManager(
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.identifier: createDynamicPropertyDescriptorFromExtensionManager
focal_class.modifiers: @Override protected
focal_class.parameters: (
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.return: PropertyDescriptor
focal_class.signature: PropertyDescriptor createDynamicPropertyDescriptorFromExtensionManager(
              final FDExtensionManager extensionManager, final String type,
              final Bundle bundle, final String propertyName)
focal_class.class_method_signature: StandardFDControllerServiceService.update(final String flowId, final VersionedControllerService requestComponentConfig)
focal_class.full_signature: @Override public FDControllerService update(final String flowId, final VersionedControllerService requestComponentConfig)
focal_class.identifier: update
focal_class.modifiers: @Override public
focal_class.parameters: (final String flowId, final VersionedControllerService requestComponentConfig)
focal_class.return: FDControllerService
focal_class.signature: FDControllerService update(final String flowId, final VersionedControllerService requestComponentConfig)
focal_class.class_method_signature: StandardFDControllerServiceService.revalidateReferencingComponents(final VersionedControllerService serviceConfig, final String flowId)
focal_class.full_signature: private void revalidateReferencingComponents(final VersionedControllerService serviceConfig, final String flowId)
focal_class.identifier: revalidateReferencingComponents
focal_class.modifiers: private
focal_class.parameters: (final VersionedControllerService serviceConfig, final String flowId)
focal_class.return: void
focal_class.signature: void revalidateReferencingComponents(final VersionedControllerService serviceConfig, final String flowId)
focal_class.class_method_signature: StandardFDControllerServiceService.findReferencingComponents(final String controllerServiceId, final VersionedProcessGroup group, final FDExtensionManager extensionManager)
focal_class.full_signature: private Set<VersionedComponent> findReferencingComponents(final String controllerServiceId, final VersionedProcessGroup group, final FDExtensionManager extensionManager)
focal_class.identifier: findReferencingComponents
focal_class.modifiers: private
focal_class.parameters: (final String controllerServiceId, final VersionedProcessGroup group, final FDExtensionManager extensionManager)
focal_class.return: Set<VersionedComponent>
focal_class.signature: Set<VersionedComponent> findReferencingComponents(final String controllerServiceId, final VersionedProcessGroup group, final FDExtensionManager extensionManager)
focal_class.class_method_signature: StandardFDControllerServiceService.delete(final String flowId, final String controllerServiceId)
focal_class.full_signature: @Override public void delete(final String flowId, final String controllerServiceId)
focal_class.identifier: delete
focal_class.modifiers: @Override public
focal_class.parameters: (final String flowId, final String controllerServiceId)
focal_class.return: void
focal_class.signature: void delete(final String flowId, final String controllerServiceId)
focal_class.class_method_signature: StandardFDControllerServiceService.getComponentDefinition(final String agentClass, final VersionedControllerService componentConfig)
focal_class.full_signature: @Override public ControllerServiceDefinition getComponentDefinition(final String agentClass, final VersionedControllerService componentConfig)
focal_class.identifier: getComponentDefinition
focal_class.modifiers: @Override public
focal_class.parameters: (final String agentClass, final VersionedControllerService componentConfig)
focal_class.return: ControllerServiceDefinition
focal_class.signature: ControllerServiceDefinition getComponentDefinition(final String agentClass, final VersionedControllerService componentConfig)
focal_class.class_method_signature: StandardFDControllerServiceService.instantiateExtensionComponent(final VersionedControllerService componentConfig,
                                                                  final ControllerServiceDefinition componentDefinition)
focal_class.full_signature: @Override protected FDControllerService instantiateExtensionComponent(final VersionedControllerService componentConfig,
                                                                  final ControllerServiceDefinition componentDefinition)
focal_class.identifier: instantiateExtensionComponent
focal_class.modifiers: @Override protected
focal_class.parameters: (final VersionedControllerService componentConfig,
                                                                  final ControllerServiceDefinition componentDefinition)
focal_class.return: FDControllerService
focal_class.signature: FDControllerService instantiateExtensionComponent(final VersionedControllerService componentConfig,
                                                                  final ControllerServiceDefinition componentDefinition)
focal_class.class_method_signature: StandardFDControllerServiceService.configureComponentSpecifics(final VersionedControllerService requestService, final VersionedControllerService resultService)
focal_class.full_signature: @Override protected void configureComponentSpecifics(final VersionedControllerService requestService, final VersionedControllerService resultService)
focal_class.identifier: configureComponentSpecifics
focal_class.modifiers: @Override protected
focal_class.parameters: (final VersionedControllerService requestService, final VersionedControllerService resultService)
focal_class.return: void
focal_class.signature: void configureComponentSpecifics(final VersionedControllerService requestService, final VersionedControllerService resultService)
focal_class.class_method_signature: StandardFDControllerServiceService.validate(final FDControllerService service, final VersionedProcessGroup group,
                                          final String flowId, final ControllerServiceLookup serviceLookup)
focal_class.full_signature: private Collection<String> validate(final FDControllerService service, final VersionedProcessGroup group,
                                          final String flowId, final ControllerServiceLookup serviceLookup)
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: (final FDControllerService service, final VersionedProcessGroup group,
                                          final String flowId, final ControllerServiceLookup serviceLookup)
focal_class.return: Collection<String>
focal_class.signature: Collection<String> validate(final FDControllerService service, final VersionedProcessGroup group,
                                          final String flowId, final ControllerServiceLookup serviceLookup)
focal_class.superclass: extends BaseExtensionComponentService<VersionedControllerService, ControllerServiceDefinition, FDControllerService>
focal_method.body: @Override
      public void delete(final String flowId, final String controllerServiceId) {
          final VersionedControllerService removed = deleteExtensionComponent(flowId, controllerServiceId, VersionedProcessGroup::getControllerServices);
          revalidateReferencingComponents(removed, flowId);
      }
focal_method.class_method_signature: StandardFDControllerServiceService.delete(final String flowId, final String controllerServiceId)
focal_method.full_signature: @Override public void delete(final String flowId, final String controllerServiceId)
focal_method.identifier: delete
focal_method.invocations: deleteExtensionComponent revalidateReferencingComponents
focal_method.modifiers: @Override public
focal_method.parameters: (final String flowId, final String controllerServiceId)
focal_method.return: void
focal_method.signature: void delete(final String flowId, final String controllerServiceId)