test_class.declarator: kewTypeBoService
test_class.modifier: private
test_class.original_string: private KewTypeBoServiceImpl kewTypeBoService;
test_class.type: KewTypeBoServiceImpl
test_class.var_name: kewTypeBoService
test_class.declarator: mockDataObjectService
test_class.modifier: @Mock private
test_class.original_string: @Mock private DataObjectService mockDataObjectService;
test_class.type: DataObjectService
test_class.var_name: mockDataObjectService
test_class.declarator: sampleTypes = new HashMap<String, KewTypeBo>()
test_class.modifier: static
test_class.original_string: static Map<String, KewTypeBo> sampleTypes = new HashMap<String, KewTypeBo>();
test_class.type: Map<String, KewTypeBo>
test_class.var_name: sampleTypes
test_class.declarator: sampleTypesKeyedByName = new HashMap<String, KewTypeBo>()
test_class.modifier: static
test_class.original_string: static Map<String, KewTypeBo> sampleTypesKeyedByName = new HashMap<String, KewTypeBo>();
test_class.type: Map<String, KewTypeBo>
test_class.var_name: sampleTypesKeyedByName
test_class.declarator: NAMESPACE = "KEW_TEST"
test_class.modifier: private static final
test_class.original_string: private static final String NAMESPACE = "KEW_TEST";
test_class.type: String
test_class.var_name: NAMESPACE
test_class.declarator: TYPE_ID = "KC_MAP123"
test_class.modifier: private static final
test_class.original_string: private static final String TYPE_ID = "KC_MAP123";
test_class.type: String
test_class.var_name: TYPE_ID
test_class.declarator: NAME = "KC_UNIT"
test_class.modifier: private static final
test_class.original_string: private static final String NAME = "KC_UNIT";
test_class.type: String
test_class.var_name: NAME
test_class.declarator: SERVICE_NAME = "kcUnitService"
test_class.modifier: private static final
test_class.original_string: private static final String SERVICE_NAME = "kcUnitService";
test_class.type: String
test_class.var_name: SERVICE_NAME
test_class.declarator: ATTR_ID_1 = "UNIT_NUM"
test_class.modifier: private static final
test_class.original_string: private static final String ATTR_ID_1 = "UNIT_NUM";
test_class.type: String
test_class.var_name: ATTR_ID_1
test_class.declarator: UNIT_NUM_ATTR_DEF_ID = "1000"
test_class.modifier: private static final
test_class.original_string: private static final String UNIT_NUM_ATTR_DEF_ID = "1000";
test_class.type: String
test_class.var_name: UNIT_NUM_ATTR_DEF_ID
test_class.declarator: SEQUENCE_NUMBER_1 = new Integer(1)
test_class.modifier: private static final
test_class.original_string: private static final Integer SEQUENCE_NUMBER_1 = new Integer(1);
test_class.type: Integer
test_class.var_name: SEQUENCE_NUMBER_1
test_class.declarator: ATTR_ID_2 = "CAMPUS"
test_class.modifier: private static final
test_class.original_string: private static final String ATTR_ID_2 = "CAMPUS";
test_class.type: String
test_class.var_name: ATTR_ID_2
test_class.declarator: CAMPUS_ATTR_DEF_ID = "1002"
test_class.modifier: private static final
test_class.original_string: private static final String CAMPUS_ATTR_DEF_ID = "1002";
test_class.type: String
test_class.var_name: CAMPUS_ATTR_DEF_ID
test_class.declarator: SEQUENCE_NUMBER_2 = new Integer(2)
test_class.modifier: private static final
test_class.original_string: private static final Integer SEQUENCE_NUMBER_2 = new Integer(2);
test_class.type: Integer
test_class.var_name: SEQUENCE_NUMBER_2
test_class.declarator: ATTR_ID_3 = "NewAttr"
test_class.modifier: private static final
test_class.original_string: private static final String ATTR_ID_3 = "NewAttr";
test_class.type: String
test_class.var_name: ATTR_ID_3
test_class.declarator: NEW_ATTR_DEF_ID = "1004"
test_class.modifier: private static final
test_class.original_string: private static final String NEW_ATTR_DEF_ID = "1004";
test_class.type: String
test_class.var_name: NEW_ATTR_DEF_ID
test_class.declarator: SEQUENCE_NUMBER_3 = new Integer(3)
test_class.modifier: private static final
test_class.original_string: private static final Integer SEQUENCE_NUMBER_3 = new Integer(3);
test_class.type: Integer
test_class.var_name: SEQUENCE_NUMBER_3
test_class.declarator: ORG_NAME = "ORG"
test_class.modifier: private static final
test_class.original_string: private static final String ORG_NAME = "ORG";
test_class.type: String
test_class.var_name: ORG_NAME
test_class.declarator: ORG_LABEL = "Organization"
test_class.modifier: private static final
test_class.original_string: private static final String ORG_LABEL = "Organization";
test_class.type: String
test_class.var_name: ORG_LABEL
test_class.declarator: COMPONENT = "someOrgComponent"
test_class.modifier: private static final
test_class.original_string: private static final String COMPONENT = "someOrgComponent";
test_class.type: String
test_class.var_name: COMPONENT
test_class.declarator: unitNumAttrDefn = KewAttributeDefinition.Builder.create(UNIT_NUM_ATTR_DEF_ID, "testAttrDef1", NAMESPACE)
test_class.modifier: private static
test_class.original_string: private static KewAttributeDefinition.Builder unitNumAttrDefn = KewAttributeDefinition.Builder.create(UNIT_NUM_ATTR_DEF_ID, "testAttrDef1", NAMESPACE);
test_class.type: KewAttributeDefinition.Builder
test_class.var_name: unitNumAttrDefn
test_class.declarator: campusAttrDefn = KewAttributeDefinition.Builder.create(CAMPUS_ATTR_DEF_ID, "testAttrDef2", NAMESPACE)
test_class.modifier: private static
test_class.original_string: private static KewAttributeDefinition.Builder campusAttrDefn = KewAttributeDefinition.Builder.create(CAMPUS_ATTR_DEF_ID, "testAttrDef2", NAMESPACE);
test_class.type: KewAttributeDefinition.Builder
test_class.var_name: campusAttrDefn
test_class.declarator: newAttrDefn = KewAttributeDefinition.Builder.create(NEW_ATTR_DEF_ID, "testAttrDef3", NAMESPACE)
test_class.modifier: private static
test_class.original_string: private static KewAttributeDefinition.Builder newAttrDefn = KewAttributeDefinition.Builder.create(NEW_ATTR_DEF_ID, "testAttrDef3", NAMESPACE);
test_class.type: KewAttributeDefinition.Builder
test_class.var_name: newAttrDefn
test_class.declarator: unitNumAttrBuilder = KewTypeAttribute.Builder.create(ATTR_ID_1, TYPE_ID, UNIT_NUM_ATTR_DEF_ID, SEQUENCE_NUMBER_1).attributeDefinition(unitNumAttrDefn)
test_class.modifier: private static
test_class.original_string: private static KewTypeAttribute.Builder unitNumAttrBuilder = KewTypeAttribute.Builder.create(ATTR_ID_1, TYPE_ID, UNIT_NUM_ATTR_DEF_ID, SEQUENCE_NUMBER_1).attributeDefinition(unitNumAttrDefn);
test_class.type: KewTypeAttribute.Builder
test_class.var_name: unitNumAttrBuilder
test_class.declarator: campusAttrBuilder = KewTypeAttribute.Builder.create(ATTR_ID_2, TYPE_ID, CAMPUS_ATTR_DEF_ID, SEQUENCE_NUMBER_2).attributeDefinition(campusAttrDefn)
test_class.modifier: private static
test_class.original_string: private static KewTypeAttribute.Builder campusAttrBuilder = KewTypeAttribute.Builder.create(ATTR_ID_2, TYPE_ID, CAMPUS_ATTR_DEF_ID, SEQUENCE_NUMBER_2).attributeDefinition(campusAttrDefn);
test_class.type: KewTypeAttribute.Builder
test_class.var_name: campusAttrBuilder
test_class.declarator: newAttr = KewTypeAttribute.Builder.create(ATTR_ID_3, TYPE_ID, NEW_ATTR_DEF_ID, SEQUENCE_NUMBER_3).attributeDefinition(newAttrDefn).build()
test_class.modifier: private static
test_class.original_string: private static KewTypeAttribute newAttr = KewTypeAttribute.Builder.create(ATTR_ID_3, TYPE_ID, NEW_ATTR_DEF_ID, SEQUENCE_NUMBER_3).attributeDefinition(newAttrDefn).build();
test_class.type: KewTypeAttribute
test_class.var_name: newAttr
test_class.declarator: attrs = Arrays.asList(unitNumAttrBuilder, campusAttrBuilder)
test_class.modifier: private static
test_class.original_string: private static List<KewTypeAttribute.Builder> attrs = Arrays.asList(unitNumAttrBuilder, campusAttrBuilder);
test_class.type: List<KewTypeAttribute.Builder>
test_class.var_name: attrs
test_class.declarator: TEST_KEW_TYPE_DEF = KewTypeDefinition.Builder.create(TYPE_ID, NAME, NAMESPACE).serviceName(SERVICE_NAME).attributes(attrs).build()
test_class.modifier: private static
test_class.original_string: private static KewTypeDefinition TEST_KEW_TYPE_DEF = KewTypeDefinition.Builder.create(TYPE_ID, NAME, NAMESPACE).serviceName(SERVICE_NAME).attributes(attrs).build();
test_class.type: KewTypeDefinition
test_class.var_name: TEST_KEW_TYPE_DEF
test_class.declarator: TEST_KEW_TYPE_BO = KewTypeBo.from(TEST_KEW_TYPE_DEF)
test_class.modifier: private static
test_class.original_string: private static KewTypeBo TEST_KEW_TYPE_BO = KewTypeBo.from(TEST_KEW_TYPE_DEF);
test_class.type: KewTypeBo
test_class.var_name: TEST_KEW_TYPE_BO
test_class.declarator: TEST_KEW_TYPE_ATTRIBUTE_BO = KewTypeAttributeBo.from(newAttr, TEST_KEW_TYPE_BO)
test_class.modifier: private static
test_class.original_string: private static KewTypeAttributeBo TEST_KEW_TYPE_ATTRIBUTE_BO = KewTypeAttributeBo.from(newAttr, TEST_KEW_TYPE_BO);
test_class.type: KewTypeAttributeBo
test_class.var_name: TEST_KEW_TYPE_ATTRIBUTE_BO
test_class.file: rice-middleware/impl/src/test/java/org/kuali/rice/kew/impl/repository/KewTypeBoServiceImplTest.java
test_class.identifier: KewTypeBoServiceImplTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void test_createKewTypeAttribute_null_input() {
          getKewTypeBoService().createKewTypeAttribute(null);
      }
