Resource management method, device, computer equipment and storage medium

By using the organizational structure tree in the server of the application portal platform to query the resource collection of users, applications and functional services, the problem of a single permission management method in the existing technology is solved, flexible permission management of multiple resources is realized, and permissions are improved. Management application scenarios and applicability.

CN113204427BActive Publication Date: 2024-09-06ENVISION DIGITAL INT PTE LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202110553396.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-20
Publication Date
2024-09-06
Estimated Expiration
2041-05-20

AI Technical Summary

Technical Problem

In the existing technology, the permission management method of the application portal platform is single, which cannot be applied to scenarios that require the management of multiple resources, and cannot simultaneously meet the permission management needs of users, applications and service functions.

Method used

By using the organizational structure tree in the server of the application portal platform, query the resource collection of target users, applications and functional services, obtain the resources corresponding to the resource management request, and send them to the terminal to realize permissions for users, applications and service functions. manage.

Benefits of technology

It expands the scope of permission management and improves the application scenarios of permission management. It can simultaneously meet the permission requirements of users, applications and service functions, and enhances the flexibility and applicability of permission management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113204427B
    Figure CN113204427B
Patent Text Reader

Abstract

The present disclosure discloses a resource management method, apparatus, computer equipment and storage medium, belonging to the field of Internet of Things technology. The method includes: receiving a request sent by a terminal for requesting to display resources in a target function page in a target application; querying a first resource set consisting of resources corresponding to the target user, a second resource set consisting of resources corresponding to the target application, and a third resource set consisting of resources corresponding to the target function service in each first organizational structure tree; according to the first resource set, the second resource set and the third resource set, obtaining resources corresponding to the resource management request and sending them to the terminal. This solution can directly obtain resources corresponding to permissions that simultaneously meet the user, application and service functions through the above-mentioned first organizational structure tree, thereby expanding the scope of permission management and improving the application scenarios of permission management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Internet of Things, and in particular to a resource management method, device, computer equipment and storage medium. Background Art

[0002] The application portal platform is a type of middle platform that is becoming increasingly widely used. The concept of a large middle platform requires it to uniformly manage the permissions and core resources of all applications.

[0003] The application portal platform involves how a user uses and displays resources in an application. When a user uses and displays resources in an application, permission management is required. In related technologies, in this scenario, a permission management system for users is usually set up to return the resources that the user has permission to view to the application based on the user's permission.

[0004] However, the solutions in the related art only manage the rights of resources for users, resulting in a single management method and being unable to be applied to scenarios where multiple resources need to be managed. Summary of the invention

[0005] The present disclosure provides a resource management method, device, computer equipment and storage medium. The technical solution is as follows:

[0006] In one aspect, a resource management method is provided, the method being executed by a server of an application portal platform, the application portal platform being a platform integrated with at least two applications, the method comprising:

[0007] Receiving a resource management request sent by a terminal, wherein the resource management request is used to request a resource displayed in a target function page in a target application;

[0008] Querying a first resource set consisting of resources corresponding to a target user in each first organization structure tree; the target user is a user corresponding to the terminal; the first organization structure tree includes at least one node, and the node is used to mount at least one of a user, an application, a functional service, and a resource;

[0009] Querying each of the first organization structure trees for a second resource set consisting of resources corresponding to the target application;

[0010] Querying a third resource set consisting of resources corresponding to a target functional service in each of the first organization structure trees; the target functional service is a functional service corresponding to the target functional page;

[0011] Acquire resources corresponding to the resource management request according to the first resource set, the second resource set, and the third resource set;

[0012] The resource corresponding to the resource management request is sent to the terminal.

[0013] In one aspect, a resource management device is provided, the device being used in a server of an application portal platform, the application portal platform being a platform integrated with at least two applications, the device comprising:

[0014] A request receiving module, used to receive a resource management request sent by a terminal, wherein the resource management request is used to request a resource displayed in a target function page in a target application;

[0015] A first resource set query module is used to query a first resource set consisting of resources corresponding to a target user in each first organization structure tree; the target user is a user corresponding to the terminal; the first organization structure tree includes at least one node, and the node is used to mount at least one of a user, an application, a functional service, and a resource;

[0016] A second resource set query module, used to query the second resource set consisting of resources corresponding to the target application in each of the first organization structure trees;

[0017] A third resource set query module is used to query a third resource set consisting of resources corresponding to a target functional service in each of the first organization structure trees; the target functional service is a functional service corresponding to the target functional page;

[0018] A resource acquisition module, configured to acquire resources corresponding to the resource management request according to the first resource set, the second resource set and the third resource set;

[0019] The resource sending module is used to send the resources corresponding to the resource management request to the terminal.

[0020] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the above-mentioned resource management method.

[0021] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned resource management method.

[0022] According to one aspect of the present application, a computer program product is provided, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the resource management method provided in various optional implementations of the above aspects.

