CN112596711A - Personalized authority management setting method and system based on Web system - Google Patents

Personalized authority management setting method and system based on Web system Download PDF

Info

Publication number
CN112596711A
CN112596711A CN202011546479.0A CN202011546479A CN112596711A CN 112596711 A CN112596711 A CN 112596711A CN 202011546479 A CN202011546479 A CN 202011546479A CN 112596711 A CN112596711 A CN 112596711A
Authority
CN
China
Prior art keywords
authority
menu
personalized
setting
management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011546479.0A
Other languages
Chinese (zh)
Inventor
蔡树春
林剑波
谢健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Centerm Information Co Ltd
Original Assignee
Fujian Centerm Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Centerm Information Co Ltd filed Critical Fujian Centerm Information Co Ltd
Priority to CN202011546479.0A priority Critical patent/CN112596711A/en
Publication of CN112596711A publication Critical patent/CN112596711A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a method and a system for setting personalized authority management based on a Web system, wherein the method comprises the following steps: constructing a Springboot + bootstrap + shiro + mybatis Web system framework, and realizing a basic RBAC (role based Access control) authority management module by adopting the Web system framework, wherein the basic RBAC authority management module comprises personnel management, authority role management and organization management; adopting the Web system framework to create an individualized authority menu id, storing the individualized authority menu id into a database table in a json form, and transmitting the corresponding menu id to the front end in the json form when a person logs in each time; the front end analyzes and renders according to json data transmitted by the back end, matches according to the personalized authority menu id and the role authority menu id to which the current person belongs, displays the matched menu id on the menu authority of the front end interface, and stores the menu id into the authority tree list of the current person. The method of the invention can realize dynamic permission setting, reduce code workload and improve system development efficiency.

Description

