Obtain different types of authority

Source: Internet
Author: User

The Authority types include:

Admin
User
Group
Owner
Everyone
Guest
Role

When you obtain these types of authority through authorityservice,

Admin, everyone, and guest return a fixed value.
It corresponds to the role_administrator, group_everyone, and guest defined in permissionservice respectively. Here, we directly show that the value is not a constant declaration.

The user is the person returned through the personservice. Associate the node and properties tables to find the person according to the username attribute conditions in properties.
This is the implementation of alfresco. In fact, you can use QNAME as person, and avoid table Association. The implementation of alfresco ignores nodes where the person does not have the username attribute.

The owner returns an empty set.

Group and role obtain the default authoritycontainer (node 5), traverse all the sub-nodes, and obtain the role and group by determining the type.

 

Through the above analysis, we can see that alfresco has different storage methods and locations for different types of data.

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.