cancel
Showing results for 
Search instead for 
Did you mean: 

fileNode.move(parent, destNode);

sanketgosavi
Champ in-the-making
Champ in-the-making
There is a file

webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\slingshot\documentlibrary\action\move-to.post.json.js


in which there is one api method call

fileNode.move(parent, destNode)

Just wanted to know which file have this definition of 'move' method.



4 REPLIES 4

muralidharand
Star Contributor
Star Contributor
Hi,
The definition for the move method presents in the ScriptNode.java file.

https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/ja...


/**
     * Move this Node from specified parent to a new parent destination.
     *
     * Beware: Any unsaved property changes will be lost when this is called.  To preserve property changes call {@link save()} first.
     *   
     * @param source Node
     * @param destination Node
     * @return true on successful move, false on failure to move.
     */
    public boolean move(ScriptNode source, ScriptNode destination)
    {
   ………..
}

How can i make changes in ScriptNode.java and where i have to configure the changed custom java file of ScriptNode.java

sanketgosavi
Champ in-the-making
Champ in-the-making
Any Suggestions ?

mrogers
Star Contributor
Star Contributor
I suggest you don't.    Especially if you need to ask the question on the forums.

The answer is its just a java file.  Change it and rebuild alfresco as normal.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.