CN109245928B - Configuration information setting method and device and terminal management system - Google Patents

Configuration information setting method and device and terminal management system Download PDF

Info

Publication number
CN109245928B
CN109245928B CN201811061224.8A CN201811061224A CN109245928B CN 109245928 B CN109245928 B CN 109245928B CN 201811061224 A CN201811061224 A CN 201811061224A CN 109245928 B CN109245928 B CN 109245928B
Authority
CN
China
Prior art keywords
configuration information
value pair
key
terminal
configuration
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.)
Active
Application number
CN201811061224.8A
Other languages
Chinese (zh)
Other versions
CN109245928A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201811061224.8A priority Critical patent/CN109245928B/en
Publication of CN109245928A publication Critical patent/CN109245928A/en
Application granted granted Critical
Publication of CN109245928B publication Critical patent/CN109245928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a setting method and a setting device of configuration information, a terminal management system, computer equipment and a storage medium, wherein the method comprises the following steps: the terminal sends the identification of the configuration object to the server, so that the server inquires the key value pair matched with the identification from the key value pair database according to the identification and returns the key value pair to the terminal, after receiving the key value pair, the terminal sets the configuration information of the configuration object according to the key value pair, so that when a user logs in the terminal or the equipment is connected with a network, the terminal obtains the corresponding key value pair for setting the configuration information of the user or the equipment through the key value pair database of the server, thereby quickly completing the setting of the configuration information, even if the user logs in other terminals, the user does not need to reset the configuration information of the user, the setting efficiency of the configuration information is improved, a manager can conveniently manage each terminal through the server, and the management efficiency of the terminal is improved.

Description