[0023] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0024] The first organizational structure tree is used to implement permissions for users, applications, and service functions to resources respectively. When a request is received from a user to display resources in a service function page in an application, the resources corresponding to the permissions that simultaneously satisfy the user, application, and service function can be directly obtained through the first organizational structure tree, thereby expanding the scope of permission management and improving the application scenarios of permission management.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0027] Figure 1 is a schematic diagram of a resource management system according to an exemplary embodiment;

[0028] Figure 2 is a flow chart of a resource management method according to an exemplary embodiment;

[0029] Figure 3 yes Figure 2 A schematic diagram of an organization structure tree involved in the illustrated embodiment;

[0030] Figure 4 is a flow chart of a resource management method according to an exemplary embodiment;

[0031] Figure 5 yes Figure 4 A schematic diagram of an organization structure tree involved in the illustrated embodiment;

[0032] Figure 6 yes Figure 4 A schematic diagram of user resource permissions in the organization structure tree involved in the illustrated embodiment;

[0033] Figure 7 yes Figure 4A schematic diagram of application resource permissions in the organization structure tree involved in the illustrated embodiment;

[0034] Figure 8 yes Figure 4 A schematic diagram of service resource permissions in an organization structure tree according to the illustrated embodiment;

[0035] Fig. 9 yes Figure 4 A diagram showing a structure of resources involved in the illustrated embodiment;

[0036] Fig.10 is a block diagram of a resource management device according to an exemplary embodiment;

[0037] Fig.11 The diagram is a schematic structural diagram of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0039] It should be understood that the "several" mentioned in this article refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0040] For ease of understanding, the terms involved in the embodiments of the present disclosure are explained below.

[0041] 1) Organizational structure

[0042] In various embodiments of the present application, an organizational structure refers to a logical node created in the system that may have a parent-child relationship. An organizational structure may include only one node, or may include a node and its descendant nodes.

[0043] In various embodiments of the present application, one or more organizational structures may constitute an organizational structure tree, which includes a root node and descendant nodes of the root node. The organizational structure tree may also be considered as a tree-shaped organizational structure.

[0044] 2) Resources

[0045] In the embodiment of the present application, resources refer to abstract entities that require permission management.

[0046] For example, taking the application of the solutions shown in the various embodiments of the present application in the field of the Internet of Things as an example, a resource can be an entity corresponding to an Internet of Things device. For example, a resource can be the device information corresponding to a wind turbine (such as location, name, number, online, operating status, speed, pitch, power generation, continuous operation time, etc.), or a resource can be the device information corresponding to a solar panel (such as location, name, number, online, illumination, ambient temperature, power generation, etc.).

[0047] 3) Permission Points

[0048] In the embodiment of the present application, each functional point in the application can be abstracted into a permission point in the permission management system to manage the resource permissions corresponding to the functional point.

[0049] For example, an application is an application for managing wind turbines. The functional points in the application include three types: wind turbine operation status management, wind turbine pitch management, and wind turbine power generation query. The wind turbines that can be managed / queried by different functional points can be the same or different. For example, the function point of wind turbine operation status management can manage wind turbines 1 to 10, the function point of wind turbine pitch management can manage wind turbines 1 to 7, and the function point of wind turbine power generation query can query wind turbines 2 to 15.

[0050] For the above three function points, three permission points may be set accordingly, each permission point is used to manage the permission of the corresponding function point. For example, the permission here may refer to which wind turbines the corresponding function point has the permission to manage / query.

[0051] 4) Service Account

[0052] In an embodiment of the present application, an application and a function within the application (such as a menu function) can correspond to respective accounts. Such an account is called a service account. Through the service account, it can be determined which resources the application, function / permission point corresponding to the service account has the authority to use.

[0053] Figure 1 1 is a schematic diagram showing a resource management system according to an exemplary embodiment. The resource management system includes a terminal 110 and a server 120 .

[0054] The terminal 110 has a client of the application portal platform installed therein.

[0055] In a possible implementation, the application portal platform is a platform integrated with at least two applications, and the user can log in to the application portal platform through the client in the terminal 110 and use any application integrated in the application portal platform.

[0056] The terminal 110 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.

[0057] The server 120 is a server of the application portal platform.

[0058] The server 120 provides background resource management services for the application.

[0059] The server 120 may be a single server, or may be a server cluster consisting of a plurality of servers, or may include one or more virtualization platforms, or may be a cloud computing service center.

[0060] The server 120 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server.

[0061] The terminal and the server may be connected directly or indirectly via wired or wireless communication, which is not limited in this application.

[0062] Optionally, the above-mentioned wired or wireless network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to any combination of local area network (LAN), metropolitan area network (MAN), wide area network (WAN), mobile, wireless network, dedicated network or virtual private network. In some embodiments, the data exchanged through the network is represented by technology and / or format including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technology can also be used to replace or supplement the above-mentioned data communication technology.