test_case.class_method_signature: KewTypeBoServiceImplTest.test_createKewTypeAttribute_null_input()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void test_createKewTypeAttribute_null_input()
test_case.identifier: test_createKewTypeAttribute_null_input
test_case.invocations: createKewTypeAttribute getKewTypeBoService
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_createKewTypeAttribute_null_input()
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/impl/src/main/java/org/kuali/rice/kew/impl/repository/KewTypeBoServiceImpl.java
focal_class.identifier: KewTypeBoServiceImpl
focal_class.interfaces: implements KewTypeRepositoryService
focal_class.class_method_signature: KewTypeBoServiceImpl.createKewType(KewTypeDefinition kewType)
focal_class.full_signature: @Override public KewTypeDefinition createKewType(KewTypeDefinition kewType)
focal_class.identifier: createKewType
focal_class.modifiers: @Override public
focal_class.parameters: (KewTypeDefinition kewType)
focal_class.return: KewTypeDefinition
focal_class.signature: KewTypeDefinition createKewType(KewTypeDefinition kewType)
focal_class.class_method_signature: KewTypeBoServiceImpl.updateKewType(KewTypeDefinition kewType)
focal_class.full_signature: @Override public void updateKewType(KewTypeDefinition kewType)
focal_class.identifier: updateKewType
focal_class.modifiers: @Override public
focal_class.parameters: (KewTypeDefinition kewType)
focal_class.return: void
focal_class.signature: void updateKewType(KewTypeDefinition kewType)
focal_class.class_method_signature: KewTypeBoServiceImpl.getTypeById(final String id)
focal_class.full_signature: @Override public KewTypeDefinition getTypeById(final String id)
focal_class.identifier: getTypeById
focal_class.modifiers: @Override public
focal_class.parameters: (final String id)
focal_class.return: KewTypeDefinition
focal_class.signature: KewTypeDefinition getTypeById(final String id)
focal_class.class_method_signature: KewTypeBoServiceImpl.getTypeByNameAndNamespace(final String name, final String namespace)
focal_class.full_signature: @Override public KewTypeDefinition getTypeByNameAndNamespace(final String name, final String namespace)
focal_class.identifier: getTypeByNameAndNamespace
focal_class.modifiers: @Override public
focal_class.parameters: (final String name, final String namespace)
focal_class.return: KewTypeDefinition
focal_class.signature: KewTypeDefinition getTypeByNameAndNamespace(final String name, final String namespace)
focal_class.class_method_signature: KewTypeBoServiceImpl.findAllTypesByNamespace(final String namespace)
focal_class.full_signature: @Override public List<KewTypeDefinition> findAllTypesByNamespace(final String namespace)
focal_class.identifier: findAllTypesByNamespace
focal_class.modifiers: @Override public
focal_class.parameters: (final String namespace)
focal_class.return: List<KewTypeDefinition>
focal_class.signature: List<KewTypeDefinition> findAllTypesByNamespace(final String namespace)
focal_class.class_method_signature: KewTypeBoServiceImpl.findAllTypes()
focal_class.full_signature: @Override public List<KewTypeDefinition> findAllTypes()
focal_class.identifier: findAllTypes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<KewTypeDefinition>
focal_class.signature: List<KewTypeDefinition> findAllTypes()
focal_class.class_method_signature: KewTypeBoServiceImpl.setDataObjectService(final DataObjectService dataObjectService)
focal_class.full_signature: public void setDataObjectService(final DataObjectService dataObjectService)
focal_class.identifier: setDataObjectService
focal_class.modifiers: public
focal_class.parameters: (final DataObjectService dataObjectService)
focal_class.return: void
focal_class.signature: void setDataObjectService(final DataObjectService dataObjectService)
focal_class.class_method_signature: KewTypeBoServiceImpl.convertListOfBosToImmutables(final Collection<KewTypeBo> kewTypeBos)
focal_class.full_signature:  List<KewTypeDefinition> convertListOfBosToImmutables(final Collection<KewTypeBo> kewTypeBos)
focal_class.identifier: convertListOfBosToImmutables
focal_class.parameters: (final Collection<KewTypeBo> kewTypeBos)
focal_class.return: List<KewTypeDefinition>
focal_class.signature: List<KewTypeDefinition> convertListOfBosToImmutables(final Collection<KewTypeBo> kewTypeBos)
focal_class.class_method_signature: KewTypeBoServiceImpl.createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_class.full_signature: @Override public void createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_class.identifier: createKewTypeAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (KewTypeAttribute kewTypeAttribute)
focal_class.return: void
focal_class.signature: void createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_class.class_method_signature: KewTypeBoServiceImpl.updateKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_class.full_signature: @Override public void updateKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_class.identifier: updateKewTypeAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (KewTypeAttribute kewTypeAttribute)
focal_class.return: void
focal_class.signature: void updateKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_method.body: @Override
      public void createKewTypeAttribute(KewTypeAttribute kewTypeAttribute) {
          if (kewTypeAttribute == null){
              throw new RiceIllegalArgumentException("kewTypeAttribute is null");
          }
  
          KewTypeAttributeBo existing = dataObjectService.find(KewTypeAttributeBo.class, kewTypeAttribute);
  
          if (null != existing && kewTypeAttribute.getTypeId().equals(existing.getTypeId()) &&
                  kewTypeAttribute.getAttributeDefinitionId().equals(existing.getAttributeDefinitionId())) {
  
              throw new RiceIllegalStateException("The KEW Type Attribute to create already exists: " + kewTypeAttribute);
          }
          KewTypeBo kewType = null;
          if (kewTypeAttribute.getTypeId() != null) {
              kewType = dataObjectService.find(KewTypeBo.class, kewTypeAttribute.getTypeId());
          }
  
          dataObjectService.save(KewTypeAttributeBo.from(kewTypeAttribute, kewType));
      }
focal_method.class_method_signature: KewTypeBoServiceImpl.createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_method.full_signature: @Override public void createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
focal_method.identifier: createKewTypeAttribute
focal_method.invocations: find equals getTypeId getTypeId equals getAttributeDefinitionId getAttributeDefinitionId getTypeId find getTypeId save from
focal_method.modifiers: @Override public
focal_method.parameters: (KewTypeAttribute kewTypeAttribute)
focal_method.return: void
focal_method.signature: void createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)