Configuration information setting method and device and terminal management system
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for setting configuration information, a terminal management system, a computer device, and a computer-readable storage medium.
Background
With the rapid development of internet technology, a large number of terminals are applied to the life of people, and users can surf the internet to browse webpages and record learning notes through application programs on terminals such as notebook computers. In the using process of the terminal, an administrator can manage the terminal and a user using the terminal through the background server, for example, the administrator can perform operations of limiting the shutdown time of the terminal and setting the webpage access authority of the user and the like on the background server.
In the conventional technology, after an administrator sets relevant configuration information in a background server, the configuration information is pushed to a terminal through the background server, and the service of the terminal makes response operation according to the set configuration information. However, the configuration information set in this way is short-lived, when the user logs out of the terminal and logs in another terminal, the configuration information is not applied to another device, so that an administrator needs to reset the configuration information of the terminal device, and the user usually needs to reset the configuration information of the user when logging in another terminal, so that the setting efficiency of the configuration information is reduced, and the efficiency of managing the terminal is also reduced.
Disclosure of Invention
Based on this, it is necessary to provide a setting method of configuration information, a setting apparatus of configuration information, a terminal management system, a computer device, and a computer-readable storage medium, for the technical problem that the setting efficiency of configuration information of the conventional art is low.
A method for setting configuration information comprises the following steps:
sending an identifier of the configuration object to a server; the identifier is used for triggering the server to acquire the key-value pair matched with the identifier from a key-value pair database;
receiving the key-value pair returned by the server;
and setting the configuration information of the configuration object according to the key value pair.
A method for setting configuration information comprises the following steps:
receiving an identifier of a configuration object sent by a terminal;
acquiring a key value pair matched with the identifier from a key value pair database according to the identifier;
sending the key-value pair to the terminal; the key value pair is used for triggering the terminal to set the configuration information of the configuration object according to the key value pair.
An apparatus for setting configuration information, comprising:
the identification sending module is used for sending the identification of the configuration object to the server; the identifier is used for triggering the server to acquire the key-value pair matched with the identifier from a key-value pair database;
the key value pair receiving module is used for receiving the key value pair returned by the server;
and the information setting module is used for setting the configuration information of the configuration object according to the key value pair.
An apparatus for setting configuration information, comprising:
the identification receiving module is used for receiving the identification of the configuration object sent by the terminal;
the key-value pair acquisition module is used for acquiring a key-value pair matched with the identifier from a key-value pair database according to the identifier;
the key value pair sending module is used for sending the key value pair to the terminal; the key value pair is used for triggering the terminal to set the configuration information of the configuration object according to the key value pair.
A terminal management system comprises a terminal and a server in communication connection with the terminal; wherein the content of the first and second substances,
the terminal is used for sending the identification of the user or the equipment to the server;
the server is used for receiving the identifier sent by the terminal, acquiring a key value pair matched with the identifier from a key value pair database according to the identifier, and sending the key value pair to the terminal;
the terminal is also used for receiving the key value pair and setting the configuration information of the user or the equipment according to the key value pair; the configuration information is used for the service of the terminal to manage the user or the equipment according to the configuration information.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
sending an identifier of the configuration object to a server; the identifier is used for triggering the server to acquire the key-value pair matched with the identifier from a key-value pair database;
receiving the key-value pair returned by the server;
and setting the configuration information of the configuration object according to the key value pair.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving an identifier of a configuration object sent by a terminal;
acquiring a key value pair matched with the identifier from a key value pair database according to the identifier;
sending the key-value pair to the terminal; the key value pair is used for triggering the terminal to set the configuration information of the configuration object according to the key value pair.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
sending an identifier of the configuration object to a server; the identifier is used for triggering the server to acquire the key-value pair matched with the identifier from a key-value pair database;
receiving the key-value pair returned by the server;
and setting the configuration information of the configuration object according to the key value pair.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving an identifier of a configuration object sent by a terminal;
acquiring a key value pair matched with the identifier from a key value pair database according to the identifier;
sending the key-value pair to the terminal; the key value pair is used for triggering the terminal to set the configuration information of the configuration object according to the key value pair.
The terminal sends the identification of the configuration object to the server, so that the server inquires the key value pair matched with the identification from the key value pair database according to the identification and returns the key value pair to the terminal, the terminal sets the configuration information of the configuration object according to the key value pair after receiving the key value pair, so that when a user logs in the terminal or the equipment is connected with a network, the terminal acquires the corresponding key value pair for setting the configuration information of the user or the equipment through the key value pair database of the server, thereby quickly finishing the setting of the configuration information, even if the user logs in other terminals, the user does not need to reset the configuration information of the user or the equipment, the setting efficiency of the configuration information is improved, and the administrator can conveniently manage each terminal through the server, the management efficiency of the terminal is improved.
Drawings
FIG. 1 is a diagram of an application environment of a setting method of configuration information in one embodiment;
FIG. 2 is a flowchart illustrating a method for setting configuration information according to an embodiment;
FIG. 3 is a block diagram of a server in one embodiment;
FIG. 4 is a block diagram of a terminal in one embodiment;
FIG. 5 is a diagram of a user's profile in one embodiment;
fig. 6 is a flowchart illustrating a setting method of configuration information in another embodiment;
FIG. 7 is a block diagram showing the configuration of a setting means for configuration information in one embodiment;
FIG. 8 is a block diagram showing the configuration of a setting means of configuration information in another embodiment;
fig. 9 is a schematic structural diagram of a terminal management system in one embodiment;
FIG. 10 is a timing diagram of a setting method of configuration information in one embodiment;
FIG. 11 is a diagram of the internal structure of a computer device in one embodiment;
fig. 12 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should be noted that the term "first \ second" referred to in the embodiments of the present invention is only used for distinguishing similar objects, and does not represent a specific ordering for the objects, and it should be understood that "first \ second" may exchange a specific order or sequence order if allowed. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that embodiments of the invention described herein may be practiced in sequences other than those illustrated or described herein.
The setting method of configuration information provided by the present invention can be applied to an application environment shown in fig. 1, where fig. 1 is an application environment diagram of the setting method of configuration information in an embodiment, and includes a terminal 100 and a server 200, the terminal 100 may be in communication connection with the server 200 through a network, a key-value pair database is provided in the server 200, and the terminal 100 may access the key-value pair database of the server 200 and obtain a key-value pair for setting configuration information.
Specifically, the terminal 100 may send an identifier of the configuration object by the server 200, then the server 200 may obtain a corresponding key-value pair from the key-value pair database according to the identifier and return the key-value pair to the terminal 100, and after receiving the key-value pair, the terminal 100 may set configuration information of the configuration object according to the key-value pair. It should be noted that the terminal 100 may be, but is not limited to, a personal computer, a notebook computer, a smart phone, a tablet computer, or a portable wearable device, and the server 200 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In an embodiment, a method for setting configuration information is provided, which is described by taking the method as an example applied to the terminal 100 in fig. 1, referring to fig. 2, fig. 2 is a schematic flow chart of the method for setting configuration information in an embodiment, where the method for setting configuration information may include the following steps:
step S101, sending the identity of the configuration object to the server.
The configuration object may be, but is not limited to, a user using a terminal or the device itself, an identifier of the configuration object is mainly used to identify information of the configuration object, if the configuration object is a user, the identifier may be information such as an account Number of the user, and if the configuration object is a device, the identifier may be a unique identifier of the device, such as an SN Number (Serial Number).
In this step, the terminal 100 may send an identifier, such as an account number or a device serial number of the user, to the server 200, so that the server 200 performs subsequent operations according to the identifier, and since the identifier of the configuration object can accurately identify the configuration object, the server 200 can accurately operate a specific configuration object according to the identifier.
After the server 200 receives the identification, the identification may cause the server to query a key-value pair database for key-value pairs that match the identification. The key-value pair (key-value) includes a key (key) and a value (value) for indicating a mapping relationship between the key and the value, for example, a "gender: men "is a key value pair, i.e. the key is" sex ", and the corresponding value is" man ", and in the practical application process, both the key and the value can be expressed by character strings.
Referring to fig. 3, fig. 3 is a schematic diagram of a server framework in an embodiment, where the key-value pair database refers to a database storing a large number of key-value pairs, that is, the server 200 may store a large number of key-value pairs through local data, the server 200 allows multiple terminals to perform communication connection, and when a terminal accesses through an identifier, the server queries and returns a corresponding key-value pair from the database. The key-value pairs may be preset in the database by the administrator in the server 200 and stored in the database, the key-value pairs stored in the database may correspond to the identifiers sent by the terminal 100, one identifier may correspond to 1 or more key-value pairs, the database may be provided in the server 200, and the server 200 may retrieve 1 or more key-value pairs matching the identifier from the database according to the received identifier.
And step S102, receiving the key value pair returned by the server.
In this step, the terminal 100 may receive the key-value pairs returned by the server 200 after the server 200 queries the key-value pairs corresponding to the identifiers, where the number of the key-value pairs may be multiple. Referring to fig. 4, fig. 4 is a schematic diagram of a framework of the terminal in an embodiment, after the terminal 100 receives the key-value pair, the key-value pair may be stored in a local database, for example, the terminal 100 may store the key-value pair on a local disk in the form of a file.
Step S103, setting the configuration information of the configuration object according to the key value pair.
In this step, the terminal 100 sets configuration information of a configuration object, such as a user using the terminal and the device itself, according to the key value pair, and can directly use the key value pair returned by the server as the configuration information of the configuration object. Referring to fig. 4, fig. 4 is a schematic diagram of a framework of a terminal in an embodiment, where configuration information refers to information used for instructing a Service (Service) on the terminal to perform a corresponding operation, and the Service on the terminal may read or write the configuration information, so as to influence the specificity of a configuration object, for example, a device Service of the terminal may perform shutdown processing on the terminal according to the configuration information, so as to influence the characteristics of the device; if the browsing service of the terminal is an upper application existing in the Browser, the user can log in to surf the internet and other operations, and the browsing service can allow the current user to access which web pages according to the configuration information, thereby affecting the characteristics of the user. In this step, the setting operation of the configuration information of the configuration object can be completed quickly according to the obtained key value pair, and the configuration information of the user and the device is set for the relevant service of the terminal 100, so that the service can execute the corresponding operation according to the configuration information subsequently.
According to the configuration information setting method, the terminal sends the identification of the configuration object to the server, so that the server inquires the key value pair matched with the identification from the key value pair database according to the identification and returns the key value pair to the terminal, the terminal sets the configuration information of the configuration object according to the key value pair after receiving the key value pair, when a user logs in the terminal or the equipment is connected with a network, the terminal obtains the corresponding key value pair for setting the configuration information of the user or the equipment through the key value pair database of the server, the setting of the configuration information is rapidly completed, even if the user logs in other terminals, the user does not need to reset the configuration information of the user or the equipment, the configuration information setting efficiency is improved, a manager can conveniently manage each terminal through the server, and the management efficiency of the terminal is improved.
In one embodiment, after the step of receiving the key-value pair returned by the server, the following steps may be further included:
analyzing the key value pair to obtain a key and a value of the key value pair; querying an object corresponding to the key from the service, and acquiring a predefined value of the object; the value is checked with a predefined value.
The embodiment mainly analyzes and verifies the received key value pair. The key value pair is analyzed to obtain the key of the key value pair and the value corresponding to the key, and the key value pair is mainly checked to check whether the value corresponding to the key of the key value pair is a reasonable value, for example, whether the value is within the range of the possible value of the key.
Generally, the terminal 100 has predefined values for the corresponding values of each key in the service, for example, the value for the key "bluetooth allowed" can only be true or false, and all other values corresponding to the key are considered as failed in verification, that is, if the parsed value for the key "bluetooth allowed" is other than true or false, all the values are considered as failed in verification.
Specifically, the terminal 100 may convert the obtained key value pair into a json object, that is, a string of character strings is converted into a json object, then traverse each key of the object, find the object corresponding to the key in the service of the terminal 100, then submit the value corresponding to the key to the object for verification, and obtain a verification result, if the verification passes, the key value pair may be stored in a local database for subsequent processing such as setting configuration information, and if the verification fails, the key value pair may be discarded, thereby preventing the problem of inaccurate setting caused by setting configuration information using an incorrect key value pair.
In one embodiment, the method may further include the steps of:
storing the key value pair; acquiring the update information of the key value pair through a server; and updating the key value pair according to the updating information.
The embodiment mainly provides that the terminal 100 can update the key value pair. In this embodiment, the terminal 100 may store the obtained key value pair in a local database, and when the key value pair needs to be updated, obtain corresponding update information through the server, and update the key value pair according to the update information, for example, may obtain an update value of a certain key, and replace an original value of the key with the update value.
Alternatively, the terminal 100 may periodically request the update information of the key-value pairs. A timer may be set in the service of the terminal 100 to request the latest key-value pair from the server 200 at a fixed time period, for example, every 3 hours, thereby completing the key-value pair update. The service of the terminal 100 may also establish a network long connection for receiving a key value pair with an emergency property, for example, the terminal 100 may receive a key value pair related to requesting to shut down immediately sent by the background server 200, and the service of the terminal 100 performs a shutdown operation immediately after receiving the key value pair. The terminal 100 of the embodiment periodically or in real time requests the key value pair to be updated, so as to ensure that the configuration information of the terminal 100 can be timely and effectively set.
In one embodiment, the step of setting the configuration information of the configuration object according to the key-value pair in step S103 may include:
generating first configuration information of the configuration object according to the key value pair; reading second configuration information of a locally predefined configuration object; and combining the first configuration information and the second configuration information to generate configuration information.
The present embodiment mainly combines the key value pair acquired by the server 200 and the configuration information of the configuration object predefined locally by the terminal 100 to generate the configuration information. The first configuration information refers to configuration information generated by the terminal 100 according to the key value pair returned by the server 200, and the second configuration information refers to configuration information of a configuration object predefined locally by the terminal 100, such as configuration information pre-installed in a system of the terminal 100, configuration information allowing all users using the terminal 100 to log in, and the like.
As shown in fig. 5, fig. 5 is a schematic diagram of a configuration information file of a user in an embodiment, in this embodiment, a terminal 100 may pull a key value pair from a server 200 to generate first configuration information and locally preset second configuration information, which are combined to generate a plurality of types of configuration information of the user, so as to ensure the integrity of the configuration information of the user, and in a specific application process, a "configuration information a: a "may be" sex: male "," configuration information B: b "may be" last login time: XX "," configuration information C: c "may be" access token: XXX "and" grade: XXXXXX "may be" website _ blcklist: XXXXX ", etc.; the configuration information may also be stored in the magnetic disk of the terminal 100 in the form of a configuration file, and the service of the terminal 100 may read the configuration information recorded in the configuration file from the magnetic disk, so as to prevent the user from being uncontrolled by the administrator when logging in the terminal 100 offline, thereby facilitating the administrator to manage the terminal.
In one embodiment, after the step of setting the configuration information of the configuration object according to the key-value pair, the following steps may be further included:
and the notification service reads the configuration information of the configuration object and executes corresponding operation according to the configuration information.
The present embodiment is mainly that the service of the terminal 100 can read the configuration information of the configuration object and execute corresponding operations according to the configuration information. Wherein the configuration information is mainly used for the service of the terminal 100 to perform related operations according to the configuration information. Generally, the key-value pair received from the server 200 is related to some configuration parameters defined by the service of the terminal 100, for example, the service defines power _ off as power off, and when the key (key) sent by the server 200 is "power _ off" and the terminal 100 receives the key-value pair with power _ off and the corresponding value is the value corresponding to power _ off defined by the service, the service of the terminal 100 will execute the power off operation.
In this embodiment, after the terminal 100 obtains the relevant key value pair from the server and sets the configuration information, it notifies the service related to the current configuration information, so that the service performs corresponding operations according to the configuration information, for example, which websites the user is allowed to access, and the related service blocks the request when the user accesses other specific websites, thereby achieving the purpose of controlling user behavior or device.
In one embodiment, further, the configuration objects may include users and devices; the step of notifying the service to read the configuration information and perform the corresponding operation according to the configuration information may include:
the notification service respectively reads the configuration information of the user and the configuration information of the equipment; and if the configuration information of the user and the configuration information of the equipment have conflict items, indicating the service to execute the operation corresponding to the configuration information of the equipment.
In this embodiment, when configuration information of a user and a device conflicts, configuration information of a corresponding device is prioritized. The configuration information of the device and the configuration information of the user may be separately stored in the terminal 100, and when the user does not log in the device, the configuration information of the device may still provide a relevant operation response for the service, but the configuration information of the device and the configuration information of the user may also exist at the same time, and the terminal 100 may notify the relevant service to read the configuration information of the user and the configuration information of the device, respectively, and instruct the relevant service to perform an operation corresponding to the configuration information of the device when there is a conflict item between the configuration information of the user and the configuration information of the device. For example, when the key-value pair corresponding to the configuration information of the device has been set as bluetooth unavailable, when the user logs in and the server allows the user to use bluetooth, the service of the terminal 100 may first detect the key-value pair corresponding to the configuration information of the device, and if the key-value pair of the device indicates that bluetooth is prohibited from being used but the key-value pair of the user indicates that bluetooth is permitted to be used, then bluetooth is prohibited from being used, and if the key-value pair of the device does not set a control item of bluetooth, then the key-value pair of the user is validated. According to the technical scheme of the embodiment, under the condition that different users log in the terminal, the users can still be prohibited from using certain functions of the terminal, and in classroom application, the terminals can be effectively managed by correspondingly controlling the terminal equipment of each student, for example, the students are prohibited from using the terminal to log in a webpage and the like.
In one embodiment, the server further acquires control information set for the configuration object; determining configuration parameters specified by a service of a terminal; converting the control information into key value pairs according to the configuration parameters; the key-value pair is stored.
In this embodiment, the server 200 may convert the control information of the configuration object into a corresponding key value pair for storage. The administrator may set control items for the user or the terminal device in the server 200, for example, which web pages or devices are allowed to be accessed by the user for power on or power off, and the key value pair is generally related to some configuration parameters specified by the service of the terminal 100, for example, the service specifies power _ off as power off, and the corresponding value is 1 or 0, the server may convert the control information set by the administrator into the key value pair according to the configuration parameters specified by the service of the terminal 100, for example, convert the device power on or power off into the key value pair "power _ off 1" or "power _ off 0" and store the converted key value pair in a local key value pair database, thereby enabling effective setting of the configuration information when the terminal 100 requests the relevant key value pair.
In an embodiment, a method for setting configuration information is provided, which is described by taking the method as an example applied to the server 200 in fig. 1, referring to fig. 6, where fig. 6 is a schematic flow chart of the method for setting configuration information in another embodiment, the method for setting configuration information may include the following steps:
step S401, receiving the configuration object identification sent by the terminal.
This step is mainly that the server 200 receives the identifier of the configuration object sent by the terminal 100. The configuration object may be, but is not limited to, a user using the terminal 100 or the device itself, the identifier of the configuration object is mainly used to identify information of the configuration object, if the configuration object is a user, the identifier may be information such as an account Number of the user, and if the configuration object is a device, the identifier may be a unique identifier of the device, such as an SN Number (Serial Number).
In this step, the terminal 100 may send an identifier, such as an account number or a device serial number of the user, to the server 200, and the server 200 may perform subsequent operations according to the identifier, and since the identifier of the configuration object can accurately identify the configuration object, the server 200 can perform accurate operations on a specific configuration object according to the identifier.
And step S402, acquiring the key value pair matched with the identifier from the key value pair database according to the identifier.
After the server 200 receives the identifier, the server may query the key-value pair database according to the identifier to obtain the key-value pair matching the identifier. The key-value pair (key-value) includes a key (key) and a value (value) for indicating a mapping relationship between the key and the value, for example, a "gender: men "is a key value pair, i.e. the key is" sex ", and the corresponding value is" man ", and in the practical application process, both the key and the value can be expressed by character strings.
Referring to fig. 3, fig. 3 is a schematic diagram of a server framework in an embodiment, where the key-value pair database refers to a database storing a large number of key-value pairs, that is, the server 200 may store a large number of key-value pairs through local data, the server 200 allows multiple terminals to perform communication connection, and when a terminal accesses through an identifier, the server queries and returns a corresponding key-value pair from the database. The key-value pairs may be preset in the database by the administrator in the server 200 and stored in the database, the key-value pairs stored in the database may correspond to the identifiers sent by the terminal 100, one identifier may correspond to 1 or more key-value pairs, the database may be provided in the server 200, and the server 200 may retrieve 1 or more key-value pairs matching the identifier from the database according to the received identifier.
Step S403, sending the key value pair to the terminal; the key value pair is used for triggering the terminal to set configuration information of the configuration object according to the key value pair.
In this step, the server 200 may send the one or more key value pairs corresponding to the identifier obtained by the query to the terminal 100, referring to fig. 4, where fig. 4 is a schematic diagram of a framework of an embodiment of the terminal, and after receiving the key value pair, the terminal 100 may store the key value pair in a local database, for example, store the key value pair in a file form on a local disk.
The terminal 100 may set configuration information of a configuration object such as a user using the terminal and the device itself according to the key-value pair, for example, directly set a key-value pair returned by the server as the configuration information of the configuration object. As shown in fig. 4, the configuration information is information for instructing a Service (Service) on the terminal to perform a corresponding operation, and the Service on the terminal may read or write the configuration information, so as to influence the specificity of the configuration object, for example, the device Service of the terminal may perform shutdown processing on the terminal according to the configuration information, so as to influence the characteristics of the device; if the browsing service of the terminal is an upper application existing in the Browser, the user can log in to surf the internet and other operations, and the browsing service can allow the current user to access which web pages according to the configuration information, thereby affecting the characteristics of the user. In this step, the setting operation of the configuration information of the configuration object can be completed quickly according to the obtained key value pair, and the configuration information of the user and the device is set for the relevant service of the terminal 100, so that the service can execute the corresponding operation according to the configuration information subsequently.
According to the configuration information setting method, the terminal sends the identification of the configuration object to the server, so that the server inquires the key value pair matched with the identification from the key value pair database according to the identification and returns the key value pair to the terminal, the terminal sets the configuration information of the configuration object according to the key value pair after receiving the key value pair, when a user logs in the terminal or the equipment is connected with a network, the terminal obtains the corresponding key value pair for setting the configuration information of the user or the equipment through the key value pair database of the server, the setting of the configuration information is rapidly completed, even if the user logs in other terminals, the user does not need to reset the configuration information of the user or the equipment, the configuration information setting efficiency is improved, a manager can conveniently manage each terminal through the server, and the management efficiency of the terminal is improved.
In one embodiment, the key-value pair may be further operable to: and the trigger terminal generates first configuration information of the configuration object according to the key value pair, reads second configuration information of a local predefined configuration object, and combines the first configuration information and the second configuration information to generate configuration information.
The present embodiment mainly combines the key value pair acquired by the server 200 and the configuration information of the configuration object predefined locally by the terminal 100 to generate the setting information. The first configuration information refers to configuration information generated by the terminal 100 according to the key value pair returned by the server 200, and the second configuration information refers to configuration information of a configuration object predefined locally by the terminal 100, such as configuration information pre-installed in a system of the terminal 100, configuration information allowing all users using the terminal 100 to log in, and the like.
As shown in fig. 5, fig. 5 is a schematic diagram of a configuration information file of a user in an embodiment, in this embodiment, a terminal 100 may pull a key value pair from a server 200 to generate first configuration information and locally preset second configuration information, which are combined to generate a plurality of types of configuration information of the user, so as to ensure the integrity of the configuration information of the user, and in a specific application process, a "configuration information a: a "may be" sex: male "," configuration information B: b "may be" last login time: XX "," configuration information C: c "may be" access token: XXX "and" grade: XXXXXX "may be" website _ blcklist: XXXXX ", etc.; the configuration information may also be stored in the magnetic disk of the terminal 100 in the form of a configuration file, and the service of the terminal 100 may read the configuration information recorded in the configuration file from the magnetic disk, so as to prevent the user from being uncontrolled by the administrator when logging in the terminal 100 offline, thereby facilitating the administrator to manage the terminal.
In one embodiment, the configuration information may be used to enable the terminal notification service to read the configuration information of the configuration object and perform a corresponding operation according to the configuration information.
The present embodiment mainly provides that the configuration information may be used to notify the service of the terminal 100 to read the configuration information of the configuration object, and execute corresponding operations according to the configuration information. Wherein the configuration information is mainly used for the service of the terminal 100 to perform related operations according to the configuration information. Generally, the key-value pair received from the server 200 is related to some configuration parameters defined by the service of the terminal 100, for example, the service defines power _ off as power off, and when the key (key) sent by the server 200 is "power _ off" and the terminal 100 receives the key-value pair with power _ off and the corresponding value is the value corresponding to power _ off defined by the service, the service of the terminal 100 will execute the power off operation.
In this embodiment, after the terminal 100 obtains the relevant key value pair from the server and sets the configuration information, it notifies the service related to the current configuration information, so that the service performs corresponding operations according to the configuration information, for example, which websites the user is allowed to access, and the related service blocks the request when the user accesses other specific websites, thereby achieving the purpose of controlling user behavior or device.
In one embodiment, the configuration objects may include users and devices; the configuration information may further be used to enable the terminal notification service to read the configuration information of the user and the configuration information of the device, respectively; and if the configuration information of the user and the configuration information of the equipment have conflict items, indicating the service to execute the operation corresponding to the configuration information of the equipment.
The present embodiment is mainly that the configuration information may be further used to enable the service of the terminal 100 to prioritize the configuration information of the corresponding device when the configuration information of the user and the device conflict. The configuration information of the device and the configuration information of the user may be separately stored in the terminal 100, and when the user does not log in the device, the configuration information of the device may still provide a relevant operation response for the service, but the configuration information of the device and the configuration information of the user may also exist at the same time, and the terminal 100 may notify the relevant service to read the configuration information of the user and the configuration information of the device, respectively, and instruct the relevant service to perform an operation corresponding to the configuration information of the device when there is a conflict item between the configuration information of the user and the configuration information of the device. For example, when the key-value pair corresponding to the configuration information of the device has been set as bluetooth unavailable, when the user logs in and the server allows the user to use bluetooth, the service of the terminal 100 may first detect the key-value pair corresponding to the configuration information of the device, and if the key-value pair of the device indicates that bluetooth is prohibited from being used but the key-value pair of the user indicates that bluetooth is permitted to be used, then bluetooth is prohibited from being used, and if the key-value pair of the device does not set a control item of bluetooth, then the key-value pair of the user is validated. According to the technical scheme of the embodiment, under the condition that different users log in the terminal, the users can still be prohibited from using certain functions of the terminal, and in classroom application, the terminals can be effectively managed by correspondingly controlling the terminal equipment of each student, for example, the students are prohibited from using the terminal to log in a webpage and the like.
In one embodiment, the method may further comprise the steps of:
acquiring the update information of the key value pair; sending the update information to the terminal; the updating information is used for triggering the terminal to update the key value pair stored in the terminal according to the updating information.
In this embodiment, the server 200 may obtain the update information of the key value pair set by the user in the server 200, and send the update information to the terminal 100, so that the terminal 100 updates the locally stored key value pair of the terminal 100 according to the update information. The terminal 100 may store the obtained key value pair in a local database, and when the key value pair needs to be updated, obtain corresponding update information through the server, and update the key value pair according to the update information, for example, may obtain an update value of a certain key, and replace an original value of the key with the update value.
Alternatively, the terminal 100 may periodically request the update information of the key-value pairs. A timer may be set in the service of the terminal 100 to request the latest key-value pair from the server 200 at a fixed time period, for example, every 3 hours, thereby completing the key-value pair update. The service of the terminal 100 may also establish a network long connection for receiving a key value pair with an emergency property, for example, the terminal 100 may receive a key value pair related to requesting to shut down immediately sent by the background server 200, and the service of the terminal 100 performs a shutdown operation immediately after receiving the key value pair. The terminal 100 of the embodiment periodically or in real time requests the key value pair to be updated, so as to ensure that the configuration information of the terminal 100 can be timely and effectively set.
In one embodiment, the method may further comprise the steps of:
acquiring control information set for a configuration object; determining configuration parameters specified by a service of a terminal; converting the control information into key value pairs according to the configuration parameters; the key-value pair is stored.
In this embodiment, the server 200 may convert the control information of the configuration object into a corresponding key value pair for storage. The administrator may set control items for the user or the terminal device in the server 200, for example, which web pages or devices are allowed to be accessed by the user for power on or power off, and the key value pair is generally related to some configuration parameters specified by the service of the terminal 100, for example, the service specifies power _ off as power off, and the corresponding value is 1 or 0, the server may convert the control information set by the administrator into the key value pair according to the configuration parameters specified by the service of the terminal 100, for example, convert the device power on or power off into the key value pair "power _ off 1" or "power _ off 0" and store the converted key value pair in a local key value pair database, thereby enabling effective setting of the configuration information when the terminal 100 requests the relevant key value pair.
In an embodiment, after receiving the key-value pair returned by the server 200, the terminal further analyzes the key-value pair to obtain the key and the value of the key-value pair; querying an object corresponding to the key from the service, and acquiring a predefined value of the object; the value is checked with a predefined value.
The present embodiment mainly analyzes and verifies the received key value pair by the terminal 100. The key value pair is analyzed to obtain the key of the key value pair and the value corresponding to the key, and the key value pair is mainly checked to check whether the value corresponding to the key of the key value pair is a reasonable value, for example, whether the value is within the range of the possible value of the key.
Generally, the terminal 100 has predefined values for the corresponding values of each key in the service, for example, the value for the key "bluetooth allowed" can only be true or false, and all other values corresponding to the key are considered as failed in verification, that is, if the parsed value for the key "bluetooth allowed" is other than true or false, all the values are considered as failed in verification.
Specifically, the terminal 100 may convert the obtained key value pair into a json object, that is, a string of character strings is converted into a json object, then traverse each key of the object, find the object corresponding to the key in the service of the terminal 100, then submit the value corresponding to the key to the object for verification, and obtain a verification result, if the verification passes, the key value pair may be stored in a local database for subsequent processing such as setting configuration information, and if the verification fails, the key value pair may be discarded, thereby preventing the problem of inaccurate setting caused by setting configuration information using an incorrect key value pair.
In an embodiment, a setting apparatus of configuration information is provided, and referring to fig. 7, fig. 7 is a block diagram illustrating a configuration of the setting apparatus of configuration information in an embodiment, where the setting apparatus of configuration information may include:
an identifier sending module 101, configured to send an identifier of the configuration object to the server; the identifier is used for triggering the server to acquire the key value pair matched with the identifier from the key value pair database;
a key-value pair receiving module 102, configured to receive a key-value pair returned by a server;
and the information setting module 103 is used for setting the configuration information of the configuration object according to the key value pair.
In one embodiment, the method may further include:
a first storage unit for storing key value pairs;
an update information acquisition unit for acquiring update information of the key-value pairs by the server;
and the key value pair updating unit is used for updating the key value pair according to the updating information.
In one embodiment, the method may further include:
the key value pair analysis unit is used for analyzing the key value pair to obtain the key and the value of the key value pair;
a predefined value obtaining unit, configured to query an object corresponding to the key from the service, and obtain a predefined value of the object;
and the value checking unit is used for checking the value by utilizing the predefined value.
In one embodiment, the information setting module 103 is further configured to:
generating first configuration information of the configuration object according to the key value pair; reading second configuration information of a locally predefined configuration object; and combining the first configuration information and the second configuration information to generate configuration information.
In one embodiment, the method may further include:
and the service notification unit is used for notifying the service to read the configuration information of the configuration object and executing corresponding operation according to the configuration information.
In one embodiment, the configuration objects include users and devices; the service notification unit may be further configured to:
the notification service respectively reads the configuration information of the user and the configuration information of the equipment; and if the configuration information of the user and the configuration information of the equipment have conflict items, indicating the service to execute the operation corresponding to the configuration information of the equipment.
In an embodiment, a setting apparatus of configuration information is provided, and referring to fig. 8, fig. 8 is a block diagram of a configuration of the setting apparatus of configuration information in another embodiment, where the setting apparatus of configuration information may include:
an identifier receiving module 401, configured to receive an identifier of a configuration object sent by a terminal;
a key-value pair obtaining module 402, configured to obtain, according to the identifier, a key-value pair matching the identifier from a key-value pair database;
a key-value pair sending module 403, configured to send a key-value pair to a terminal; the key value pair is used for triggering the terminal to set configuration information of the configuration object according to the key value pair.
In one embodiment, the method may further include:
an update information acquisition unit for acquiring update information of key-value pairs;
an update information transmitting unit for transmitting the update information to the terminal; and the updating information is used for triggering the terminal to update the key value pair stored in the terminal according to the updating information.
In one embodiment, the key-value pair may be further for:
and the trigger terminal generates first configuration information of the configuration object according to the key value pair, reads second configuration information of the locally predefined configuration object, and combines the first configuration information and the second configuration information to generate configuration information.
In one embodiment, the method may further include:
a control information acquisition unit configured to acquire control information set for a configuration object;
a configuration parameter determination unit for determining a configuration parameter prescribed by a service of the terminal;
the control information conversion unit is used for converting the control information into key value pairs according to the configuration parameters;
and the second storage unit is used for storing the key value pair.
The setting device of the configuration information of the present invention corresponds to the setting method of the configuration information of the present invention one to one, and for the specific limitation of the setting device of the configuration information, reference may be made to the above limitation on the setting method of the configuration information, and the technical features and the advantages thereof described in the above embodiment of the setting method of the configuration information are all applicable to the embodiment of the setting device of the configuration information, and are not described herein again. The respective modules in the setting device of the configuration information may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment, with reference to fig. 9, fig. 9 is a schematic structural diagram of a terminal management system in an embodiment, where the terminal management system may be configured to manage multiple terminals, and the system may include: a terminal 300, and a server 200 communicatively connected to the terminal 300; wherein the content of the first and second substances,
the number of the terminals 300 may be multiple, and each terminal may be configured to send an identifier of a configuration object such as a user or a device to the server 200;
the server 200 may be configured to receive the identifier sent by each terminal, obtain, according to the identifier, a key-value pair matched with the identifier from a key-value pair database, and send the key-value pair to the corresponding terminal;
the terminal 300 may be further configured to receive a key value pair returned by the server 200, and set configuration information of a configuration object such as a user or a device according to the key value pair; wherein the configuration information may be used for services of the respective terminals 100 to manage users or devices according to the configuration information.
Based on the terminal management system, a setting method of configuration information is provided, referring to fig. 10, where fig. 10 is a timing diagram of the setting method of configuration information in an embodiment, and the setting method of configuration information may include the following steps:
in step S1001, the terminal 300 transmits a setting request of the configuration information to the server 200.
In this step, the user may open the terminal 300 and connect it to the network. The terminal 300 may request the server 200 periodically, and at this time, the terminal 300 may attach an SN number of the device to the request, where the SN number is a unique identifier of the terminal and is usually set when the terminal leaves a factory.
In step S1002, the server 200 searches for a corresponding key value pair according to the identifier carried in the request.
After receiving the request of the terminal 100, the server 200 may analyze whether the current request is a device request or a user request, and if the current request is a device request, analyze an SN number, and query a key-value pair (e.g., power _ offer _ delay:1) of a device corresponding to the SN number in a key-value pair database according to the SN number.
In step S1003, the server 200 transmits the key-value pair to the terminal 100.
In step S1004, the terminal 100 sets configuration information according to the key value.
In this step, after receiving the key value pair returned by the server 200, the terminal 100 analyzes and verifies the key value pair, and stores the key value pair in the local database after passing the verification, and may store the key value pair in the configuration information base as configuration information, and notify the relevant service (e.g., power-service, i.e., power service) to load the corresponding key value pair (e.g., power _ offer _ delay:1) from the local database, and when detecting that the administrator requires the terminal to be powered off after 1 minute at this time, the power-service starts a timer, and calls the API of the system to control the terminal to be powered off after 1 minute.
According to the technical scheme provided by the embodiment, an administrator can control a certain terminal to be powered off in the background of the server, and the setting scheme of the configuration information can be used for controlling equipment and user behaviors, the two behaviors are not in conflict and can be independent, the number of the terminals can be multiple, the administrator can perform grouping operation on the terminals in the server, management and control on class, school or province and even wider can be achieved, only key value pairs of corresponding equipment or users need to be returned when the terminals send requests to the server, specific service capacity can inform relevant services of the terminals to operate, and then large-scale, more durable, wider and simpler control over user behaviors and equipment is achieved.
In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in fig. 11, and fig. 11 is an internal structure diagram of the computer device in one embodiment. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a setting method of configuration information. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, the computer device may be a server, the internal structure of which may be as shown in fig. 12, and fig. 12 is an internal structure of the computer device in another embodiment. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data involved in the setting method of the configuration information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a setting method of configuration information.
It will be appreciated by those skilled in the art that the configurations shown in fig. 11 and 12 are only block diagrams of some of the configurations relevant to the inventive arrangements and do not constitute a limitation on the computing devices to which the inventive arrangements may be applied, and that a particular computing device may include more or less components than those shown, or some of the components may be combined, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
sending an identifier of the configuration object to a server; receiving a key value pair returned by the server; and setting the configuration information of the configuration object according to the key value pair.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
analyzing the key value pair to obtain a key and a value of the key value pair; querying an object corresponding to the key from the service, and acquiring a predefined value of the object; the value is checked with a predefined value.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
storing the key value pair; acquiring the update information of the key value pair through a server; and updating the key value pair according to the updating information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
generating first configuration information of the configuration object according to the key value pair; reading second configuration information of a locally predefined configuration object; and combining the first configuration information and the second configuration information to generate configuration information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and the notification service reads the configuration information of the configuration object and executes corresponding operation according to the configuration information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the notification service respectively reads the configuration information of the user and the configuration information of the equipment; and if the configuration information of the user and the configuration information of the equipment have conflict items, indicating the service to execute the operation corresponding to the configuration information of the equipment.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving an identifier of a configuration object sent by a terminal; acquiring a key value pair matched with the identifier from a key value pair database according to the identifier; sending the key value pair to the terminal; the key value pair is used for triggering the terminal to set configuration information of the configuration object according to the key value pair.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring the update information of the key value pair; sending the update information to the terminal; the updating information is used for triggering the terminal to update the key value pair stored in the terminal according to the updating information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring control information set for a configuration object; determining configuration parameters specified by a service of a terminal; converting the control information into key value pairs according to the configuration parameters; the key-value pair is stored.
According to the computer equipment, the configuration information is set quickly through the computer program running on the processor, even if a user logs in other terminals, the user does not need to reset the configuration information of the user, the setting efficiency of the configuration information is improved, and an administrator can manage all the terminals through the server conveniently, and the management efficiency of the terminals is improved.
It will be understood by those skilled in the art that all or part of the processes in the setting method for implementing configuration information according to any of the above embodiments may be implemented by a computer program, which may be stored in a non-volatile computer-readable storage medium, to instruct related hardware, and when executed, the computer program may include the processes of the above embodiments of the methods. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Accordingly, in one embodiment there is provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
sending an identifier of the configuration object to a server; receiving a key value pair returned by the server; and setting the configuration information of the configuration object according to the key value pair.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the key value pair to obtain a key and a value of the key value pair; querying an object corresponding to the key from the service, and acquiring a predefined value of the object; the value is checked with a predefined value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
storing the key value pair; acquiring the update information of the key value pair through a server; and updating the key value pair according to the updating information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating first configuration information of the configuration object according to the key value pair; reading second configuration information of a locally predefined configuration object; and combining the first configuration information and the second configuration information to generate configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and the notification service reads the configuration information of the configuration object and executes corresponding operation according to the configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the notification service respectively reads the configuration information of the user and the configuration information of the equipment; and if the configuration information of the user and the configuration information of the equipment have conflict items, indicating the service to execute the operation corresponding to the configuration information of the equipment.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving an identifier of a configuration object sent by a terminal; acquiring a key value pair matched with the identifier from a key value pair database according to the identifier; sending the key value pair to the terminal; the key value pair is used for triggering the terminal to set configuration information of the configuration object according to the key value pair.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the update information of the key value pair; sending the update information to the terminal; the updating information is used for triggering the terminal to update the key value pair stored in the terminal according to the updating information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring control information set for a configuration object; determining configuration parameters specified by a service of a terminal; converting the control information into key value pairs according to the configuration parameters; the key-value pair is stored.
According to the computer readable storage medium, the configuration information is set quickly through the stored computer program, even if a user logs in other terminals, the user does not need to reset the configuration information of the user, the setting efficiency of the configuration information is improved, and an administrator can manage all the terminals through the server conveniently, and the management efficiency of the terminals is improved.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method for setting configuration information is characterized by comprising the following steps:
sending an identifier of the configuration object to a server; the identifier is used for triggering the server to acquire the key-value pair matched with the identifier from a key-value pair database; the key value pair is obtained by converting control information of the configuration object; the configuration object comprises a user and a device;
receiving the key-value pair returned by the server;
setting configuration information of the configuration object according to the key value pair;
further comprising the steps of:
and the notification service respectively reads the configuration information of the user and the configuration information of the equipment, and if the configuration information of the user and the configuration information of the equipment have conflict items, the notification service instructs the service to execute the operation corresponding to the configuration information of the equipment.
2. The setting method of configuration information according to claim 1, further comprising the steps of:
storing the key-value pair;
acquiring the update information of the key value pair through the server;
and updating the key value pair according to the updating information.
3. The method for setting configuration information according to claim 1, further comprising, after the step of receiving the key-value pair returned by the server:
analyzing the key value pair to obtain a key and a value of the key value pair;
querying an object corresponding to the key from a service, and acquiring a predefined value of the object;
the value is checked using the predefined value.
4. The method according to claim 1, wherein the step of setting the configuration information of the configuration object according to the key-value pair comprises:
generating first configuration information of the configuration object according to the key value pair;
reading second configuration information of the locally predefined configuration object;
and combining the first configuration information and the second configuration information to generate the configuration information.
5. A method for setting configuration information is characterized by comprising the following steps:
receiving an identifier of a configuration object sent by a terminal;
acquiring a key value pair matched with the identifier from a key value pair database according to the identifier; the key value pair is obtained by converting control information of the configuration object; the configuration object comprises a user and a device;
sending the key-value pair to the terminal; the key value pair is used for triggering the terminal to set the configuration information of the configuration object according to the key value pair, and informing the service to read the configuration information of the user and the configuration information of the equipment respectively, and if the configuration information of the user and the configuration information of the equipment have conflict items, the service is indicated to execute the operation corresponding to the configuration information of the equipment.
6. The setting method of configuration information according to claim 5, further comprising the steps of:
acquiring the update information of the key value pair;
sending the update information to the terminal; and the updating information is used for triggering the terminal to update the key value pair stored in the terminal according to the updating information.
7. The method of setting configuration information according to claim 5, wherein the key-value pair is further configured to:
triggering the terminal to generate first configuration information of the configuration object according to the key value pair, reading second configuration information of the locally predefined configuration object, and combining the first configuration information and the second configuration information to generate the configuration information.
8. The setting method of configuration information according to claim 5, further comprising the steps of:
acquiring control information set for the configuration object;
determining configuration parameters of a service provision of the terminal;
converting the control information into the key value pair according to the configuration parameters;
and storing the key value pair.
9. An apparatus for setting configuration information, comprising:
the identification sending module is used for sending the identification of the configuration object to the server; the identifier is used for triggering the server to acquire the key-value pair matched with the identifier from a key-value pair database; the key value pair is obtained by converting control information of the configuration object; the configuration object comprises a user and a device;
the key value pair receiving module is used for receiving the key value pair returned by the server;
the information setting module is used for setting the configuration information of the configuration object according to the key value pair;
further comprising:
and the service notification unit is used for notifying a service to read the configuration information of the user and the configuration information of the equipment respectively, and if the configuration information of the user and the configuration information of the equipment have conflict items, the service is instructed to execute the operation corresponding to the configuration information of the equipment.
10. An apparatus for setting configuration information, comprising:
the identification receiving module is used for receiving the identification of the configuration object sent by the terminal;
the key-value pair acquisition module is used for acquiring a key-value pair matched with the identifier from a key-value pair database according to the identifier; the key value pair is obtained by converting control information of the configuration object; the configuration object comprises a user and a device;
the key value pair sending module is used for sending the key value pair to the terminal; the key value pair is used for triggering the terminal to set the configuration information of the configuration object according to the key value pair, and informing the service to read the configuration information of the user and the configuration information of the equipment respectively, and if the configuration information of the user and the configuration information of the equipment have conflict items, the service is indicated to execute the operation corresponding to the configuration information of the equipment.
11. The terminal management system is characterized by comprising a terminal and a server which is in communication connection with the terminal; wherein the content of the first and second substances,
the terminal is used for sending the identifications of the user and the equipment to the server;
the server is used for receiving the identifier sent by the terminal, acquiring a key value pair matched with the identifier from a key value pair database according to the identifier, and sending the key value pair to the terminal; the key value pair is obtained by converting control information of the user and the equipment;
the terminal is further configured to receive the key value pair, set configuration information of the user and the device according to the key value pair, notify a service to read the configuration information of the user and the configuration information of the device, and instruct the service to perform an operation corresponding to the configuration information of the device if the configuration information of the user and the configuration information of the device have a conflict item.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the setting method of configuration information according to any one of claims 1 to 8 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the setting method of configuration information according to any one of claims 1 to 8.
CN201811061224.8A 2018-09-12 2018-09-12 Configuration information setting method and device and terminal management system Active CN109245928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811061224.8A CN109245928B (en) 2018-09-12 2018-09-12 Configuration information setting method and device and terminal management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811061224.8A CN109245928B (en) 2018-09-12 2018-09-12 Configuration information setting method and device and terminal management system

