A government affairs electronic document archive detection system and method

By designing an electronic file archive detection system for government affairs, and using a variety of detection filters and modules to realize data detection, the problems of authenticity and usability of government affairs electronic file archives are solved, and the effectiveness of the detection and the practicality of the system are improved.

CN114398311BActive Publication Date: 2024-11-19LINEWELL SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111661911.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-11-19
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

The existing electronic archive detection and management system cannot effectively detect the authenticity and availability of electronic documents for government affairs, resulting in the unavailability, missing or untrue archives after archives.

Method used

A government affairs electronic file archive detection system is designed, including a variety of detection filters and modules, which are used to realize the functions of model detection, file detection, event detection, file number detection, etc., and data detection is carried out through the detection filter chain and manager. , ensure the integrity and authenticity of the data.

Benefits of technology

It improves the effectiveness of electronic files for government affairs, avoids the unavailability, absence or unreality of files when used, and enhances the practicality and application prospects of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 211231154947
    Figure 211231154947
  • Figure 211231154950
    Figure 211231154950
  • Figure 211231154954
    Figure 211231154954
Patent Text Reader

Abstract

The present invention relates to a government affairs electronic document archive detection system and method. The system comprises a detection filter interface, a detection filter configuration interface, a detection filter chain interface, a detection request data interface, a detection result data interface, a detection filter configuration adapter for implementing the corresponding interface, a detection filter chain proxy module, an archive detection request data module, an archive detection result data module, a detection manager, a script detection filter and a plurality of detection filters for implementing model detection, file detection, matter detection and file number detection. The detection manager provides the setting of detection filter configuration, archive detection request data and archive detection result data, initializes the detection filter chain proxy instance and all detection filter instances, adds the filter to the detection filter chain set, and calls the execution detection function of the detection filter chain to detect the request data. The system can improve the effectiveness of government affairs electronic document archive detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electronic document detection, and specifically relates to a system and method for detecting electronic document archives of government affairs. Background Art

[0002] With the digitalization of government affairs, people now handle their affairs directly online through computers and mobile phones. The electronic archive information kept for filing is increasingly being checked through automated archive detection systems. Unlike traditional manual inspection and review of archives, the archive detection system has the technical advantages of efficient automation, intelligence, low error rates and around-the-clock operation.

[0003] However, the existing electronic archive detection and management system does not specifically detect the electronic documents of government affairs during archiving, and does not test the authenticity and availability of electronic archives. As a result, when the archives are reused after archiving, it is found that the archives are unavailable, missing or even unauthentic.

[0004] Therefore, it is necessary to provide detection technology and systems specifically for the archiving of electronic documents on government affairs, so as to solve the problems of detection in the archives and archiving process of electronic documents on government affairs. Summary of the invention

[0005] The purpose of the present invention is to provide a system and method for detecting electronic documents and archives of government affairs, which is conducive to improving the effectiveness of detecting electronic documents and archives of government affairs.

[0006] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is: a government affairs electronic document archive detection system, including a detection filter interface, a detection filter configuration interface, a detection filter link interface, a detection request data interface, a detection result data interface, a detection filter configuration adapter, a detection filter chain proxy module, an archive detection request data module, an archive detection result data module, a detection manager, a script library, a script detection filter and a plurality of detection filters for implementing model detection, file detection, matter detection and file number detection; the detection filter interface is a functional interface for defining initialization and executing detection, the detection filter configuration interface is a functional interface for defining acquisition configuration and configuration type, the detection filter link interface is a functional interface for defining initialization and execution of the detection filter chain, the detection request data interface is a functional interface for defining initialization and reading data, and the detection result data interface is a functional interface for defining saving result data and obtaining result data; the detection filter configuration adapter is used to implement the detection filter configuration interface, and initialize a plurality of configuration functions including model configuration, file configuration, matter configuration and file number configuration; the detection The filter chain proxy module is used to implement the detection filter chain interface, initialize the detection filter chain set, add filters that implement the detection filter interface by adding detection filters, and execute the detection filters in the set in sequence to detect request data; the archive detection request data module is used to implement the detection request data interface, initialize the detection request data, and read the request data; the archive detection result data module is used to implement the detection result data interface, initialize the result data object, and save the detection results; the detection manager is used to provide settings for detection filter configuration, archive detection request data and archive detection result data, initialize the detection filter chain proxy instance and all detection filter instances, add filters to the detection filter chain set in sequence, and call the execution detection function of the detection filter chain to detect request data; the script library is used to store predefined detection scripts, and the script detection filter is used to implement the detection filter interface function. According to the initialization requirements, the detection script of the script library is called to detect the request data. The multiple detection filters are used to implement other functions of the detection filter interface including model detection, file detection, matter detection, and file number detection.

