override ScriptNode

cancel
Showing results for 
Search instead for 
Did you mean: 
nenad982
Active Member

override ScriptNode

Hello,

does anybody know how we can override 

org.alfresco.repo.jscript.ScriptNode?

I am using Alfresco Community 5.1.g

Thanks in advance

4 Replies
krutik_jayswal
Senior Member II

Re: override ScriptNode

What do you mean by overide, Do you want to get the object of NodeRef?

nenad982
Active Member

Re: override ScriptNode

Hello,

sorry I was not precise enough.

I would like to extend this class OR to create my own version of it. I didn't find it in spring configuration. Do you know how we can achieve this?

Regards

krutik_jayswal
Senior Member II

Re: override ScriptNode

In eclipse , if you press ctrl+shift+T, and enter the class name it will allow you to open the source code.

You can extend it easily..

Apart from this, If you would like to create your own javascript object,Below link will help you in same.

JavaScript Root Objects | Alfresco Documentation 

nenad982
Active Member

Re: override ScriptNode

I would like to replace the implementation of ScriptNode with my implementation, so my implementation should be used by Alfresco after that.