Publications (2)

Publication Number Publication Date
CN109245928A CN109245928A (en) 2019-01-18
CN109245928B true CN109245928B (en) 2021-08-31

Family

ID=65061035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811061224.8A Active CN109245928B (en) 2018-09-12 2018-09-12 Configuration information setting method and device and terminal management system

Country Status (1)

Country Link
CN (1) CN109245928B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726236A (en) * 2019-03-18 2020-09-29 京东数字科技控股有限公司 State identification information generation method, system, device and storage medium thereof
CN110769073B (en) * 2019-10-31 2022-11-01 海南电网有限责任公司 Electric energy meter zone attribution identification method and device, computer equipment and storage medium
CN110928598B (en) * 2019-11-11 2024-01-30 南方电网财务有限公司 System configuration method, device, computer equipment and storage medium
CN111224826B (en) * 2020-01-07 2023-04-28 深圳市网心科技有限公司 Configuration updating method, device, system and medium based on distributed system
CN111475190A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Information updating method and device, electronic equipment and readable storage medium
CN114531493B (en) * 2020-11-23 2024-03-26 北京达佳互联信息技术有限公司 Request processing method and device, electronic equipment and storage medium
CN113849373A (en) * 2021-09-27 2021-12-28 中国电信股份有限公司 Server supervision method and device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9798745B2 (en) * 2014-09-13 2017-10-24 Samsung Electronics Co., Ltd. Methods, devices and systems for caching data items
CN106534049B (en) * 2015-09-11 2020-10-20 腾讯科技(深圳)有限公司 Data issuing method based on server, client, server and system
CN105871584A (en) * 2015-12-02 2016-08-17 乐视体育文化产业发展(北京)有限公司 Method, device and system for updating client configuration in key value pair database
CN107943542A (en) * 2017-11-28 2018-04-20 山东浪潮通软信息科技有限公司 A kind of configuration information management method, device, computer-readable recording medium and storage control