[0007] Furthermore, the multiple detection filters include a model detection filter, a file detection filter, a matter detection filter and a file number detection filter. The model detection filter reads different detection request data according to the requirements of the model configuration and calls the script detection filter to initialize the script detection instance, and implements the data specification defined by the model by executing the script detection instance; the file detection filter detects whether the file type data in the request data complies with the data specification defined by the file configuration according to the file configuration requirements; the matter detection filter detects whether the matter data in the request data complies with the data specification defined by the matter configuration according to the matter configuration requirements; the file number detection filter detects whether the file number data in the request data complies with the data specification defined by the file number configuration according to the file number configuration requirements.

[0008] Furthermore, the system is provided with a virus detection library for connecting to a third-party virus detection system, and the multiple detection filters also include a digest encryption detection filter and a virus detection filter for implementing digest encryption detection and virus detection; the digest encryption detection filter detects whether the digest encryption of the request data complies with the data specification defined by the digest encryption configuration according to the digest encryption configuration requirements; the virus detection filter calls the virus detection library to detect whether the request data contains viruses according to the virus detection configuration requirements.

[0009] Furthermore, the model detection filter is used to detect the integrity and availability of metadata; before detecting data, the metadata elements to be detected are first configured, and the metadata elements include name, field, required, and format attributes. The configured metadata elements are grouped according to business to form a configuration information model, a basic information model, and a process information model; when the model detection filter is initialized, the models in the configuration are read in sequence, and the script detection filter is instantiated according to the metadata elements configured in the model, and then the script detection filter instance is saved in the detection chain of different businesses of the model detection filter; when performing the detection, the detection method of the script detection filter instance in the chain is executed in sequence according to the business detection chain. In this method, the value of the field in the business data corresponding to the request data is obtained according to the field attribute of the metadata element at the time of initialization. If the value is not read, it is determined whether the value can be empty according to the required attribute of the metadata element. If it cannot be empty, a detection record that the name detection of the metadata element fails and the value is empty is added to the detection result, such as If it can be empty, skip the metadata element detection; if a value is read, execute the format detection script at initialization to detect the length, type and regular expression of the value. If the detection is successful, add a record of successful name detection of the metadata element to the detection result; if the detection fails, add a detection record of failed name detection of the metadata element and the reason for failure to the detection result, and finally mark the field as detected; after the business detection link is executed, the model detection filter instance verifies whether there are any undetected fields in the corresponding business request data. If so, all these fields are judged as detection failures, and a data detection failure record that exceeds the detection requirement range is added to the detection result. If not, do nothing; after all detection business chains are processed, judge the detection results. If there are no failure records, mark the model detection as passed. If there are failure records, mark the model detection as failed; thereby verifying whether the archived metadata is complete as predefined and whether the data format content is available and meets the specifications through the model detection filter.

