AnsweredAssumed Answered

Extend Node Service

Question asked by llicon on Feb 26, 2014
Latest reply on Feb 27, 2014 by mrogers
I have a requirement, that stands that I need to store node information in different MySQL DBs. Lets say I have nodes of type A, B and C. so A nodes have to be stores in A's MySQL, and so on finally other kind of nodes that are not A, B or C have to be stored in default alfresco's MySQL.

I have a couple ideas, and I need to know which is more factible, easy and which makes more sense.

1) Extend node service. the new node service will verify the node type and will have more than one DAO. So it will know where to store the node.

2) Create multiple node services and add them to the service registry (not sure if this is possible). This way I have different node services that I can use from my custom code, but I don't know if I'm going to break alfresco if I have more than one node service.

3) Create a node DAO proxy and set it to node service. This way the node service will not know where the nodes are stored, and the proxy will have the logic to know which DB to use to retrieve the node.

Your feed back will be appreciated!

Outcomes