Also Published As

Publication number Publication date
CN109245928A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109245928B (en) Configuration information setting method and device and terminal management system
US10565077B2 (en) Using cognitive technologies to identify and resolve issues in a distributed infrastructure
US11797595B2 (en) Method, apparatus, and computer program product for user-specific contextual integration for a searchable enterprise platform
US9870268B2 (en) Virtual computing instance migration
US11361063B2 (en) Access control policy simulation and testing
US20160132904A1 (en) Influence score of a brand
KR101373461B1 (en) Terminal and method for using cloud sevices
CN112491602B (en) Behavior data monitoring method and device, computer equipment and medium
US10614223B2 (en) Security vulnerability detection
US10467055B2 (en) Computer resource provisioning failure mitigation
US9519699B1 (en) Consistency of query results in a distributed system
KR20180074774A (en) How to identify malicious websites, devices and computer storage media
CN112866348A (en) Database access method and device, computer equipment and storage medium
CN109542764B (en) Webpage automatic testing method and device, computer equipment and storage medium
CN103001934A (en) Terminal application login method and terminal application login system
CN109711656B (en) Multisystem association early warning method, device, equipment and computer readable storage medium
CN107294905B (en) Method and device for identifying user
US20150302089A1 (en) Recovery of Information from Commercial Web Portals
CN111222153B (en) Application program authority management method and device and storage medium
US20160004850A1 (en) Secure download from internet marketplace
US20140032652A1 (en) Web browser operation method and system
US10482167B2 (en) Crowd-source as a backup to asynchronous identification of a type of form and relevant fields in a credential-seeking web page
US9378230B1 (en) Ensuring availability of data in a set being uncorrelated over time
CN111460256A (en) Webpage data crawling method and device, computer equipment and storage medium
CN116661936A (en) Page data processing method and device, computer 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