检索自定义节点属性以及删除露天节点的问题

Issue in retrieving the custom node properties as well as deleteing the node in alfresco

我使用 alfresco 5.0.d 过去 3 年的版本 weeks.I 已将节点创建为 agency 并将类型创建为 agencyType,并创建了名称、代码和 createdDate 等属性,能够在节点 properties.In 搜索选项中保存数据,将名称作为输入,需要根据名称检索代码和创建日期。

用于访问以下节点属性的 Webscript API

nodes= search.luceneSearch("TEXT:"+filter, "@agency:name", true);

结果:

"Node Type: {http://www.alfresco.org/model/content/1.0}content, Node Aspects: [{http://www.alfresco.org/model/rendition/1.0}renditioned, {http://www.alfresco.org/model/content/1.0}titled, {http://www.alfresco.org/model/content/1.0}ownable, {http://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable, {http://www.alfresco.org/model/system/1.0}localized, {http://www.alfresco.org/model/content/1.0}author, {http://www.alfresco.org/model/forum/1.0}discussable]", "Node Type: {http://www.alfresco.org/model/content/1.0}content, Node Aspects: [{http://www.alfresco.org/model/rendition/1.0}renditioned, {http://www.alfresco.org/model/content/1.0}titled, {http://www.alfresco.org/model/content/1.0}ownable, {http://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable

但我需要根据我传递的名称 属性 获取节点属性,因为需要知道删除基于名称 属性 的节点。

请帮助解决这个问题。

node.properties 提供对该节点所有属性的访问。返回的属性通过关联数组访问。可以通过以下方式访问节点的属性:

Example: node.properties["name"]

Example: node.properties.name

Source

这对你有帮助吗?