06-13-2007 12:51 PM
// 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
06-14-2007 06:01 AM
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),
06-15-2007 07:25 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.