11-12-2008 10:12 AM
//Creating the template space
NodeRef sourceNode = new NodeRef(Repository.getStoreRef(),
this.templateSpaceId);
NodeRef parentSpace = new NodeRef(Repository.getStoreRef(),
this.navigator.getCurrentNodeId());
// copy from the template
NodeRef copiedNode = this.getFileFolderService().copy(sourceNode,
parentSpace, this.projName).getNodeRef();
// also need to set the new title, description and icon properties
this.getNodeService().setProperty(copiedNode, ContentModel.PROP_TITLE,
this.title);
this.getNodeService().setProperty(copiedNode,
ContentModel.PROP_DESCRIPTION, this.description);
this.getNodeService()
.setProperty(copiedNode, ApplicationModel.PROP_ICON,
this.icon = DEFAULT_SPACE_ICON_NAME);
Everyithing looks fine, but when navigating, I see a second text with the name of the project, also hyperlinked to the space.11-14-2008 02:53 AM
11-18-2008 08:53 AM
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.