CN111624964A - Dynamic authority management and control method, device, server and readable storage medium - Google Patents

Dynamic authority management and control method, device, server and readable storage medium Download PDF

Info

Publication number
CN111624964A
CN111624964A CN202010460816.8A CN202010460816A CN111624964A CN 111624964 A CN111624964 A CN 111624964A CN 202010460816 A CN202010460816 A CN 202010460816A CN 111624964 A CN111624964 A CN 111624964A
Authority
CN
China
Prior art keywords
weight information
event
current user
methods
executable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010460816.8A
Other languages
Chinese (zh)
Other versions
CN111624964B (en
Inventor
吴春悦
杨连东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Forehope Electronic Ningbo Co Ltd
Original Assignee
Forehope Electronic Ningbo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Forehope Electronic Ningbo Co Ltd filed Critical Forehope Electronic Ningbo Co Ltd
Priority to CN202010460816.8A priority Critical patent/CN111624964B/en
Publication of CN111624964A publication Critical patent/CN111624964A/en
Application granted granted Critical
Publication of CN111624964B publication Critical patent/CN111624964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/41845Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by system universality, reconfigurability, modularity
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32019Dynamic reconfiguration to maintain optimal design, fabrication, assembly
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a dynamic authority control method, a dynamic authority control device, a server side and a readable storage medium, and relates to the technical field of authority control. After receiving an event triggered by a current user, obtaining weight information of the current user, searching an event object for processing the event according to the type of the event, obtaining a method corresponding to the event object and weight information corresponding to each method, and after obtaining the method corresponding to the event object and the weight information corresponding to each method, comparing the weight information corresponding to each method with the weight information of the current user, so as to obtain a method executable by the current user and execute the method.

Description

Dynamic authority management and control method, device, server and readable storage medium
Technical Field
The invention relates to the technical field of authority management and control, in particular to a dynamic authority management and control method, a dynamic authority management and control device, a server side and a readable storage medium.
Background
With the increasing requirements of chip manufacturing and packaging, the more complex process flow in the production line and the increasing requirements of customers for products, the high yield and high quality will become the core competitiveness in the future. At present, in the chip Manufacturing and packaging process, a Manufacturing Execution System (MES) controls the flow direction and data management of the whole production and Manufacturing process, and since different customers have different products and have different requirements on the yield and the process standard of different products, when an abnormality of any one link may cause the yield of the whole product to be reduced, a large number of right management and control mechanisms are necessary to keep track of each necessary link.
The existing MES system usually manages logic methods based on hard coding, and when the management and control requirements of customers change, for example, customers continuously add card controls, codes are continuously modified, so that the MES system performs large-frequency iterative issuing and updating, and data loss exists.
Disclosure of Invention
Based on the above research, the present invention provides a dynamic authority management and control method, device, server and readable storage medium, so as to improve the above problems.
Embodiments of the invention may be implemented as follows:
in a first aspect, an embodiment of the present invention provides a dynamic authority management and control method, which is applied to a server, and the method includes:
receiving an event triggered by a current user, and acquiring weight information of the current user;
according to the type of the event, searching an event object for processing the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods;
and comparing the weight information corresponding to each method with the weight information of the current user to obtain the executable method of the current user and execute the executable method.
In an optional embodiment, the step of comparing the weight information corresponding to each of the methods with the weight information of the current user to obtain the method executable by the current user includes:
comparing the weight information corresponding to each method with the weight information of the current user, and judging whether the weight information corresponding to each method is greater than the weight information of the current user;
for each method, if the weight information of the method is greater than the weight information of the current user, the method is judged to be an executable method, and the method is executed; if the weight information of the method is less than the weight information of the current user, the method is judged to be a non-executable method.
In an optional embodiment, the server pre-stores a sequence number of each of the methods, and the step of comparing the weight information corresponding to each of the methods with the weight information of the current user includes:
and sequentially comparing the weight information corresponding to each method with the weight information of the current user according to the sequence serial number of each method.
In an optional implementation manner, before the searching for an event object that processes the event according to the category of the event, and acquiring, based on reflection of the event object, methods corresponding to the event object and weight information corresponding to each of the methods, the method further includes:
judging whether the current user can execute the event or not according to the weight information of the current user;
if the current user can execute the event, searching an event object for processing the event according to the type of the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object.
In an alternative embodiment, after performing the executable method, the method further comprises:
storing all of the executable methods and non-executable methods.
In a second aspect, an embodiment of the present invention provides a dynamic authority management and control device, which is applied to a server, where the dynamic authority management and control device includes an event receiving module, an information obtaining module, and an information processing module;
the event receiving module is used for receiving an event triggered by a current user and acquiring weight information of the current user;
the information acquisition module is used for searching an event object for processing the event according to the category of the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods;
the information processing module is used for comparing the weight information corresponding to each method with the weight information of the current user to obtain the methods executable by the current user and execute the executable methods.
In an optional embodiment, the information processing module is configured to: comparing the weight information corresponding to each method with the weight information of the current user, and judging whether the weight information corresponding to each method is greater than the weight information of the current user;
for each method, if the weight information of the method is greater than the weight information of the current user, the method is judged to be an executable method, and the method is executed; if the weight information of the method is less than the weight information of the current user, the method is judged to be a non-executable method.
In an optional embodiment, the server pre-stores a sequence number of each method, and the information processing module is configured to:
and sequentially comparing the weight information corresponding to each method with the weight information of the current user according to the sequence serial number of each method.
In a third aspect, an embodiment of the present invention provides a server, where the server is configured to:
receiving an event triggered by a current user, and acquiring weight information of the current user;
according to the type of the event, searching an event object for processing the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods;
and comparing the weight information corresponding to each method with the weight information of the current user to obtain the executable method of the current user and execute the executable method.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the dynamic privilege management method according to any one of the foregoing embodiments.
The dynamic authority control method, the dynamic authority control device, the server and the readable storage medium provided by the embodiment of the invention acquire the weight information of the current user after receiving the event triggered by the current user, search the event object of the processing event according to the type of the event to acquire the method corresponding to the event object and the weight information corresponding to each method, and after acquiring the method corresponding to the event object and the weight information corresponding to each method, compare the weight information corresponding to each method with the weight information of the current user to acquire the method executable by the current user and execute the method, so that the dynamic authority control of the method can be realized based on the weight information of the user and the weight information corresponding to the method, code modification is not needed according to the requirement of each control change, and frequent release update caused by hard code control is reduced, the likelihood of data loss is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an MES system according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of an MES system according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a dynamic authority management and control method according to an embodiment of the present invention.
Fig. 4 is a block diagram illustrating a dynamic privilege management and control apparatus according to an embodiment of the present invention.
Icon: 10-a server side; 11-authority dynamic management and control device; 111-event receiving module; 112-an information acquisition module; 113-an information processing module; 20-a client; 30-database.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
As described in the background art, the MES system controls the flow direction and data management of the whole production and manufacturing process of chips, and since different customers have different products and have different requirements on the yield and the process standard, when an abnormality in any link may cause a reduction in the yield of the whole product, a large number of right management and control mechanisms are necessary to keep each necessary link in mind.
However, the existing MES system generally can only manage and control modules or functional interfaces for different kinds of people, such as: the corresponding module can only be operated by a person corresponding to the module, or a certain functional interface can only be operated by a member of a certain group, and other persons do not allow the operation.
In addition, in the existing MES system, if a customer frequently increases card control in the system, for example, the inquiry control of increasing the personnel authority controls that a certain person cannot inquire information of a certain process link, or the control of a process link increases and a certain process link cannot be executed, the code is continuously modified, so that a logical error occurs and the code amount is multiplied. Moreover, the continuous modification of the codes can cause the MES system to perform the iterative release update with large frequency, which easily causes the loss of production data due to the update process and directly or indirectly affects the normal operation of the staff on the production line, thereby affecting the efficiency of the whole production flow, and the delay problem of abnormal repair due to the card control can also affect the experience of the customer.
Therefore, the present embodiment provides a dynamic authority management and control method to improve the above problem.
Referring to fig. 1, the dynamic authority control method provided in the present embodiment is applied to a service end 10 in an MES system, and the service end 10 is in communication connection with a client 20 and a database 30 in the MES system.
In this embodiment, the server 10 may be communicatively connected to the client 20 and the database 30 via a network. The network may be a wired network or a wireless network.
Referring to fig. 2 in conjunction with fig. 2, fig. 2 is a schematic structural diagram of the MES system provided in the present embodiment, as shown in fig. 2, in the present embodiment, a service end 10 includes a plurality of modules, such as a permission module, a permission screening module, and a service module.
The business module comprises a test module, a packaging module, an equipment module, a report module and the like, wherein the test module can be subdivided into interfaces such as posting, rack machine, flow card printing, Tooling and the like, the function modules contained in each interface are different, for example, the posting interface comprises function modules such as inbound and outbound, and the function modules comprise a plurality of methods, for example, methods such as customer special card control, rack machine confirmation, program comparison, inbound and the like exist in relation to the inbound function module. It should be noted that the method described in this example is a function instruction, that is, the functional module in this embodiment is composed of a plurality of function instructions.
The authority module comprises authority modules such as role authority, function authority, method authority and button authority, wherein the role authority module is used for matching business operation executable by a current user according to the role (position) of the current user, the function authority module is used for matching an operable interface of the current user according to weight information of the current user, the method authority module is used for comparing the weight information of the current user with the weight information of the method and judging whether the current user has authority to execute the method, and the button authority module is used for matching an operable button of the current user according to the weight information of the current user.
The authority screening module mainly comprises an authority screener used for screening and comparing the weight information.
The database 30 includes a weight information module for storing the weight information of the user and the weight information of the method, and a log recording module for storing the execution result of the method.
The client 20 is configured to provide an interactive interface (e.g., a user interface) to a user, where the interactive interface includes a plurality of buttons, and the user can invoke different modules in the server 10 through different buttons to trigger events, where each triggered event corresponds to a plurality of methods.
When a user calls a service module in the server 10 through a button and triggers an event, the server 10 calls weight information of the user from the weight information module and calls an authority screening module, judges whether the user has authority to execute the event through the role authority module, the button authority module and the function authority module according to the weight information of the user, if so, calls weight information of a method corresponding to the event from the weight information module, compares the weight information of the user with the weight information of the method through the method authority module, judges whether the user has the authority to execute the method corresponding to the event, and delivers result information to the log recording module for recording through the service module.
For example, a certain user triggers an outbound event through a button, the server 10 obtains, according to the weight information of the user, through matching of the role authority module, the button authority module, and the function authority module, that the user can only operate an inbound event included in the posting interface in the test module, and therefore, the user does not have authority to execute the outbound event, but if the user triggers the inbound event, the user has authority to execute the inbound event, and then compares the weight information of the method corresponding to the inbound event with the weight information of the user to determine whether the user has authority to execute the method corresponding to the event.
Referring to fig. 3, fig. 3 is a schematic flow chart of the dynamic privilege management and control method provided in this embodiment, which is executed by the service end 10 shown in fig. 1, and the schematic flow chart shown in fig. 3 is described in detail below.
Step S10: and receiving an event triggered by the current user and acquiring weight information of the current user.
Step S20: according to the type of the event, searching an event object for processing the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object, wherein the event object corresponds to a plurality of methods.
Step S30: and comparing the weight information corresponding to each method with the weight information of the current user to obtain the executable method of the current user and execute the executable method.
Optionally, in this embodiment, the weight information of the user may be obtained based on the identity information and the job information of the user. In an exemplary implementation manner, the present embodiment may set a usage right for each user according to the identity information and the position information of each user, where different positions correspond to different usage rights, then calculate to obtain weight information of each user according to the usage right, and associate and store the identity information, the position information, and the weight information of each user into the database. When a user logs in the client through the identity information and the position information and triggers an event by clicking a button of the client, the client transmits the triggered event, the identity information and the position information of the user to the server, and the server can acquire the weight information of the user according to the identity information and the position information of the user.
When a user logs in the client and triggers an event by clicking a button of the client, the client also transmits the triggered event and the type of the event to the server, so that the server can search and obtain an event object for processing the event based on the type of the event, and the method included by the event object is obtained.
In this embodiment, an event is decomposed into a plurality of methods in advance, and then a mapping relationship between an event object for processing the event and the plurality of methods obtained by decomposition is established at a server, so that the event object and the plurality of methods can be associated together, and further, all methods corresponding to the event object can be obtained through reflection of the event object.
In this embodiment, when an event is decomposed into a plurality of methods, different weight information is set for each method, the different weight information corresponds to different execution weights, and the weight information of each method is stored in the database.
After all the methods corresponding to the event object and the weight information corresponding to each method are obtained, the weight information corresponding to each method can be compared with the weight information of the current user, so that the method executable by the current user is obtained in all the methods, and the obtained executable method is executed.
According to the dynamic control method for the authority, dynamic control of the authority of the method is achieved by comparing the weight information corresponding to each method with the weight information of the current user, when control needs to be added, only the weight information of the method or the weight information of the user needs to be modified and maintained, code modification is not needed, frequent issuing and updating caused by hard coding control are reduced, the possibility of data loss is reduced, the method is more flexible and faster, the program robustness is high, the working efficiency of a production line is improved in a certain sense, and user experience is indirectly improved.
Optionally, in this embodiment, the method corresponding to the event object may be, but is not limited to, a method of deleting, querying, adding, and the like.
Further, in this embodiment, the step of comparing the weight information corresponding to each method with the weight information of the current user to obtain the method executable by the current user may include:
and comparing the weight information corresponding to each method with the weight information of the current user, and judging whether the weight information corresponding to each method is greater than the weight information of the current user.
For each method, if the weight information of the method is greater than the weight information of the current user, the method is judged to be an executable method, and the method is executed; if the weight information of the method is less than the weight information of the current user, the method is judged to be a non-executable method.
After all the methods corresponding to the event object are obtained, when a certain method corresponding to the event object is called, the weight information corresponding to the method is compared with the weight information of the current user, if the weight information corresponding to the method is larger than the weight information of the current user, the method is executable under the authority of the current user, and then the method is executed, and if the weight information corresponding to the method is not larger than the weight information of the current user, the method is not executable under the authority of the current user, and then the method is not executed. And by analogy, comparing the weight information of all methods corresponding to the event object with the weight information of the current user one by one, so as to obtain the method executable by the current user, and further realize the dynamic control of the method authority.
In order to facilitate comparing the weight information of all methods corresponding to the event object with the weight information of the current user one by one, in an optional implementation manner, the sequence number of each method is pre-stored in the server provided in this embodiment, and further, the step of comparing the weight information corresponding to each method with the weight information of the current user may further include:
and sequentially comparing the weight information corresponding to each method with the weight information of the current user according to the sequence serial number of each method.
For example, there are 4 methods corresponding to an event object for processing a certain inbound event, which are method 1, method 2, method 3, and method 4, respectively, arranged according to a sequence number, and corresponding weight information is 99, 4, 6, and 99, respectively, assuming that the weight information of the current user is 5, after the inbound event is triggered, the method corresponding to the event object for processing the inbound event is sequentially called according to the sequence number, and then compared with the weight information of the current user, that is, method 1 is called first, the weight information of method 1 is compared with the weight information of the current user, where the weight information of method 1 is greater than the weight information of the current user, and method 1 is executed. And then detecting whether a residual method exists, detecting to obtain a method 2, a method 3 and a method 4, calling the method 2, and comparing the weight information of the method 2 with the weight information of the current user, wherein the weight information of the method 2 is less than the weight information of the current user, and the method 2 cannot be executed. And continuously detecting whether the remaining methods exist or not, detecting to obtain a method 3 and a method 4, calling the method 3, and comparing the weight information of the method 3 with the weight information of the current user, wherein the weight information of the method 3 is greater than the weight information of the current user, and the method 3 is executed. And then detecting whether a residual method exists or not, detecting to obtain a method 4, and comparing the weight information of the method 4 with the weight information of the current user, wherein the weight information of the method 4 is greater than the weight information of the current user, the method 4 is executed, and the method is represented to be finished if no residual method is detected.
To facilitate the staff to query the user's operation history, in an alternative embodiment, after executing the executable method, the method further comprises:
all executable methods as well as non-executable methods are stored.
After the weight information of all methods corresponding to the event object is compared and all executable methods are executed, all the executable methods and the unexecutable methods are stored in a log recording module in a database, calling information of the methods, identity information of users, weight information and the like are stored in a log recording module, so that a worker can inquire the log when mistakes are made subsequently, the problem caused by which method is known at first time and then can modify the log in time without spending a large amount of time for debugging the worker.
In order to meet the requirements of users with different permissions, in an optional implementation manner, before searching an event object for processing an event according to the category of the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object, the method provided in this embodiment further includes:
and judging whether the current user can execute the event or not according to the weight information of the current user.
If the current user can execute the event, the event object for processing the event is searched according to the type of the event, and the method corresponding to the event object and the weight information corresponding to each method are obtained based on the reflection of the event object.
After receiving the triggered event and the identity information and position information of the user, the server acquires the weight information of the user according to the identity information and position information of the user, judges whether the user has the authority to execute the event according to the weight information of the user, and searches and processes an event object of the event according to the category of the event if the user has the authority to execute the event, so as to acquire a method corresponding to the event object and weight information corresponding to each method. Optionally, in this embodiment, whether the user has the right to execute the triggered event may be determined by the role right module, the button right module, and the function right module.
In the embodiment, the card control can be performed according to different events by judging whether the user has the authority to execute the trigger event, so that different requirements of users with different authorities are met.
The dynamic control method for permissions provided by this embodiment determines whether the user has permission to execute the triggered event and whether the user has permission to execute the method corresponding to the event object based on the weight information of the user, so that even if the same button is used in the same interface, different users can execute different methods, thereby implementing dynamic control of permissions of different personnel in different methods, and satisfying the requirements of users with different permissions on function execution.
According to the dynamic authority control method provided by the embodiment, only the configuration of authority screening comparison is needed to be completed at the server side, mapping between the event objects and the methods is established, after the client side triggers the event, the server side can compare the weights of the methods corresponding to the loaded event objects one by one, when the control requirement is increased, only the weight information of a user or the weight information of the methods needs to be maintained in the database, hard coding is not needed at the server side, frequent system release caused by hard coding control is greatly reduced, the possibility of data loss is reduced, the robustness of the program is ensured, the working efficiency of a production line is improved to a certain extent, and the user experience is indirectly improved.
As an optional implementation manner, this embodiment further provides another dynamic authority management and control method, where a data table is built in the database, a field corresponding to each method is set in the data table, and the field corresponding to each method indicates whether the method is executable, and after the server obtains all methods corresponding to the processing object, the server calls the method, that is, by querying the field of the method in the database, it is determined whether the method is executable. When the management and control requirements of the method need to be changed, only the field corresponding to the method needs to be changed in the database, and therefore dynamic management and control of the method authority are achieved.
On the basis, please refer to fig. 4, the present embodiment further provides a dynamic authority management and control device 11, which is applied to a server, wherein the dynamic authority management and control device 11 includes an event receiving module 111, an information obtaining module 112, and an information processing module 113.
The event receiving module 111 is configured to receive an event triggered by a current user and obtain weight information of the current user.
The information obtaining module 112 is configured to search an event object for processing an event according to the category of the event, and obtain methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods.
The information processing module 113 is configured to compare the weight information corresponding to each method with the weight information of the current user, obtain a method executable by the current user, and execute the executable method.
In an alternative embodiment, the information processing module 113 is configured to: and comparing the weight information corresponding to each method with the weight information of the current user, and judging whether the weight information corresponding to each method is greater than the weight information of the current user.
For each method, if the weight information of the method is greater than the weight information of the current user, the method is judged to be an executable method, and the method is executed; if the weight information of the method is less than the weight information of the current user, the method is judged to be a non-executable method.
In an optional embodiment, the server pre-stores a sequence number of each method, and the information processing module 113 is configured to:
and sequentially comparing the weight information corresponding to each method with the weight information of the current user according to the sequence serial number of each method.
Based on the same inventive concept, the present embodiment provides a server, where the server is configured to:
and receiving an event triggered by the current user and acquiring weight information of the current user.
Searching an event object for processing the event according to the category of the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods.
And comparing the weight information corresponding to each method with the weight information of the current user to obtain the executable method of the current user and execute the executable method.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the dynamic authority management and control device and the server described above may refer to corresponding processes in the foregoing system, and are not described in detail herein.
On the basis of the foregoing, the present embodiment provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the dynamic privilege management method according to any one of the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the readable storage medium described above may refer to the corresponding process in the foregoing method, and will not be described in detail herein.
To sum up, according to the dynamic authority control method, apparatus, server and readable storage medium provided in this embodiment, after receiving an event triggered by a current user, weight information of the current user is obtained, and according to a type of the event, an event object for processing the event is searched to obtain methods corresponding to the event object and weight information corresponding to each method, and after obtaining the methods corresponding to the event object and the weight information corresponding to each method, a method executable by the current user is obtained by comparing the weight information corresponding to each method with the weight information of the current user, so that dynamic authority control of the method is achieved, code modification is not required for each control change requirement, frequent release update caused by hard code control is reduced, and possibility of data loss is reduced.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A dynamic authority control method is applied to a server side and comprises the following steps:
receiving an event triggered by a current user, and acquiring weight information of the current user;
according to the type of the event, searching an event object for processing the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods;
and comparing the weight information corresponding to each method with the weight information of the current user to obtain the executable method of the current user and execute the executable method.
2. The method of claim 1, wherein the step of comparing the weight information corresponding to each of the methods with the weight information of the current user to obtain the methods executable by the current user comprises:
comparing the weight information corresponding to each method with the weight information of the current user, and judging whether the weight information corresponding to each method is greater than the weight information of the current user;
for each method, if the weight information of the method is greater than the weight information of the current user, the method is judged to be an executable method, and the method is executed; if the weight information of the method is less than the weight information of the current user, the method is judged to be a non-executable method.
3. The method of claim 2, wherein the server pre-stores a sequence number of each of the methods, and the step of comparing the weight information corresponding to each of the methods with the weight information of the current user includes:
and sequentially comparing the weight information corresponding to each method with the weight information of the current user according to the sequence serial number of each method.
4. The method according to claim 1, wherein before the event object that processes the event is searched for according to the category of the event, and a method corresponding to the event object and weight information corresponding to each method are obtained based on reflection of the event object, the method further includes:
judging whether the current user can execute the event or not according to the weight information of the current user;
if the current user can execute the event, searching an event object for processing the event according to the type of the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object.
5. The dynamic management of permissions method of claim 1, wherein after executing said executable method, said method further comprises:
storing all of the executable methods and non-executable methods.
6. The dynamic authority management and control device is applied to a server and comprises an event receiving module, an information acquisition module and an information processing module;
the event receiving module is used for receiving an event triggered by a current user and acquiring weight information of the current user;
the information acquisition module is used for searching an event object for processing the event according to the category of the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods;
the information processing module is used for comparing the weight information corresponding to each method with the weight information of the current user to obtain the methods executable by the current user and execute the executable methods.
7. The apparatus for dynamic authority management and control according to claim 6, wherein the information processing module is configured to: comparing the weight information corresponding to each method with the weight information of the current user, and judging whether the weight information corresponding to each method is greater than the weight information of the current user;
for each method, if the weight information of the method is greater than the weight information of the current user, the method is judged to be an executable method, and the method is executed; if the weight information of the method is less than the weight information of the current user, the method is judged to be a non-executable method.
8. The apparatus for dynamically managing and controlling authority according to claim 7, wherein the server pre-stores a sequence number of each method, and the information processing module is configured to:
and sequentially comparing the weight information corresponding to each method with the weight information of the current user according to the sequence serial number of each method.
9. A server, wherein the server is configured to:
receiving an event triggered by a current user, and acquiring weight information of the current user;
according to the type of the event, searching an event object for processing the event, and acquiring methods corresponding to the event object and weight information corresponding to each method based on reflection of the event object; wherein the event object corresponds to a plurality of methods;
and comparing the weight information corresponding to each method with the weight information of the current user to obtain the executable method of the current user and execute the executable method.
10. A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a method for dynamic management of rights according to any one of claims 1-5.
CN202010460816.8A 2020-05-27 2020-05-27 Dynamic authority management and control method, device, server and readable storage medium Active CN111624964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010460816.8A CN111624964B (en) 2020-05-27 2020-05-27 Dynamic authority management and control method, device, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010460816.8A CN111624964B (en) 2020-05-27 2020-05-27 Dynamic authority management and control method, device, server and readable storage medium

Publications (2)

Publication Number Publication Date
CN111624964A true CN111624964A (en) 2020-09-04
CN111624964B CN111624964B (en) 2021-08-06

Family

ID=72272278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010460816.8A Active CN111624964B (en) 2020-05-27 2020-05-27 Dynamic authority management and control method, device, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN111624964B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764605A (en) * 2020-12-31 2021-05-07 航天精一(广东)信息科技有限公司 Dynamic response method and system for page button

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW507431B (en) * 1999-12-23 2002-10-21 Lucent Technologies Inc Method and apparatus for shortening the critical path of reduced complexity sequence estimation techniques
US20070198609A1 (en) * 2005-09-27 2007-08-23 Black Alistair D Method and apparatus for doing electronic asset inventory from backup tapes
CN109146000A (en) * 2018-09-07 2019-01-04 电子科技大学 A kind of method and device for improving convolutional neural networks based on frost weight
CN109815714A (en) * 2019-01-04 2019-05-28 平安科技(深圳)有限公司 Authority control method, device and computer readable storage medium
CN110636095A (en) * 2018-06-25 2019-12-31 北京京东尚科信息技术有限公司 Equipment management and control system and working method thereof
CN110717737A (en) * 2019-10-12 2020-01-21 珠海优特物联科技有限公司 Stamp control method and device and stamp
CN110956431A (en) * 2018-09-26 2020-04-03 富泰华工业(深圳)有限公司 Data authority control method and system, computer device and readable storage medium
CN111143796A (en) * 2019-12-26 2020-05-12 汕头东风印刷股份有限公司 Data query method and device
CN111199379A (en) * 2018-11-20 2020-05-26 马上消费金融股份有限公司 Examination and approval method, examination and approval device and storage medium of workflow engine

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW507431B (en) * 1999-12-23 2002-10-21 Lucent Technologies Inc Method and apparatus for shortening the critical path of reduced complexity sequence estimation techniques
US20070198609A1 (en) * 2005-09-27 2007-08-23 Black Alistair D Method and apparatus for doing electronic asset inventory from backup tapes
CN110636095A (en) * 2018-06-25 2019-12-31 北京京东尚科信息技术有限公司 Equipment management and control system and working method thereof
CN109146000A (en) * 2018-09-07 2019-01-04 电子科技大学 A kind of method and device for improving convolutional neural networks based on frost weight
CN110956431A (en) * 2018-09-26 2020-04-03 富泰华工业(深圳)有限公司 Data authority control method and system, computer device and readable storage medium
CN111199379A (en) * 2018-11-20 2020-05-26 马上消费金融股份有限公司 Examination and approval method, examination and approval device and storage medium of workflow engine
CN109815714A (en) * 2019-01-04 2019-05-28 平安科技(深圳)有限公司 Authority control method, device and computer readable storage medium
CN110717737A (en) * 2019-10-12 2020-01-21 珠海优特物联科技有限公司 Stamp control method and device and stamp
CN111143796A (en) * 2019-12-26 2020-05-12 汕头东风印刷股份有限公司 Data query method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭友: "《角色网络动态转授模型的研究和实现》", 《计算机集成制造系统》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764605A (en) * 2020-12-31 2021-05-07 航天精一(广东)信息科技有限公司 Dynamic response method and system for page button

Also Published As

Publication number Publication date
CN111624964B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
US7610512B2 (en) System and method for automated and assisted resolution of it incidents
US8332824B2 (en) Binding between net technologies and SQL server statements
CN106469068B (en) Application program deployment method and system
CN102073640A (en) Method, system and server for testing structured query language (SQL) statements
CN103365946B (en) Database performance is analyzed
CN103246574A (en) Verification method and verification device for data accuracy
CN109241014B (en) Data processing method and device and server
JP2019500680A (en) Data processing method and apparatus
CN112817995B (en) Data processing method and device, electronic equipment and storage medium
CN102004954A (en) Product information system and information integration method of product design system
CN113157419A (en) Task processing method based on robot process automation
US20220222266A1 (en) Monitoring and alerting platform for extract, transform, and load jobs
CN111624964B (en) Dynamic authority management and control method, device, server and readable storage medium
JP2012208664A (en) Integrated management system for software design/operation
CN115617780A (en) Data import method, device, equipment and storage medium
CN113535669A (en) File uploading method, downloading method and system
US11650573B2 (en) Management method for cutting tool of machine tool
US20050096957A1 (en) System and method for manufacturing job rescheduling
CN110874365A (en) Information query method and related equipment thereof
CN103914505A (en) Information management method and information management device
CN114780782B (en) Enterprise information changing method, system, computer equipment and storage medium
JP2015103160A (en) Component list creating system, component list creating method, and component list creating program
CN115495911B (en) Model renaming method, device and storage medium
CN116739560A (en) Fault work order generation method and device, electronic equipment and storage medium
CN115186019A (en) Service data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant