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.
// assign name Map<QName, Serializable> contentProps = new HashMap<QName, Serializable>(); String legalSpaceName = getLegalName(spaceName); contentProps.put(ContentModel.PROP_NAME, legalSpaceName); // create space node ChildAssociationRef association = nodeService.createNode(fatherNode, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_PREFIX, spaceName), ContentModel.TYPE_FOLDER, contentProps); child = association.getChildRef();
Unable to paste item due to system error: A namespace prefix is not registered for uri cm
Hi,I build new space with the following code:// assign name Map<QName, Serializable> contentProps = new HashMap<QName, Serializable>(); String legalSpaceName = getLegalName(spaceName); contentProps.put(ContentModel.PROP_NAME, legalSpaceName); // create space node ChildAssociationRef association = nodeService.createNode(fatherNode, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_PREFIX, spaceName), ContentModel.TYPE_FOLDER, contentProps); child = association.getChildRef();
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, spaceName),