[0063] Figure 2 is a flow chart of a resource management method according to an exemplary embodiment. The resource management method can be executed by a server of an application portal platform to manage the rights of resources displayed during the user's use of an application. The application portal platform is a platform that integrates at least two applications. The server can be the above-mentioned Figure 1 The server 120 in the system shown. Figure 2 As shown, the resource management method may include the following steps:

[0064] In step 201, the terminal sends a resource management request to the server, and the server receives the resource management request sent by the terminal, where the resource management request is used to request a resource displayed in a target function page in a target application.

[0065] In an embodiment of the present application, after a user logs in to the application portal platform through the client of the application portal platform, when using an application in the application portal platform, the user needs to view the resources under the current application page. At this time, the terminal sends a resource management request to the server.

[0066] In step 202, the server queries each first organization structure tree for a first resource set consisting of resources corresponding to the target user; the target user is the user corresponding to the terminal; the first organization structure tree includes at least one node, which is used to mount at least one of the user, application, functional service, and resource.

[0067] In the embodiment of the present application, the authority of each user, application, and functional service to resources is managed in the form of an organizational structure tree; for example, please refer to Figure 3 , which shows a schematic diagram of an organizational structure tree involved in an embodiment of the present application. Figure 3 The organization structure tree includes a root node 31 , a child node 32 of the root node, and a child node 33 , wherein the child node 32 further corresponds to a sub-node 34 and a child node 35 .

[0068] exist Figure 3 In the figure, the root node 31 is mounted with application 1, the child node 32 is mounted with user 1 and resource 1; the child node 33 is mounted with function service 1 and resource 2; the child node 34 is mounted with user 2, service function 2, and resource 3; and the child node 35 is mounted with resource 4.

[0069] The solution shown in the embodiment of the present application adopts a general permission management solution based on a tree-shaped organizational structure. First, this management solution does not rely on the original structure of resources in the system (such as an asset tree structure), application menu structure, etc. The organizational structure tree is a kind of authorization relationship tree that can bind various resources or roles (such as functions / permission points). Therefore, it has universality and can be used as a supplement to the existing permission management system. At the same time, the relationship of the organizational structure tree has an extensible feature. It not only manages the resources that users can use, but also reflects other relationships such as the resources that can be used by applications and service functions / permission points in applications.

[0070] In the embodiment of the present application, through the mounting relationship between users and resources and nodes in the first organizational structure tree, a first resource set consisting of resources that the target user has the authority to obtain in the first organizational structure tree can be queried.

[0071] In step 203, the server searches each of the first organization structure trees for a second resource set consisting of resources corresponding to the target application.

[0072] In the embodiment of the present application, through the mounting relationship between the application and the resources and the nodes in the first organization structure tree, the second resource set consisting of the resources that the target application has the authority to obtain in the first organization structure tree can be queried.

[0073] In step 204, the server searches each of the first organization structure trees for a third resource set consisting of resources corresponding to a target function service; the target function service is a function service corresponding to the target function page.

[0074] In the embodiment of the present application, through the mounting relationship between the functional service and the resources and the nodes in the first organizational structure tree, a third resource set consisting of the resources that the target functional service has the authority to obtain in the first organizational structure tree can be queried.

[0075] In step 205, the server obtains the resources corresponding to the resource management request according to the first resource set, the second resource set and the third resource set.

[0076] In the embodiment of the present application, after respectively acquiring the resources that the target user, target application, and target functional service have the authority to acquire, the resources corresponding to the above resource management request can be obtained.

[0077] In step 206, the server sends the resource corresponding to the resource management request to the terminal, and the terminal receives the resource corresponding to the resource management request.

[0078] In step 207, the terminal displays the resources corresponding to the resource management request in the target function page.

[0079] To summarize, the solution shown in the embodiment of the present application implements the permissions of users, applications, and service functions to resources respectively through the first organizational structure tree. When a request from a user to display resources in a service function page in an application is received, the resources corresponding to the permissions that simultaneously satisfy the user, application, and service function can be directly obtained through the above-mentioned first organizational structure tree, thereby expanding the scope of permission management and improving the application scenarios of permission management.

[0080] Figure 4 is a flow chart of a resource management method according to an exemplary embodiment. The resource management method can be executed by a server of an application portal platform to manage the rights of resources displayed during the user's use of an application. The application portal platform is a platform that integrates at least two applications. The server can be the above-mentioned Figure 1 The server 120 in the system shown. Figure 4 As shown, the resource management method may include the following steps:

[0081] In step 401, the terminal sends a resource management request to the server, and the server receives the resource management request sent by the terminal, where the resource management request is used to request a resource displayed in a target function page in a target application.

[0082] In the embodiment of the present application, after the target user opens the client of the application portal platform in the terminal and completes the login, opens the target application in the application portal platform, and opens the corresponding target function page (also called function menu) in the target application, the terminal sends a resource management request to the server. In a possible implementation, the resource management request includes the identifier of the target user (such as user account / user number), the identifier of the target application (such as application name, called interface identifier), the identifier of the service function corresponding to the target function page, etc.

