User permission association method, query method and device

A technology of user rights and permissions, applied in computer security devices, relational databases, special data processing applications, etc., can solve problems such as affecting user use, prone to instability, and difficult to store data volume, etc., to optimize query experience, reduce The effect of occupying and improving the response speed

Inactive Publication Date: 2019-11-01
PCI TECH GRP CO LTD
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For a single database, it is difficult to store such a huge amount of data
Regardless of whether the data is stored in a single database or a sub-database and sub-table mode, the speed of data query and data loading is relatively slow, and the system is prone to instability during the response process, which affects user use.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • User permission association method, query method and device
  • User permission association method, query method and device
  • User permission association method, query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0054] On the basis of the above examples, image 3 It is a flow chart of another method for associating user rights provided in Embodiment 2 of the present application. refer to image 3 , the method for associating user rights provided in this embodiment specifically includes:

[0055] S210. Store the data access rights of any role to several devices using a bitmap data structure, wherein one device corresponds to a bit to store the permission information, and use 0 or 1 to respectively indicate whether a role has the data access rights of the corresponding device .

[0056] S220. Several devices store permission information according to the preset device number corresponding to the bit number of a bitmap, and obtain a bitmap corresponding to the association relationship between the role and the device.

[0057] S230. Establish an association relationship between each user and several roles, and store a bitmap of the association relationship between each corresponding rol...

Embodiment 3

[0062] On the basis of the above examples, Figure 4 It is a flow chart of another method for associating user rights provided in Embodiment 3 of the present application. refer to Figure 4 , the method for associating user rights provided in this embodiment specifically includes:

[0063] S310. Store the data access rights of any role to several devices using a bitmap data structure, where one device corresponds to a bit to store the permission information, and use 0 or 1 to indicate whether a role has the data access rights of the corresponding device .

[0064] S320. Several devices store permission information according to the preset device number corresponding to the bit number of a bitmap, and obtain a bitmap corresponding to the association relationship between roles and devices.

[0065] S330. Establish an association relationship between each user and several roles, and store a bitmap of the association relationship between each corresponding role and a device and ...

Embodiment 4

[0069] On the basis of the above examples, Figure 5 It is a flow chart of a user authority query method provided in Embodiment 4 of the present application. refer to Figure 5 , the user authority query method provided in this embodiment specifically includes:

[0070] S410. Upload a query request for user authority information.

[0071] S420. Receive the copy of user authority data returned by the database, where the copy of user authority data includes association relationship information between each user and several corresponding roles, and bitmap information about the association relationship between each corresponding role and a device.

[0072] S430. Store the user authority data copy in a local memory, and respond to the user authority information query request based on the user authority data copy in the local memory.

[0073] Exemplarily, after referring to the foregoing embodiment, a pair of association information between each user and all roles, and associatio...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a user permission association method, a user permission association device, electronic equipment and a storage medium. The method comprises the steps that thedata access permission of any role to a plurality of devices is stored through a bitmap data structure, one device corresponds to bit storage permission information, and 0 or 1 is used for representing whether one role has the data access permission of the corresponding device or not; the plurality of devices obtain a bitmap corresponding to the association relationship between the role and the devices according to the bit number storage permission information of one bitmap corresponding to a preset device number; an association relationship is established between each user and a plurality ofroles, and the bitmap of the association relationship between each corresponding role and the equipment and the association relationship between each user and the plurality of roles are stored in a database. According to the technical scheme provided by the embodiment of the invention, the occupation of the associated information data on the storage space can be reduced, and the response speed ofsystem data query and loading is improved.

Description

technical field [0001] The embodiments of the present application relate to the technical field of data association storage, and in particular, to a method for associating user rights, a query method, and a device. Background technique [0002] At present, in the application of computer system data access rights management, it is usually necessary to establish an association relationship between users and related devices, indicating that users have data access control rights to these devices. The traditional association management of user and device rights mainly adopts the design method of role rights based on RBAC (Role-Based Access Control, role-based access control). The proxy layer with specific device permissions is essentially a set of a certain number of permissions. Users are associated with specific devices through roles. A user has several roles, and each role has data access rights for several devices. In this way, an authorization model of "user-role-permissio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F21/62G06F16/22G06F16/28
CPCG06F16/22G06F16/288G06F21/6227G06F2221/2141
Inventor 李海富徐润柏郑娃龙刘锡林
Owner PCI TECH GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products