override ScriptNode

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Senior Member II

Re: override ScriptNode

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

Highlighted
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

Highlighted
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 

Highlighted
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.