CN117609171A - Authority data synchronization method, device, equipment and medium - Google Patents

Authority data synchronization method, device, equipment and medium Download PDF

Info

Publication number
CN117609171A
CN117609171A CN202311656870.XA CN202311656870A CN117609171A CN 117609171 A CN117609171 A CN 117609171A CN 202311656870 A CN202311656870 A CN 202311656870A CN 117609171 A CN117609171 A CN 117609171A
Authority
CN
China
Prior art keywords
data
authority
terminal
center server
identifier
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.)
Pending
Application number
CN202311656870.XA
Other languages
Chinese (zh)
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311656870.XA priority Critical patent/CN117609171A/en
Publication of CN117609171A publication Critical patent/CN117609171A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

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)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a permission data synchronization method, device, equipment and medium. The method comprises the following steps: constructing an original data identifier corresponding to the authority data according to the authority data generated and sent by a first terminal in the single-center server system, and storing the original data identifier and the authority data in an associated manner; the method comprises the steps that when an original data identifier is fed back to a first terminal, authority data and the original data identifier are sent to other terminals in a single-center server system for terminal storage; extracting authority update data in the authority modification data and a terminal stored data identifier according to the authority modification data sent by a second terminal in the single-center server system; and determining whether to update the data currently stored by the server by using the authority update data according to the identification of the stored data in the terminal. The embodiment of the invention solves the problem of data conflict when a plurality of clients submit data to a server by providing the permission data synchronization method, and effectively marks the data source.

Description