Personalized authority management setting method and system based on Web system
Technical Field
The invention relates to the technical field of Web systems, in particular to a method and a system for setting personalized authority management based on a Web system.
Background
In the initial stage of a research and development project, research and development personnel are complex to realize functions of current project authority management, department management, role management, personnel autonomous configuration authority management and the like, at least one xml file needs to be designed for each function block in Web system development authority (RBAC) based on an original frame, namely servlet, and when a document needs to be generated quickly, whether conflicts exist among all dependencies, xml files, database fields and the like and whether the xml files are reasonable or not needs to be understood, whether xml file logic is hung up with service knowledge of the system or not needs to be understood, and only simple personnel are associated with roles on the authority, and personnel are associated with menus, so that the required authority menus cannot be generated dynamically. And then, the test, research and development, project construction, environment construction and the like are carried out while knowing business knowledge, so that the whole realization is complicated, the codes are excessive, the xml file iteration is excessive, and the later maintenance work of the system is not facilitated.
Disclosure of Invention
One of the technical problems to be solved by the present invention is to provide a method for setting personalized rights management based on a Web system, so as to solve the problems that the rights management in the existing Web system framework is complex and cannot meet various service requirements.
One of the technical problems to be solved by the invention is realized as follows: a personalized authority management setting method based on a Web system comprises the following steps:
step 1, constructing a springboot + bootstrap + shiro + mybatis Web system framework, and implementing a basic RBAC (role based Access control) authority management module by adopting the Web system framework, wherein the basic RBAC authority management module comprises personnel management, authority role management and organization management;
step 2, adopting the Web system framework to create an individualized authority menu id, storing the individualized authority menu id into a database table in a json form, and transmitting the corresponding menu id to a front end in the json form when a person logs in each time;
and 3, the front end analyzes and renders according to json data transmitted by the rear end, matches according to the personalized authority menu id and the role authority menu id to which the current person belongs, displays the matched menu id on the menu authority of the front end interface, and stores the menu id into the authority tree list of the current person.
Further, a special personnel automatic configuration table is designed or a field is added in a personnel database table to store the personalized authority menu id.
Further, the step 2 specifically includes: and adopting the Web system framework to create an individualized authority menu id, storing the individualized authority menu id into a database table in a json form, verifying whether individualized content exists by using a user Filter when a person logs in each time, if so, matching and generating a corresponding individualized authority menu id, and transmitting the individualized authority menu id to a front end in a json form for calling, otherwise, transmitting the role authority menu id to which the person belongs to the front end in a json form.
Further, the step 3 further includes: and storing the menu which is not matched into the authority tree list of the person, setting a check in the authority tree list corresponding to the menu which is matched with the person as true, and setting a check in the authority tree list corresponding to the menu which is not matched with the person as false.
Further, the method further comprises: and 4, a setting button is further provided on the front-end interface and is used for setting and canceling the authority in the role of the person again, and setting the personalized menu authority is realized through the transmitted checked state of the authority tree id.
The second technical problem to be solved by the present invention is to provide a personalized right management setting system based on a Web system, so as to solve the problem that the right management in the existing Web system framework is complex and cannot meet various service requirements.
The second technical problem to be solved by the invention is realized as follows: a personalized authority management setting system based on a Web system comprises:
the system comprises a basic module and a basic RBAC authority management module, wherein the basic module is used for constructing a Springboot + bootstrap + shiro + mybatis Web system framework, and the basic RBAC authority management module is realized by adopting the Web system framework and comprises personnel management, authority role management and organization management;
the personalized authority setting module is used for creating a personalized authority menu id by adopting the Web system framework, storing the personalized authority menu id into a database table in a json mode, and transmitting the corresponding menu id to the front end in the json mode when a person logs in each time; and
and the personalized authority generation module is used for analyzing and rendering the json data transmitted by the front end according to the back end, matching the personalized authority menu id and the role authority menu id to which the current person belongs, displaying the matched menu id on the menu authority of the front end interface, and storing the menu id into the authority tree list of the current person.
Further, a special personnel automatic configuration table is designed or a field is added in a personnel database table to store the personalized authority menu id.
Further, the personalized permission setting module specifically includes: the system comprises a Web system framework, a user Filter, a front end and a front end, wherein the Web system framework is used for creating an individualized authority menu id and storing the individualized authority menu id into a database table in a json mode, when a person logs in each time, the user Filter is used for verifying whether individualized content exists, if yes, matching is carried out and a corresponding individualized authority menu id is generated and transmitted to the front end in the json mode for calling, and otherwise, the role authority menu id to which the person belongs is transmitted back to the front end in the json mode.
Further, the personalized permission generation module further includes: and the method is used for storing the menu which is not matched into the authority tree list of the personnel, setting a check in the authority tree list corresponding to the menu which is matched with the personnel as true, and setting a check in the authority tree list corresponding to the menu which is not matched with the personnel as false.
Furthermore, a setting button is further provided on the front-end interface, and is used for setting and canceling the authority of the person in the role again, and setting the personalized menu authority is realized through the transmitted checked state of the authority tree id.
The invention has the advantages that:
1. by designing a new framework, the xml file is stripped, the complexity of the original code is reduced, the rapid integration is realized, and the research and development progress can be deepened.
2. And the codes to be written for personnel configuration and menu configuration are reduced, and the later maintenance is facilitated.
3. The method can dynamically generate personalized menus and the like, has high expandability and can meet complex service functions.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
Fig. 1 is an execution flow chart of a personalized rights management setting method based on a Web system according to the present invention.
Fig. 2 is a schematic structural diagram of a personalized rights management setting system based on a Web system according to the present invention.
Fig. 3 is a schematic view of a privilege flow structure under a system framework adopted by the present invention.
Fig. 4 is a schematic diagram of a data structure of the personalized permission table according to the present invention.
Detailed Description
Referring to fig. 1, fig. 3 and fig. 4, a personalized rights management setting method based on a Web system of the present invention includes:
step 1, constructing a springboot + bootstrap + shiro + mybatis Web system framework, and implementing a basic RBAC (role based Access control) authority management module by adopting the Web system framework, wherein the basic RBAC authority management module comprises personnel management, authority role management and organization management;
step 2, adopting the Web system framework to create an individualized authority menu id, storing the individualized authority menu id into a database table in a json form, and transmitting the corresponding menu id to a front end in the json form when a person logs in each time;
and 3, the front end analyzes and renders according to json data transmitted by the rear end, matches according to the personalized authority menu id and the role authority menu id to which the current person belongs, displays the matched menu id on the menu authority of the front end interface, and stores the menu id into the authority tree list of the current person.
Preferably, a dedicated personnel automatic configuration table is designed or a field is added in a personnel database table to store the personalized permission menu id, as shown in fig. 4, a structural diagram of the personalized permission table (i.e. the personnel automatic configuration table) of the present invention is shown.
Preferably, the step 2 specifically includes: the method comprises the steps of establishing an individualized authority menu id by adopting a Web system frame, storing the individualized authority menu id into a database table in a json mode, intercepting information when a person logs in every time, such as when the person inputs an account password and logs in and returns to a homepage (index), verifying whether individualized content (namely an individualized authority menu) exists by utilizing a user Filter, matching and generating a corresponding individualized authority menu id if the individualized authority menu id exists, acquiring a current individualized authority menu id (json format) from a person automatic configuration table or a person database table in the database according to the person id, transmitting the current individualized authority menu id to a front end in the json mode for calling, and transmitting the role authority menu id belonging to the person to the front end in the json mode if the individualized authority menu id exists.
Preferably, the step 3 further comprises: and storing the menu which is not matched into an authority tree (tree) list of the person, setting a check in the authority tree list corresponding to the menu which is matched with the person to be true, and setting a check in the authority tree list corresponding to the menu which is not matched with the person to be false.
Preferably, the method further comprises: and 4, a setting button is further provided on the front-end interface and is used for setting and canceling the authority in the role of the person again, and setting the personalized menu authority is realized through the transmitted checked state of the authority tree (tree) id. The set personalized authority menu id can be changed or the menu id is added for authority configuration by clicking a 'setting' button, then the 'determination' is clicked, namely the currently configured menu id is modified and is transmitted back to the back end in the json form, the back end analyzes and stores the menu id in the database in the json form, or the 'cancellation' is clicked, namely no operation is performed. The invention can realize the change of the set personalized authority menu id or the addition of the menu id, thereby realizing the dynamic authority configuration process.
Referring to fig. 2 to 4, a personalized rights management setting system based on a Web system according to the present invention includes:
the system comprises a basic module and a basic RBAC authority management module, wherein the basic module is used for constructing a Springboot + bootstrap + shiro + mybatis Web system framework, and the basic RBAC authority management module is realized by adopting the Web system framework and comprises personnel management, authority role management and organization management;
the personalized authority setting module is used for creating a personalized authority menu id by adopting the Web system framework, storing the personalized authority menu id into a database table in a json mode, and transmitting the corresponding menu id to the front end in the json mode when a person logs in each time; and
and the personalized authority generation module is used for analyzing and rendering the json data transmitted by the front end according to the back end, matching the personalized authority menu id and the role authority menu id to which the current person belongs, displaying the matched menu id on the menu authority of the front end interface, and storing the menu id into the authority tree list of the current person.
Preferably, the personalized permission menu id is stored by designing a dedicated personnel automatic configuration table or adding a field in a personnel database table.
Preferably, the personalized permission setting module specifically includes: the method comprises the steps of establishing a personalized authority menu id by using the Web system framework, storing the personalized authority menu id into a database table in a json mode, intercepting information when a person logs in every time, such as when the person inputs an account password and logs in and returns to a homepage (index), verifying whether personalized content (namely a personalized authority menu) exists by using a user Filter, matching and generating a corresponding personalized authority menu id if the personalized authority menu id exists, acquiring a current personalized authority menu id (json format) from a person automatic configuration table or a person database table in the database according to the person id, transmitting the current personalized authority menu id to a front end in the json mode for calling, and transmitting the role authority menu id belonging to the person to the front end in the json mode if the personalized authority menu id exists.
Preferably, the personalized permission generating module further includes: and the method is used for storing the menu which is not matched into the authority tree (tree) list of the person, setting the check in the authority tree list corresponding to the menu which is matched with the person to be true, and setting the check in the authority tree list corresponding to the menu which is not matched with the person to be false.
Preferably, a "set" button is further provided on the front-end interface, and is used to set and cancel the authority in the role of the person again, and the setting of the personalized menu authority is realized through the transmitted checked state of the authority tree (tree) id. The set personalized authority menu id can be changed or the menu id is added for authority configuration by clicking a 'setting' button, then the 'determination' is clicked, namely the currently configured menu id is modified and is transmitted back to the back end in the json form, the back end analyzes and stores the menu id in the database in the json form, or the 'cancellation' is clicked, namely no operation is performed. The invention can realize the change of the set personalized authority menu id or the addition of the menu id, thereby realizing the dynamic authority configuration process.
The invention discloses a basic RBAC (role-based policies Access control) authority management module and a personalized menu management module of a developed management platform through a pre-built Web system based on springboot + bootstrap + shiro + mybatis. The xml files can be stripped by adopting the springboot lightweight frame, a plurality of xml files do not need to be written for each functional module, mybatis notes are adopted to configure and map native information, the code amount can be effectively reduced, the time consumed by a research and development personnel to build a basic authority management platform in the early stage is shortened, the research and development efficiency is improved, and convenience is brought to later maintenance; the invention can also realize dynamic personalized authority configuration by utilizing the system framework, and not only is limited to the association between roles and menus, but also can be the association between departments and menus, and the association between report authorities and personnel according to actual needs, so that the expandability is strong, and different business requirements are met.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.

