CN112905388B - Page configuration information processing method and device - Google Patents

Page configuration information processing method and device Download PDF

Info

Publication number
CN112905388B
CN112905388B CN202110274751.2A CN202110274751A CN112905388B CN 112905388 B CN112905388 B CN 112905388B CN 202110274751 A CN202110274751 A CN 202110274751A CN 112905388 B CN112905388 B CN 112905388B
Authority
CN
China
Prior art keywords
page
information
configuration
configuration information
command
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
CN202110274751.2A
Other languages
Chinese (zh)
Other versions
CN112905388A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202110274751.2A priority Critical patent/CN112905388B/en
Publication of CN112905388A publication Critical patent/CN112905388A/en
Application granted granted Critical
Publication of CN112905388B publication Critical patent/CN112905388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/80Database-specific techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a page configuration information processing method, a page configuration information processing device, electronic equipment and a computer readable medium. The method comprises the following steps: acquiring a modification command of page configuration information, wherein the modification command comprises a deletion command; acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command; searching in a pre-stored configuration recovery file based on the page identification; and when the configuration recovery file contains the page identifier, inserting the page configuration information, the page name and the grid header line information into a list corresponding to the page identifier of the configuration recovery file. The page configuration information processing method, the device, the electronic equipment and the computer readable medium can recover part or all of the page configuration data in a user-defined mode, are simpler and more convenient to operate, and improve the working efficiency of users.

Description

