cancel
Showing results for 
Search instead for 
Did you mean: 

setting up transfer service

pchoe
Champ in-the-making
Champ in-the-making
I was looking at the Alfresco Wiki for Transfer Services.

I have a few questions based on the wiki:

1.  I noticed a few terminology used that I am not sure of the correct definition:
   a.  Transfer Definition
   b.  Transfer Service
   c.  Transfer Target

2.  The wiki states that "…a transfer target must be committed into the repository before it can be used for a transfer."
   a.  What is a transfer target exactly (is it a Java class similar to what is shown in the "Creating a new Transfer Target" in the wiki)?
   b.  Does committing the transfer target mean uploading the above Java Class into the "Company Home > Data Dictionary > Transfers > Transfer Target Groups > Default Group"?

Also a question about Replication Service:
Is replication service used to schedule transfer of nodes using a predefined transfer service?
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
a.  What is a transfer target exactly (is it a Java class similar to what is shown in the "Creating a new Transfer Target" in the wiki)?
A transfer target is a definition of a remote system.   i.e.   where to transfer to.
b.  Does committing the transfer target mean uploading the above Java Class into the "Company Home > Data Dictionary > Transfers > Transfer Target Groups > Default Group"?
It's a node not a Java class.   Just create a new folder within the default group.   Or call the transfer service API from code.

Is replication service used to schedule transfer of nodes using a predefined transfer service?
The replication service is used to schedule a transfer.

pchoe
Champ in-the-making
Champ in-the-making
So, if I wanted a custom transfer service, I would need to write a Java class using TransferTarget to define the target and NodeCrawlerFactory to gather the nodes to transfer from the source?

mrogers
Star Contributor
Star Contributor
You would use the transfer service to create a transfer target or do it through Alfresco Explorer or Alfresco Share.

You could use one of the existing crawlers or roll your own depending upon your requirements.    There's no need to change the transfer service.

You can use the replication service to configure a replication job in Alfresco Share and avoid any code.

What are you trying to do?

nramdoo
Champ in-the-making
Champ in-the-making
Hello,
I would like to transfer only some content (with a property set to a specificy value). I thought that i will be able to do  it with this type of code (alfresco transfer wiki https://wiki.alfresco.com/wiki/Transfer_Service).

<strong>
Building a set of nodes to transfer
//This example walks a tree of nodes starting at a given root node (assumed to be known already). It traverses
//only associations of type "cm:contains" (therefore, presumably, the root node is of type cm:folder (or subtype))

NodeCrawler crawler = nodeCrawlerFactory.getNodeCrawler();
crawler.setNodeFinders(new ChildAssociatedNodeFinder(ContentModel.ASSOC_CONTAINS));
Set<NodeRef> nodesInTree = crawler.crawl(rootNode);
</strong>
I don't have any idea where to put this code so that a registered transer target group uses it. Please, can I have some hints about this or a link where I can have more informations.

Or any other way to proceed.

Thank you

pchoe
Champ in-the-making
Champ in-the-making
We are looking to transfer a sub set of documents from one Alfresco Repository to another.  The documents would probably have some aspect on it to tell it to be transferred to another Alfresco Repository on a different server.

I tried to look through the Replication Service wiki, but didn't see clear documentation on how to set the target to another instance of an alfresco server through share.

Any help in pointing out documentation would be appreciated.

pchoe
Champ in-the-making
Champ in-the-making
How do I add an external target for Replication Service?

I see the Transfer Target in the UI, but it only list the internal server.

Peter Choe