As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Map<String, Object> properties = new HashMap<String, Object>(); properties.put(PropertyIds.OBJECT_TYPE_ID, "D:my:customDataListItem"); properties.put(PropertyIds.NAME, "my custom item name"); ObjectId newItemId = session.createItem(properties, dataListContainer);
AlfrescoFolder dataLists = (AlfrescoFolder) session.getObjectByPath("/sites/{site short name}/dataLists");
java.util.Iterator<CmisObject> it = dataLists.getChildren().iterator(); AlfrescoFolder dataList = null; while (it.hasNext()) { CmisObject obj = it.next(); if(***){ dataList = (AlfrescoFolder)obj; } System.out.println(obj.getName()); }
Map<String, Object> properties = new HashMap<String, Object>(); properties.put(PropertyIds.OBJECT_TYPE_ID, "D:item type"); properties.put(PropertyIds.NAME, item name"); ObjectId newItemId = session.createItem(properties, dataList);