[0010] Furthermore, the file detection filter is used to detect the integrity and availability of file data; before detection, the file data elements to be detected are configured in the configuration, and the file data elements include name, field, required, format, and file size attributes, and the configured file data elements are grouped by business to form a variety of file information models; the file data of the archive request detection data consists of two parts: file information data and electronic file data. The file information data includes name, field, electronic file address and file summary encryption. The electronic file data refers to the file entity in the cloud storage and can be downloaded to the local through the electronic file address; when the file detection filter is initialized, the corresponding file information is retrieved according to the detection business Model; when executing the test, the file data elements in the initialization model are read in sequence, and the file information data is taken out according to the file data element system attributes. If the file information is not read, it is determined whether the file can be empty according to the required attributes of the file data element. If it cannot be empty, a detection record of the name of the file data element failing to be detected and the file information being empty will be added to the test result. If it can be empty, the test of this file data element will be skipped. If the file information is read, the electronic file data is downloaded to the local according to the electronic file address. If it cannot be downloaded or the download fails, a detection record of the name of the file data element failing to be detected and the electronic file downloading failure will be added to the test result. If successful, first perform summary encryption on the file to obtain the encrypted value of the file and compare it with the encrypted value of the file information. If the encrypted values ​​are different, add a detection record of the name of the file data element failing to detect and the file summary encryption mismatch in the detection result. If the encrypted values ​​are consistent, determine whether the file format matches the format attributes of the file data element. If not, add a detection record of the name of the file data element failing to detect and the file format mismatch in the detection result. If the formats match, obtain whether the file size exceeds the file size attribute of the file data element. If it exceeds, add a detection record of the name of the file data element failing to detect and the file exceeds the file data element in the detection result. The detection record of the file size attribute, if it does not exceed the limit, no operation is performed, and finally the file information is marked as detected; after the detection of all file data elements is completed, the file detection filter instance verifies whether there is any undetected file information in the request data, if so, all these fields are judged as detection failures, and a detection failure record of the file exceeding the detection requirement range is added to the detection result, if not, no operation is performed; finally, the detection result is judged, if there is no failure record, the file detection is marked as passed, if there is a failure record, the file detection is marked as failed; thereby verifying whether the archived file data is complete as predefined, and whether the file format content is available and meets the specifications through the file detection filter.

[0011] Furthermore, the matter detection filter is used to detect authenticity. When the matter detection filter is initialized, it retrieves the corresponding matter information according to the detection business. The matter information includes the matter name, code, main item, sub-item, type, region, department, matter version, tolerance, and matter material attributes. When executing the detection, the configuration metadata in the request data is read to match the matter information at the time of initialization one by one. If the match fails, an attribute detection failure is added to the detection result, and a detection record of the attribute mismatch is added. If the match is successful, a detection record of the attribute detection success is added to the detection result. After all attribute detections are completed, the detection results are judged. If there is no failure record, the matter detection is marked as passed. If there is a failure record, the matter detection is marked as failed. The authenticity of the configuration information of the archived metadata is verified through the detection filter.

[0012] Furthermore, the file number detection filter is used to detect authenticity. When the file number detection filter is initialized, the corresponding file number information is retrieved according to the detection business. When the file number is generated, the file number is generated according to the basic information data of the archived metadata. The file number information includes the archiving time, department name, counterparty, counterparty contact information, certificate, completion time, business serial number, case type, and case result attributes; when executing the detection, the basic information metadata in the request data is read and matched one by one with the archived information at the time of initialization. If the match fails, an attribute detection failure is added to the detection result, and the detection record of the attribute mismatch is added. If the match succeeds, a detection record of the attribute detection success is added to the detection result; after all attribute detections are completed, the detection results are judged. If there is no failure record, the matter detection is marked as passed. If there is a failure record, the file number detection is marked as failed; thereby verifying the authenticity of the basic information of the archived metadata through the file number detection filter.

[0013] Furthermore, the digest encryption detection filter is used to detect the integrity and availability of the archive package file, and when performing the detection, it is determined whether the archive package file digest encryption value is consistent with the archive data encryption value.

[0014] Furthermore, the virus detection filter is used to detect the security of archived data. When performing the detection, the virus detection library is called to perform virus detection on the archived data to detect whether the data contains viruses.

[0015] The present invention also provides a method for detecting electronic documents and archives of government affairs based on the above system, comprising the following steps:

[0016] Step S1, instantiate the detection filter configuration adapter and initialize the configuration;

[0017] Step S2, instantiate and archive the detection request data, and initialize the request data;

[0018] Step S3, instantiate and archive the test result data, and initialize the result data;

[0019] Step S4, instantiate the detection manager, initialize the detection filter chain proxy instance and all detection filter instances, and add the filters to the detection filter chain set in sequence;

[0020] Step S5: setting the detection configuration instance, the detection request data instance, and the detection result data instance to the detection manager instance;