[0083] In an embodiment of the present application, various first organization structure trees are pre-set in the server, each of which includes at least one node, and each node can be used to mount at least one of users, applications, functional services, and resources.

[0084] In a possible implementation, you can use the concept of custom roles for integrated applications and internal resources of applications to integrate application usage permissions, and use resource groups to group resources. By binding applications to the root node of the organizational structure tree, you can determine the resources and interface permissions that the application can use. At the same time, you can use the organizational structure to display resources, and by mounting users to different nodes, inherit the node's resources, roles, operation types and other permissions. At the same time, users can independently grant roles, resources and other permissions to meet special cases, which can be used more flexibly. Users can repeatedly mount to different nodes on the tree to meet the scenario of one person with multiple identities; optionally, since the number of resources is usually large, you can try to avoid mounting the same resource in multiple places on an organizational structure tree to prevent confusion in permission management.

[0085] In a possible implementation, each of the first organization structure trees may have the following mounting rules:

[0086] 1) Multiple organizational structures (i.e. nodes) form a tree structure (there can be only one node);

[0087] 2) Node permissions have an inheritance relationship, that is, a parent node has the permissions of its descendant nodes;

[0088] 3) The root node can mount the Application Programming Interface (API) and application apps;

[0089] 4) Each node can mount resources, resource groups, users, and roles (including functional services / permission points);

[0090] 5) An organizational structure tree can be bound to an unlimited number of apps, APIs, resources, resource groups, users, roles, etc.;

[0091] 6) An organization structure tree can only bind some of the above entities, or it can be expanded to bind other entities according to specific scenarios;

[0092] 7) Resource group is a collection of resources, and role is a collection of permissions within the app (that is, the management of the app is accurate to the menus and permission points within the app);

[0093] 8) The permissions of the App's internal menus (i.e., functional services) have a reverse inheritance relationship, that is, if you have the permissions of a submenu, you also have the permissions of the parent menu;

[0094] 9) The organizational structure tree plays both the role of authorization and the role of app display resource structure;

[0095] 10) When providing resource data to the app, permissions have been filtered and the display structure has been constructed.

[0096] For example, see Figure 5 , which shows a schematic diagram of an organizational structure tree involved in an embodiment of the present application. Figure 5 As shown, a first organization structure tree includes the following contents:

[0097] Organizational structure node ( Figure 5 Sn in , represents the nth organizational structure node);

[0098] Tree Binding Applications ( Figure 5 APP in, which is mounted at the root node of the tree);

[0099] user( Figure 5 Un in represents the nth user);

[0100] resource( Figure 5 An in represents the nth resource);

[0101] Resource Group( Figure 5 Gn in the above table represents the nth resource group, each of which contains multiple resources).

[0102] Application Programming Interface ( Figure 5 The API in is mounted at the root node of the tree);

[0103] and roles ( Figure 5 Rn in the representation represents the nth role, where a role can be bound to one or more function services / function menus / authority points).

[0104] In step 402, the server searches each first organization structure tree for a first resource set consisting of resources corresponding to a target user, which is a user corresponding to the terminal.

[0105] Since a target user may be mounted in multiple different first organization structure trees, and the same target user may be mounted in multiple locations in an organization structure tree, in an embodiment of the present application, the server can query the resources that the target user has the authority to obtain from each first organization structure tree, and form the queried resources into a first resource set.

[0106] In a possible implementation, querying each first organization structure tree for a first resource set consisting of resources corresponding to the target user includes:

[0107] Querying the resources under the node mounted by the target user and the resources under the descendant nodes of the node mounted by the target user from each of the first organization structure trees;

[0108] Query the resources under the node where the user group to which the target user belongs is mounted from each of the first organization structure trees;

[0109] Query the resources mounted by the target user from each of the first organization structure trees;

[0110] The first resource set is obtained by taking a union of resources under the node mounted by the target user, resources under descendant nodes of the node mounted by the target user, resources under the node mounted by the user group to which the target user belongs, and resources mounted by the target user.

[0111] In the embodiment of the present application, the resources corresponding to a target user in the first organization structure tree can be divided into three types:

[0112] First, the resources (including independent resources and resource groups) mounted on the same node as the target user, as well as the resources under the subnodes corresponding to the node mounted by the target user;

[0113] The second is the resources mounted on the same node as the user group of the target user;

[0114] The third is to directly mount the resources under the target user (for example, in the first organization structure tree, not only the tree nodes can mount resources, but also each user can directly mount resources).

[0115] For the above three types of resources, the server may take a union and obtain a first resource set.

[0116] In a possible implementation, querying each of the first organization structure trees for resources under the node mounted by the target user and resources under the descendant nodes of the node mounted by the target user includes:

[0117] Querying the nodes mounted by the target user and the descendant nodes of the nodes mounted by the target user from each of the first organization structure trees;

[0118] Get the node mounted by the target user and the resources under the node with automatic authorization enabled among the descendant nodes of the node mounted by the target user.

