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.
10:08:59,570 ERROR [node.integrity.IntegrityChecker] Found 2 integrity violation s: Mandatory property not set: Node: workspace://SpacesStore/ac4afff4-33ac-11dc-9b9d-4fcb0c7f45be Type: {http://www.alfresco.org/model/content/1.0}auditable Property: {http://www.alfresco.org/model/content/1.0}creator Mandatory property not set: Node: workspace://SpacesStore/ac4afff4-33ac-11dc-9b9d-4fcb0c7f45be Type: {http://www.alfresco.org/model/content/1.0}auditable Property: {http://www.alfresco.org/model/content/1.0}created 10:08:59,601 ERROR [util.transaction.SpringAwareUserTransaction] Transaction did n't commit org.alfresco.repo.node.integrity.IntegrityException: Integrity failure
Node currentNode = this.browseBean.getActionSpace(); // NodeRef newSpaceNode = null; NodeRef newContentNodeRef = null; Map<QName, Serializable> titleProperties = new HashMap<QName, Serializable>(3); Map<QName, Serializable> properties = new HashMap<QName, Serializable>(2); String fileName = this.getFileName(); String spaceName = this.getPageName(); logger.debug("Saving page: "+spaceName+" fileName:"+fileName); if(newSpaceNodeRef == null){ final Map<QName, Serializable> props = new HashMap<QName, Serializable>(); newSpaceNodeRef = this.fileFolderService.create(currentNode.getNodeRef(), spaceName, ContentModel.TYPE_FOLDER).getNodeRef(); props.put(ContentModel.PROP_TITLE, this.getPageTitle()); props.put(ContentModel.PROP_DESCRIPTION, this.getPageDescription()); this.nodeService.addAspect(newSpaceNodeRef, ContentModel.ASPECT_TITLED, props); }else{ final Map<QName, Serializable> props = new HashMap<QName, Serializable>(); props.put(ContentModel.PROP_TITLE, this.getPageTitle()); props.put(ContentModel.PROP_DESCRIPTION, this.getPageDescription()); this.nodeService.setProperties(newSpaceNodeRef, props); } // Create Content XML newContentNodeRef = this.nodeService.getChildByName(newSpaceNodeRef, ContentModel.ASSOC_CONTAINS, fileName); if(newContentNodeRef == null){ newContentNodeRef = this.fileFolderService.create( newSpaceNodeRef, fileName, ContentModel.TYPE_CONTENT).getNodeRef(); if(logger.isDebugEnabled()){ Node a = new Node(newContentNodeRef); logger.debug("created file: "+a.getName()); } } titleProperties.clear(); titleProperties.put(ContentModel.PROP_NAME, fileName); titleProperties.put(ContentModel.PROP_TITLE, this.getPageTitle()); titleProperties.put(ContentModel.PROP_DESCRIPTION, this.getPageDescription()); if(this.nodeService.hasAspect(newContentNodeRef, ContentModel.ASPECT_TITLED)){ this.nodeService.setProperties(newContentNodeRef, titleProperties); }else{ this.nodeService.addAspect(newContentNodeRef, ContentModel.ASPECT_TITLED, titleProperties); } // Set the content ContentWriter contentWriter = contentService.getWriter(newContentNodeRef, ContentModel.PROP_CONTENT, true); contentWriter.setEncoding("UTF-8"); contentWriter.setMimetype(MimetypeMap.MIMETYPE_XML); //this.content = this.XMLContent contentWriter.putContent(getXMLContent()); properties.clear(); properties.put(WebCModel.ASPECT_WEBPAGE_PROP_TEMPLATE_FOLDER_NODEREF,this.templateFolderNodeRef); properties.put(WebCModel.ASPECT_WEBPAGE_PROP_XMLNODEREF, newContentNodeRef); if(this.nodeService.hasAspect(newSpaceNodeRef, WebCModel.ASPECT_WEBPAGE)){ this.nodeService.setProperties(newSpaceNodeRef, properties); }else{ this.nodeService.addAspect(newSpaceNodeRef, WebCModel.ASPECT_WEBPAGE, properties); }
ContentWriter contentWriter = contentService.getWriter(this.contentNodeRef, ContentModel.PROP_CONTENT, true); contentWriter.setEncoding("UTF-8"); contentWriter.setMimetype(MimetypeMap.MIMETYPE_XML); //this.content = this.XMLContent contentWriter.putContent(getXMLContent()); titleProperties.clear(); titleProperties.put(ContentModel.PROP_CREATOR, "admin"); titleProperties.put(ContentModel.PROP_CREATED, Calendar.getInstance().getTime()); this.nodeService.setProperties(this.contentNodeRef, titleProperties);
Map<QName, Serializable> repoProps = this.nodeService.getProperties(nodeRef);