[0021] Step S6, calling the execution detection method of the detection manager instance to detect the request data;

[0022] Step S7: call the get test result method of the test result instance to obtain the test result content.

[0023] Compared with the prior art, the present invention has the following beneficial effects: it provides a system and method for detecting electronic document archives of government affairs, which realizes the detection of authenticity and availability of electronic document archives by implementing multiple detection functions including model detection, file detection, matter detection, file number detection, etc., and avoids the occurrence of unavailable, missing, unauthentic archives when archived for reuse, thereby improving the effectiveness of detecting electronic document archives of government affairs, and has strong practicality and broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a system architecture diagram of an embodiment of the present invention;

[0025] Figure 2 is a block diagram of the implementation principle of the model detection filter in an embodiment of the present invention;

[0026] Figure 3 It is a block diagram of the implementation principle of the file detection filter in the embodiment of the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0028] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0029] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0030] like Figure 1 As shown, this embodiment provides a government affairs electronic document archive detection system, including a detection filter interface, a detection filter configuration interface, a detection filter link interface, a detection request data interface, a detection result data interface, a detection filter configuration adapter, a detection filter chain proxy module, an archive detection request data module, an archive detection result data module, a detection manager, a script library, a virus detection library, a script detection filter, and a plurality of detection filters for implementing model detection, file detection, matter detection, file number detection, summary encryption detection, and virus detection. The detection filter interface is a functional interface for defining initialization and executing each detection filter, the detection filter configuration interface is a functional interface for defining acquisition configuration and configuration type, the detection filter link interface is a functional interface for defining initialization and executing the detection filter chain, the detection request data interface is a functional interface for defining initialization and reading data, and the detection result data interface is a functional interface for defining saving result data and obtaining result data. The detection filter configuration adapter is used to implement the detection filter configuration interface, and initializes a plurality of configuration functions including model configuration, file configuration, matter configuration, and file number configuration. The detection filter chain proxy module is used to implement the detection filter chain interface, initialize the detection filter chain set, add filters that implement the detection filter interface by adding detection filters, and execute the detection filters in the set in sequence to detect request data. The archive detection request data module is used to implement the detection request data interface, initialize the detection request data, and read the request data. The archive detection result data module is used to implement the detection result data interface, initialize the result data object, and save the detection result. The detection manager is used to provide the setting of detection filter configuration, archive detection request data and archive detection result data, initialize the detection filter chain proxy instance and all detection filter instances, add filters to the detection filter chain set in sequence, and call the execution detection function of the detection filter chain to detect request data. The script library is used to store predefined detection scripts, and the script detection filter is used to implement the detection filter interface function. According to the initialization requirements, the detection script of the script library is called to detect the request data. The virus detection library is connected to a third-party virus detection system, and the various detection filters are used to implement the detection filter interface other functions including model detection, file detection, matter detection, file number detection, summary encryption detection, and virus detection.

[0031] Specifically, the multiple detection filters include model detection filters, file detection filters, matter detection filters, file number detection filters, digest encryption detection filters and virus detection filters. The model detection filter reads different detection request data according to the requirements of the model configuration, calls the script detection filter to initialize the script detection instance, and implements the data specification defined by the model by executing the script detection instance. The file detection filter detects whether the file type data in the request data meets the data specification defined by the file configuration according to the file configuration requirements. The matter detection filter detects whether the matter data in the request data meets the data specification defined by the matter configuration according to the matter configuration requirements. The file number detection filter detects whether the file number data in the request data meets the data specification defined by the file number configuration according to the file number configuration requirements. The multiple detection filters also include a digest encryption detection filter and a virus detection filter for implementing digest encryption detection and virus detection. The digest encryption detection filter detects whether the digest encryption of the request data meets the data specification defined by the digest encryption configuration according to the digest encryption configuration requirements. The virus detection filter calls the virus detection library to detect whether the request data contains viruses according to the virus detection configuration requirements.

[0032] The electronic document archive detection method of government affairs based on the above system includes the following steps:

[0033] Step S1, instantiate the detection filter configuration adapter, initialize the model configuration, file configuration, event configuration, file number configuration, summary encryption configuration, virus configuration and other configurations.