[0119] In an embodiment of the present application, when obtaining resources under a node mounted by a target user and its descendant nodes as resources obtainable by the target user, the node and the descendant nodes for which automatic authorization has been enabled can be detected, and the resources under the nodes for which automatic authorization has been enabled can be obtained as resources under the node mounted by the target user and the resources under the descendant nodes of the node mounted by the target user.

[0120] Please refer to Figure 6 , which shows a schematic diagram of user resource permissions in the organizational structure tree involved in the embodiment of the present application. Figure 6 As shown, users can mount at any node in the organizational structure. The permissions required by users include application menus / service functions / permission points and resources:

[0121] The user's resource permissions include the resource permissions of all resources and resource groups of the node on which the user is mounted and its descendant nodes. The user can mount to multiple nodes, and the resources are taken as the union. Figure 6 In the example, user U2's resource permissions include all resources in A2, G2, and G4.

[0122] The application menus / service functions / authority points that the user has permission to include the application menus / service functions / authority points contained in all roles of the node where the user is located and its descendant nodes. Figure 6 In the example, the in-app permissions of user U2 include all permissions bound to R2, R4, and R5. It should be noted that the permissions in the role also belong to the application, so the permissions when using a specific application are the intersection of the permissions in the application.

[0123] In step 403, the server searches each of the first organization structure trees for a second resource set consisting of resources corresponding to the target application.

[0124] In a possible implementation, searching each of the first organization structure trees for a second resource set consisting of resources corresponding to the target application includes:

[0125] From each of the first organization structure trees, query the first organization structure tree mounted by the target application;

[0126] A set of resources under each node in the first organization structure tree on which the target application is mounted is obtained as the second resource set.

[0127] In an embodiment of the present application, when an application is mounted on the root node of the organization structure tree, the server uses a set of resources under the entire organization structure tree where the application is mounted as the second resource set.

[0128] Please refer to Figure 7 , which shows a schematic diagram of application resource permissions in the organization structure tree involved in the embodiment of the present application. Figure 7 As shown in the figure, the application usage process often includes the display, statistics, monitoring, and control of assets, so the application needs to clearly define the assets it can use. In addition, the application will inevitably call the interfaces registered in the system during use, so it is also necessary to clearly define the interfaces that can be used.

[0129] The application is mounted on the root node of the organization structure tree, such as Figure 7 As shown, its permissions include:

[0130] 1) The resources mounted on the entire tree and the resources contained in the resource group.

[0131] 2) All interface permissions mounted on the root node of the organization structure tree.

[0132] In step 404, the server searches each of the first organization structure trees for a third resource set consisting of resources corresponding to a target function service; the target function service is a function service corresponding to the target function page.

[0133] In a possible implementation, the third resource set consisting of resources corresponding to the target functional service is queried in each of the first organization structure trees, including:

[0134] Query the resource group under the node where the target functional service is mounted from each of the first organization structure trees;

[0135] A set consisting of resources in the resource group under the node where the target functional service is mounted is obtained as the third resource set.

[0136] In the embodiment of the present application, the functional service is represented by a service account in the organizational structure tree, and the resource permissions for the functional service can be implemented through the resource group mounted in the organizational structure tree.

[0137] Please refer to Figure 8 , which shows a schematic diagram of service resource permissions in the organization structure tree involved in the embodiment of the present application. Figure 8 As shown, the node tree corresponding to the service function is constructed as follows Figure 8 , by authorizing the use of resource groups to facilitate the use of service functions, such as Figure 8 As shown, APP represents the service account of the service function, and this service account has the permissions of resources 0 to 12. When querying the resource permissions of the service function, each resource group is mapped to the resources it contains. Optionally, the display structure of the resources is returned according to the overall structure of the node tree and resources together. A category field can be used to distinguish between nodes and resources.

[0138] In step 405, the server obtains the resources corresponding to the resource management request according to the first resource set, the second resource set and the third resource set.

[0139] In a possible implementation, acquiring the resource corresponding to the resource management request according to the first resource set, the second resource set, and the third resource set includes:

[0140] An intersection of the first resource set, the second resource set, and the third resource set is taken to obtain resources corresponding to the resource management request.

[0141] In an embodiment of the present application, since the acquired resources need to simultaneously satisfy the target user, target application, and target functional service, it is necessary to take the intersection of the above-mentioned first resource set, second resource set, and third resource set to obtain resources that simultaneously satisfy the target user, target application, and target functional service.

[0142] Among them, the resources obtained by the above scheme of this application follow the following principles:

[0143] 1) The collection obtained is a subset of the asset list authorized for the service account in the platform;

[0144] 2) The obtained collection is a subset of the asset list under the organizational structure bound to the application in the platform;

[0145] 3) The obtained set is a subset of all asset permissions that the user has.

[0146] In step 406, the server constructs a second organization structure tree according to the resource corresponding to the resource management request, and each node in the second organization structure tree is mounted with the resource corresponding to the resource management request.

