Hi guys, I would like to add an aspect to a document node wich value depends on the content of that document. What I would like to do is to sign the document and then add the signature as an aspect of the document. The problem is that I don't know how to get the document content within a dialog ( BaseDialogBean ). I tried to look for nodeService field but it seems it doesn't have any operation to get the document content. I'm using SDK's Custom Dialog as the code base to develop the module
Hi, thanks for the reply. Now the problem I have is that I don't know how to get the current NodeRef. It seems I have to use createStore from NodeService and then use the StoreRef to get the root/current NodeRef using getRootNode. But, I don't know what parameters I have to use in createStore. Is createStore + getRootNode the right way to get the current node? If yes, how is the right way to call create store?
It's not necessary to create a store for this action. If you follow the SDK sample, you already have a NodeRef (for a node space! not for a node document!). So it's not really what you want. But if you have changed this for a node document it's ok.