Resource statistical method and device based on resource tree permission, medium and electronic equipment

A statistical method and technology of resource tree, applied in the field of device, medium and electronic equipment, resource statistical method based on resource tree authority, can solve problems such as large amount of calculation and low statistical efficiency, reduce the amount of calculation, improve statistical efficiency, Reduce the effect of traversed nodes and levels

Pending Publication Date: 2022-07-01
ZHEJIANG UNIVIEW TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When using this method to perform authentication operations on nodes, it is necessary to traverse each node from the leaf node to the root node, and perform a permission check on each node. At the same time, each user may have different permissions for different nodes. , so check the user's permission assignment for each node, resulting in a large amount of calculation required for resource statistics and low statistical efficiency

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
  • Resource statistical method and device based on resource tree permission, medium and electronic equipment
  • Resource statistical method and device based on resource tree permission, medium and electronic equipment
  • Resource statistical method and device based on resource tree permission, medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0068] image 3 This is a schematic diagram of the resource statistics process based on the resource tree authority provided by the second embodiment of the present application, and the second embodiment is further optimized on the basis of the first embodiment. The specific optimization is: after judging whether the user has permission to the root node of the resource tree according to at least one role assigned to the user, the method further includes: if there is no permission, querying the resource tree for the minimum permission Subtree; in the statistical process, if the analysis node of the resource tree is the root node of the least weighted subtree, the statistics will skip all the nodes of the least weighted subtree to obtain the resource statistics result. Wherein, for details not described in detail in this embodiment, please refer to Embodiment 1. like image 3 As shown, the method includes the following steps:

[0069] S310. Build a resource tree composed of a...

Embodiment 3

[0097] Figure 5 It is a schematic structural diagram of a resource statistics device based on resource tree authority provided in Embodiment 3 of this application, as shown in Figure 5 As shown, the resource statistics device based on resource tree authority includes:

[0098] The resource tree building module 510 is used to build a resource tree composed of an organization node and a camera node according to the resource's own ID and parent node ID;

[0099] The root node authority judgment module 520 is configured to judge whether the user has authority to the root node of the resource tree according to at least one role assigned to the user;

[0100] The minimum unweighted subtree query module 530 is used for querying the minimum unweighted subtree in the resource tree if there is permission;

[0101] The resource statistics result obtaining module 540 is used for the statistical analysis process, if the current analysis node of the resource tree is the root node of the...

Embodiment 4

[0124] Embodiment 4 of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a resource tree permission-based resource statistics method when executed by a computer processor, and the method includes:

[0125] Build a resource tree consisting of organization nodes and camera nodes according to the resource's own ID and parent node ID;

[0126] According to at least one role assigned to the user, determine whether the user has permission to the root node of the resource tree;

[0127] If there is permission, query the minimum unauthorized subtree in the resource tree;

[0128] During the statistical analysis process, if the current analysis node of the resource tree is the root node of the minimum weightless subtree, skip all nodes of the minimum weightless subtree to obtain the resource statistics result.

[0129] A storage medium refers to any of various types of mem...

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 resource statistics method and device based on resource tree permission, a medium and electronic equipment. Constructing a resource tree composed of organization nodes and camera nodes according to the ID of the resource and the ID of the father node; according to at least one role allocated to the user, judging whether the user has permission to a root node of the resource tree or not; if the resource tree has the permission, querying a minimum unweighted sub-tree in the resource tree; and in the statistical analysis process, if the current analysis node of the resource tree is the root node of the minimum unweighted sub-tree, skipping all nodes of the minimum unweighted sub-tree to obtain a resource statistical result. By adopting the scheme, when the camera resources in the resource tree are counted, traversed nodes and levels can be reduced through the configured permission, meanwhile, permission identification does not need to be performed again during traversal, the calculation amount required by resource statistics is reduced, and the statistical efficiency is improved.

Description

technical field [0001] The embodiments of the present application relate to the field of computer technologies, and in particular, to a resource statistics method, apparatus, medium, and electronic device based on resource tree permissions. Background technique [0002] A tree structure is a finite collection of one or more nodes. The node represents a resource, and the edge connecting the node represents the connection method between the parent node and the child node, which can be the path of file transfer or the embodiment of the management relationship before the node. In the security industry, when the resource permission system stores all resources in the memory in a tree structure, the descendant nodes under a node usually represent camera resources. [0003] When counting the camera resources in the resource tree, it is generally done by traversing each node, and at the same time, checking the permissions of each node. [0004] When using this method to perform aut...

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): G06F16/22G06F16/2455G06F16/2458
CPCG06F16/2246G06F16/2462G06F16/2455
Inventor 陈周天瑜
Owner ZHEJIANG UNIVIEW TECH
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