cancel
Showing results for 
Search instead for 
Did you mean: 

Binding behaviour to all files/folders

manish
Champ in-the-making
Champ in-the-making
Is it possible to bind certain behaviour to all files & folders under Alfresco? This Wiki document mentions it is possible,
         http://wiki.alfresco.com/wiki/Policy_Component#Binding_Behaviour_to_a_Policy
but the new PolicyComponent API doesn't have this method called bindBehaviour(…)
         http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/policy/PolicyComponent.html

How can I achieve it with new PolicyComponent?

TIA,
- Manish
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
The policy component is not "new".

For examples look in the Alfresco source code for
calls to  bindClassBehaviour();

Start with NodeServicePolicies.

manish
Champ in-the-making
Champ in-the-making
The policy component is not "new".

For examples look in the Alfresco source code for
calls to  bindClassBehaviour();

Start with NodeServicePolicies.

I am not sure I understand, I looked into NodeServicePolicies but there are only interfaces with relevant methods there.
I'd be obliged if you could you provide more specific pointer.

TIA,
- Manish

manish
Champ in-the-making
Champ in-the-making
Never mind, I got it working! Smiley Happy