PropertyStringDefinition prop2 = PropertyCreationHelper.createStringDefinition(STRING_PROP,
"Sample String Property");
propertyDefinitions.put(prop2.getId(), prop2);
PropertyIntegerDefinitionImpl prop3 = PropertyCreationHelper.createIntegerDefinition(INT_PROP,
"Sample Integer Property");
propertyDefinitions.put(prop2.getId(), prop2);
cmisType.setPropertyDefinitions(propertyDefinitions);
typeDefs.add(cmisType);
myType = cmisType;
// add another type definition with exactly the same properties
cmisType = new InMemoryDocumentTypeDefinition(MY_DOC_TYPE_COPY,
"Document Type Duplicated", InMemoryDocumentTypeDefinition.getRootDocumentType());
cmisType.setPropertyDefinitions(propertyDefinitions); // add same properties
typeDefs.add(cmisType);
myTypeCopy = cmisType;
// Second test type
cmisType = new InMemoryDocumentTypeDefinition(BOOK_TYPE,
"Book Document Type", InMemoryDocumentTypeDefinition.getRootDocumentType());
propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
prop2 = PropertyCreationHelper.createStringDefinition(TITLE_PROP, "Title of Book");
propertyDefinitions.put(prop2.getId(), prop2);
prop2 = PropertyCreationHelper.createStringDefinition(AUTHOR_PROP, "Author of Book");
propertyDefinitions.put(prop2.getId(), prop2);
prop3 = PropertyCreationHelper.createIntegerDefinition(ISBN_PROP,
"ISBN of Book");
propertyDefinitions.put(prop3.getId(), prop3);
PropertyDateTimeDefinitionImpl prop4 = PropertyCreationHelper.createDateTimeDefinition(PUB_DATE_PROP,
"Publishing Date of Book");
propertyDefinitions.put(prop4.getId(), prop4);