Software function authority management method, system, server and storage medium
1. A software function right management method is characterized by comprising the following steps:
acquiring a function module architecture diagram of software to be managed, detecting whether a newly added function module exists, and if so, determining a target function module which has an association relation with the newly added function module based on the current function module architecture diagram; the functional module architecture diagram comprises the hierarchical relationship among all functional modules of the software to be managed;
acquiring ID information of the target function module based on the function module ID list of the software to be managed; each functional module has unique ID information;
searching a target user with the use permission of the target function module by taking the ID information of the target function module as a search condition;
and automatically giving the use authority of the newly added function module to the target user.
2. The software functional rights management method of claim 1, prior to said obtaining the functional module architecture diagram of the software to be managed, further comprising: and receiving a modification and storage instruction of the functional module architecture diagram of the software to be managed.
3. The software functional rights management method of claim 2, wherein said detecting whether there is a newly added functional module comprises: and comparing the functional module architecture diagram before modification and storage with the modified and stored functional module architecture diagram, and determining the specific functional module in the modified functional module architecture diagram as the newly added functional module.
4. A software function privilege management method according to any one of claims 1 to 3, wherein the determining of the target function module having an association relationship with the newly added function module comprises:
determining a previous-stage function module to which the newly added function module belongs and/or determining a next-stage function module contained in the newly added function module based on the current function module architecture diagram; and taking the affiliated upper-level functional module and/or the contained lower-level functional module as the target functional module.
5. The software functional rights management method of claim 1, wherein the software functional rights management method is applied to an industrial internet, and the type of the target user is an enterprise user.
6. A software functional rights management system, comprising:
the architecture diagram management unit is used for receiving the operations of building, editing, modifying and storing the architecture diagram of the functional module of the software to be managed; the functional module architecture diagram comprises the hierarchical relationship among all functional modules of the software to be managed;
the module ID configuration unit is used for receiving the configuration, uniqueness check and storage operation of the ID of the functional module of the software to be managed;
the detection unit is used for acquiring the functional module architecture diagram of the software to be managed from the architecture diagram management unit and detecting whether a newly added functional module exists or not;
an association module determination unit, configured to determine, when the detection unit detects that a newly added function module exists, a target function module having an association relationship with the newly added function module based on a function module architecture diagram;
the searching unit is used for searching a target user with the use authority of the target function module by taking the ID information of the target function module as a searching condition;
and the authorization unit is used for automatically assigning the use authority of the newly added function module to the target user.
7. The software functional privilege management system according to claim 6, wherein the detecting unit is configured to, when the architecture diagram managing unit receives a modification and storage instruction for the functional module architecture diagram of the software to be managed, obtain the current functional module architecture diagram of the software to be managed from the architecture diagram managing unit, so as to detect whether there is a new functional module.
8. The software functional privilege management system according to claim 7, wherein the association module determining unit is configured to determine, based on the current functional module architecture diagram, a previous functional module to which the newly added functional module belongs and/or a next functional module included in the newly added functional module; and taking the affiliated upper-level functional module and/or the contained lower-level functional module as the target functional module.
9. A server, comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is adapted to execute one or more programs stored in the memory to implement the steps of the software functional rights management method of any of claims 1 to 5.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of a software functional rights management method according to any one of claims 1 to 5.
Background
The industrial internet platform is used for closely connecting and fusing equipment, production lines, factories, suppliers, products and customers to help enterprises optimize business processes or management processes. In recent years, with the rapid development of the internet industry, a SaaS platform is brought forward, and the essence of the SaaS is enterprise application software, and the SaaS mainly serves enterprise operation and management. The method has the advantages that the method can serve enterprises in all industries with low cost, so that small and medium-sized enterprises can also step into the threshold of the industrial Internet.
However, as the number of users increases, and different users belong to different industries and have different permissions, the management cost of the service platform provider is inevitably increased greatly. For example, the service platform develops a new function module that needs to be authorized to some enterprise users. One of the existing authorization modes is batch integral authorization for all users, and the other is to open corresponding modules for enterprises using related function systems according to functions used by each enterprise, and because application scenes and actual requirements of different enterprises are different, the batch integral authorization mode is not suitable for all scenes, and for the authorization mode of a single function module of a single enterprise, the use cost of a platform manager is increased, the problem of omission of functions and opening is easily caused, and the use experience of a client on the system is influenced.
Therefore, how to provide a scheme for quickly and accurately performing automatic authorization on an enterprise with actual use requirements for the newly added function is a technical problem to be solved urgently in the field of the current industrial internet.
Disclosure of Invention
The invention provides a software function authority management method, a system, a server and a storage medium, which mainly solve the technical problems that: the existing method for opening the software added function authorization has the problems of limited use scene, large authorization workload and easy error.
In order to solve the above technical problem, the present invention provides a software function authority management method, including:
acquiring a function module architecture diagram of software to be managed, detecting whether a newly added function module exists, and if so, determining a target function module which has an association relation with the newly added function module based on the current function module architecture diagram; the functional module architecture diagram comprises the hierarchical relationship among all functional modules of the software to be managed;
acquiring ID information of the target function module based on the function module ID list of the software to be managed; each functional module has unique ID information;
searching a target user with the use permission of the target function module by taking the ID information of the target function module as a search condition;
and automatically giving the use authority of the newly added function module to the target user.
Further, before the obtaining the functional module architecture diagram of the software to be managed, the method further includes: and receiving a modification and storage instruction of the functional module architecture diagram of the software to be managed.
Further, the detecting whether there is a newly added function module includes: and comparing the functional module architecture diagram before modification and storage with the modified and stored functional module architecture diagram, and determining the specific functional module in the modified functional module architecture diagram as the newly added functional module.
Further, the determining the target function module having the association relationship with the newly added function module includes:
determining a previous-stage function module to which the newly added function module belongs and/or determining a next-stage function module contained in the newly added function module based on the current function module architecture diagram; and taking the affiliated upper-level functional module and/or the contained lower-level functional module as the target functional module.
Furthermore, the software function authority management method is applied to the industrial internet, and the type of the target user is an enterprise user.
The invention also provides a software function authority management system, which comprises:
the architecture diagram management unit is used for receiving the operations of building, editing, modifying and storing the architecture diagram of the functional module of the software to be managed; the functional module architecture diagram comprises the hierarchical relationship among all functional modules of the software to be managed;
the module ID configuration unit is used for receiving the configuration, uniqueness check and storage operation of the ID of the functional module of the software to be managed;
the detection unit is used for acquiring the functional module architecture diagram of the software to be managed from the architecture diagram management unit and detecting whether a newly added functional module exists or not;
an association module determination unit, configured to determine, when the detection unit detects that a newly added function module exists, a target function module having an association relationship with the newly added function module based on a function module architecture diagram;
the searching unit is used for searching a target user with the use authority of the target function module by taking the ID information of the target function module as a searching condition;
and the authorization unit is used for automatically assigning the use authority of the newly added function module to the target user.
Further, the detecting unit is configured to, when the architecture diagram management unit receives a modification and storage instruction for the architecture diagram of the functional module of the software to be managed, obtain the current architecture diagram of the functional module of the software to be managed from the architecture diagram management unit, so as to detect whether a newly added functional module exists.
Further, the association module determining unit is configured to determine, based on the current functional module architecture diagram, a previous-stage functional module to which the newly added functional module belongs, and/or determine a next-stage functional module included in the newly added functional module; and taking the affiliated upper-level functional module and/or the contained lower-level functional module as the target functional module.
The invention also provides a server, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the software functional rights management method as described in any of the above.
The present invention also provides a storage medium storing one or more programs executable by one or more processors to implement the steps of the software functional rights management method as described above.
The invention has the beneficial effects that:
according to the software function authority management method, the system, the server and the storage medium, whether a newly added function module exists is detected by acquiring a function module architecture diagram of software to be managed, and if so, a target function module which has an association relation with the newly added function module is determined based on the current function module architecture diagram; the functional module architecture diagram comprises the hierarchical relationship among all functional modules of the software to be managed; acquiring ID information of a target function module based on a function module ID list of software to be managed; each functional module has unique ID information; searching a target user with the use permission of the target function module by taking the ID information of the target function module as a search condition; and automatically giving the use authority of the newly added function module to the target user. By determining the target function module which has an incidence relation with the newly added function module and further determining the target user with the requirement for using the newly added function module based on the condition of using the target function module, the accurate and automatic screening of the target user is realized; therefore, the personalized quick granting of the use authority of the new function is realized, and the management cost of the platform user is reduced; the newly added functions of the platform can be quickly and completely used by related users, the user experience is improved, and the reputation of the product is increased.
Drawings
Fig. 1 is a flowchart illustrating a software function permission management method according to a first embodiment of the present invention;
FIG. 2 is a functional module architecture diagram according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a functional module ID list according to a first embodiment of the present invention;
FIG. 4 is a diagram illustrating a software functional rights management system according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following detailed description and accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
in order to solve the problem that personalized authorization cannot be performed on different enterprise users when new function modules exist in industrial internet software at present, the requirement that the enterprise users can use new platform added functions quickly and completely is met, the management cost of the platform users is reduced, the problem that the omission and opening of certain enterprise users influence the use experience of the users on a system is solved, the embodiment provides a software function authority management method, a target function module which is in incidence relation with the new function modules is determined, then a target user with the requirement of using the new function modules is determined based on the authorized use condition of the target function modules, and accurate and automatic screening of the target user is achieved; therefore, the personalized quick granting of the use authority of the new function is realized, and the management cost of the platform user is reduced; the newly added functions of the platform can be quickly and completely used by related users, the user experience is improved, and the reputation of the product is increased.
Referring to fig. 1, the software function right management method mainly includes the following steps:
s101, acquiring a functional module architecture diagram of software to be managed;
in this embodiment, the functional module architecture diagram of the software to be managed can be obtained from the corresponding memory at preset time intervals according to the set update cycle; for example, the system acquires the functional module architecture diagram of the software to be managed at a fixed point in time each day.
In order to authorize the new function to a corresponding user more timely when the new function is issued, the function module architecture diagram is monitored to be updated, and the function module architecture diagram can be authorized to be issued at the first time when the update exists. Specifically, when receiving a modification and storage instruction of the functional module architecture diagram of the software to be managed, the functional module architecture diagram of the agent management software is immediately acquired, and then, in step S102, whether a newly added functional module exists is retrieved. When the newly added function module exists, the authorization processing can be guaranteed to be carried out at the first time.
In this embodiment, the functional module architecture diagram includes a hierarchical relationship between all functional modules of the software to be managed. Referring to fig. 2, for the software system of the "industrial internet management platform", it includes three primary modules of equipment management, financial management, and personnel management, wherein for the personnel management module, the next stage includes secondary modules of personnel scheduling management, role management, organization management, etc., and for the personnel scheduling management, the next stage includes three tertiary modules of shift setting, scheduling management, rest time setting, etc., that is, for the modules of shift setting, scheduling management, rest time setting, etc., the belonging previous stage module is the personnel scheduling management; for the modules of personnel scheduling management, role management, organization management and the like, the previous-level module to which the modules belong is a personnel management module, namely the hierarchical relationship among the modules.
Generally, the function of the next-level module is to supplement and perfect the previous-level module, so the use of the previous-level module can reflect the use requirement of the next-level module to a certain extent, and the use of the next-level module inevitably depends on the previous-level module, and the application requirement of the previous-level module is very great at the moment. Based on this, the scheme can accurately list the associated modules of the newly added function modules by constructing the function module architecture diagram of the software to be managed in advance, namely, the target function module, after determining the target function module, through the authorized use condition of all users using the software to be managed at present to the related function, can relatively accurately screen out which users have the use requirements for the new function and which users have no use requirements for the new function, and further can aim at the users with the use requirements, the target users give the use permission of the newly added function module to all the target users in batch, the targeted, rapid and accurate weighting process of the newly added function is realized, a service provider technician does not need to perform right distribution through a background alone manually, the omission problem is reduced, the user management cost is reduced, and the problem that the application scene is limited in batch authorization can be avoided.
S102, detecting whether a newly added function module exists or not; if yes, go to step S103; and if not, ending.
Specifically, the functional module architecture diagram before modification and storage may be compared with the functional module architecture diagram after modification and storage, and a specific functional module in the modified functional module architecture diagram may be determined as a new functional module.
S103, determining a target function module which has an association relation with the newly added function module based on the current function module architecture diagram;
determining a previous-stage function module to which the newly added function module belongs and/or determining a next-stage function module contained in the newly added function module based on the current function module architecture diagram; and taking the upper-level functional module and/or the lower-level functional module as a target functional module.
For example, the newly added function module is "rest time setting", and based on step S103, the target function module is determined as "personnel shift management".
S104, acquiring the ID information of a target function module based on the ID list of the function module of the software to be managed;
it should be understood that each functional module has unique ID information; the ID information corresponding to each functional module can be flexibly set according to actual conditions, and the uniqueness of each module ID is ensured.
Referring to fig. 3, the functional module ID list includes the modules: "device management" corresponds to an ID of "1000"; "financial management" corresponds to an ID of "2000"; "personnel management" corresponds to an ID of "3000"; "personnel shift management" corresponds to an ID of "3100"; "role management" corresponding to ID "3200"; "organization and organization management" has a corresponding ID of "3300"; "shift setting" corresponds to an ID of "3110"; "shift management" corresponds to an ID of "3120"; the "rest time setting" corresponds to an ID of "3130".
S105, searching a target user with the use permission of the target function module by taking the ID information of the target function module as a search condition;
it should be understood that when a user is entitled, the function module ID, the entitled time, and the like of the entitled item may be recorded and stored, and thus the usage right item of which functions each user currently has may be acquired by searching.
And S106, automatically giving the use authority of the newly added function module to the target user.
After the target user is taken out, traversing each target user, and sequentially writing the unique ID of the newly added function template and the ID of the target user into an authority authorization table, namely an associated data table of the authority ID and the user ID together, so that each target user obtains the use authority of the newly added function.
In this embodiment, the software function authority management method is mainly applicable to an industrial internet, where the type of the target user is an enterprise user.
According to the software function authority management method provided by the invention, whether a newly added function module exists is detected by acquiring a function module architecture diagram of software to be managed, and if so, a target function module which has an association relation with the newly added function module is determined based on the current function module architecture diagram; the functional module architecture diagram comprises the hierarchical relationship among all functional modules of the software to be managed; acquiring ID information of a target function module based on a function module ID list of software to be managed; each functional module has unique ID information; searching a target user with the use permission of the target function module by taking the ID information of the target function module as a search condition; and automatically giving the use authority of the newly added function module to the target user. By determining the target function module which has an incidence relation with the newly added function module and further determining the target user with the requirement for using the newly added function module based on the condition of using the target function module, the accurate and automatic screening of the target user is realized; therefore, the personalized quick granting of the use authority of the new function is realized, and the management cost of the platform user is reduced; the newly added functions of the platform can be quickly and completely used by related users, the user experience is improved, and the reputation of the product is increased.
Example two:
on the basis of the first embodiment, this embodiment provides a software function authority management system, which is used to implement at least part of the steps of the software function authority management method in the first embodiment, please refer to fig. 4, the software function authority management system mainly includes an architecture diagram management unit 41, a module ID configuration unit 42, a detection unit 43, an associated module determination unit 44, a search unit 45, and an authorization unit 46; wherein
The architecture diagram management unit 41 is configured to receive operations of creating, editing, modifying, and storing an architecture diagram of a functional module of software to be managed; the functional module architecture diagram comprises the hierarchical relationship among all functional modules of the software to be managed;
the module ID configuration unit 42 is configured to receive an ID of a functional module of the software to be managed, and perform configuration, uniqueness check, and storage operations;
the detecting unit 43 is configured to obtain the architecture diagram of the functional module of the software to be managed from the architecture diagram managing unit 41, and detect whether a newly added functional module exists;
the associated module determining unit 44 is configured to determine, when the detecting unit 43 detects that the newly added function module exists, a target function module having an associated relationship with the newly added function module based on the function module architecture diagram;
the searching unit 45 is configured to search for a target user having the usage right of the target function module by using the ID information of the target function module as a search condition;
the authorization unit 46 is used to automatically assign the usage right of the newly added function module to the target user.
In order to authorize the new function to a corresponding user more timely when the new function is issued, optionally, the detecting unit 43 is configured to obtain the current functional module architecture diagram of the software to be managed from the architecture diagram managing unit 41 when the architecture diagram managing unit 41 receives a modification and storage instruction of the functional module architecture diagram of the software to be managed, so as to detect whether there is a new functional module.
Generally, the function of the next-level module is to supplement and perfect the previous-level module, so the use of the previous-level module can reflect the use requirement of the next-level module to a certain extent, and the use of the next-level module inevitably depends on the previous-level module, and the application requirement of the previous-level module is very great at the moment. Based on this, the scheme can accurately list the associated modules of the newly added function modules by constructing the function module architecture diagram of the software to be managed in advance, namely, the target function module, after determining the target function module, through the authorized use condition of all users using the software to be managed at present to the related function, can relatively accurately screen out which users have the use requirements for the new function and which users have no use requirements for the new function, and further can aim at the users with the use requirements, the target users give the use permission of the newly added function module to all the target users in batch, the targeted, rapid and accurate weighting process of the newly added function is realized, a service provider technician does not need to perform right distribution through a background alone manually, the omission problem is reduced, the user management cost is reduced, and the problem that the application scene is limited in batch authorization can be avoided.
Optionally, the associated module determining unit 44 is configured to determine, based on the current functional module architecture diagram, a previous-stage functional module to which the newly added functional module belongs, and/or determine a next-stage functional module included in the newly added functional module; and taking the belonging upper-level functional module and/or the contained lower-level functional module as a target functional module.
Example three:
in this embodiment, on the basis of the first embodiment, a server is provided for implementing at least part of the steps of the software function right management method in the first embodiment, please refer to fig. 5, the server mainly includes a processor 51, a memory 52 and a communication bus 53;
the communication bus 53 is used for realizing connection communication between the processor 51 and the memory 52;
the processor 51 is used to execute one or more programs stored in the memory 52 to implement the steps of the software function right management method described in the first embodiment. For details, please refer to the description in the first embodiment, which is not repeated herein.
Example four:
in this embodiment, on the basis of the first embodiment, a storage medium is provided, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of the software function right management method in the first embodiment. For details, please refer to the description in the first embodiment, which is not repeated herein.
It will be apparent to those skilled in the art that the various elements or steps of the invention described above may be implemented using a general purpose computing device, centralized on a single computing device or distributed across a network of computing devices, or alternatively may be implemented using program code executable by a computing device, such that it may be stored on a computer storage medium (ROM/RAM, magnetic disk, optical disk) and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:数据处理方法、装置、电子设备和介质