Claims (10)

1. A personalized authority management setting method based on a Web system is characterized in that: the method comprises the following steps:
step 1, constructing a springboot + bootstrap + shiro + mybatis Web system framework, and implementing a basic RBAC (role based Access control) authority management module by adopting the Web system framework, wherein the basic RBAC authority management module comprises personnel management, authority role management and organization management;
step 2, adopting the Web system framework to create an individualized authority menu id, storing the individualized authority menu id into a database table in a json form, and transmitting the corresponding menu id to a front end in the json form when a person logs in each time;
and 3, the front end analyzes and renders according to json data transmitted by the rear end, matches according to the personalized authority menu id and the role authority menu id to which the current person belongs, displays the matched menu id on the menu authority of the front end interface, and stores the menu id into the authority tree list of the current person.
2. The method for setting personalized rights management based on Web system according to claim 1, wherein: the personalized rights menu id is stored by designing a dedicated personnel autoconfiguration table or adding a field in a personnel database table.
3. The method for setting personalized rights management based on Web system according to claim 1, wherein: the step 2 specifically comprises: and adopting the Web system framework to create an individualized authority menu id, storing the individualized authority menu id into a database table in a json form, verifying whether individualized content exists by using a user Filter when a person logs in each time, if so, matching and generating a corresponding individualized authority menu id, and transmitting the individualized authority menu id to a front end in a json form for calling, otherwise, transmitting the role authority menu id to which the person belongs to the front end in a json form.
4. The personalized rights management setting method based on the Web system as claimed in claim 3, wherein: the step 3 further comprises: and storing the menu which is not matched into the authority tree list of the person, setting a check in the authority tree list corresponding to the menu which is matched with the person as true, and setting a check in the authority tree list corresponding to the menu which is not matched with the person as false.
5. The personalized rights management setting method based on the Web system as claimed in claim 4, wherein: the method further comprises the following steps: and 4, a setting button is further provided on the front-end interface and is used for setting and canceling the authority in the role of the person again, and setting the personalized menu authority is realized through the transmitted checked state of the authority tree id.
6. A personalized authority management setting system based on a Web system is characterized in that: the method comprises the following steps:
the system comprises a basic module and a basic RBAC authority management module, wherein the basic module is used for constructing a Springboot + bootstrap + shiro + mybatis Web system framework, and the basic RBAC authority management module is realized by adopting the Web system framework and comprises personnel management, authority role management and organization management;
the personalized authority setting module is used for creating a personalized authority menu id by adopting the Web system framework, storing the personalized authority menu id into a database table in a json mode, and transmitting the corresponding menu id to the front end in the json mode when a person logs in each time; and
and the personalized authority generation module is used for analyzing and rendering the json data transmitted by the front end according to the back end, matching the personalized authority menu id and the role authority menu id to which the current person belongs, displaying the matched menu id on the menu authority of the front end interface, and storing the menu id into the authority tree list of the current person.
7. The personalized rights management setting system based on the Web system as claimed in claim 6, wherein: the personalized rights menu id is stored by designing a dedicated personnel autoconfiguration table or adding a field in a personnel database table.
8. The personalized rights management setting system based on the Web system as claimed in claim 6, wherein: the personalized permission setting module specifically comprises: the system comprises a Web system framework, a user Filter, a front end and a front end, wherein the Web system framework is used for creating an individualized authority menu id and storing the individualized authority menu id into a database table in a json mode, when a person logs in each time, the user Filter is used for verifying whether individualized content exists, if yes, matching is carried out and a corresponding individualized authority menu id is generated and transmitted to the front end in the json mode for calling, and otherwise, the role authority menu id to which the person belongs is transmitted back to the front end in the json mode.
9. The system of claim 8, wherein the system comprises: the personalized permission generation module further comprises: and the method is used for storing the menu which is not matched into the authority tree list of the personnel, setting a check in the authority tree list corresponding to the menu which is matched with the personnel as true, and setting a check in the authority tree list corresponding to the menu which is not matched with the personnel as false.
10. The system of claim 9, wherein the system comprises: and a setting button is also provided on the front-end interface and is used for setting and canceling the authority in the role of the person again, and setting the personalized menu authority is realized through the transmitted checked state of the authority tree id.
CN202011546479.0A 2020-12-24 2020-12-24 Personalized authority management setting method and system based on Web system Pending CN112596711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011546479.0A CN112596711A (en) 2020-12-24 2020-12-24 Personalized authority management setting method and system based on Web system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011546479.0A CN112596711A (en) 2020-12-24 2020-12-24 Personalized authority management setting method and system based on Web system