[0034] Step S2: instantiate and archive detection request data, and initialize request data.

[0035] Step S3: instantiate and archive the test result data, and initialize the result data.

[0036] Step S4: Instantiate the detection manager, initialize the detection filter chain proxy instance and all detection filter instances, and add the filters to the detection filter chain set in sequence.

[0037] Step S5: Set the detection configuration instance, the detection request data instance, and the detection result data instance to the detection manager instance.

[0038] Step S6: Call the execution detection method of the detection manager instance to detect the request data.

[0039] Step S7: call the get test result method of the test result instance to obtain the test result content.

[0040] Specifically, the model detection filter is used to detect the integrity and availability of metadata. Its implementation principle is as follows: Figure 2As shown. Before detecting data, first configure the metadata elements to be detected in the configuration. The metadata elements include attributes such as name, field, required, and format. The configured metadata elements are grouped according to the business to form a configuration information model, a basic information model, and a process information model (elements and models can be dynamically expanded according to the business). When the model detection filter is initialized, the models in the configuration are read in sequence, and the script detection filter is instantiated according to the metadata elements configured in the model (the script detection filter calls the predefined format detection script in the script library according to the format attributes of the elements passed during initialization), and then the script detection filter instance is saved to the detection chain of different businesses of the model detection filter. When executing the detection, the detection method of the script detection filter instance in the chain is executed in sequence according to the business detection chain. In this method, the value of the field in the business data corresponding to the request data is obtained according to the field attributes of the metadata elements at the time of initialization. If the value is not read, it is determined whether the value can be empty according to the required attributes of the metadata elements. If it cannot be empty, a detection record of the name detection failure of the metadata element and the empty value is added to the detection result. If it can be empty, the detection of this metadata element is skipped. If a value is read, the format detection script at initialization is executed to detect the length, type and regular expression of the value. If the detection is successful, a record of successful name detection of the metadata element is added to the detection result. If the detection fails, a detection record of failed name detection of the metadata element and the reason for failure is added to the detection result. Finally, the field is marked as detected. After the business detection link is executed, the model detection filter instance verifies whether there are any undetected fields in the corresponding business request data. If so, all these fields are judged as detection failures, and a data detection failure record that exceeds the detection requirement range is added to the detection result. If not, no operation is performed. After all detection business chains are processed, the detection results are judged. If there are no failure records, the model detection is marked as passed. If there are failure records, the model detection is marked as failed. In this way, the model detection filter verifies whether the archived metadata is complete as predefined and whether the data format content is available and meets the specifications.

[0041] The file detection filter is used to detect the integrity and availability of file data. Its implementation principle is as follows: Figure 3As shown. Before detection, first configure the file data elements to be detected in the configuration. The file data elements include attributes such as name, field, required, format, and file size. The configured file data elements are grouped by business to form multiple file information models (elements and models can be dynamically expanded according to the business). The file data of the archive request detection data consists of two parts: file information data and electronic file data. The file information data includes name, field, electronic file address and file summary encryption. Electronic file data refers to the file entity in the cloud storage, which can be downloaded to the local through the electronic file address. When the file detection filter is initialized, the corresponding file information model is retrieved according to the detection business. When executing the detection, the file data elements in the initialization model are read in turn, and the file information data is taken out according to the file data element system attributes. If the file information is not read, it is determined whether the file can be empty according to the required attributes of the file data element. If it cannot be empty, a detection record of the name detection failure of the file data element and the empty file information will be added to the detection result. If it can be empty, the detection of this file data element will be skipped. If the file information is read, the electronic file data is downloaded to the local computer according to the electronic file address. If the download cannot be made or the download fails, a detection record of the failure to detect the name of the file data element and the failure to download the electronic file is added to the detection result. If the download is successful, the file summary is first encrypted to obtain the encrypted value of the file and compare it with the encrypted value of the file information. If the encrypted values ​​are different, a detection record of the failure to detect the name of the file data element and the mismatch of the file summary encryption is added to the detection result. If the encrypted values ​​are consistent, determine whether the file format matches the format attributes of the file data element. If not, a detection record of the failure to detect the name of the file data element and the mismatch of the file format is added to the detection result. If the format matches, determine whether the file size exceeds the file size attribute of the file data element. If it exceeds, a detection record of the failure to detect the name of the file data element and the file exceeds the file size attribute of the file data element is added to the detection result. If it does not exceed, do nothing. Finally, mark the file information as detected. After all file data element detection is completed, the file detection filter instance verifies whether there is any undetected file information in the request data. If so, all these fields are judged as detection failures, and a detection failure record of the file exceeding the detection requirement range is added to the detection result. If not, no operation is performed. Finally, the detection result is judged. If there is no failure record, the file detection is marked as passed. If there is a failure record, the file detection is marked as failed. In this way, the file detection filter verifies whether the archive file data is complete as predefined and whether the file format content is available and meets the specifications.

