cancel
Showing results for 
Search instead for 
Did you mean: 

How to intercept add/get content and metadata calls?

nenad982
Champ on-the-rise
Champ on-the-rise

Hello everybody,

I need advice.

I would like in Alfresco v5.1.g to intercept all calls (in  Java API) which will create/get content and create/get its metadata.  So my questions are:

1. Is this possible at all?

1. Is there a single place in Java API where these calls can be intercepted and where to look at?

Since now I found that:

org.alfresco.repo.node.db.DbNodeServiceImpl#createNode

org.alfresco.repo.contentAbstractContentWriter#putContent

will be used in this communication.

Does anybody have some advice related to this?

Thanks in advance

3 REPLIES 3

hardik1512
Star Contributor
Star Contributor

Try using Alfresco Behaviours / Policies.

Behaviours / Policies | Alfresco Documentation 

Thank you for your answer.

Maybe I can use behaviours before the node is created (to manipulate with content) but I need also a possibility to manipulate with node content when user try to download/view in browser/online edit the content.

The same thing is with metadata.

The perfect would be to have one single point (or few of them) where I can intercept all these get/set calls. 

ok, In this case, check if Activity Service can be used.

ActivityService | Alfresco Documentation