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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com