[0042] The matter detection filter is used to detect authenticity. When the matter detection filter is initialized, the corresponding matter information is retrieved according to the detection business. The matter information includes the matter name, code, main item, sub-item, type, region, department, matter version, tolerance, matter material and other attributes. When executing the test, the configuration metadata in the request data is read to match the matter information at the time of initialization one by one. If the match fails, an attribute detection failure is added to the test result, and the detection record of the attribute mismatch is added. If the match is successful, a detection record of the attribute detection success is added to the test result. After all attribute detections are completed, the test results are judged. If there is no failure record, the matter detection is marked as passed. If there is a failure record, the matter detection is marked as failed. The authenticity of the configuration information of the archived metadata is thus verified through the detection filter.

[0043] The file number detection filter is used to detect authenticity. When the file number detection filter is initialized, the corresponding file number information is retrieved according to the detection business. When the file number is generated, the file number information is generated according to the basic information data of the archive metadata. The file number information includes attributes such as archiving time, department name, counterparty, counterparty contact information, certificate, completion time, business serial number, case type, and case result. When executing the test, the basic information metadata in the request data is read and matched one by one with the archive information at the time of initialization. If the match fails, an attribute detection failure is added to the test result, and the detection record of the attribute mismatch is added to the test result. If the match succeeds, a detection record of successful attribute detection is added to the test result. After all attribute detections are completed, the detection results are judged. If there is no failure record, the event detection is marked as passed. If there is a failure record, the file number detection is marked as failed. In this way, the authenticity of the basic information of the archive metadata is verified through the file number detection filter.

[0044] The digest encryption detection filter is used to detect the integrity and availability of archive package files. When performing the detection, it determines whether the archive package file digest encryption value is consistent with the archive data encryption value.

[0045] The virus detection filter is used to detect the security of archived data. When performing the detection, the virus detection library is called to perform virus detection on the archived data to detect whether the data contains viruses.