[0147] In the examples of this application, please refer to Fig. 9 , which shows a resource display structure diagram involved in the embodiment of the present application. Fig. 9 In the second organization structure tree, the second organization structure tree includes nodes and resources, and the mounting relationship between nodes and resources.

[0148] The application performs visualization based on business needs and the data returned by the interface. The data structure returned by the interface is defined as follows:

[0149]

[0150]

[0151] In step 407, the server sends the second organization structure tree to the terminal, and the terminal receives the second organization structure tree.

[0152] For example, suppose the target user is a monitoring personnel, who is responsible for monitoring resources including R0, R1, R5, R8, R13, R14, R15 and other devices.

[0153] Assume that the target application is wind farm management, and the resource permissions include R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, which include various equipment such as wind turbines and booster stations.

[0154] Assume that the service account of the target service function corresponds to a wind turbine monitoring function in the application, and its resource permissions are R0, R1, R2, R3, R4, R5, R6, and R7, all of which are wind turbines.

[0155] When the target user enters the menu of the wind turbine monitoring function, the platform automatically filters resources according to the current user, the service account of the current service function, and the current application, and returns the resources for display according to the node tree structure. The filtering strategy is the intersection of the above three permissions. The data returned at this time includes: authorized resources R0, R1, R5, R8, and the complete node tree structure containing these 4 resources (nodes unrelated to these 4 resources can be pruned).

[0156] In step 408, the terminal displays the resources corresponding to the resource management request in the target function page according to the second organization structure tree.

[0157] In the embodiment of the present application, when an application is in use, it can request resources from the platform based on the user and service account. These returned resources have several characteristics:

[0158] First, it is filtered by users, applications, and service accounts, so the application no longer needs to determine which resources are available in which scenarios.

[0159] Second, the returned resources already have a specific display structure, which is based on the node tree. The application side only needs to consider visualization and business display requirements and no longer needs to process the returned structure.

[0160] Through the solution shown in the embodiment of the present application, each organization structure tree can complete a variety of different permission management, greatly reducing the management complexity, and using the solution of extensible resource mounting, more management needs can be expanded.

[0161] In addition, the permission management solution involved in this application is flexible and easy to expand. It can be used as an improvement and supplement to the existing system, or it can be an independent management system.

[0162] In addition, the preset roles of the scheme involved in this application can be set as node administrators, etc., and the custom roles can be customized by the user, or the existing role definitions can be directly used.

[0163] Through the scheme shown in the embodiment of the present application, in the application portal platform, the user's authority to use resources within a certain application can be determined through a three-in-one permission system of users, applications, and resources, and through the authorization method mounted through the organization structure tree, so that the resource permissions returned by the interface can accurately adapt to the needs of the current application.

[0164] That is to say, in the embodiment of the present application, permission objects of multiple types / dimensions / granularities, such as applications, functional pages in applications, and users, are pre-mounted together with resources to each node on the organizational structure tree, and a permission relationship between the permission objects and the resources is established through the mounting relationship of the nodes; when performing resource queries, for a single permission object, it is sufficient to search for the mounted resources on the node where the permission object is located and its descendant nodes, and for multiple permission objects, it is only necessary to take the intersection of the resources of each permission object; therefore, through the scheme shown in the embodiment of the present application, it is possible to support single-type / single-dimension / single-granularity permission management, and it is also possible to flexibly support multi-type / multi-dimensional / multi-granularity permission management.

[0165] In addition, when displaying the resource structure in the application, the node tree structure and the resource mounting relationship on the node are used as the resource display structure, and the redundant nodes in the structure are pruned. The application side no longer needs to do data structure processing, and only needs to care about data visualization and business processing, which can greatly simplify the processing logic on the application side.

[0166] To summarize, the solution shown in the embodiment of the present application implements the permissions of users, applications, and service functions to resources respectively through the first organizational structure tree. When a request from a user to display resources in a service function page in an application is received, the resources corresponding to the permissions that simultaneously satisfy the user, application, and service function can be directly obtained through the above-mentioned first organizational structure tree, thereby expanding the scope of permission management and improving the application scenarios of permission management.

[0167] Fig.10 is a block diagram of a resource management device according to an exemplary embodiment. Fig.10 As shown, the resource management device can be used in the server of the application portal platform to execute Figure 2 or Figure 4 All or part of the steps of the method shown in the corresponding embodiment. The application portal platform is a platform that integrates at least two applications. The server can be the above Figure 1 The server 120 in the system shown. The resource management device may include:

[0168] The request receiving module 1001 is used to receive a resource management request sent by a terminal, wherein the resource management request is used to request a resource displayed in a target function page in a target application;

[0169] The first resource set query module 1002 is used to query the first resource set consisting of resources corresponding to the target user in each first organization structure tree; the target user is the user corresponding to the terminal; the first organization structure tree includes at least one node, and the node is used to mount at least one of the user, application, functional service, and resource;

