test_class.declarator: dataObjectService
test_class.modifier: @Mock private
test_class.original_string: @Mock private DataObjectService dataObjectService;
test_class.type: DataObjectService
test_class.var_name: dataObjectService
test_class.declarator: namespaceService
test_class.modifier: @Mock private
test_class.original_string: @Mock private NamespaceService namespaceService;
test_class.type: NamespaceService
test_class.var_name: namespaceService
test_class.declarator: componentSetDao
test_class.modifier: @Mock private
test_class.original_string: @Mock private ComponentSetDaoJpa componentSetDao;
test_class.type: ComponentSetDaoJpa
test_class.var_name: componentSetDao
test_class.declarator: componentService = new ComponentServiceImpl()
test_class.modifier: @InjectMocks private
test_class.original_string: @InjectMocks private ComponentServiceImpl componentService = new ComponentServiceImpl();
test_class.type: ComponentServiceImpl
test_class.var_name: componentService
test_class.declarator: NAMESPACE_CODE = "MyNamespaceCode"
test_class.modifier: private static final
test_class.original_string: private static final String NAMESPACE_CODE = "MyNamespaceCode";
test_class.type: String
test_class.var_name: NAMESPACE_CODE
test_class.declarator: CODE = "MyComponentCode"
test_class.modifier: private static final
test_class.original_string: private static final String CODE = "MyComponentCode";
test_class.type: String
test_class.var_name: CODE
test_class.declarator: NAME = "This is my component!"
test_class.modifier: private static final
test_class.original_string: private static final String NAME = "This is my component!";
test_class.type: String
test_class.var_name: NAME
test_class.declarator: DERIVED_CODE = "MyDerivedComponentCode"
test_class.modifier: private static final
test_class.original_string: private static final String DERIVED_CODE = "MyDerivedComponentCode";
test_class.type: String
test_class.var_name: DERIVED_CODE
test_class.declarator: DERIVED_NAME = "This is my derived component!"
test_class.modifier: private static final
test_class.original_string: private static final String DERIVED_NAME = "This is my derived component!";
test_class.type: String
test_class.var_name: DERIVED_NAME
test_class.declarator: DERIVED_COMPONENT_SET_ID = "derivedComponentSetId"
test_class.modifier: private static final
test_class.original_string: private static final String DERIVED_COMPONENT_SET_ID = "derivedComponentSetId";
test_class.type: String
test_class.var_name: DERIVED_COMPONENT_SET_ID
test_class.declarator: COMPONENT_SET_ID = "componentSetId"
test_class.modifier: private static final
test_class.original_string: private static final String COMPONENT_SET_ID = "componentSetId";
test_class.type: String
test_class.var_name: COMPONENT_SET_ID
test_class.declarator: component = createComponent()
test_class.modifier: final
test_class.original_string: final Component component = createComponent();
test_class.type: Component
test_class.var_name: component
test_class.declarator: componentBo = convertComponent(component)
test_class.modifier: final
test_class.original_string: final org.kuali.rice.coreservice.impl.component.ComponentBo componentBo = convertComponent(component);
test_class.type: org.kuali.rice.coreservice.impl.component.ComponentBo
test_class.var_name: componentBo
test_class.declarator: compService = componentService
test_class.modifier: private
test_class.original_string: private ComponentService compService = componentService;
test_class.type: ComponentService
test_class.var_name: compService
test_class.declarator: derivedComponent = createDerivedComponent()
test_class.modifier: final
test_class.original_string: final Component derivedComponent = createDerivedComponent();
test_class.type: Component
test_class.var_name: derivedComponent
test_class.declarator: derivedComponentBo = DerivedComponentBo.from(derivedComponent)
test_class.modifier: final
test_class.original_string: final DerivedComponentBo derivedComponentBo = DerivedComponentBo.from(derivedComponent);
test_class.type: DerivedComponentBo
test_class.var_name: derivedComponentBo
test_class.declarator: componentSetBo = createComponentSet()
test_class.modifier: final
test_class.original_string: final ComponentSetBo componentSetBo = createComponentSet();
test_class.type: ComponentSetBo
test_class.var_name: componentSetBo
test_class.file: rice-middleware/core-service/impl/src/test/java/org/kuali/rice/coreservice/impl/component/ComponentServiceImplTest.java
test_class.identifier: ComponentServiceImplTest
test_case.body: @Test
      public void test_getAllComponentsByNamespaceCode_with_derived() throws Exception{
          setupDataObjectServiceFetchComponent();
          setupDataObjectServiceFetchDerivedComponent();
  
          List<Component> components = getComponentService().getAllComponentsByNamespaceCode(NAMESPACE_CODE);
          assertTrue("getAllComponentsByNamespaceCode retrieved correctly",
                                      components != null && components.size() == 2);
          assertTrue("Component was returned", StringUtils.equals(component.getCode(), components.get(0).getCode()));
          assertTrue("Component was returned", StringUtils.equals(derivedComponent.getCode(),
                                  components.get(1).getCode()));
          assertImmutableList(components);
      }