[0046] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0047] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0048] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0049] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0050] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. A government affairs electronic document archive detection system, characterized in that: It includes a detection filter interface, a detection filter configuration interface, a detection filter link interface, a detection request data interface, a detection result data interface, a detection filter configuration adapter, a detection filter chain proxy module, an archive detection request data module, an archive detection result data module, a detection manager, a script library, a script detection filter, and a variety of detection filters for implementing model detection, file detection, matter detection, and file number detection; the detection filter interface is a functional interface for defining initialization and executing detection, the detection filter configuration interface is a functional interface for defining acquisition of configuration and configuration type, the detection filter chain interface is a functional interface for defining initialization and execution of the detection filter chain, the detection request data interface is a functional interface for defining initialization and reading data, and the detection result data interface is a functional interface for defining saving result data and obtaining result data; the detection filter configuration adapter is used to implement the detection filter configuration interface, and initializes various configuration functions including model configuration, file configuration, matter configuration, and file number configuration; the detection filter chain proxy module is used to implement the detection filter chain Interface, initialize the detection filter chain set, add filters that implement the detection filter interface by adding detection filters, and execute the detection filters in the set in sequence to detect request data; the archive detection request data module is used to implement the detection request data interface, initialize the detection request data, and read the request data; the archive detection result data module is used to implement the detection result data interface, initialize the result data object, and save the detection result; the detection manager is used to provide settings for detection filter configuration, archive detection request data and archive detection result data, initialize the detection filter chain proxy instance and all detection filter instances, add filters to the detection filter chain set in sequence, and call the execution detection function of the detection filter chain to detect request data; the script library is used to store predefined detection scripts, and the script detection filter is used to implement the detection filter interface function. According to the initialization requirements, the detection script of the script library is called to detect the request data. The multiple detection filters are used to implement other functions of the detection filter interface including model detection, file detection, matter detection, and file number detection; The multiple detection filters include a model detection filter, a file detection filter, an event detection filter and a file number detection filter. The model detection filter reads different detection request data according to the requirements of the model configuration, calls the script detection filter to initialize the script detection instance, and implements the data specification defined by the model by executing the script detection instance; the file detection filter detects whether the file type data in the request data meets the data specification defined by the file configuration according to the file configuration requirements; the event detection filter detects whether the event data in the request data meets the data specification defined by the event configuration according to the event configuration requirements; the file number detection filter detects whether the file number data in the request data meets the data specification defined by the file number configuration according to the file number configuration requirements; The model detection filter is used to detect the integrity and availability of metadata; Before detecting data, first configure the metadata elements to be detected. The metadata elements include name, field, required, and format attributes. The configured metadata elements are grouped by business to form a configuration information model, a basic information model, and a process information model. When the model detection filter is initialized, the models in the configuration are read in sequence, and the script detection filter is instantiated according to the metadata elements configured in the model. Then, the script detection filter instance is saved in the detection chain of different businesses of the model detection filter. When performing detection, the detection method of the script detection filter instance in the chain is executed in sequence according to the business detection chain. In this method, the value of the field in the business data corresponding to the request data is obtained according to the field attribute of the metadata element at the time of initialization. If the value is not read, it is determined whether the value can be empty according to the required attribute of the metadata element. If it cannot be empty, a detection record that the name detection of the metadata element fails and the value is empty is added to the detection result. If it can be empty, the detection of this metadata element is skipped. If a value is read, the format detection script at initialization is executed to detect the length, type and regular expression of the value. If the detection is successful, a record of successful name detection of the metadata element is added to the detection result. If the detection fails, a detection record of failed name detection of the metadata element and the reason for failure is added to the detection result. Finally, the field is marked as detected. After the business detection link is executed, the model detection filter instance verifies whether there are any undetected fields in the corresponding business request data. If so, all these fields are judged as detection failures, and a data detection failure record that exceeds the detection requirement range is added to the detection result. If not, no operation is performed. After all detection business chains are processed, the detection results are judged. If there are no failure records, the model detection is marked as passed. If there are failure records, the model detection is marked as failed. In this way, the model detection filter verifies whether the archived metadata is complete as predefined and whether the data format content is available and meets the specifications. The file detection filter is used to detect the integrity and availability of file data; Before detection, first configure the file data elements to be detected in the configuration. The file data elements include name, field, required, format, and file size attributes. The configured file data elements are grouped by business to form multiple file information models; the file data of the archive request detection data consists of two parts: file information data and electronic file data. The file information data includes name, field, electronic file address and file summary encryption. Electronic file data refers to the file entity in the cloud storage and can be downloaded to the local through the electronic file address; when the file detection filter is initialized, the corresponding file information model is retrieved according to the detection business; when executing the detection, the file data in the initialization model are read in sequence According to the element, the file information data is retrieved according to the file data element system attributes. If the file information is not read, determine whether the file can be empty according to the required attributes of the file data element. If it cannot be empty, add a detection record that the name detection of the file data element failed and the file information is empty to the detection result. If it can be empty, skip the file data element detection. If the file information is read, download the electronic file data to the local according to the electronic file address. If it cannot be downloaded or the download fails, add a detection record that the name detection of the file data element failed and the electronic file download failed to the detection result. If the download is successful, first encrypt the file summary to obtain the file The encrypted value of the file is compared with the encrypted value of the file information. If the encrypted values ​​are different, a detection record of the name of the file data element failing to be detected and the file summary encryption mismatch is added to the detection result. If the encrypted values ​​are consistent, it is determined whether the file format matches the format attribute of the file data element. If not, a detection record of the name of the file data element failing to be detected and the file format mismatch is added to the detection result. If the format matches, it is obtained whether the file size exceeds the file size attribute of the file data element. If it exceeds, a detection record of the name of the file data element failing to be detected and the file exceeds the file size attribute of the file data element is added to the detection result. If the number of detected file elements is not exceeded, no operation is performed, and the file information is finally marked as detected. After all file data element detections are completed, the file detection filter instance verifies whether there is any undetected file information in the request data. If so, all these fields are judged as detection failures, and a detection failure record of the file exceeding the detection requirement range is added to the detection result. If not, no operation is performed. Finally, the detection result is judged. If there is no failure record, the file detection is marked as passed. If there is a failure record, the file detection is marked as failed. Thus, the file detection filter verifies whether the archived file data is complete as predefined and whether the file format content is available and meets the specifications. The item detection filter is used to detect authenticity. When the item detection filter is initialized, the corresponding item information is retrieved according to the detection business. The item information includes the item name, code, main item, sub-item, type, region, department, item version, tolerance, and item material attributes. When executing the detection, the configuration metadata in the request data is read to match the item information at the time of initialization one by one. If the match fails, an attribute detection failure is added to the detection result, and the detection record of the attribute mismatch is added. If the match succeeds, a detection record of the attribute detection success is added to the detection result. After all attribute detections are completed, the detection results are judged. If there is no failure record, the item detection is marked as passed. If there is a failure record, the item detection is marked as failed. The authenticity of the configuration information of the archived metadata is verified through the detection filter. The file number detection filter is used to detect authenticity. When the file number detection filter is initialized, the corresponding file number information is retrieved according to the detection business. When the file number is generated, the file number is generated according to the basic information data of the archived metadata. The file number information includes the archiving time, department name, counterparty, counterparty contact information, certificate, completion time, business serial number, case type, and case result attributes; when executing the detection, the basic information metadata in the request data is read and matched one by one with the archived information at the time of initialization. If the match fails, an attribute detection failure is added to the detection result, and the detection record of the attribute mismatch is added. If the match succeeds, a detection record of the attribute detection success is added to the detection result; after all attribute detections are completed, the detection result is judged. If there is no failure record, the matter detection is marked as passed. If there is a failure record, the file number detection is marked as failed; thereby verifying the authenticity of the basic information of the archived metadata through the file number detection filter.

