cancel
Showing results for 
Search instead for 
Did you mean: 

override ScriptNode

nenad982
Champ on-the-rise
Champ on-the-rise

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 4

krutik_jayswal
Elite Collaborator
Elite Collaborator

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

nenad982
Champ on-the-rise
Champ on-the-rise

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

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 

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