Examples of InMemoryItemTypeDefinition


Examples of org.apache.chemistry.opencmis.inmemory.types.InMemoryItemTypeDefinition

        }
       
        private static InMemoryItemTypeDefinition createItemType() {
            //CMIS 1.1 create an item item type

            InMemoryItemTypeDefinition cmisItemType = new InMemoryItemTypeDefinition(TEST_ITEM_TYPE_ID, "MyItemType");
            // create a single String property definition

            Map<String, PropertyDefinition<?>> propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
            propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
            PropertyStringDefinitionImpl prop1 = PropertyCreationHelper.createStringDefinition(ITEM_STRING_PROP,
                    "Item String Property", Updatability.READWRITE);
            propertyDefinitions.put(prop1.getId(), prop1);
            cmisItemType.addCustomPropertyDefinitions(propertyDefinitions);
            // add type to types collection
            return cmisItemType;           
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.