Authority data synchronization method, device, equipment and medium
Technical Field
The present invention relates to the field of data synchronization technologies, and in particular, to a method, an apparatus, a device, and a medium for synchronizing rights data.
Background
In the electronic file authority management system, after generating or modifying the authority information of the authority file, the client side reports the authority information to the server. After receiving the authority information, the server updates the authority information of the authority file by taking the ID of the authority file as an identification.
The same rights file may be stored on multiple terminals due to the replicability of the file. Therefore, a plurality of clients have the capability of updating the authority information of the same authority file, so that the authority information reported by each client is mutually covered, and finally the problem of uncertainty generated by the authority information stored by the server is caused, and the uncertainty is more serious in the architecture for deploying the multi-center server.
Therefore, a method for handling the easy collision of data when the multi-terminal submits the data to the server is needed to enhance the efficiency of data management.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for synchronizing authority data, which are used for solving the problem of uncertainty of data finally stored by a server when each client reports authority information to the server.
In a first aspect, an embodiment of the present invention provides a rights data synchronization method, where the method includes:
Constructing an original data identifier corresponding to the authority data according to the authority data generated and sent by a first terminal in the single-center server system, and storing the original data identifier and the authority data in an associated manner;
the method comprises the steps that when an original data identifier is fed back to a first terminal, authority data and the original data identifier are respectively sent to other terminals in a single-center server system for terminal storage;
extracting authority update data in the authority modification data and a terminal stored data identifier according to the authority modification data sent by a second terminal in the single-center server system aiming at the authority data;
and determining whether to update the data currently stored by the server by using the authority update data according to the identification of the stored data in the terminal.
In a second aspect, an embodiment of the present invention provides another rights data synchronization method, where the method includes:
constructing an original data identifier corresponding to data according to authority data generated and transmitted by a first terminal in the multi-center server system through a first sub-control center server, and storing the original data identifier and the authority data in an associated mode;
feeding back the data and the original data identification to each sub-control center server in the multi-center server system so that each sub-control center server can store the authority data and the original data identification in a sub-control center and in each terminal for transmitting direct communication;
Extracting authority update data in the authority modification data and a terminal stored data identifier according to the authority modification data sent by a second terminal in the multi-center server system for the authority data by a second branch control center server;
and determining whether to update the authority data currently stored by the master control server by using the authority update data according to the identification of the stored data in the terminal.
In a third aspect, an embodiment of the present invention further provides a data synchronization device, where the device includes:
the single-center original data identifier construction module is used for constructing an original data identifier corresponding to the authority data according to the authority data generated and sent by the first terminal in the single-center server system, and storing the original data identifier and the authority data in an associated mode;
the single-center original data identifier sending module is used for respectively sending the authority data and the original data identifier to other terminals in the single-center server system for terminal storage while feeding back the original data identifier to the first terminal;
the single-center data and data identification extraction module is used for extracting authority update data in the authority modification data and a terminal stored data identification according to the authority modification data sent by the second terminal in the single-center server system aiming at the authority data;
And the single-center data updating judging module is used for determining whether to update the data currently stored by the server by using the authority updating data according to the identification of the data stored in the terminal.
In a fourth aspect, an embodiment of the present invention further provides another data synchronization apparatus, where the apparatus includes:
the multi-center original data identifier construction module is used for constructing an original data identifier corresponding to data according to the authority data generated and transmitted by a first terminal in the multi-center server system through a first sub-control center server, and storing the original data identifier and the authority data in an associated manner;
the multi-center original data identifier sending module is used for feeding back the data and the original data identifier to each sub-control center server in the multi-center server system so that each sub-control center server can simultaneously perform sub-control center storage on the authority data and the original data identifier and perform terminal storage in each terminal for sending direct communication;
the multi-center data and data identification extraction module is used for extracting authority update data in the authority modification data and a terminal stored data identification according to the second terminal in the multi-center server system when the second terminal transmits the authority modification data aiming at the authority data through the second branch control center server;
And the multi-center data updating judging module is used for determining whether to update the authority data currently stored by the master control server by using the authority updating data according to the identification of the stored data in the terminal.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a rights data synchronization method according to any one of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a rights data synchronization method according to any embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, the comparison operation of the data conflict is carried out on the server, and the data is marked by the data identifier, so that the data source is effectively marked, the problem of data conflict when the data are submitted to the server by the multi-terminal is solved, the effectiveness of data synchronization is improved, and the data management efficiency is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a rights data synchronization method provided in accordance with a first embodiment of the present invention;
FIG. 2 is a flowchart of another rights data synchronization method provided in accordance with a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a rights data synchronization device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of another rights data synchronization device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a rights data synchronization method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a rights data synchronization method provided in a first embodiment of the present invention, where the method may be applied to determining a data source for a server, and the method may be performed by a rights data synchronization device, where the rights data synchronization device may be implemented in hardware and/or software, and the rights data synchronization device may be configured in a server in a single-center server system that provides a single-center server deployment architecture, and may be used with multiple terminals in the single-center server system. As shown in fig. 1, the method includes:
s110, constructing an original data identifier corresponding to the authority data according to the authority data generated and sent by the first terminal in the single-center server system, and storing the original data identifier and the authority data in an associated mode.
Specifically, the embodiment of the invention is suitable for a single-center server deployment architecture, and under the architecture of the single-center server, the terminal is directly connected with the center server (also can be simply called a server), namely, the data interaction is directly carried out.
The rights data in this embodiment refers to a data file for storing rights information in an electronic file rights management system. The first terminal may be understood as a client device that generates new rights data and sends the new rights data to the central server, where after receiving the rights data sent by the first terminal, the central server generates a corresponding data identifier for the rights data, where the generated data identifier is referred to as an original data identifier, and meanwhile, the received rights data and the generated data identifier are stored in the central server. The data identifier may be a serial number or a timestamp or the like, and the electronic certificate can mark the generation time of the electronic certificate.
S120, feeding back the original data identification to the first terminal, and simultaneously, respectively sending the authority data and the original data identification to other terminals in the single-center server system for in-terminal storage.
After the original data identifier is generated, the central server synchronizes the data identifier information to the first terminal, and other terminals in the single-center server system receive the authority data generated by the first terminal and the corresponding data identifier issued by the central server, so that the data synchronization in the system is completed.
S130, when the data is modified according to the authority sent by the second terminal in the single-center server system for the data, extracting the authority update data in the authority modification data and the identification of the data stored in the terminal.
The second terminal in this embodiment may be understood as a client device that modifies the rights content in the original rights data and sends the rights modification data to the central server. The rights modification data includes rights update data and a data identifier, the data modified from the original rights data is referred to as rights update data, for example, the terminal 1 in the original rights data a has only a read right, and the terminal 1 in the modified rights update data B has a modification right added in addition to the read right. It should be noted that, at this time, the data identifier carried in the permission modification data is still the original data identifier stored in the original second terminal.
And S140, determining whether to update the authority data currently stored by the server by using the authority update data according to the identification of the stored data in the terminal.
In the single-center server system, after the center server receives the permission modification data and the data identifier sent by the second terminal, the center server compares the received data identifier with the data identifier currently stored in the center server, and judges whether to receive the permission update data and generate a new data identifier for the permission update data according to a comparison result.
Optionally, determining whether to update the data currently stored by the server with the rights update data according to the identifier of the stored data in the terminal may include:
detecting whether a current data identifier which is associated and stored by a server aiming at the currently stored authority data is consistent with a stored data identifier in the terminal or not;
if yes, the authority updating data is used for replacing the authority data currently stored in the server, an updating data identifier is constructed and obtained, and the updating data identifier and the authority updating data are stored in a correlated mode;
the update data identification is fed back to the second terminal, and meanwhile, the authority update data and the update data identification are respectively sent to other terminals in the single-center server system for terminal storage;
If not, directly feeding back a data updating failure response to the second terminal.
In the single-center server system, when the second terminal initiates modification to the authority data, a modification request is firstly sent to the center server, the center server identifies the data identifier carried in the modification request and compares the data identifier with the data identifier stored in the storage backup module, and whether the modification request is agreed is judged according to whether the data identifiers are consistent or not. If the identifiers are consistent and the modification request is approved to be executed, the center server generates a new data identifier for the authority update data, establishes a new association relation between the updated data identifier and the authority update data, replaces the original association relation in the storage backup module and stores the new association relation. The second terminal initiating the modification request receives the update data identifier and the authority update data sent by the central server after the association relation is established, and meanwhile, the central server forwards the data to other terminals, and the terminals store the received update data identifier and the authority update data.
Otherwise, if the data identifiers are inconsistent, the data identifiers carried in the modification request are compared with the data identifiers stored in the central server, and the second terminal is considered to be unnecessary to modify the authority data at the moment, namely the modification request of the second terminal is refused.
Further, the method for synchronizing the authority data may further include:
acquiring data authority matched with a third terminal in data currently stored in a server according to a data query request sent by the third terminal in a single-center server system;
and inquiring and acquiring target inquiry data matched with the data inquiry request according to the data authority, and feeding back the target inquiry data to a third terminal.
In this embodiment, the third terminal refers to a client device that queries and obtains rights content in rights data, and in the single-center server system, if the third terminal wants to query a certain rights data, it needs to send a request for querying data to the center server, and if the center server allows the request for querying, it synchronizes the target rights data queried by the third terminal to the third terminal according to a certain query condition.
According to the technical scheme of the embodiment of the invention, according to the data generated and sent by the first terminal in the single-center server system, an original data identifier corresponding to the data is constructed, and the original data identifier and the data are stored in an associated manner; the method comprises the steps that when an original data identifier is fed back to a first terminal, data and the original data identifier are respectively sent to other terminals in a single-center server system for terminal storage; extracting authority update data in the data modification information and a terminal stored data identifier according to the data modification information sent by a second terminal in the single-center server system for the data; and determining whether to update the data currently stored by the server by using the authority update data according to the identification of the stored data in the terminal. The technical scheme of the embodiment of the invention provides a solution for causing uncertain data sources due to data conflict when a plurality of clients submit data to a server based on a single-center server deployment architecture, the data is not required to be stored to the local terminal, version control software is not required to be installed at the terminal, the data sources are effectively marked, and the data conflict is avoided to a great extent.
Example two
Fig. 2 is a flowchart of another rights data synchronization method provided in the second embodiment of the present invention, where the method may be applied to determining a data source for a server, and the method may be performed by a rights data synchronization device, where the rights data synchronization device may be implemented in hardware and/or software, and the rights data synchronization device may be configured in a master control server in a multi-center server system that provides a multi-center server deployment architecture, where the master control server is connected to a plurality of terminals through a plurality of sub-control servers in the multi-center server system. As shown in fig. 2, the method includes:
fig. 2 is a flowchart of a method for synchronizing rights data by a master server in a multi-center server system according to a third embodiment of the present invention, which is based on the above embodiment. As shown in fig. 2, the method includes:
s210, constructing an original data identifier corresponding to the authority data according to the authority data generated and transmitted by a first terminal in the multi-center server system through the first sub-control center server, and storing the original data identifier and the authority data in an associated mode.
The multi-center server system comprises a master control server, a plurality of sub-control center servers and a plurality of terminals, wherein the master control server is connected with the terminals through the sub-control center servers, and the terminals are divided under different sub-control center servers according to a certain division rule. In the multi-center server system, when the first terminal generates the authority data, the authority data is firstly sent to the first sub-control center server, and the first sub-control center requests the corresponding data identification from the master control center according to the received authority data. The master control server generates a corresponding data identifier for the master control server according to the received request and forwards the data identifier to the first sub control center server, and the first sub control center server establishes an association relation between the received data identifier and the authority data and stores the association relation in a storage backup module of the first sub control center server.
S220, feeding the authority data and the original data identification back to each sub-control center server in the multi-center server system, so that each sub-control center server can store the authority data and the original data identification in the sub-control center and store the authority data in each terminal for transmitting direct communication.
In addition, the authority data and the original data identifier after the corresponding relation is established are forwarded to other sub-control center servers, and each sub-control center server can send the data to each terminal to which the data belongs, so that each terminal under the sub-control center server can synchronize the authority data and the data identifier of the first terminal, and the cross-sub-control center server flow of certain data is realized.
And S230, extracting authority update data in the authority modification data and a terminal stored data identifier according to the authority modification data sent by a second terminal in the multi-center server system for the authority data by a second control center server.
Unlike a single-center server system, in a multi-center server system, the second terminal may understand that the rights content in the original rights data is modified and the rights modification data is sent to the client device of the sub-control center server to which the second terminal belongs, the sub-control center server forwards the rights modification data to the master control server, and the master control server extracts and stores the rights modification data and the data identifier to which the rights modification data belongs in the storage backup module.
S240, determining whether to update the data currently stored by the master control server by using the authority update data according to the identification of the stored data in the terminal.
In the multi-center service system, the second terminal sends the permission modification data and the data identifier to the second central control server, that is, the permission modification data and the data identifier received by the central control server are forwarded from the second central control server. And meanwhile, the conclusion about whether the master control server receives the authority update data and generates a new data identifier for the data update data is issued to a second control center server to which the second terminal belongs, and the second control center server forwards the data to the corresponding second terminal.
Optionally, determining whether to update the data currently stored by the master server using the data update file according to the stored data identifier in the terminal may include:
detecting whether a current data identifier which is associated and stored by a master control server aiming at the current stored data is consistent with a stored data identifier in a terminal or not;
if yes, the data update file is used for replacing the data stored in the master control server currently, an update data identifier is constructed, and the update data identifier and the data update file are stored in a correlated mode;
transmitting the updated data identifier and the data updated file to a second branch control center server so that the second branch control center server can simultaneously store the data updated file and the updated data identifier in a branch control center and in each terminal for transmitting direct communication;
The second sub-control center server is identified as the latest data source server, other sub-control center servers in the multi-center server system are informed to acquire the updated data identification and the data update file from the latest data source server, so that the other sub-control center servers can store the authority update data and the updated data identification in the sub-control center and store the authority update data in the terminals which send direct communication;
if not, feeding back a data updating failure response to the second terminal through the second control center server.
When the second terminal initiates modification to the authority data, the second control center server sends a modification request of the second terminal to the master control server, wherein the modification request comprises a terminal equipment ID (identity) of the initiating request, authority update data and a data identifier, the master control server firstly identifies the data identifier carried in the modification request and compares the data identifier with the data identifier stored in the storage backup module, if the identifiers are consistent and the modification request is approved to be executed, the master control server generates a new data identifier for the authority update data, establishes a new association relation between the updated data identifier and the authority update data, and replaces the original association relation in the storage backup module and stores the new association relation. Meanwhile, the master control server forwards the update data identification and the authority update data after the association relation is established to each sub-control center server, the update data identification and the authority update data are issued to each terminal through the sub-control center server, and the terminal stores the update data identification and the authority update data.
When the authority data initiated by the second terminal is successfully updated, the master control server marks the second branch control center server as the latest data source, and the purpose of the method is to inform all branch control center servers under the master control server that the data identification of the second branch control center server is the latest, and all terminals under the branch control center server need to synchronize the information, namely update the local original data and the data identification of the terminal, so that cross-center data synchronization is realized, and the data source is clearly marked.
Otherwise, if the data identifiers are inconsistent, the data identifiers stored in the master control server are compared with the data identifiers carried in the modification request, and the second terminal is considered to be unnecessary to modify the permission data at the moment, namely the modification request of the second terminal is refused.
The explanation is made here for the case that the data identifiers are inconsistent, in daily work, when the connection between the sub control center server and the master control server is disconnected or the delay is too large, the service between the terminal and the master control server is disconnected, but the terminal and the sub control center server can normally communicate, so that when the terminal under different sub control center servers modifies the same authority file, a time difference is generated. Such as: if a fault occurs between the first sub-control center server and the master control server, the terminal 1 under the first sub-control center server cannot timely send its own modification request 1 to the master control server, the terminal 2 under the second sub-control center server successfully sends the modification request 2 to the master control server during the fault period, and when the fault is repaired, the master control server receives the data identifier carried in the modification request 1, at this time, although the data identifier of the terminal 1 is newer, the authority update data of the terminal 2 is actually updated, so that the modification request of the terminal 1 can be refused, and meanwhile, the master control server synchronizes the authority update data and the data identifier of the terminal 2 to the terminal 1, and the terminal 1 receives and updates the data.
Optionally, the method for synchronizing the rights data further includes:
acquiring data authority matched with a third terminal in a multi-center server system from data currently stored in a master control server according to a data query request sent by the third terminal through a third sub-control center server;
and inquiring and acquiring target inquiry data matched with the data inquiry request according to the data authority, and feeding back the target inquiry data to a third terminal through a third sub-control center server.
In this embodiment, the third terminal refers to a client device that queries and obtains the rights content in the rights data, and in the multi-center server system, if the third terminal wants to query a certain rights data, it needs to send a query data request to the third sub-control center server that belongs to the third terminal, and the third sub-control center server forwards the query request to the master control server.
According to the technical scheme provided by the embodiment of the invention, under a multi-center server deployment architecture, a solution of uncertain data sources caused by data conflict is provided for a plurality of client devices when the data are submitted to the server, the data are not required to be stored to the terminal locally, version control software is not required to be installed at the terminal, the data sources are effectively marked, and the data conflict is avoided to a great extent.
Example III
Fig. 3 is a schematic structural diagram of a rights data synchronization device according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the single-center original data identifier construction module 310 is configured to construct an original data identifier corresponding to data according to the data generated and sent by the first terminal in the single-center server system, and store the original data identifier in association with the data;
the single-center original data identifier sending module 320 is configured to send the data and the original data identifier to other terminals in the single-center server system for in-terminal storage while feeding back the original data identifier to the first terminal;
the single-center data and data identifier extraction module 330 is configured to extract rights update data in the rights modification data and a data identifier stored in the terminal according to rights modification data sent by the second terminal in the single-center server system for the data;
and the single-center data update judging module 340 is configured to determine whether to update the data currently stored in the server with the permission update data according to the identifier of the data stored in the terminal.
Based on the above embodiments, the single-center data update determination module 340 may specifically include:
The single-center data identifier consistency detection unit is used for detecting whether the current data identifier which is associated and stored by the server aiming at the current stored data file is consistent with the stored data identifier in the terminal or not;
the single-center update data identifier construction unit is used for constructing an update data identifier after replacing a data file currently stored by the server by using the authority update data if the data file is the same, and storing the update data identifier and the authority update data in an associated manner;
the single-center update data identification feedback and sending unit is used for feeding the update data identification back to the second terminal and respectively sending the authority update data and the update data identification to other terminals in the single-center server system for terminal storage;
and the single-center updating failure response feedback unit is used for directly feeding back the updating failure response of the data file to the second terminal if the single-center updating failure response feedback unit does not exist.
Based on the above embodiments, the device further includes a single-center third terminal data authority obtaining unit, configured to obtain, according to a data query request sent by a third terminal in a single-center server system, a data authority matching with the third terminal from data currently stored in a server;
And the target query data acquisition unit of the single-center third terminal is used for inquiring and acquiring target query data matched with the data query request according to the data authority and feeding back the target query data to the third terminal.
According to the technical scheme of the embodiment of the invention, a single-center original data identifier construction module constructs an original data identifier corresponding to data according to data generated and sent by a first terminal in a single-center server system, and the original data identifier and the data are stored in a correlated manner; the single-center original data identifier sending module feeds back the original data identifier to the first terminal and simultaneously sends the data and the original data identifier to other terminals in the single-center server system for terminal storage; the single-center data and data identification extraction module extracts authority update data in the data modification information and a terminal stored data identification according to the data modification information sent by a second terminal in the single-center server system for the data; and the single-center data updating judging module determines whether to update the data currently stored by the server by using the authority updating data according to the identification of the data stored in the terminal. The technical scheme of the embodiment of the invention provides a solution for causing uncertain data sources due to data conflict when a plurality of client devices submit data to a server based on a single-center server deployment architecture, the data is not required to be stored to a terminal, version control software is not required to be installed at the terminal, the data sources are effectively marked, and the data conflict is avoided to a great extent.
The permission data synchronization device provided by the embodiment of the invention can execute the permission data synchronization method provided by the embodiments of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 is a schematic structural diagram of a rights data synchronization device according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus includes:
the multi-center original data identifier construction module 410 is configured to construct an original data identifier corresponding to data according to data generated and sent by a first terminal in the multi-center server system via a first sub-control center server, and store the original data identifier and the data in an associated manner;
the multi-center original data identifier sending module 420 is configured to feed back data and an original data identifier to each sub-control center server in the multi-center server system, so that each sub-control center server performs sub-control center storage on the data and the original data identifier simultaneously, and performs terminal storage in each terminal sending direct communication;
the multi-center data and data identifier extraction module 430 is configured to extract, according to the rights-modifying data sent by the second terminal in the multi-center server system for the data via the second central server, rights-updating data in the rights-modifying data and a data identifier stored in the terminal;
The multi-center data update judging module 440 is configured to determine whether to update the data currently stored in the master server with the permission update data according to the identifier of the data stored in the terminal.
Based on the above embodiments, the multi-center data update determination module 440 may further include:
the multi-center data identifier consistency detection unit is used for detecting whether the current data identifier which is associated and stored by the master control server aiming at the current stored data is consistent with the stored data identifier in the terminal or not;
the multi-center update data identifier construction unit is used for constructing an update data identifier after the data currently stored by the master control server is replaced by the permission update data if the data currently stored by the master control server is replaced by the permission update data, and storing the update data identifier and the permission update data in a correlated manner;
the multi-center data identifier feedback and sending unit is used for sending the update data identifier and the authority update data to the second branch control center server so that the second branch control center server can simultaneously perform branch control center storage and terminal storage in each terminal for sending direct communication with the update data identifier;
the multi-center latest data source server identification unit is used for identifying the second sub-control center server as the latest data source server and notifying other sub-control center servers in the multi-center server system to acquire the updated data identification and the authority updated data from the latest data source server so that the other sub-control center servers can store the authority updated data and the updated data identification in the sub-control center and in each terminal for transmitting direct communication;
And the multi-center updating failure response feedback unit is used for feeding back a data updating failure response to the second terminal through the second control center server if not.
Based on the above embodiments, the apparatus may specifically further include a multi-center third terminal data authority obtaining unit, configured to obtain, according to a data query request sent by a third terminal in a multi-center server system via a third sub-control center server, a data authority matched with the third terminal from data currently stored in a master control server;
and the multi-center third terminal target query data acquisition unit is used for querying and acquiring target query data matched with the data query request according to the data authority, and feeding back the target query data to the third terminal through the third sub-control center server.
According to the technical scheme of the embodiment of the invention, a multi-center original data identifier construction module constructs an original data identifier corresponding to data according to data generated and transmitted by a first terminal in a multi-center server system through a first sub-control center server, and the original data identifier and the data are stored in a correlated manner; the multi-center original data identifier sending module feeds back the data and the original data identifier to each sub-control center server in the multi-center server system so that each sub-control center server can simultaneously store the data and the original data identifier in a sub-control center and in each terminal for sending direct communication; the multi-center data and data identification extraction module extracts authority update data in the authority modification data and a terminal stored data identification according to the authority modification data sent by a second terminal in the multi-center server system for the data through a second branch control center server; and the multi-center data updating judging module determines whether to update the data currently stored by the master control server by using the authority updating data according to the identification of the data stored in the terminal. According to the technical scheme provided by the embodiment of the invention, under a multi-center server deployment architecture, a solution of uncertain data sources caused by data conflict is provided for a plurality of client devices when the data are submitted to the server, the data are not required to be stored to the terminal locally, version control software is not required to be installed at the terminal, the data sources are effectively marked, and the data conflict is avoided to a great extent.
The permission data synchronization device provided by the embodiment of the invention can execute the permission data synchronization method provided by the embodiments of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a rights data synchronization method.
Namely: constructing an original data identifier corresponding to the authority data according to the authority data generated and sent by a first terminal in the single-center server system, and storing the original data identifier and the authority data in an associated manner;
The method comprises the steps that when an original data identifier is fed back to a first terminal, authority data and the original data identifier are respectively sent to other terminals in a single-center server system for terminal storage;
extracting authority update data in the authority modification data and a terminal stored data identifier according to the authority modification data sent by a second terminal in the single-center server system aiming at the authority data;
and determining whether to update the data currently stored by the server by using the authority update data according to the identification of the stored data in the terminal.
In some embodiments, a rights data synchronization method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of a rights data synchronization method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a rights data synchronization method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of synchronizing rights data, performed by a server in a single-center server system, the method comprising:
constructing an original data identifier corresponding to the authority data according to the authority data generated and sent by a first terminal in the single-center server system, and storing the original data identifier and the authority data in an associated manner;
the method comprises the steps that when an original data identifier is fed back to a first terminal, authority data and the original data identifier are respectively sent to other terminals in a single-center server system for terminal storage;
Extracting authority update data in the authority modification data and a terminal stored data identifier according to the authority modification data sent by a second terminal in the single-center server system aiming at the authority data;
and determining whether to update the data currently stored by the server by using the authority update data according to the identification of the stored data in the terminal.
2. The method according to claim 1, wherein determining whether to update the data currently stored by the server with the rights update data based on the in-terminal stored data identification, comprises:
detecting whether a current data identifier which is associated and stored by a server aiming at the currently stored authority data is consistent with a stored data identifier in the terminal or not;
if yes, the authority updating data is used for replacing the authority data currently stored in the server, an updating data identifier is constructed and obtained, and the updating data identifier and the authority updating data are stored in a correlated mode;
the update data identification is fed back to the second terminal, and meanwhile, the authority update data and the update data identification are respectively sent to other terminals in the single-center server system for terminal storage;
if not, directly feeding back a data updating failure response to the second terminal.
3. The method according to claim 1 or 2, further comprising:
acquiring data authority matched with a third terminal in authority data currently stored in a server according to a data query request sent by the third terminal in a single-center server system;
and inquiring and acquiring target inquiry data matched with the data inquiry request according to the data authority, and feeding back the target inquiry data to a third terminal.
4. A method of synchronizing data, performed by a master server in a multi-center server system, the method comprising:
constructing an original data identifier corresponding to data according to authority data generated and transmitted by a first terminal in the multi-center server system through a first sub-control center server, and storing the original data identifier and the authority data in an associated mode;
feeding back the data and the original data identification to each sub-control center server in the multi-center server system so that each sub-control center server can store the authority data and the original data identification in a sub-control center and in each terminal for transmitting direct communication;
extracting authority update data in the authority modification data and a terminal stored data identifier according to the authority modification data sent by a second terminal in the multi-center server system for the authority data by a second branch control center server;
And determining whether to update the authority data currently stored by the master control server by using the authority update data according to the identification of the stored data in the terminal.
5. The method of claim 4, wherein determining whether to update the authority data currently stored by the grandmaster server with the authority update data based on the in-terminal stored data identification, comprises:
detecting whether a current data identifier which is associated and stored by a master control server aiming at the current stored data is consistent with a stored data identifier in a terminal or not;
if yes, the authority updating data is used for replacing the authority data currently stored in the master control server, an updating data identifier is constructed and obtained, and the updating data identifier and the authority updating data are stored in a correlated mode;
transmitting the update data identifier and the authority update data to a second branch control center server so that the second branch control center server can simultaneously store the authority update data and the update data identifier in a branch control center and in each terminal for transmitting direct communication;
the second sub-control center server is identified as the latest data source server, other sub-control center servers in the multi-center server system are informed of acquiring the updated data identification and the authority updated data from the latest data source server, and the other sub-control center servers can store the authority updated data and the updated data identification in the sub-control center and in each terminal for transmitting direct communication;
If not, feeding back a data updating failure response to the second terminal through the second control center server.
6. The method according to claim 4 or 5, further comprising:
acquiring data authority matched with a third terminal in a multi-center server system from authority data currently stored in a master control server according to a data query request sent by the third terminal through a third sub-control center server;
and inquiring and acquiring target inquiry data matched with the data inquiry request according to the data authority, and feeding back the target inquiry data to a third terminal through a third sub-control center server.
7. A data synchronizing device, comprising:
the single-center original data identifier construction module is used for constructing an original data identifier corresponding to the authority data according to the authority data generated and sent by the first terminal in the single-center server system, and storing the original data identifier and the authority data in an associated mode;
the single-center original data identifier sending module is used for respectively sending the authority data and the original data identifier to other terminals in the single-center server system for terminal storage while feeding back the original data identifier to the first terminal;
The single-center data and data identification extraction module is used for extracting authority update data in the authority modification data and a terminal stored data identification according to the authority modification data sent by the second terminal in the single-center server system aiming at the authority data;
and the single-center data updating judging module is used for determining whether to update the data currently stored by the server by using the authority updating data according to the identification of the data stored in the terminal.
8. Another data synchronizing device, comprising:
the multi-center original data identifier construction module is used for constructing an original data identifier corresponding to data according to the authority data generated and transmitted by a first terminal in the multi-center server system through a first sub-control center server, and storing the original data identifier and the authority data in an associated manner;
the multi-center original data identifier sending module is used for feeding back the data and the original data identifier to each sub-control center server in the multi-center server system so that each sub-control center server can simultaneously perform sub-control center storage on the authority data and the original data identifier and perform terminal storage in each terminal for sending direct communication;
The multi-center data and data identification extraction module is used for extracting authority update data in the authority modification data and a terminal stored data identification according to the second terminal in the multi-center server system when the second terminal transmits the authority modification data aiming at the authority data through the second branch control center server;
and the multi-center data updating judging module is used for determining whether to update the authority data currently stored by the master control server by using the authority updating data according to the identification of the stored data in the terminal.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a rights data synchronization method according to any one of claims 1-6.
10. A computer readable storage medium storing computer instructions for causing a processor to perform a rights data synchronization method according to any one of claims 1-6.
CN202311656870.XA 2023-12-05 2023-12-05 Authority data synchronization method, device, equipment and medium Pending CN117609171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311656870.XA CN117609171A (en) 2023-12-05 2023-12-05 Authority data synchronization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311656870.XA CN117609171A (en) 2023-12-05 2023-12-05 Authority data synchronization method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117609171A true CN117609171A (en) 2024-02-27