[0170] A second resource set query module 1003, used to query the second resource set consisting of resources corresponding to the target application in each of the first organization structure trees;

[0171] The third resource set query module 1004 is used to query the third resource set consisting of resources corresponding to the target function service in each of the first organization structure trees; the target function service is the function service corresponding to the target function page;

[0172] A resource acquisition module 1005, configured to acquire resources corresponding to the resource management request according to the first resource set, the second resource set and the third resource set;

[0173] The resource sending module 1006 is used to send the resources corresponding to the resource management request to the terminal.

[0174] In a possible implementation, the first resource collection query module 1002 is used to:

[0175] Querying each of the first organization structure trees for resources under the node mounted by the target user and resources under the descendant nodes of the node mounted by the target user;

[0176] Querying each of the first organization structure trees for resources under the node where the user group to which the target user belongs is mounted;

[0177] Query the resources mounted by the target user from each of the first organization structure trees;

[0178] The first resource set is obtained by taking a union of resources under the node mounted by the target user, resources under descendant nodes of the node mounted by the target user, resources under the node mounted by the user group to which the target user belongs, and resources mounted by the target user.

[0179] In a possible implementation, when querying the resources under the node mounted by the target user and the resources under the descendant nodes of the node mounted by the target user from each of the first organization structure trees, the first resource set query module 1002 is used to:

[0180] Querying the nodes mounted by the target user and the descendant nodes of the nodes mounted by the target user from each of the first organization structure trees;

[0181] The node mounted by the target user and the resources under the node with automatic authorization enabled among the descendant nodes of the node mounted by the target user are obtained.

[0182] In a possible implementation, the second resource set query module 1003 is used to:

[0183] Querying the first organization structure tree mounted by the target application from each of the first organization structure trees;

[0184] A set of resources under each node in the first organization structure tree mounted with the target application is obtained as the second resource set.

[0185] In a possible implementation, the third resource set query module 1004 is used to:

[0186] Querying the resource group under the node where the target functional service is mounted from each of the first organization structure trees;

[0187] A set consisting of resources in the resource group under the node where the target functional service is mounted is obtained as the third resource set.

[0188] In a possible implementation, the resource acquisition module 1005 is used to obtain the resource corresponding to the resource management request by taking the intersection of the first resource set, the second resource set and the third resource set.

[0189] In a possible implementation, the resource sending module 1006 is used to:

[0190] Constructing a second organization structure tree according to the resource corresponding to the resource management request, wherein each node in the second organization structure tree is mounted with the resource corresponding to the resource management request;

[0191] The second organization structure tree is sent to the terminal.

[0192] To summarize, the solution shown in the embodiment of the present application implements the permissions of users, applications, and service functions to resources respectively through the first organizational structure tree. When a request from a user to display resources in a service function page in an application is received, the resources corresponding to the permissions that simultaneously satisfy the user, application, and service function can be directly obtained through the above-mentioned first organizational structure tree, thereby expanding the scope of permission management and improving the application scenarios of permission management.

[0193] Fig.111 is a schematic diagram of the structure of a computer device according to an exemplary embodiment. The computer device 1100 includes a central processing unit (CPU) 1101, a system memory 1104 including a random access memory (RAM) 1102 and a read-only memory (ROM) 1103, and a system bus 1105 connecting the system memory 1104 and the central processing unit 1101. The computer device 1100 also includes a basic input / output system (I / O system) 1106 for helping to transmit information between various devices in the computer device, and a large-capacity storage device 1107 for storing an operating system 1113, application programs 1114 and other program modules 1115.

[0194] The basic input / output system 1106 includes a display 11011 for displaying information and an input device 1109 such as a mouse and a keyboard for user inputting information. The display 1108 and the input device 1109 are connected to the central processing unit 1101 through an input / output controller 1110 connected to the system bus 1105. The basic input / output system 1106 may also include an input / output controller 1110 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1110 also provides output to a display screen, a printer, or other types of output devices.

[0195] The mass storage device 1107 is connected to the central processing unit 1101 through a mass storage controller (not shown) connected to the system bus 1105. The mass storage device 1107 and its associated computer device readable medium provide non-volatile storage for the computer device 1100. That is, the mass storage device 1107 may include a computer device readable medium (not shown) such as a hard disk or a Compact Disc Read-Only Memory (CD-ROM) drive.

[0196] Without loss of generality, the computer device readable medium may include computer device storage media and communication media. Computer device storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer device readable instructions, data structures, program modules or other data. Computer device storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), CD-ROM, Digital Video Disc (DVD) or other optical storage, cassette, tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer device storage medium is not limited to the above. The above-mentioned system memory 1104 and mass storage device 1107 can be collectively referred to as memory.

[0197] According to various embodiments of the present disclosure, the computer device 1100 can also be connected to a remote computer device on a network through a network such as the Internet. That is, the computer device 1100 can be connected to the network 1112 through the network interface unit 1111 connected to the system bus 1105, or the network interface unit 1111 can be used to connect to other types of networks or remote computer device systems (not shown).

