Also talk about permission management: Preface

Source: Internet
Author: User
Permission management is the basic module of all information systems. Over the past year, I have the honor to participate in the development of large ERP systems, including customer relations, sales, warehouses, procurement, finance, seven major modules, including production and personnel, are mainly developed by our group with great experience.
I saw a lot of special write permissions in the garden. Article One of them is dedicated to permissions and has written many articles in this area. before writing this series, I spent a few nights reading his article carefully and benefited a lot from the comparison with my permission implementation solution; I also read the article on Role-Based permission Control for RBAC. After these preparations, I decided to write the article based on the following ideas:

1. Ideal permission Model
The basic working principles of computers in universities are explained in a simplified computer model at the beginning. from a practical perspective, this model is almost useless, but is conducive to learning the essence of things, after understanding the essence, we can build a real-world permission management module step by step based on the model machine based on actual needs.

2. Initial Implementation of the ideal model
In this article, we will point out what is idealized, how to operate in reality, and how to convert from ideal to reality.

3. Set and grant permissions
How do I set permissions? Let's share my experience on the Interface of this module. Then, how do I grant permissions to target users, or indirectly, what are their advantages and disadvantages, what do I like more, and how can I persuade others to accept what I like.

4. permission management is transparent to the System
How to embed permission management into the application system for business editingProgramThe staff is transparent. You only need to compile your program, and you do not need to ask questions. Why is it unable to meet all the requirements, so we have the following two chapters of permissions for calling at the presentation layer and business layer.

5. Permission usage at the presentation layer
Here, the presentation layer can be a view in B \ s, or a view in C \ s. What are its requirements, in the presentation layer, how do I call the functions provided by the permission management module to complete permission control requirements.

6. Permission calls at the Business Layer
In special cases, the permission management module cannot fully and transparently handle permission control. What interfaces should it provide for other programmers to call and manually encode them to complete permission control.

7. Handling of Special Cases
According to the methods in the above chapters, most of the permission control can be satisfied, but some special requirements still cannot be met. What are they and how should they be handled.

8. Existing Problems and improvement ideas (end)
After writing the above articles, I must be able to find out a lot of problems in my solution. I will talk about my initial improvement ideas to address these problems and improve my permission management module, this is why I wrote this series of articles.

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.