cancel
Showing results for 
Search instead for 
Did you mean: 

source and target

enkidu
Champ in-the-making
Champ in-the-making
hi mates,

how can i pass the source and the target directory from alfresco explorer gui to my custom action? my code looks like this:



package com.custom.action;

import java.util.List;

import org.alfresco.repo.action.executer.ActionExecuterAbstractBase;
import org.alfresco.service.cmr.action.Action;
import org.alfresco.service.cmr.action.ParameterDefinition;
import org.alfresco.service.cmr.repository.NodeRef;

public class MyCustomAction extends ActionExecuterAbstractBase {

   String sourceDir;
   String targetDir;
   
   @Override
   protected void executeImpl(Action arg0, NodeRef arg1) {
      // TODO Auto-generated method stub
      
   }

   @Override
   protected void addParameterDefinitions(List<ParameterDefinition> arg0) {
      // TODO Auto-generated method stub
      
   }

}

2 REPLIES 2

niketapatel
Star Contributor
Star Contributor
Can you please define your action in more detail!

If I understand this correctly, In your custom action you need to have UI from where you can select some target directly[may be your requirement to move or to take any other action].

For that you need to add paramter to your custom action and need to develop action handler.
You can check detailed example here - http://wiki.alfresco.com/wiki/Custom_Action_UI

Hope it helps!

enkidu
Champ in-the-making
Champ in-the-making
bought the book from jeff potts.. now i know whats necessary.. custom action, handler and jsp no big deal