Page configuration information processing method and device
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a page configuration information processing method, apparatus, electronic device, and computer readable medium.
Background
With the development of internet applications, the applications on the network security devices are more and more, the corresponding configuration on a single page is more and more, the configuration information of the single page sometimes reaches tens of thousands of pieces of data, and the configuration of the data sometimes needs to refer to information on other pages, so that the configuration information is intricate and complex, and careful operation is needed, and in this case, if a user deletes a certain piece of data by mistake, the probability of the device failure is increased.
In the prior art, the recovery of the page configuration information can only be performed in batches, namely, the configuration information on the same page is recovered uniformly. When the user wants to recover only one piece of configuration information on the page, the reconfiguration data requires the user to know the configuration information on the page very well, and the user may need to repeatedly confirm the correctness of the configuration one by one.
Therefore, a new page configuration information processing method, apparatus, electronic device, and computer readable medium are needed.
The above information disclosed in the background section is only for enhancement of understanding of the background of the disclosure and therefore it may include information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present disclosure provides a method, an apparatus, an electronic device, and a computer readable medium for processing page configuration information, which can recover part or all of page configuration data in a user-defined manner, so that the operation is simpler and more convenient, and the working efficiency of the user is improved.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to an aspect of the present disclosure, a page configuration information processing method is provided, including: acquiring a modification command of page configuration information, wherein the modification command comprises a deletion command; acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command; searching in a pre-stored configuration recovery file based on the page identification; and when the configuration recovery file contains the page identifier, inserting the page configuration information, the page name and the grid header line information into a list corresponding to the page identifier of the configuration recovery file.
In an exemplary embodiment of the present disclosure, further comprising: and when the configuration recycling file does not exist, creating the configuration recycling file.
In an exemplary embodiment of the present disclosure, further comprising: when the configuration recovery file does not contain the page identifier, acquiring database information of the page configuration information; based on the page identification, a list is newly built in the configuration recovery file; and inserting the page configuration information, page names, grid header row information and database information into a list corresponding to the page identification of the configuration recovery file.
In one exemplary embodiment of the present disclosure, obtaining a modification command of page configuration information includes: the background server acquires a modification command of the page configuration information generated by the browser end.
In an exemplary embodiment of the present disclosure, further comprising: after the page configuration information is inserted into the configuration recycle file, the modification command is executed in a database to delete the page configuration information.
In an exemplary embodiment of the present disclosure, further comprising: receiving a view command of page configuration information, wherein the view command comprises a page identifier; searching in the configuration recovery file based on the page identifier, and extracting a list corresponding to the page identifier; and taking the list as the return information of the view command and displaying the return information.
In one exemplary embodiment of the present disclosure, there is provided: receiving a recovery command of page configuration information, wherein the recovery command comprises a page identifier and page configuration information; determining database information based on the page identity; comparing the main key of the page configuration information in the database information with the main key of the page configuration information in the recovery command; and recovering the page configuration information according to the comparison result.
In an exemplary embodiment of the present disclosure, the recovering of the page configuration information according to the comparison result includes: and when the main key of the page configuration information in the database information is different from the main key of the page configuration information in the recovery command, adding the page configuration information in the recovery command into the database information.
In an exemplary embodiment of the present disclosure, the recovering of the page configuration information according to the comparison result further includes: and deleting the corresponding page configuration information in the configuration file after the configuration information in the recovery command is added into the database information.
In an exemplary embodiment of the present disclosure, the recovering of the page configuration information according to the comparison result includes: and when the main key of the page configuration information in the database information is the same as the main key of the page configuration information in the recovery command, generating prompt information for the user to reselect.
According to an aspect of the present disclosure, there is provided a page configuration information processing apparatus including: the modification module is used for acquiring modification commands of the page configuration information, wherein the modification commands comprise deletion commands; the information module is used for acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command; the retrieval module is used for retrieving in a pre-stored configuration recovery file based on the page identification; and the inserting module is used for inserting the page configuration information, the page name and the grid header line information into a list corresponding to the page identifier of the configuration recovery file when the page identifier is contained in the configuration recovery file.
According to an aspect of the present disclosure, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the present disclosure, a computer-readable medium is presented, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the page configuration information processing method, the device, the electronic equipment and the computer readable medium, modification commands of page configuration information are obtained, wherein the modification commands comprise deletion commands; acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command; searching in a pre-stored configuration recovery file based on the page identification; when the configuration recovery file contains the page identifier, the page configuration information, the page name and the grid header line information are inserted into a list corresponding to the page identifier of the configuration recovery file, part or all of the page configuration data can be recovered in a user-defined mode, the operation is simpler and more convenient, and the working efficiency of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely examples of the present disclosure and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a system block diagram illustrating a method and apparatus for processing page configuration information according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a page configuration information processing method according to an exemplary embodiment.
Fig. 3 is a schematic diagram showing a page configuration information processing method according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a page configuration information processing method according to another exemplary embodiment.
Fig. 5 is a flowchart illustrating a page configuration information processing method according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating a page configuration information processing apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Fig. 8 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the concepts of the present disclosure. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the present disclosure, and therefore, should not be taken to limit the scope of the present disclosure.
The technical abbreviations to which the present disclosure relates are explained as follows:
configuration rollback: and returning the current configuration to the configuration state in the designated configuration file.
Database primary key: often there is a column or combination of columns in the database table whose values can uniquely identify each row in the table. Such a column or columns are referred to as a primary key of a table, through which the physical integrity of the table can be enhanced. The primary key may be created by defining PRIMARY KEY constraints when creating or modifying the table. A table can only have one PRIMARY KEY constraint and columns in the PRIMARY KEY constraint cannot accept null values. Since PRIMARY KEY constraints ensure unique data, identification columns are often defined.
The inventors of the present disclosure found that there are currently two schemes to restore the configuration:
(1) Implementation through a configuration file page
When all the configurations of the network security equipment need to be saved, a configuration file page is entered, a configuration file is newly created so as to save the existing configurations, a save button is clicked, and all page configuration information starts to be saved. After the current configuration is stored, an icon for exporting the configuration appears in the operation column, the exported configuration is clicked, the configuration file can be exported to the current PC, if the configuration at the moment needs to be restored later, the configuration file can be imported, and the existing configuration can be restored to the configuration stored in the configuration file by clicking the switching configuration of the operation column.
(2) Configuration rollback via command line
Before the user modifies the configuration, the existing configuration is saved, namely, the configuration is saved by the command of 'configuration rollback save file name', then the user operates the page, and if the user wants to restore the configuration saved last time, the user can restore the previous configuration by the command of 'configuration rollback replace file name' of the previous configuration.
Both the scheme (1) and the scheme (2) are batch recovery configurations, and the recovery of the configuration according to the own requirements by a user cannot be realized. The user needs to save the existing configuration before deleting the configuration, but the user forgets to save the configuration, and the user cannot restore the previous configuration after deleting the data. Some users pre-store the configuration, but some data are deleted by the users, some modifications are made to the undeleted data, at this time, the users only want to restore the deleted data and not want to restore other data when restoring the configuration, and at this time, both the scheme (1) and the scheme (2) cannot meet the requirements.
Neither the scheme (1) nor the scheme (2) can clearly let the user see the deleted information. Sometimes, the user needs to perform a secondary check on the deleted data to confirm whether the deleted data is erroneous or not, but the scheme (1) and the scheme (2) cannot meet the demand.
The problems to be solved by the present disclosure are: in the case that some configurations are deleted by the user, the user can intuitively see which configurations are deleted by the user, including from which page, what the deleted configuration item information is, through the configuration reclamation device, and can revise some configurations through the restoration button.
The technical contents of the present disclosure will be described in detail below with the aid of specific examples.
Fig. 1 is a system block diagram of a page configuration information processing method, apparatus, electronic device, and computer readable medium, according to an exemplary embodiment.
As shown in fig. 1, the system architecture 10 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a page configuration class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server providing support for page configuration class applications browsed by the user using the terminal devices 101, 102, 103. The background management server can analyze and other processes on the received commands such as page configuration modification and the like, and returns the commands to the user information after the processing is finished.
The server 105 may, for example, acquire a modification command of the page configuration information sent by the terminal devices 101, 102, 103, the modification command including a deletion command; the server 105 may obtain, for example, a page name, a page identification, grid header line information, page configuration information to be processed based on the modification command; server 105 may retrieve in a pre-stored configuration recycle file, for example, based on the page identification; the server 105 may insert the page configuration information, the page name, and the grid header line information into a list corresponding to the page identifier of the configuration recycle file, for example, when the page identifier is included in the configuration recycle file.
Server 105 may also obtain database information for the page configuration information, for example, when the page identification is not included in the configuration recycle file; server 105 may also build a list in the configuration reclamation file, e.g., based on the page identification; server 105 may also insert the page configuration information, page name, grid header line information, database information, for example, into a list corresponding to the page identification of the configuration recycle file.
The server 105 may be an entity server, or may be formed of a plurality of servers, for example, it should be noted that the method for processing page configuration information provided in the embodiment of the present disclosure may be executed by the server 105, and accordingly, the page configuration information processing apparatus may be disposed in the server 105. While the web page end provided to the user for modification of the page configuration information is typically located in the terminal device 101, 102, 103.
Fig. 2 is a flowchart illustrating a page configuration information processing method according to an exemplary embodiment. The page configuration information processing method 20 includes at least steps S202 to S208.
As shown in fig. 2, in S202, a modification command of page configuration information is acquired, the modification command including a delete command. The background server may, for example, obtain a modification command for the page configuration information generated by the browser side.
More specifically, when the user deletes the configuration information of a certain page at the web page end, after the user clicks and submits the configuration information at the web page end, the browser at the web page end can issue the page name, the page ID (identification), the grid header line information and the deleted configuration information to the background server.
In S204, the page name, the page identification, the grid header line information, and the page configuration information to be processed are acquired based on the modification command.
In S206, a search is performed in a pre-stored configuration recycle file based on the page identity. And when the configuration recycling file does not exist, creating the configuration recycling file. When the configuration file of configuration recovery is not available, the configuration file can be created first, and the background searches the corresponding database file information and database table name information and stores the corresponding database file information and database table name information and the received data information into the configuration file.
In S208, whether the configuration recycle file includes the page identifier. When a configuration file of "configuration recycle" already exists, since each page ID is unique, it can be looked up in the configuration file whether the page ID exists.
In S210, the page configuration information, the page name, and the grid header line information are inserted into a list corresponding to the page identifier of the configuration recycle file. And when the page ID is found, the deleted configuration information is inserted into the information corresponding to the page ID.
In the schematic of the configuration file shown in fig. 3: "page_id" represents a page ID, "page_name" represents a page name, "db_info" represents database file information, "db_info_list" represents corresponding database table name information, and deleted data is placed in "data".
In S212, database information of the page configuration information is acquired. When the page ID is not found, the background acquires the corresponding database information such as the corresponding database table name information.
In S214, a list is newly built in the configuration recycle file based on the page identity. The received data information may then be added to the configuration file together.
In S216, after the page configuration information is inserted into the configuration recycle file, the modification command is executed in a database to delete the page configuration information. After the data information is written into the configuration file, the background deletes the configuration information in the original database.
According to the page configuration information processing method, a modification command of page configuration information is obtained, wherein the modification command comprises a deletion command; acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command; searching in a pre-stored configuration recovery file based on the page identification; when the configuration recovery file contains the page identifier, the page configuration information, the page name and the grid header line information are inserted into a list corresponding to the page identifier of the configuration recovery file, part or all of the page configuration data can be recovered in a user-defined mode, the operation is simpler and more convenient, and the working efficiency of a user is improved.
It is clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 4 is a flowchart illustrating a page configuration information processing method according to another exemplary embodiment. The page configuration information processing method 40 includes at least steps S402 to S406.
As shown in fig. 4, in S402, a view command of page configuration information is received, where the view command includes a page identifier. The "configure reclaim" button to see which configuration information was deleted on the device. After clicking, a configuration recovery page appears on the page, and the user can determine the page identification to be processed through clicking selection.
In S404, searching in the configuration recycle file based on the page identifier, and extracting a list corresponding to the page identifier. The browser page sends a request for acquiring the content of the configuration recovery configuration file to the background, and the background responds the content in the configuration file to the page after receiving the request.
In S406, the list is presented as return information of the view command. The browser page displays the received response content on the page in the form of a table.
Fig. 5 is a flowchart illustrating a page configuration information processing method according to another exemplary embodiment. The page configuration information processing method 50 includes at least steps S502 to S510.
As shown in fig. 5, in S502, a resume command of the page configuration information is received, where the resume command includes a page identifier and page configuration information. In the page shown in fig. 3, the user can clearly see the details of the deleted configuration information. Each piece of deleted configuration information is followed by a "configuration restore" button. When the user clicks the configure restore button, the page generates a restore command and issues this command to the background server.
In S504, database information is determined based on the page identity. The background server finds corresponding database file information and database table name information according to the page ID.
In S506, the primary key of the page configuration information in the database information and the primary key of the page configuration information in the resume command are compared. The main key is searched in the database, and the main key can uniquely identify the data of each row, so that the main key in the database is compared with the data to be recovered.
In S508, restoration of the page configuration information is performed according to the comparison result.
In one embodiment, when the primary key of the page configuration information in the database information and the primary key of the page configuration information in the resume command are different, the page configuration information in the resume command is added to the database information. If the data to be restored is different from the value of the database primary key, the data is directly added into the database.
In one embodiment, when the primary key of the page configuration information in the database information and the primary key of the page configuration information in the resume command are the same, a hint information is generated for the user to reselect. If the data to be restored is the same as the value of the database primary key, the data is returned to the page, a pop-up box is popped up after the page receives the response, the user is prompted that the value is repeated with other values in the database, and the value is modified. After the user modifies, clicking a confirmation button, comparing the newly issued data with the main key value in the database again, adding the bar data into the database if the data is not repeated, and continuing to return to the page if the data is repeated. If the user clicks cancel, the resume configuration function cancels, and the piece of data is displayed in the configuration recycle page.
In S510, after the configuration information in the restore command is added to the database information, the corresponding page configuration information in the configuration file is deleted. After the piece of data information is added to the database, the piece of configuration information is deleted from the configuration file recovered by the configuration. Accordingly, the page is refreshed after the data is committed, and the data is not visible in the configuration recycle page.
According to the page configuration information processing method disclosed by the invention, the user can clearly see the deleted information through the configuration recovery page, and the user can confirm the deleted information again by using the information, so that the probability of equipment failure caused by false deletion is reduced, and the deletion operation is safer.
According to the page configuration information processing method, the problem that the deleted data can only be restored by restoring all configurations and the data can not be restored in a self-defined mode in the past is solved, so that the operation is more humanized and intelligent.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. The above-described functions defined by the above-described methods provided by the present disclosure are performed when the computer program is executed by a CPU. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method of the present disclosure.
Fig. 6 is a block diagram illustrating a page configuration information processing apparatus according to an exemplary embodiment. As shown in fig. 6, the page configuration information processing apparatus 60 includes: a modification module 602, an information module 604, a retrieval module 606, and an insertion module 608.
The modification module 602 is configured to obtain a modification command of the page configuration information, where the modification command includes a delete command;
the information module 604 is configured to obtain a page name, a page identifier, grid header line information, and page configuration information to be processed based on the modification command;
the retrieving module 606 is configured to retrieve from a pre-stored configuration recovery file based on the page identifier;
the inserting module 608 is configured to insert the page configuration information, the page name, and the grid header line information into a list corresponding to the page identifier of the configuration recycle file when the configuration recycle file includes the page identifier.
According to the page configuration information processing device, a modification command of page configuration information is obtained, wherein the modification command comprises a deletion command; acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command; searching in a pre-stored configuration recovery file based on the page identification; when the configuration recovery file contains the page identifier, the page configuration information, the page name and the grid header line information are inserted into a list corresponding to the page identifier of the configuration recovery file, part or all of the page configuration data can be recovered in a user-defined mode, the operation is simpler and more convenient, and the working efficiency of a user is improved.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 connecting the different system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps described in the present specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 may perform the steps as shown in fig. 2, 4, and 5.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 700, and/or any devices (e.g., routers, modems, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. Network adapter 770 may communicate with other modules of electronic device 700 via bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 8, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiments of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: acquiring a modification command of page configuration information, wherein the modification command comprises a deletion command; acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command; searching in a pre-stored configuration recovery file based on the page identification; and when the configuration recovery file contains the page identifier, inserting the page configuration information, the page name and the grid header line information into a list corresponding to the page identifier of the configuration recovery file.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and include several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that this disclosure is not limited to the particular arrangements, instrumentalities and methods of implementation described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (9)

1. A page configuration information processing method, characterized by comprising:
acquiring a modification command of page configuration information, wherein the modification command comprises a deletion command, and a browser at a webpage end issues a page name, a page identifier, grid header line information and deleted configuration information to a background server based on the deletion command of deleting the configuration information of a certain page;
when the modification command is a deletion command, a background creates a configuration recovery file when confirming that the configuration recovery file does not exist, searches current database file information and database table name information, stores the current database file information and the database table name information into the configuration recovery file together with received data information, acquires database information of the page configuration information when confirming that the configuration recovery file exists, and inserts the page configuration information, the page name, grid title line information and database information into a list corresponding to the page identifier of the configuration recovery file based on a new list of the page identifier in the configuration recovery file when confirming that the configuration recovery file does not contain the page identifier;
acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command;
searching in a pre-stored configuration recovery file based on the page identification;
and when the configuration recovery file contains the page identifier, inserting the page configuration information, the page name and the grid header line information into a list corresponding to the page identifier of the configuration recovery file.
2. The method of claim 1, wherein obtaining a modification command for page configuration information comprises:
the background server acquires a modification command of the page configuration information generated by the browser end.
3. The method as recited in claim 1, further comprising:
after the page configuration information is inserted into the configuration recycle file, the modification command is executed in a database to delete the page configuration information.
4. The method as recited in claim 1, further comprising:
receiving a view command of page configuration information, wherein the view command comprises a page identifier;
searching in the configuration recovery file based on the page identifier, and extracting a list corresponding to the page identifier;
and taking the list as the return information of the view command and displaying the return information.
5. The method as claimed in claim 1, comprising:
receiving a recovery command of page configuration information, wherein the recovery command comprises a page identifier and page configuration information;
determining database information based on the page identity;
comparing the main key of the page configuration information in the database information with the main key of the page configuration information in the recovery command;
and recovering the page configuration information according to the comparison result.
6. The method of claim 5, wherein recovering the page configuration information based on the comparison result comprises:
and when the main key of the page configuration information in the database information is different from the main key of the page configuration information in the recovery command, adding the page configuration information in the recovery command into the database information.
7. The method of claim 6, wherein recovering the page configuration information based on the comparison result, further comprises:
and deleting the corresponding page configuration information in the configuration recycling file after the configuration information in the recovery command is added into the database information.
8. The method of claim 5, wherein recovering the page configuration information based on the comparison result comprises:
and when the main key of the page configuration information in the database information is the same as the main key of the page configuration information in the recovery command, generating prompt information for the user to reselect.
9. A page configuration information processing apparatus, characterized by comprising:
the system comprises a modification module, a configuration recovery file and a configuration recovery file, wherein the modification module is used for acquiring modification commands of page configuration information, the modification commands comprise deletion commands, a browser at a webpage end sends page names, page identifications, grid header line information and deleted configuration information to a background server based on the deletion commands of deleting configuration information of a certain page, when the modification commands are deletion commands, the background creates the configuration recovery file when confirming that no configuration recovery file exists, searches current database file information and database table name information, stores the current database file information and the database table name information into the configuration recovery file together with received data information, acquires database information of the page configuration information when confirming that the configuration recovery file exists, and inserts the page configuration information, the page names, the grid header line information and the database information into a list corresponding to the page identifications of the configuration recovery file based on a newly-built list of the page identifications in the configuration recovery file;
the information module is used for acquiring page names, page identifications, grid header line information and page configuration information to be processed based on the modification command;
the retrieval module is used for retrieving in a pre-stored configuration recovery file based on the page identification;
and the inserting module is used for inserting the page configuration information, the page name and the grid header line information into a list corresponding to the page identifier of the configuration recovery file when the page identifier is contained in the configuration recovery file.
CN202110274751.2A 2021-03-15 2021-03-15 Page configuration information processing method and device Active CN112905388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110274751.2A CN112905388B (en) 2021-03-15 2021-03-15 Page configuration information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110274751.2A CN112905388B (en) 2021-03-15 2021-03-15 Page configuration information processing method and device

Publications (2)

Publication Number Publication Date
CN112905388A CN112905388A (en) 2021-06-04
CN112905388B true CN112905388B (en) 2023-12-15

Family

ID=76105127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110274751.2A Active CN112905388B (en) 2021-03-15 2021-03-15 Page configuration information processing method and device

Country Status (1)

Country Link
CN (1) CN112905388B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331295A (en) * 2014-11-05 2015-02-04 北京中科辅龙信息技术有限公司 Page generation method and system
CN106685729A (en) * 2017-01-18 2017-05-17 郑州云海信息技术有限公司 Service configuration management method and system
CN109684577A (en) * 2018-12-27 2019-04-26 杭州云英网络科技有限公司 A kind of configuration method of web page contents, system and electronic equipment
CN109902039A (en) * 2017-12-08 2019-06-18 旺宏电子股份有限公司 Memory Controller, storage system and the method that data configuration is managed in a memory
CN110020352A (en) * 2017-09-29 2019-07-16 北京国双科技有限公司 A kind of restoring method of the page, system, storage medium and controller
CN110879871A (en) * 2019-11-26 2020-03-13 杭州迪普科技股份有限公司 Page menu configuration method and device
CN111046317A (en) * 2019-12-27 2020-04-21 北京奇艺世纪科技有限公司 Page data acquisition method, device, equipment and computer readable storage medium
CN111797351A (en) * 2020-06-29 2020-10-20 平安普惠企业管理有限公司 Page data management method and device, electronic equipment and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2706743A1 (en) * 2010-06-30 2010-09-08 Ibm Canada Limited - Ibm Canada Limitee Dom based page uniqueness indentification
US9009428B2 (en) * 2011-07-08 2015-04-14 Hewlett-Packard Development Company, L.P. Data store page recovery

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331295A (en) * 2014-11-05 2015-02-04 北京中科辅龙信息技术有限公司 Page generation method and system
CN106685729A (en) * 2017-01-18 2017-05-17 郑州云海信息技术有限公司 Service configuration management method and system
CN110020352A (en) * 2017-09-29 2019-07-16 北京国双科技有限公司 A kind of restoring method of the page, system, storage medium and controller
CN109902039A (en) * 2017-12-08 2019-06-18 旺宏电子股份有限公司 Memory Controller, storage system and the method that data configuration is managed in a memory
CN109684577A (en) * 2018-12-27 2019-04-26 杭州云英网络科技有限公司 A kind of configuration method of web page contents, system and electronic equipment
CN110879871A (en) * 2019-11-26 2020-03-13 杭州迪普科技股份有限公司 Page menu configuration method and device
CN111046317A (en) * 2019-12-27 2020-04-21 北京奇艺世纪科技有限公司 Page data acquisition method, device, equipment and computer readable storage medium
CN111797351A (en) * 2020-06-29 2020-10-20 平安普惠企业管理有限公司 Page data management method and device, electronic equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DB3F & DF-Toolkit:The Database Forensic Forensic File Format and the Database Forensic Toolkit;James Wagner等;《Digital Investigation》;S42-S50 *
基于移动平台的CIS信息化的通用架构实现;杜志宇;《中国优秀硕士学位论文全文数据库 信息科技辑》(第01期);I138-193 *

Also Published As

Publication number Publication date
CN112905388A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
US8244758B1 (en) State management for user interfaces
EP3848824A1 (en) Landing page processing method, apparatus, device and medium
CN110399448B (en) Chinese place name address searching and matching method, terminal and computer readable storage medium
CN116594683A (en) Code annotation information generation method, device, equipment and storage medium
CN113657113A (en) Text processing method and device and electronic equipment
CN111190905A (en) Database table processing method and device and electronic equipment
CN114064925A (en) Knowledge graph construction method, data query method, device, equipment and medium
CN113918437A (en) User behavior data analysis method and device, computer equipment and storage medium
EP3889770B1 (en) Mini program material processing
CN112905388B (en) Page configuration information processing method and device
CN116597443A (en) Material tag processing method and device, electronic equipment and medium
CN113179183B (en) Service switch state control device and method
CN112384940A (en) Mechanism for WEB crawling of electronic business resource page
CN111753164A (en) Link event guiding method and device, electronic equipment and storage medium
CN115080039A (en) Front-end code generation method, device, computer equipment, storage medium and product
CN114741158A (en) Page switching method, device, equipment and storage medium
CN115080154A (en) Page display method and device, storage medium and electronic equipment
CN110795424B (en) Characteristic engineering variable data request processing method and device and electronic equipment
CN113821249A (en) Project development configuration method and device, electronic equipment and readable storage medium
CN113221035A (en) Method, apparatus, device, medium, and program product for determining an abnormal web page
CN113742321A (en) Data updating method and device
CN113704242A (en) Data processing method and device
CN113420037B (en) Asset data real-time changing method and device
CN111221610A (en) Page element acquisition method and device
CN113515504B (en) Data management method, device, electronic 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