"Sample Folder String Property", Updatability.READONLY);
propertyDefinitions.put(prop7.getId(), prop7);
cmisFolderType.addCustomPropertyDefinitions(propertyDefinitions);
// CMIS 1.1 create a secondary type
InMemorySecondaryTypeDefinition cmisSecondaryType = new InMemorySecondaryTypeDefinition(SECONDARY_TYPE,
"MySecondaryType");
// create a single String property definition
propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
PropertyStringDefinitionImpl propStr = PropertyCreationHelper.createStringDefinition(SECONDARY_STRING_PROP,
"Secondary String Property", Updatability.READWRITE);
propertyDefinitions.put(propStr.getId(), propStr);
PropertyIntegerDefinitionImpl propInt = PropertyCreationHelper.createIntegerDefinition(SECONDARY_INTEGER_PROP,
"Secondary Integer Property", Updatability.READWRITE);
propInt.setIsRequired(true);
propertyDefinitions.put(propInt.getId(), propInt);
cmisSecondaryType.addCustomPropertyDefinitions(propertyDefinitions);
// add type to types collection
typesList.add(cmisDocTypeTopLevel);
typesList.add(cmisDocTypeLevel1);