2. According to claim 1, a government affairs electronic document archive detection system is characterized in that: The system is provided with a virus detection library for connecting to a third-party virus detection system. The multiple detection filters also include a digest encryption detection filter and a virus detection filter for implementing digest encryption detection and virus detection; the digest encryption detection filter detects whether the digest encryption of the request data complies with the data specification defined by the digest encryption configuration according to the digest encryption configuration requirements; the virus detection filter calls the virus detection library to detect whether the request data contains viruses according to the virus detection configuration requirements.

3. A government affairs electronic document archive detection system according to claim 2, characterized in that: The digest encryption detection filter is used to detect the integrity and availability of the archive package file, and when performing the detection, it is determined whether the archive package file digest encryption value is consistent with the archive data encryption value.

4. A government affairs electronic document archive detection system according to claim 2, characterized in that: The virus detection filter is used to detect the security of archived data. When performing the detection, the virus detection library is called to perform virus detection on the archived data to detect whether the data contains viruses.

5. A method for detecting electronic documents and archives of government affairs based on the system as claimed in any one of claims 1 to 4, characterized in that: The following steps are involved: Step S1, instantiate the detection filter configuration adapter and initialize the configuration; Step S2, instantiate and archive the detection request data, and initialize the request data; Step S3, instantiate and archive the test result data, and initialize the result data; Step S4, instantiate the detection manager, initialize the detection filter chain proxy instance and all detection filter instances, and add the filters to the detection filter chain set in sequence; Step S5: setting the detection configuration instance, the detection request data instance, and the detection result data instance to the detection manager instance; Step S6, calling the execution detection method of the detection manager instance to detect the request data; Step S7: call the get test result method of the test result instance to obtain the test result content.