Classification and Inheritance of policy carriers in alfresco

Source: Internet
Author: User

Policy is an implementation similar to AOP in alfresco.

 

You can use a policy to dynamically add business logic. These operations are not associated on the basis.

 

1. Policy inheritance

Ii. inheritance relationship of propertypolicy

Currently, propertypolicy is not inherited and used.

 

Iii. inheritance relationship of associationpolicy

 

 

 

Iv. inheritance relationship of classpolicy

Because the inheritance relationship of classpolicy is complex, it is divided into several layers.

 

1. Subclass of classpolicy

 

2. Other inheritance classes

 

 

 

 

V. classpolicy Distribution

 

 

 

1. asynchronousactionexecutionqueuepolicies

====================================
Onasyncactionexecute

2. contentservicepolicies

====================================
1) oncontentupdatepolicy

 

2) oncontentreadpolicy

3. nodeservicepolicies

====================================
1) beforecreatestorepolicy

2) oncreatestorepolicy

3) beforecreatenodepolicy

4) oncreatenodepolicy

5) onmovenodepolicy

6) beforeupdatenodepolicy

7) onupdatenodepolicy

8) onupdatepropertiespolicy

9) beforedeletenodepolicy

10) ondeletenodepolicy

11) beforeaddaspectpolicy

12) onaddaspectpolicy

13) beforeremoveaspectpolicy

14) onremoveaspectpolicy

15) beforecreatenodeassociationpolicy

16) oncreatenodeassociationpolicy

17) beforecreatechildassociationpolicy

18) oncreatechildassociationpolicy

19) beforedeletechildassociationpolicy

20) ondeletechildassociationpolicy

21) oncreateassociationpolicy

22) ondeleteassociationpolicy

4. copyservicepolicies

==========================================================
Oncopynodepolicy

Oncopycompletepolicy

5. versionservicepolicies

==========================================================
Beforecreateversionpolicy

Aftercreateversionpolicy

Oncreateversionpolicy

Calculateversionlabelpolicy

==========================================================

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.