Configuration method and device of system setting options and electronic equipment
By dynamically adjusting the permission configuration of the UEFI setup interface according to the user role, the problem that ordinary users cannot modify the setting options is solved, and flexible system configuration and improved user experience are achieved.
Patent Information
- Application Number
- CN202510593084.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-08-12
AI Technical Summary
In the prior art, the permission control option under the UEFI setup interface is fixed in the code, and only the administrator user can modify it, and ordinary users have no permission to operate, resulting in poor user experience.
Determine the user role based on the user's unique identification information. Administrator users can adjust the modification permissions in the permission configuration interface and generate different option configuration interfaces. Ordinary users can configure operations in the corresponding interface.
It realizes flexible configuration settings according to user roles, improves system security and performance, and improves user experience.
Smart Images

Figure CN120469736A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a configuration method, device and electronic equipment for system setting options. Background Art
[0002] The server's UEFI (Unified Extensible Firmware Interface) setup refers to a setup interface entered during the computer's startup process. Most UEFI setup options control the server's underlying functionality. These options are crucial to the server's security and functional configuration. Therefore, access to these options requires permission control.
[0003] In the existing technology, the options that can be controlled by permissions in the setup interface are hard-coded in the UEFI code. Server manufacturers fixedly select some setup options for permission control. Only by entering the setup interface as an administrator can the configuration values of these options be modified. Ordinary users have no right to operate, resulting in a poor user experience. Summary of the Invention
[0004] In view of this, an embodiment of the present invention proposes a method, device and electronic device for configuring system setting options to solve the following problems in the prior art: the options that can be controlled for permissions in the setup interface are hard-coded in the UEFI code, and server manufacturers fixedly select some setup options for permission control. Only by entering the setup interface as an administrator can the configuration values of these options be modified. Ordinary users have no right to operate, resulting in a poor user experience.
[0005] On the one hand, an embodiment of the present invention proposes a method for configuring system setting options, including: determining a user role based on the user's unique identification information, wherein the user role includes at least an administrator user and an ordinary user; presenting a permission configuration interface when the user role is the administrator user; receiving a configuration operation of the administrator user's modification permission for the setting options in the permission configuration interface, wherein the modification permission includes: supporting ordinary users to modify and not supporting ordinary users to modify; generating a first option configuration interface based on the configuration operation; presenting the first option configuration interface when the user role is the ordinary user; receiving a modification operation for a predetermined setting option in the first option configuration interface, and reconfiguring the predetermined setting option based on the modification operation.
[0006] In some embodiments, generating a first option configuration interface according to the configuration operation includes: generating the first option configuration interface according to the setting option that supports modification by ordinary users and corresponds to the configuration operation.
[0007] In some embodiments, generating a first option configuration interface according to the configuration operation includes: generating the first option configuration interface according to the setting options that support modification by ordinary users corresponding to the configuration operation and the setting options that do not support modification by ordinary users corresponding to the configuration operation, wherein the setting options that do not support modification by ordinary users are in a read-only state in the first option configuration interface.
[0008] In some embodiments, after presenting the permission configuration interface, it also includes: detecting whether the permission configuration interface receives a skip operation to skip configuring the permission configuration interface; and presenting a second option configuration interface to the administrator user when the skip operation is received.
[0009] In some embodiments, after generating the first option configuration interface according to the configuration operation, it also includes: presenting a second option configuration interface to the administrator user; receiving the administrator user's modification operation on the predetermined setting option in the second option configuration interface, and reconfiguring the predetermined setting option according to the modification operation.
[0010] In some embodiments, the second option configuration interface includes all setting options that support modification by the administrator user.
[0011] In some embodiments, the second option configuration interface includes all setting options that support modification by the administrator user and all setting options that do not support modification by the administrator user, wherein the setting options that do not support modification by the administrator user are in read-only state in the second option configuration interface.
[0012] In some embodiments, the style of the permission configuration interface includes one of the following: check box style, drop-down menu style, input default value style, click icon jump style; the style of the first option configuration interface includes at least one of the following: check box style, drop-down menu style, input default value style, click icon jump style.
[0013] On the other hand, an embodiment of the present invention proposes a configuration device for system setting options, including: a determination module, used to determine the user role based on the user's unique identification information, wherein the user role includes at least an administrator user and an ordinary user; a first presentation module, used to present a permission configuration interface when the user role is the administrator user; a first receiving module, used to receive the configuration operation of the administrator user's modification permission for the setting option in the permission configuration interface, wherein the modification permission includes: supporting ordinary users to modify and not supporting ordinary users to modify; a first generation module, used to generate a first option configuration interface according to the configuration operation; a second presentation module, used to present the first option configuration interface when the user role is the ordinary user; a second receiving module, used to receive the modification operation of the predetermined setting option in the first option configuration interface, and reconfigure the predetermined setting option according to the modification operation.
[0014] On the other hand, an embodiment of the present invention provides an electronic device, comprising at least a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above method when executing the computer program in the memory.
[0015] The embodiment of the present invention determines whether access to the permission configuration interface is based on the user role. When the administrator user enters the permission configuration interface, the administrator user can adjust the modification permissions of each setting option in the permission configuration interface. Then, when the ordinary user enters the first option configuration interface, the configuration value of the setting option in the first option configuration interface can be adjusted. Customers in different industries and different application scenarios have different requirements for the modification permissions of different options in the setting interface. In the embodiment of the present invention, the administrator user controls the modification permissions of the setting options. As long as ordinary users have the modification permissions of the setting options, they can flexibly configure the setting options according to their own needs, thereby ensuring system security to the greatest extent, improving system performance, and providing a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 A flowchart of a method for configuring system setting options provided by a first embodiment of the present invention;
[0018] Figure 2 A schematic diagram of the main switch for modifying permissions provided in the first embodiment of the present invention;
[0019] Figure 3 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 1 ;
[0020] Figure 4 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 2 ;
[0021] Figure 5 A schematic diagram of the second option configuration interface provided by the first embodiment of the present invention;
[0022] Figure 6 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 3 ;
[0023] Figure 7 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 4 ;
[0024] Figure 8 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 5 ;
[0025] Figure 9 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 6 ;
[0026] Figure 10 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 7 ;
[0027] Figure 11 Schematic diagram of the permission configuration interface provided by the first embodiment of the present invention Figure 8 ;
[0028] Figure 12 A schematic diagram of the structure of a configuration device for system setting options provided in a second embodiment of the present invention;
[0029] Figure 13 This is a schematic structural diagram of an electronic device provided by a third embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the described embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Unless otherwise defined, the technical or scientific terms used in the present invention shall have the usual meanings understood by persons of ordinary skill in the field to which the present invention belongs. The words "first", "second" and similar terms used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "include" or "comprise" mean that the elements or objects preceding the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship may also change accordingly.
[0032] In order to keep the following description of the embodiments of the present invention clear and concise, detailed descriptions of known functions and known components are omitted.
[0033] The first embodiment of the present invention provides a method for configuring system setting options. The process of the method is as follows: Figure 1 As shown, it includes steps S101 to S107:
[0034] S101: Determine a user role according to unique identification information of a user, wherein the user role includes at least an administrator user and a common user.
[0035] The above-mentioned user is the user who logs in to the system. When the user logs in to the system, the system will obtain the user's unique identification information. It can then determine whether the user is an administrator user or an ordinary user based on the unique identification information, and then present different operational interfaces for administrator users and ordinary users.
[0036] S102: When the user role is an administrator user, a permission configuration interface is presented.
[0037] When making specific settings, a master switch can be used to determine whether all setting options that the administrator user can configure are open to ordinary users for modification permissions. That is, when the master switch is turned on, the administrator user can configure the modification permissions of individual setting options. When the master switch is turned off, the administrator user cannot configure the modification permissions of the setting options. The style of the above-mentioned master switch can be a text interface style or a graphical interface style. The style of the graphical interface can be, for example, a click icon jump style, that is, clicking the configuration entry icon with the mouse to pop up a new window for operation or clicking the configuration entry icon with the mouse to jump to other interfaces for operation, etc. The style of the text interface can be, for example, a check box style (checkbox style), a drop-down menu style (oneof style), an input default value style (numeri c style), etc. As Figure 2 The following are schematic diagrams of the three styles mentioned above. The checkbox style allows you to check whether the modification permission of the setting option is enabled or disabled; the drop-down menu style allows you to control whether the permission for ordinary users to modify is enabled or disabled by setting the corresponding switch of the option; the default value style (i.e. manually enter a value) allows you to select two values, one for on and the other for off.
[0038] like Figure 3 and 4 The following are two schematic diagrams of the centralized permission configuration interface. Figure 3 For oneof style, Figure 4 For checkbox style, Figure 3 and Figure 4 The permission configuration interface in only includes the option name of the setting option (such as option name 1) and the option modification permission (implemented by option value or check box).
[0039] exist Figure 3 and Figure 4 Similarly, in the case of configuring modification permissions in a centralized manner, after the permission configuration interface is presented, the administrator user may reconfigure the modification permissions, or may not perform any operation. Therefore, after the permission configuration interface is presented, it is detected whether the permission configuration interface receives a skip operation for skipping the configuration permission configuration interface. In the case of receiving the skip operation, a second option configuration interface is presented to the administrator user. The second option configuration interface is an interface for configuring the setting option value, which generally includes at least the option name of the setting option and the configuration value of the option, for example Figure 5 If the administrator user has the configuration modification authority but has not received a skip operation, step S103 is executed.
[0040] In another case, the permission configuration interface of the option can also integrate the content of the second option configuration interface, that is, including the option name of the setting option, the option modification permission and the configuration value of the option (depending on the interface style, it can also be called option value, numerical value, etc.). The style of the above-mentioned permission configuration interface can also be a check box style (checkbox style), a drop-down menu style (oneof style), a default value input style (numeric style), a click icon jump style, etc. The position of the switch corresponding to the modification permission can be divided into two types: a decentralized method and a centralized method. The decentralized method is to put each switch next to the corresponding option, and the centralized method is to put all the switches together for direct operation of multiple options. The centralized method has been demonstrated in the above embodiment, and only the decentralized method is demonstrated in the following embodiment.
[0041] like Figure 6 and 7 The following are two schematic diagrams of the decentralized checkbox-style permission configuration interface. The checkbox and the option are on the same line. Figure 6 The checkbox is behind the option. Figure 7 A checkbox is placed before an option.
[0042] like Figure 8 and 9 The following are two schematic diagrams of the decentralized checkbox style permission configuration interface. Figure 8 The corresponding switch for the modification permission of a specific setting option is in the line above the option. Figure 9 The corresponding switch for the modification permission of a specific setting option is on the next line of the option.
[0043] like Figure 10 and 11 As shown in the figure, there are two schematic diagrams of the decentralized oneof style permission configuration interface. Figure 10 The corresponding switch for the modification permission of a specific setting option is in the line above the option. Figure 11 The corresponding switch for the modification permission of a specific setting option is on the next line of the option.
[0044] S103: Receive a configuration operation of the administrator user on the modification authority of the setting option in the authority configuration interface, wherein the modification authority includes: supporting modification by ordinary users and not supporting modification by ordinary users.
[0045] As shown in the above permission configuration interface, administrator users can reconfigure and modify permissions.
[0046] S104: Generate a first option configuration interface according to the configuration operation.
[0047] When configuring modification permissions in a centralized manner, after completing the configuration of modification permissions for each setting option, the administrator user's save operation is received, and then the administrator user is presented with a second option configuration interface. The administrator user's modification operation on the predetermined setting option in the second option configuration interface is then received, such as the configuration value of the modification option in the above-mentioned figure, and the predetermined setting option is reconfigured according to the modification operation.
[0048] The second option configuration interface includes all setting options that can be modified by the administrator. Of course, it can also include all setting options that cannot be modified by the administrator. In the specific implementation, the setting options that cannot be modified by the administrator are in a read-only state in the second option configuration interface.
[0049] S105: When the user role is a common user, a first option configuration interface is presented.
[0050] In a specific implementation, a first option configuration interface is generated based on the setting options corresponding to the configuration operation that are supported by ordinary users for modification. Alternatively, the first option configuration interface is generated based on the setting options corresponding to the configuration operation that are supported by ordinary users for modification and the setting options corresponding to the configuration operation that are not supported by ordinary users for modification, wherein the setting options that are not supported by ordinary users for modification are in a read-only state in the first option configuration interface.
[0051] The first option configuration interface is pre-configured by the administrator user for ordinary users. The style of the first option configuration interface is similar to the style of the second option configuration interface above, and will not be repeated here. In the same first option configuration interface, its style includes at least one of the following: check box style, drop-down menu style, and input default value style.
[0052] S106: Receive a modification operation on a predetermined setting option in the first option configuration interface, and reconfigure the predetermined setting option according to the modification operation.
[0053] The embodiment of the present invention is an execution flow before entering UEFI setup during the startup process. First, it is determined whether the entry role is an administrator user or an ordinary user. If it is an administrator user, the options of the permission configuration interface are visible and modifiable, that is, whether to enter the permission configuration interface can be controlled. Because the administrator user has the right to modify all options, the judgment of whether the configuration right to modify the permission of each option is skipped. If it is an ordinary user, the permission configuration interface options can be set to hidden or read-only mode, and then the specific options are displayed according to the underlying data of the permission to modify each option configured under the administrator user. If the switch corresponding to the permission to modify an option is turned on, the option supports ordinary users to modify it. If the switch corresponding to the permission to modify an option is turned off, the option is read-only and does not support ordinary users to modify it. In addition, the permission control of each option has a default value. If there is no permission to modify the option under the administrator user, the option display under the ordinary user will be displayed according to the default value of the permission to modify.
[0054] The process of modifying the permissions of the above-mentioned administrator user configuration options is as follows: find the permission configuration interface option, the style of which is one of the checkbox style, oneof style, and numeric style introduced above. Manually operate the various options of the permission configuration interface, and the permission configuration interface will display the modification permissions of each option. The style of the switch corresponding to the modification permission is the style introduced in the above embodiment (no further description here), and then set the modification permissions of the options according to needs. When the permission configuration interface is closed, the configuration interface for modifying permissions for each option will be hidden. For the sake of simplicity, the default value of the permission configuration interface is closed. When saving and exiting, make sure that the value of the permission configuration interface is closed, and then save all modified data. In this way, all modifications will take effect the next time you enter the setup process.
[0055] The embodiment of the present invention determines whether access to the permission configuration interface is based on the user role. When the administrator user enters the permission configuration interface, the administrator user can adjust the modification permissions of each setting option in the permission configuration interface. Then, when the ordinary user enters the first option configuration interface, the configuration value of the setting option in the first option configuration interface can be adjusted. Customers in different industries and different application scenarios have different requirements for the modification permissions of different options in the setting interface. In the embodiment of the present invention, the administrator user controls the modification permissions of the setting options. As long as ordinary users have the modification permissions of the setting options, they can flexibly configure the setting options according to their own needs, thereby ensuring system security to the greatest extent, improving system performance, and providing a better user experience.
[0056] The second embodiment of the present invention provides a configuration device for system setting options, the structure of which is shown in FIG. Figure 12 Shown, including:
[0057] A determination module 10 is used to determine a user role based on the user's unique identification information, wherein the user roles include at least an administrator user and an ordinary user; a first presentation module 20 is coupled with the determination module 10, and is used to present a permission configuration interface when the user role is an administrator user; a first receiving module 30 is coupled with the first presentation module 20, and is used to receive the configuration operation of the administrator user's modification permission for the setting options in the permission configuration interface, wherein the modification permission includes: supporting ordinary users to modify and not supporting ordinary users to modify; a first generation module 40 is coupled with the first receiving module 30, and is used to generate a first option configuration interface according to the configuration operation; a second presentation module 50 is coupled with the determination module 10, and is used to present the first option configuration interface when the user role is an ordinary user; a second receiving module 60 is coupled with the second presentation module 50, and is used to receive a modification operation on a predetermined setting option in the first option configuration interface, and reconfigure the predetermined setting option according to the modification operation.
[0058] The above-mentioned user is the user who logs in to the system. When the user logs in to the system, the system will obtain the user's unique identification information. It can then determine whether the user is an administrator user or an ordinary user based on the unique identification information, and then present different operational interfaces for administrator users and ordinary users.
[0059] When making specific settings, a master switch can be used to determine whether all setting options that the administrator user can configure are open to ordinary users for modification permissions. That is, when the master switch is turned on, the administrator user can configure the modification permissions of individual setting options. When the master switch is turned off, the administrator user cannot configure the modification permissions of the setting options. The style of the above-mentioned master switch can be a text interface style or a graphical interface style. The graphical interface style can be, for example, a click icon jump style, that is, clicking the configuration entry icon with the mouse to pop up a new window for operation or clicking the configuration entry icon with the mouse to jump to other interfaces for operation, etc. The text interface style can be, for example, a checkbox style (checkbox style), a drop-down menu style (oneof style), an input default value style (numeric style), etc. The checkbox style can determine whether the modification permission of the setting option is open by checking it; the drop-down menu style can control the opening or closing of the permission for ordinary users to modify by setting the corresponding switch of the option; the input default value style (i.e. manually entering a numeric value) can select two values, one value for on and the other for off.
[0060] After the permission configuration interface is presented, the administrator user may reconfigure the modification permission or may not perform any operation. Therefore, the embodiment of the present invention may further include: a detection module, coupled to the first presentation module, configured to detect whether the permission configuration interface has received a skip operation for skipping the configuration permission configuration interface; the first presentation module is further configured to present a second option configuration interface to the administrator user if the skip operation is received.
[0061] In another case, the permission configuration interface of the option can also integrate the content of the second option configuration interface, that is, including the option name of the setting option, the option modification permission and the configuration value of the option (depending on the interface style, it can also be called option value, numerical value, etc.). The style of the above permission configuration interface can also be a check box style (checkbox style), a drop-down menu style (oneof style), a default value input style (numeric style), a click icon jump style, etc. The position of the switch corresponding to the modification permission can be divided into two methods: a decentralized method and a centralized method. The decentralized method is to place each switch next to the corresponding option, and the centralized method is to put all switches together for direct operation of multiple options.
[0062] The administrator user can reconfigure modification permissions. After generating the first option configuration interface based on the configuration operation, the first presentation module is further configured to present the administrator user with a second option configuration interface. The first receiving module is further configured to receive the administrator user's modification operation on the predetermined setting options in the second option configuration interface and reconfigure the predetermined setting options based on the modification operation. The second option configuration interface includes all setting options that can be modified by the administrator user, or the second option configuration interface includes all setting options that can be modified by the administrator user and all setting options that cannot be modified by the administrator user. The setting options that cannot be modified by the administrator user are in a read-only state in the second option configuration interface.
[0063] The first generating module 40 is specifically configured to generate a first option configuration interface based on the setting options corresponding to the configuration operation that are modifiable by ordinary users, or to generate a first option configuration interface based on the setting options corresponding to the configuration operation that are modifiable by ordinary users and the setting options corresponding to the configuration operation that are not modifiable by ordinary users. The setting options that are not modifiable by ordinary users are in a read-only state in the first option configuration interface.
[0064] The first option configuration interface is pre-configured by the administrator user for ordinary users. The style of the first option configuration interface is similar to the style of the second option configuration interface above, and will not be repeated here. In the same first option configuration interface, its style includes at least one of the following: check box style, drop-down menu style, and input default value style.
[0065] The embodiment of the present invention is an execution flow before entering UEFI setup during the startup process. First, it is determined whether the entry role is an administrator user or an ordinary user. If it is an administrator user, the options of the permission configuration interface are visible and modifiable, that is, whether to enter the permission configuration interface can be controlled. Because the administrator user has the right to modify all options, the judgment of whether the configuration right to modify the permission of each option is skipped. If it is an ordinary user, the permission configuration interface options can be set to hidden or read-only mode, and then the specific options are displayed according to the underlying data of the permission to modify each option configured under the administrator user. If the switch corresponding to the permission to modify an option is turned on, the option supports ordinary users to modify it. If the switch corresponding to the permission to modify an option is turned off, the option is read-only and does not support ordinary users to modify it. In addition, the permission control of each option has a default value. If there is no permission to modify the option under the administrator user, the option display under the ordinary user will be displayed according to the default value of the permission to modify.
[0066] The process of modifying the permissions of the above-mentioned administrator user configuration options is as follows: find the permission configuration interface option, the style of which is one of the checkbox style, oneof style, and numeric style introduced above. Manually operate the various options of the permission configuration interface, and the permission configuration interface will display the modification permissions of each option. The style of the switch corresponding to the modification permission is the style introduced in the above embodiment (no further description here), and then set the modification permissions of the options according to needs. When the permission configuration interface is closed, the configuration interface for modifying permissions for each option will be hidden. For the sake of simplicity, the default value of the permission configuration interface is closed. When saving and exiting, make sure that the value of the permission configuration interface is closed, and then save all modified data. In this way, all modifications will take effect the next time you enter the setup process.
[0067] The embodiment of the present invention determines whether access to the permission configuration interface is based on the user role. When the administrator user enters the permission configuration interface, the administrator user can adjust the modification permissions of each setting option in the permission configuration interface. Then, when the ordinary user enters the first option configuration interface, the configuration value of the setting option in the first option configuration interface can be adjusted. Customers in different industries and different application scenarios have different requirements for the modification permissions of different options in the setting interface. In the embodiment of the present invention, the administrator user controls the modification permissions of the setting options. As long as ordinary users have the modification permissions of the setting options, they can flexibly configure the setting options according to their own needs, thereby ensuring system security to the greatest extent, improving system performance, and providing a better user experience.
[0068] A fourth embodiment of the present invention provides an electronic device, the structural diagram of which can be as follows: Figure 13As shown, the electronic device at least includes a memory 901 and a processor 902. The memory 901 stores a computer program. The processor 902 implements the method provided by any embodiment of the present invention when executing the computer program on the memory 901. Exemplarily, the electronic device computer program steps are as follows S11 to S16:
[0069] S11, determining a user role based on the user's unique identification information, wherein the user role includes at least an administrator user and a common user;
[0070] S12, when the user role is an administrator user, presenting a permission configuration interface;
[0071] S13, receiving a configuration operation of the administrator user on the modification permission of the setting option in the permission configuration interface, wherein the modification permission includes: supporting modification by ordinary users and not supporting modification by ordinary users;
[0072] S14, generating a first option configuration interface according to the configuration operation;
[0073] S15, when the user role is a common user, presenting a first option configuration interface;
[0074] S16: receiving a modification operation on a predetermined setting option in the first option configuration interface, and reconfiguring the predetermined setting option according to the modification operation.
[0075] When executing the computer program stored in the memory and configured to generate the first option configuration interface according to the configuration operation, the processor specifically executes the following computer program: generating the first option configuration interface according to the setting options corresponding to the configuration operation and supported by ordinary users for modification.
[0076] When the processor executes a computer program stored in the memory for generating a first option configuration interface based on a configuration operation, the processor specifically executes the following computer program: generating the first option configuration interface based on setting options that support modification by ordinary users corresponding to the configuration operation and setting options that do not support modification by ordinary users corresponding to the configuration operation, wherein the setting options that do not support modification by ordinary users are in a read-only state in the first option configuration interface.
[0077] After executing the computer program stored in the memory for presenting the permission configuration interface, the processor also executes the following computer program: detecting whether the permission configuration interface receives a skip operation for skipping the configuration permission configuration interface; and presenting a second option configuration interface to the administrator user if the skip operation is received.
[0078] After executing a computer program stored in the memory that generates a first option configuration interface based on a configuration operation, the processor further executes the following computer program: presenting a second option configuration interface to an administrator user; receiving a modification operation of a predetermined setting option by the administrator user in the second option configuration interface, and reconfiguring the predetermined setting option based on the modification operation.
[0079] Optionally, the second option configuration interface includes all setting options that support modification by administrator users.
[0080] Optionally, the above-mentioned second option configuration interface includes all setting options that support modification by administrator users and all setting options that do not support modification by administrator users, wherein the setting options that do not support modification by administrator users are in read-only state in the second option configuration interface.
[0081] Optionally, the style of the permission configuration interface includes one of the following: check box style, drop-down menu style, input default value style, click icon jump style; the style of the first option configuration interface includes at least one of the following: check box style, drop-down menu style, input default value style, click icon jump style.
[0082] The embodiment of the present invention is an execution flow before entering UEFI setup during the startup process. First, it is determined whether the entry role is an administrator user or an ordinary user. If it is an administrator user, the options of the permission configuration interface are visible and modifiable, that is, whether to enter the permission configuration interface can be controlled. Because the administrator user has the right to modify all options, the judgment of whether the configuration right to modify the permission of each option is skipped. If it is an ordinary user, the permission configuration interface options can be set to hidden or read-only mode, and then the specific options are displayed according to the underlying data of the permission to modify each option configured under the administrator user. If the switch corresponding to the permission to modify an option is turned on, the option supports ordinary users to modify it. If the switch corresponding to the permission to modify an option is turned off, the option is read-only and does not support ordinary users to modify it. In addition, the permission control of each option has a default value. If there is no permission to modify the option under the administrator user, the option display under the ordinary user will be displayed according to the default value of the permission to modify.
[0083] The process of modifying the permissions of the above-mentioned administrator user configuration options is as follows: find the permission configuration interface option, the style of which is one of the checkbox style, oneof style, and numeric style introduced above. Manually operate the various options of the permission configuration interface, and the permission configuration interface will display the modification permissions of each option. The style of the switch corresponding to the modification permission is the style introduced in the above embodiment (no further description here), and then set the modification permissions of the options according to needs. When the permission configuration interface is closed, the configuration interface for modifying permissions for each option will be hidden. For the sake of simplicity, the default value of the permission configuration interface is closed. When saving and exiting, make sure that the value of the permission configuration interface is closed, and then save all modified data. In this way, all modifications will take effect the next time you enter the setup process.
[0084] The embodiment of the present invention determines whether access to the permission configuration interface is based on the user role. When the administrator user enters the permission configuration interface, the administrator user can adjust the modification permissions of each setting option in the permission configuration interface. Then, when the ordinary user enters the first option configuration interface, the configuration value of the setting option in the first option configuration interface can be adjusted. Customers in different industries and different application scenarios have different requirements for the modification permissions of different options in the setting interface. In the embodiment of the present invention, the administrator user controls the modification permissions of the setting options. As long as ordinary users have the modification permissions of the setting options, they can flexibly configure the setting options according to their own needs, thereby ensuring system security to the greatest extent, improving system performance, and providing a better user experience.
[0085] Furthermore, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present invention having equivalent elements, modifications, omissions, combinations (e.g., solutions that intersect various embodiments), adaptations, or changes. The elements in the claims are to be interpreted broadly based on the language employed in the claims and are not limited to the examples described in this specification or during the practice of the invention, which examples are to be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, with the true scope and spirit being indicated by the following claims and the full scope of their equivalents.
[0086] The above description is intended to be illustrative and not restrictive. For example, the above examples (or one or more of their solutions) can be used in combination with each other. For example, a person of ordinary skill in the art may use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the present invention. This should not be interpreted as an intention that a disclosed feature that is not required to be protected is necessary for any claim. On the contrary, the subject matter of the present invention may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present invention should be determined with reference to the appended claims and the full scope of equivalents to which these claims are entitled.
[0087] The above describes in detail multiple embodiments of the present invention, but the present invention is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications based on the concept of the present invention, and these variations and modifications should fall within the scope of protection required by the present invention.
Claims
1. A method for configuring system setting options, characterized in that: include: Determine a user role according to the user's unique identification information, wherein the user role includes at least an administrator user and a common user; When the user role is the administrator user, a permission configuration interface is presented; Receive a configuration operation of the administrator user on the modification permission of the setting option in the permission configuration interface, wherein the modification permission includes: supporting modification by ordinary users and not supporting modification by ordinary users; Generate a first option configuration interface according to the configuration operation; When the user role is the common user, presenting the first option configuration interface; Receive a modification operation on a predetermined setting option in the first option configuration interface, and reconfigure the predetermined setting option according to the modification operation.
2. The method according to claim 1, wherein Generating a first option configuration interface according to the configuration operation includes: The first option configuration interface is generated according to the setting option corresponding to the configuration operation and supported by ordinary users.
3. The method according to claim 1, wherein Generating a first option configuration interface according to the configuration operation includes: The first option configuration interface is generated according to the setting options corresponding to the configuration operation that support modification by ordinary users and the setting options corresponding to the configuration operation that do not support modification by ordinary users, wherein the setting options that do not support modification by ordinary users are in a read-only state in the first option configuration interface.
4. The method according to claim 1, wherein After presenting the permission configuration interface, the following steps are also included: Detecting whether the permission configuration interface receives a skip operation for skipping configuration of the permission configuration interface; In case of receiving the skip operation, a second option configuration interface is presented to the administrator user.
5. The method according to claim 1, wherein After generating the first option configuration interface according to the configuration operation, the method further includes: Presenting a second option configuration interface to the administrator user; Receive a modification operation of the administrator user on a predetermined setting option in the second option configuration interface, and reconfigure the predetermined setting option according to the modification operation.
6. The method according to claim 4 or 5, characterized in that The second option configuration interface includes all setting options that support modification by the administrator user.
7. The method according to claim 4 or 5, characterized in that The second option configuration interface includes all setting options that support modification by the administrator user and all setting options that do not support modification by the administrator user, wherein the setting options that do not support modification by the administrator user are in a read-only state in the second option configuration interface.
8. The method according to any one of claims 1 to 5, characterized in that The style of the permission configuration interface includes one of the following: check box style, drop-down menu style, input default value style, click icon jump style; the style of the first option configuration interface includes at least one of the following: check box style, drop-down menu style, input default value style, click icon jump style.
9. A configuration device for system setting options, characterized in that: include: A determination module, configured to determine a user role according to the user's unique identification information, wherein the user role includes at least an administrator user and a common user; A first presentation module, configured to present a permission configuration interface when the user role is the administrator user; A first receiving module is configured to receive a configuration operation of the administrator user on the modification permission of the setting option in the permission configuration interface, wherein the modification permission includes: supporting modification by ordinary users and not supporting modification by ordinary users; A first generating module, configured to generate a first option configuration interface according to the configuration operation; A second presentation module, configured to present the first option configuration interface when the user role is the ordinary user; The second receiving module is configured to receive a modification operation on a predetermined setting option in the first option configuration interface, and reconfigure the predetermined setting option according to the modification operation.
10. An electronic device comprising at least a memory and a processor, wherein a computer program is stored in the memory, wherein: The processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program on the memory.