Publications (1)

Publication Number Publication Date
CN112596711A true CN112596711A (en) 2021-04-02

Family

ID=75200820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011546479.0A Pending CN112596711A (en) 2020-12-24 2020-12-24 Personalized authority management setting method and system based on Web system

Country Status (1)

Country Link
CN (1) CN112596711A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567504A (en) * 2022-03-07 2022-05-31 福建天晴在线互动科技有限公司 Dynamic permission cross management method and system based on web architecture
CN114879882A (en) * 2022-05-24 2022-08-09 上海合见工业软件集团有限公司 Software menu system based on JSON configuration

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032342A1 (en) * 2012-07-24 2014-01-30 Scott Joseph Tyburski Menu creation and design system
CN107679417A (en) * 2017-10-09 2018-02-09 郑州云海信息技术有限公司 A kind of method and system of user's operating right management
CN110659465A (en) * 2019-09-25 2020-01-07 四川长虹电器股份有限公司 RBAC-based personalized authority management method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032342A1 (en) * 2012-07-24 2014-01-30 Scott Joseph Tyburski Menu creation and design system
CN107679417A (en) * 2017-10-09 2018-02-09 郑州云海信息技术有限公司 A kind of method and system of user's operating right management
CN110659465A (en) * 2019-09-25 2020-01-07 四川长虹电器股份有限公司 RBAC-based personalized authority management method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
初夏VLOG: "Spring Boot + Mybatis + Shiro 后台权限管理系统" *
牟野: "SpringBoot+Shiro配置数据库实现后台管理页面根据角色权限动态生成菜单栏" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567504A (en) * 2022-03-07 2022-05-31 福建天晴在线互动科技有限公司 Dynamic permission cross management method and system based on web architecture
CN114567504B (en) * 2022-03-07 2023-08-25 福建天晴在线互动科技有限公司 Dynamic authority cross management method and system based on web architecture
CN114879882A (en) * 2022-05-24 2022-08-09 上海合见工业软件集团有限公司 Software menu system based on JSON configuration
CN114879882B (en) * 2022-05-24 2023-04-07 上海合见工业软件集团有限公司 Software menu system based on JSON configuration