[0198] The memory also includes one or more programs, which are stored in the memory. The CPU 1101 implements the Figure 2 or Figure 4 In the method shown, all or part of the steps are executed by the server.

[0199] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present disclosure can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer device readable medium or transmitted as one or more instructions or codes on a computer device readable medium. Computer device readable media include computer device storage media and communication media, wherein the communication medium includes any medium that facilitates the transmission of computer device programs from one place to another. The storage medium can be any available medium that a general or special computer device can access.

[0200] The present disclosure also provides a computer device storage medium, wherein the computer device storage medium stores at least one program code, which is loaded and executed by a processor to implement the above Figure 2 or Figure 4 In the method shown, the steps performed by the server are designed as a program.

[0201] According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above Figure 2 or Figure 4 In the method shown, all or part of it is executed by the server.

[0202] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0203] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A resource management method, It is characterized in that The method is executed by a server of an application portal platform, wherein the application portal platform is a platform integrated with at least two applications, and the method includes: Receiving a resource management request sent by a terminal, wherein the resource management request is used to request a resource displayed in a target function page in a target application; Query the nodes mounted by the target user and the descendant nodes of the nodes mounted by the target user from each first organization structure tree; obtain the resources under the nodes mounted by the target user and the descendant nodes of the nodes mounted by the target user, for which automatic authorization has been enabled; query the resources under the nodes mounted by the user group to which the target user belongs from each first organization structure tree; query the resources mounted by the target user from each first organization structure tree; take the union of the resources under the node mounted by the target user, the resources under the descendant nodes of the node mounted by the target user, the resources under the node mounted by the user group to which the target user belongs, and the resources mounted by the target user to obtain a first resource set; the target user is the user corresponding to the terminal; the first organization structure tree contains at least one node, and the node is used to mount at least one of a user, an application, a functional service, and a resource; Query the first organization structure tree mounted by the target application from each of the first organization structure trees; obtain a set of resources under each node in the first organization structure tree mounted by the target application as a second resource set; Querying the resource group under the node where the target function service is mounted from each of the first organization structure trees; obtaining a set of resources in the resource group under the node where the target function service is mounted as a third resource set; the target function service is a function service corresponding to the target function page; Taking the intersection of the first resource set, the second resource set and the third resource set to obtain the resource corresponding to the resource management request; Constructing a second organization structure tree according to the resources corresponding to the resource management request, wherein each node in the second organization structure tree is mounted with the resources corresponding to the resource management request; The second organization structure tree is sent to the terminal.

2. A resource management device, It is characterized in that The device is used in a server of an application portal platform, wherein the application portal platform is a platform integrated with at least two applications, and the device includes: A request receiving module, used to receive a resource management request sent by a terminal, wherein the resource management request is used to request a resource displayed in a target function page in a target application; The first resource set query module is used to query the nodes mounted by the target user and the descendant nodes of the nodes mounted by the target user from each first organization structure tree; obtain the resources under the nodes mounted by the target user and the descendant nodes of the nodes mounted by the target user, for which automatic authorization has been enabled; query the resources under the nodes mounted by the user group to which the target user belongs from each first organization structure tree; query the resources mounted by the target user from each first organization structure tree; take the union of the resources under the nodes mounted by the target user, the resources under the descendant nodes of the nodes mounted by the target user, the resources under the nodes mounted by the user group to which the target user belongs, and the resources mounted by the target user to obtain the first resource set; the target user is the user corresponding to the terminal; the first organization structure tree contains at least one node, and the node is used to mount at least one of users, applications, functional services, and resources; A second resource set query module is used to query the first organization structure tree mounted by the target application from each of the first organization structure trees; and obtain a set of resources under each node in the first organization structure tree mounted by the target application as a second resource set; A third resource set query module is used to query the resource group under the node where the target function service is mounted from each of the first organization structure trees; obtain the set of resources in the resource group under the node where the target function service is mounted as the third resource set; the target function service is the function service corresponding to the target function page; A resource acquisition module, configured to obtain an intersection of the first resource set, the second resource set and the third resource set to obtain a resource corresponding to the resource management request; The resource sending module is used to construct a second organization structure tree according to the resources corresponding to the resource management request, each node in the second organization structure tree is mounted with the resources corresponding to the resource management request; and send the second organization structure tree to the terminal.

3. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the resource management method as described in claim 1.

4. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program code, and the program code is loaded and executed by a processor to implement the resource management method as claimed in claim 1.

Citation Information

Patent Citations

  • SAAS platform user organization permission management method and system

    CN106055967A

  • Right control method, device, electronic device and storage medium

    CN109242420A

  • User determination method and device, electronic equipment and storage medium

    CN111008873A

  • Method and device for data access permission control, computer equipment and storage medium

    CN111191210A

  • Equipment control method and device based on Internet of Things and computer program product

    CN111818155A