In this session we will look at the options for replicating content between Alfresco repositories. Starting with a re-cap of the existing functionality of version 3.3, we will then introduce the new replication features of Alfresco 3.4 including some more advanced scenarios. If you have been paying attention to recent SVN commits then you can't have failed to notice that Alfresco folders can be invaded by aliens. Find out what that means in this session!
20. Interface : TransferService 11 /** Transfer nodes sync, with callback. This synchronous version of the transfer method waits for the transfer to complete before returning to the caller. Callbacks are called in the current thread context, so will be associated with the curren transaction and use @paramtargetName the name of the target to transfer to @param definition - the definition of the transfer. Specifies which nodes to transfer. The following properties must be set, nodes @paramcallback - a set of callback handlers that will be called as transfer proceeds. May be null @throws TransferException @return the node reference of the transfer report */ @Auditable(parameters={"targetName"}) public NodeReftransfer(String targetName, TransferDefinitiondefinition, Collection<TransferCallback> callback) throws TransferException;
21. Type : TransferTarget 12 Name Description Title Endpoint Host Endpoint Protocol Endpoint Port Endpoint Path UserName Password Enabled
22. Interface : TransferDefinition 3.3 13 Simply has a collection of nodeRefs to transfer! /** * Set which nodes to transfer * @param nodes */ public void setNodes(Collection<NodeRef> nodes) { this.nodes = new HashSet<NodeRef>(nodes); } public void setNodes(NodeRef...nodes) { this.setNodes(Arrays.asList(nodes)); }
23. Interface : NodeCrawler 14 public interface NodeCrawler { public abstract Set<NodeRef> crawl(NodeRef... nodes); public abstract Set<NodeRef> crawl(Set<NodeRef> startingNodes); public abstract void setNodeFinders(NodeFinder... finders); public abstract void setNodeFilters(NodeFilter... filters); }
30. Transfer Service 3.4 17 Goals Primary use case: Geographic replication Transfer documents from one repository to another. Configure replication through User Interface.
31. Transfer Service 3.4 18 Transfer Service Primary use case: Geographic replication Transfer documents from one repository to another. Configure replication through User Interface. New Replication Service Share has Replication Jobs in Admin console Sync mode transfer flag Read Only transfer flag Exclude certain aspects Content only transferred if not on destination Transfer of Access Control Lists
32. Transfer of Nodes 3.4 19 Primary Assoc – Node Ref or Path NodeRef The content Aspects Properties cm:content ACL Secondary Assocs
33. Transfer 20 Replication Service Replication Node Finder Alfresco Share Replication Service Transfer Service Rep Job 1
34. Transfer 21 Transfer a set of nodes Company home / HR Docs Company home / HR Docs