Similar Documents

Publication Publication Date Title
CN110989983B (en) Zero-coding application software rapid construction system
CN107193545B (en) Component-oriented multi-language collaborative development device, method and system
CA3111422C (en) User interface for automated flows within a cloud based developmental platform
US8751558B2 (en) Mashup infrastructure with learning mechanism
US8332470B2 (en) Methods and apparatus providing collaborative access to applications
US8396827B2 (en) Relation-based hierarchy evaluation of recursive nodes
US8478602B2 (en) Executing business processes using persistent variables
GB2587144A (en) Collaborative design systems, apparatuses, and methods
US20080162616A1 (en) Skip relation pattern for graph structures
CN111552471A (en) Task arrangement method and system under hybrid cloud environment
CN104216912A (en) Method and device for achieving non-intrusive service form workflow
US20080162777A1 (en) Graph abstraction pattern for generic graph evaluation
CN112596711A (en) Personalized authority management setting method and system based on Web system
CN111651738B (en) Fine-grained role authority unified management method based on front-end and back-end separation architecture and electronic device
CN109359038A (en) One kind realizing configurable test system, implementation method and equipment based on Qt and Lua combination
CN101706823B (en) Inquiry system and method of customized database
CN111159301A (en) Data creating method, device, equipment and storage medium based on intelligent contract
CN103593188A (en) System and method for managing what-you-see-is-what-you-get menus of instrument
JP5530173B2 (en) Directory system having organization structure management directory and program thereof
CN110941422B (en) Code automatic generation method, code generator and readable storage medium
CN111931133B (en) Permission control method based on B/S architecture
EP1646940A2 (en) Designing computer programs
CN110759191B (en) Elevator control method based on 5G smart park
US8782095B2 (en) Method and system for programming at run-time and dynamic business application
CN113204524A (en) System file collaborative editing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination