我在Alfresco Explorer中开发了一个Alfresco应用程序。在这个应用程序中,我创建了一个空间和其中的一些内容,我的问题是如何获取空间nodeRef,当我在java类中工作以列出内容时。如何知道Alfresco当前的空间nodeRef?
其实我想这一点:
String nodeId = this.navigator.getCurrentNodeId();
NodeRef parentNodeRef = new NodeRef(Repository.getStoreRef(), nodeId);
List<ChildAssociationRef> children = this.nodeService.getParentAssocs(parentNodeRef);
但返回null
只是,你不应该在启动新项目的说明露天探险家,除非有你无法控制的情况需要你这样做。改用Alfresco分享。 –
我没有选择,客户端希望它在Alfresco Explorer中... – Raider