test_case.class_method_signature: ComponentServiceImplTest.test_getAllComponentsByNamespaceCode_with_derived()
test_case.full_signature: @Test public void test_getAllComponentsByNamespaceCode_with_derived()
test_case.identifier: test_getAllComponentsByNamespaceCode_with_derived
test_case.invocations: setupDataObjectServiceFetchComponent setupDataObjectServiceFetchDerivedComponent getAllComponentsByNamespaceCode getComponentService assertTrue size assertTrue equals getCode getCode get assertTrue equals getCode getCode get assertImmutableList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_getAllComponentsByNamespaceCode_with_derived()
focal_class.declarator: LOG = Logger.getLogger(ComponentServiceImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Logger.getLogger(ComponentServiceImpl.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: componentSetDao
focal_class.modifier: private
focal_class.original_string: private ComponentSetDao componentSetDao;
focal_class.type: ComponentSetDao
focal_class.var_name: componentSetDao
focal_class.declarator: dataObjectService
focal_class.modifier: private
focal_class.original_string: private DataObjectService dataObjectService;
focal_class.type: DataObjectService
focal_class.var_name: dataObjectService
focal_class.file: rice-middleware/core-service/impl/src/main/java/org/kuali/rice/coreservice/impl/component/ComponentServiceImpl.java
focal_class.identifier: ComponentServiceImpl
focal_class.interfaces: implements ComponentService
focal_class.class_method_signature: ComponentServiceImpl.getComponentByCode(String namespaceCode, String componentCode)
focal_class.full_signature: @Override public Component getComponentByCode(String namespaceCode, String componentCode)
focal_class.identifier: getComponentByCode
focal_class.modifiers: @Override public
focal_class.parameters: (String namespaceCode, String componentCode)
focal_class.return: Component
focal_class.signature: Component getComponentByCode(String namespaceCode, String componentCode)
focal_class.class_method_signature: ComponentServiceImpl.getAllComponentsByNamespaceCode(String namespaceCode)
focal_class.full_signature: @Override public List<Component> getAllComponentsByNamespaceCode(String namespaceCode)
focal_class.identifier: getAllComponentsByNamespaceCode
focal_class.modifiers: @Override public
focal_class.parameters: (String namespaceCode)
focal_class.return: List<Component>
focal_class.signature: List<Component> getAllComponentsByNamespaceCode(String namespaceCode)
focal_class.class_method_signature: ComponentServiceImpl.getActiveComponentsByNamespaceCode(String namespaceCode)
focal_class.full_signature: @Override public List<Component> getActiveComponentsByNamespaceCode(String namespaceCode)
focal_class.identifier: getActiveComponentsByNamespaceCode
focal_class.modifiers: @Override public
focal_class.parameters: (String namespaceCode)
focal_class.return: List<Component>
focal_class.signature: List<Component> getActiveComponentsByNamespaceCode(String namespaceCode)
focal_class.class_method_signature: ComponentServiceImpl.getDerivedComponentSet(String componentSetId)
focal_class.full_signature: @Override public List<Component> getDerivedComponentSet(String componentSetId)
focal_class.identifier: getDerivedComponentSet
focal_class.modifiers: @Override public
focal_class.parameters: (String componentSetId)
focal_class.return: List<Component>
focal_class.signature: List<Component> getDerivedComponentSet(String componentSetId)
focal_class.class_method_signature: ComponentServiceImpl.publishDerivedComponents(String componentSetId, List<Component> components)
focal_class.full_signature: @Override @Transactional public void publishDerivedComponents(String componentSetId, List<Component> components)
focal_class.identifier: publishDerivedComponents
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (String componentSetId, List<Component> components)
focal_class.return: void
focal_class.signature: void publishDerivedComponents(String componentSetId, List<Component> components)
focal_class.class_method_signature: ComponentServiceImpl.validateAndNormalizeComponents(String componentSetId, List<Component> components)
focal_class.full_signature: protected List<Component> validateAndNormalizeComponents(String componentSetId, List<Component> components)
focal_class.identifier: validateAndNormalizeComponents
focal_class.modifiers: protected
focal_class.parameters: (String componentSetId, List<Component> components)
focal_class.return: List<Component>
focal_class.signature: List<Component> validateAndNormalizeComponents(String componentSetId, List<Component> components)
focal_class.class_method_signature: ComponentServiceImpl.calculateChecksum(List<Component> components)
focal_class.full_signature: protected String calculateChecksum(List<Component> components)
focal_class.identifier: calculateChecksum
focal_class.modifiers: protected
focal_class.parameters: (List<Component> components)
focal_class.return: String
focal_class.signature: String calculateChecksum(List<Component> components)
focal_class.class_method_signature: ComponentServiceImpl.updateDerivedComponents(String componentSetId, List<Component> components)
focal_class.full_signature: protected void updateDerivedComponents(String componentSetId, List<Component> components)
focal_class.identifier: updateDerivedComponents
focal_class.modifiers: protected
focal_class.parameters: (String componentSetId, List<Component> components)
focal_class.return: void
focal_class.signature: void updateDerivedComponents(String componentSetId, List<Component> components)
focal_class.class_method_signature: ComponentServiceImpl.translateCollections(QueryResults<ComponentBo> componentBos,
              QueryResults<DerivedComponentBo> derivedComponentBos)
focal_class.full_signature: protected List<Component> translateCollections(QueryResults<ComponentBo> componentBos,
              QueryResults<DerivedComponentBo> derivedComponentBos)
focal_class.identifier: translateCollections
focal_class.modifiers: protected
focal_class.parameters: (QueryResults<ComponentBo> componentBos,
              QueryResults<DerivedComponentBo> derivedComponentBos)
focal_class.return: List<Component>
focal_class.signature: List<Component> translateCollections(QueryResults<ComponentBo> componentBos,
              QueryResults<DerivedComponentBo> derivedComponentBos)
focal_class.class_method_signature: ComponentServiceImpl.getComponentSetDao()
focal_class.full_signature: public ComponentSetDao getComponentSetDao()
focal_class.identifier: getComponentSetDao
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ComponentSetDao
focal_class.signature: ComponentSetDao getComponentSetDao()
focal_class.class_method_signature: ComponentServiceImpl.setComponentSetDao(ComponentSetDao componentSetDao)
focal_class.full_signature: public void setComponentSetDao(ComponentSetDao componentSetDao)
focal_class.identifier: setComponentSetDao
focal_class.modifiers: public
focal_class.parameters: (ComponentSetDao componentSetDao)
focal_class.return: void
focal_class.signature: void setComponentSetDao(ComponentSetDao componentSetDao)
focal_class.class_method_signature: ComponentServiceImpl.getDataObjectService()
focal_class.full_signature: public DataObjectService getDataObjectService()
focal_class.identifier: getDataObjectService
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataObjectService
focal_class.signature: DataObjectService getDataObjectService()
focal_class.class_method_signature: ComponentServiceImpl.setDataObjectService(DataObjectService dataObjectService)
focal_class.full_signature: @Required public void setDataObjectService(DataObjectService dataObjectService)
focal_class.identifier: setDataObjectService
focal_class.modifiers: @Required public
focal_class.parameters: (DataObjectService dataObjectService)
focal_class.return: void
focal_class.signature: void setDataObjectService(DataObjectService dataObjectService)
focal_method.body: @Override
      public List<Component> getAllComponentsByNamespaceCode(String namespaceCode) {
          if (StringUtils.isBlank(namespaceCode)) {
              throw new RiceIllegalArgumentException("namespaceCode was a null or blank value");
          }
          Map<String, String> criteria = new HashMap<String, String>();
          criteria.put("namespaceCode", namespaceCode);
          QueryResults<ComponentBo> componentBos =
                  getDataObjectService().findMatching(ComponentBo.class,
                          QueryByCriteria.Builder.andAttributes(criteria).build());
  
          QueryResults<DerivedComponentBo> derivedComponentBos =
                  getDataObjectService().findMatching(DerivedComponentBo.class, QueryByCriteria.Builder.andAttributes(
                          criteria).build());
          return translateCollections(componentBos, derivedComponentBos);
      }
focal_method.class_method_signature: ComponentServiceImpl.getAllComponentsByNamespaceCode(String namespaceCode)
focal_method.full_signature: @Override public List<Component> getAllComponentsByNamespaceCode(String namespaceCode)
focal_method.identifier: getAllComponentsByNamespaceCode
focal_method.invocations: isBlank put findMatching getDataObjectService build andAttributes findMatching getDataObjectService build andAttributes translateCollections
focal_method.modifiers: @Override public
focal_method.parameters: (String namespaceCode)
focal_method.return: List<Component>
focal_method.signature: List<Component> getAllComponentsByNamespaceCode(String namespaceCode)