Family

ID=89959576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311656870.XA Pending CN117609171A (en) 2023-12-05 2023-12-05 Authority data synchronization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117609171A (en)

Similar Documents

Publication Publication Date Title
CN112671950B (en) Domain name processing method and device based on block chain, electronic equipment and storage medium
CN111181765A (en) Task processing method and device
CN114328739A (en) Data synchronization method, data reading method, data synchronization device, data reading device, electronic equipment, storage medium and product
CN115103024B (en) Sequence number generation method and device, electronic equipment and storage medium
CN117609171A (en) Authority data synchronization method, device, equipment and medium
CN113986135B (en) Method, device, equipment and storage medium for processing request
CN115525666A (en) Real-time data updating method and device, electronic equipment and storage medium
CN114691781A (en) Data synchronization method, system, device, equipment and medium
CN113064950B (en) Data synchronization method, device, equipment and storage medium
CN113420275A (en) Data connection processing method, related device and computer program product
CN115174447B (en) Network communication method, device, system, equipment and storage medium
CN112732728A (en) Data synchronization method and system
CN114924806B (en) Dynamic synchronization method, device, equipment and medium for configuration information
CN113595870B (en) Push message processing method and device, electronic equipment and storage medium
CN117113942B (en) Model synchronization method and device, electronic equipment and storage medium
CN116303279A (en) Concurrent file acquisition method, concurrent file acquisition device, concurrent file acquisition equipment and storage medium
CN116881368A (en) Data synchronization method and device, electronic equipment and storage medium
CN117596288A (en) Message transmission method and device, electronic equipment and storage medium
CN118607011A (en) Data processing method and device based on HBase database and electronic equipment
CN115237968A (en) Node management method, device, equipment and storage medium in database system
CN115168440A (en) Data read-write method, distributed storage system, device, equipment and storage medium
CN117319507A (en) Route connection method, device, electronic equipment and storage medium
CN118152095A (en) Device switching method, device, equipment and medium for database service
CN117093274A (en) Application running stack analysis method, device, equipment and storage medium
CN116015665A (en) Method, device, equipment and medium for repeatedly detecting virtual article

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