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.
// Make sure our node exists NodeRef nodeRef = new NodeRef("workspace://SpacesStore/e0776399-35a8-4b22-be03-7109a3086865"); if (! nodeService.exists(nodeRef)) { throw new AlfrescoRuntimeException("Sorry, " + nodeRef + " doesn't exist"); } // Fetch all the properties Map<QName, Serializable> props = nodeService.getProperties(nodeRef); // Fetch a few common properties String name = (String)props.get(ContentModel.PROP_NAME; String title = (String)props.get(ContentModel.PROP_TITLE);
var node = utils.getNodeFromString("workspace://SpacesStore/e0776399-35a8-4b22-be03-7109a3086865"); var name = node.properties["cm:name"]); var title = node.properties["cm:title"]);