Movatterモバイル変換


[0]ホーム

URL:


CN116126812B - Method and system for storing and integrating engineering industry files - Google Patents

Method and system for storing and integrating engineering industry files
Download PDF

Info

Publication number
CN116126812B
CN116126812BCN202310174680.8ACN202310174680ACN116126812BCN 116126812 BCN116126812 BCN 116126812BCN 202310174680 ACN202310174680 ACN 202310174680ACN 116126812 BCN116126812 BCN 116126812B
Authority
CN
China
Prior art keywords
file
communication software
files
engineering industry
storing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310174680.8A
Other languages
Chinese (zh)
Other versions
CN116126812A (en
Inventor
潘敏
徐润
杨溪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kaiyuan Digital Intelligence Engineering Consulting Group Co ltd
Original Assignee
Kaiyuan Digital Intelligence Engineering Consulting Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kaiyuan Digital Intelligence Engineering Consulting Group Co ltdfiledCriticalKaiyuan Digital Intelligence Engineering Consulting Group Co ltd
Priority to CN202310174680.8ApriorityCriticalpatent/CN116126812B/en
Publication of CN116126812ApublicationCriticalpatent/CN116126812A/en
Application grantedgrantedCritical
Publication of CN116126812BpublicationCriticalpatent/CN116126812B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a method and a system for storing and integrating engineering industry files, wherein the method comprises the following steps: acquiring a NAS (network attached storage) based on communication software, namely a file and a directory stored in a network storage server, and packaging the NAS into a JSON object; and the third party system acquires corresponding file and directory paths from the communication software according to service requirements, returns JSON data and performs analysis, display, association and storage. The invention deploys communication software on the file server, reads the file catalogue through the communication software, and outputs the file catalogue in a JSON format, thereby being used as a bridge of a third party system. And the third party system communicates with the file server through the communication software to realize file reading, and meanwhile, operation habits such as file localized access, addition and deletion are reserved.

Description

Method and system for storing and integrating engineering industry files
Technical Field
The invention relates to the technical field of engineering file processing, in particular to a method and a system for storing and integrating files in engineering industry.
Background
At present, the engineering industry documents have the characteristics of multiple types, multiple numbers, large documents, low use frequency and the like. The project is scattered, the file is uploaded, and the searching and the use are difficult. Various third party systems such as business, office and the like also need file uploading, so that the files are stored in a scattered mode, management is complex, and archiving is inconvenient.
The professional storage file equipment NAS (Network Attached Storage, network access server/network storage server) can solve the centralized storage and search of files, but if the professional storage file equipment NAS is integrated with a third-party system of a company, different systems are required to be customized and developed, the integration threshold is high, and the professional storage file equipment NAS has no universality.
Although the searching and using speed of the documents is faster through the Windows interface and the directory mode, and the documents are more in line with the habit of the user, if Windows is adopted as the file storage device directly, the documents cannot be integrated with the third party system or the cost is high due to the fact that the corresponding API interface is not available.
Disclosure of Invention
In order to solve the problems, the invention provides a method and a system for storing and integrating files in engineering industry, which are characterized in that communication software is deployed on a file server, a file directory is read through the communication software, and the file directory is output in a JSON format, so that the communication software is used as a bridge of a third party system. And the third party system communicates with the file server through the communication software to realize file reading, and meanwhile, operation habits such as file localization (local area network) access, addition and deletion are reserved.
The technical scheme adopted by the invention is as follows:
a method of engineering industry file storage and integration, comprising:
reading a file: acquiring a NAS (network attached storage) based on communication software, namely a file and a directory stored in a network storage server, and packaging the NAS into a JSON object;
file integration: and the third party system acquires corresponding file and directory paths from the communication software according to service requirements, returns JSON data and performs analysis, display, association and storage.
Further, the file reading comprises the following sub-steps:
s101, communication software accesses a Servlet interface of a network storage server and generates a secret key;
s102, comparing the generated secret key with the secret key brought by the URL, and if the comparison is consistent, executing the next step; otherwise, the access is not authorized;
s103, acquiring files and catalogs stored in the network storage server through the File object, and packaging the files and the catalogs into the JSON object.
Further, the file reading is developed based on a security access policy, wherein the security access policy comprises a security access policy based on an IP white list and an encryption policy based on an MD5 message digest algorithm.
Further, the security access policy based on the IP whitelist includes: and the third party system sets a trust list, and requests from IP addresses in the trust list are all passed.
Further, the encryption policy based on the MD5 message digest algorithm includes: the third party system generates a salted MD5 string, the salted MD5 string is transmitted into communication software through a URL, the communication software generates the MD5 string according to the same rule, and access is allowed if the salted MD5 string and the communication software are equal to each other, otherwise, the access is failed.
Further, the method for generating the salt value in the encryption strategy based on the MD5 message digest algorithm comprises the following steps: a 32-bit random number is generated per hour and put into a remote dictionary service Redis for integrated sharing of third party systems and communication software.
Further, a non-ROOT user is created in the network storage server for file reading of the communication software, the user only having the right to access the files and directories required by the application.
Further, before the file is read, the network storage server configures a directory which is forbidden to be read, and performs forbidden access setting on the directory which cannot be checked externally.
Further, the file integration includes the steps of:
s201, a service system server accesses communication software through an HttpClient tool to acquire a file and a directory path corresponding to service requirements and returns JSON data;
s202, analyzing the JSON data, and displaying, correlating and storing the analyzed file.
The engineering industry file storage and integration system comprises a memory and a processor, wherein the memory stores communication software, and the processor realizes the engineering industry file storage and integration method when running the communication software.
The invention has the beneficial effects that:
(1) The engineering industry file storage and integration system provided by the invention can enable the third party system and the network storage server to be independent of each other, and are not mutually interfered and destroyed.
(2) If the third party system needs to integrate NAS files, the third party system directly accesses an http interface address (the address is listed as a document and a subordinate directory of the NAS) provided by communication software, and associates the documents or the directories.
(3) If the third party system needs to check the file, the associated directory is directly opened, or the associated directory is copied to the computer to perform localized access of the file.
(4) The invention fully utilizes the characteristics of NAS mass storage, localized deployment, full file search, document compatibility opening and the like, and has low cost and simple and convenient integration into a third-party system.
(5) The communication software in the invention can be directly used in a file server based on Windows besides NAS storage equipment as a connecting bridge of the file and a third party system, so that the low-frequency storage and integration problems of large files in engineering industry can be solved with lower cost.
Drawings
Fig. 1 is an API-based integration pattern diagram.
FIG. 2 is a NAS device file storage example.
FIG. 3 is a schematic diagram of a method for engineering industry file storage and integration in accordance with an embodiment of the present invention.
FIG. 4 is a flow chart of file reading according to an embodiment of the present invention.
FIG. 5 is a flow chart of file integration according to an embodiment of the present invention.
Detailed Description
Specific embodiments of the present invention will now be described in order to provide a clearer understanding of the technical features, objects and effects of the present invention. It should be understood that the particular embodiments described herein are illustrative only and are not intended to limit the invention, i.e., the embodiments described are merely some, but not all, of the embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
Example 1
NAS (Network Attached Storage, network access server/network storage server) is a specialized document storage device that is inexpensive and simple to operate. As a storage product, the NAS provides an API interface of OAuth2.0 specification, and a third party system can secondarily develop through the interface to realize the operation of files and catalogs so as to form a document calling mode shown in figure 1.
However, this mode has the following problems: 1. the integration threshold is high; 2. the technology support available for domestic development is limited; 3. deep coupling with third party systems is detrimental to decoupling or replacement of storage schemes. In practice, therefore, the NAS exists as a standalone storage device, in isolation from third party systems.
The use of directly using a Windows server as file storage is also common, and the integration of the file storage and a service system is not completed because of no API interface.
The mainstream NAS devices are Linux operating systems, and files of the mainstream NAS devices all adopt a directory storage mode similar to that of a Windows operating system, as shown in fig. 2. The file storage format has the following characteristics: 1. the operating style is consistent with Windows; 2. the file name or the directory is in a plaintext form, is not coded, and can be directly operated on by using development technology.
Based on this, as shown in fig. 3, the present embodiment provides a method for storing and integrating engineering industry files, including:
reading a file: acquiring a NAS (network attached storage) based on communication software, namely a file and a directory stored in a network storage server, and packaging the NAS into a JSON object;
file integration: and the third party system acquires corresponding file and directory paths from the communication software according to service requirements, returns JSON data and performs analysis, display, association and storage.
The file reading can be performed in any language, and Java development technology is preferable in view of portability and platform independence of the system.
Preferably, as shown in fig. 4, the file reading includes the following sub-steps:
s101, communication software accesses a Servlet interface of a network storage server and generates a secret key;
s102, comparing the generated secret key with the secret key brought by the URL, and if the comparison is consistent, executing the next step; otherwise, the access is not authorized;
s103, acquiring files and catalogs stored in the network storage server through the File object, and packaging the files and the catalogs into the JSON object.
The following points need to be noted in file reading:
the key point 1 is as follows: the directory that prohibits reading needs to be configured: and performing forbidden and prevented setting on the catalogue which cannot be externally checked. A function is developed defining a directory to which access is prohibited.
And (2) the key points are as follows: java language development and Tomcat deployed system architecture are recommended.
And (3) the key points are as follows: the interface data is saved in JSON format, where JSON format is as follows:
[ { "name": "File name 1", "length": "File number 1", "url": "File Path 1" },
{ "name": "File name 2", "length": "File number 2", "url": "File Path 2" },
{ "name": "File name 3", "length": "File number 3", "url": "File Path 3" })
To increase the security of file reading, this embodiment provides two security access policies:
(1) Security access policy based on IP whitelist: the third party system sets a credit list, and requests from IP addresses in the credit list are all passed.
(2) Encryption policy based on MD5 message digest algorithm: the third party system generates a salted MD5 string, the salted MD5 string is transmitted into communication software through a URL, the communication software generates the MD5 string according to the same rule, and access is allowed if the salted MD5 string and the communication software are equal to each other, otherwise, the access is failed. The salt value generating method can be as follows: a 32-bit random number (the key value rule is that the time of year, month and day is the number of the 32-bit random number) is generated every hour and put into a remote dictionary service Redis for integrated sharing of a third party system and communication software.
Since the files in the hard disk are directly read, security of the network storage server needs to be considered. Preferably, a non-ROOT user is created in the network storage server for file reading of the communication software, the user having only the rights to access the files and directories required by the application.
Preferably, as shown in fig. 5, the file integration includes the steps of:
s201, a service system server accesses communication software through an HttpClient tool to acquire a file and a directory path corresponding to service requirements and returns JSON data;
s202, analyzing the JSON data, and displaying, correlating and storing the analyzed file.
More preferably, the present embodiment provides two file display modes:
(1) Client side display in local area network: copying the whole path of the bound file in a third party system, pasting the copied path on the address bar of the my computer, and enabling the user to quickly open the file or enter the file directory by returning.
(2) And (3) displaying by a Web terminal: the file is opened directly (consistent with a traditional online preview file) based on the interface address of the communication software.
Example 2
This example is based on example 1:
an engineering industry file storage and integration system comprises a memory and a processor, wherein the memory stores communication software, and the processor realizes the engineering industry file storage and integration method of the embodiment 1 when the communication software is operated. The communication software may be in the form of source code, object code, executable files, some intermediate form, or the like.
The foregoing is merely a preferred embodiment of the invention, and it is to be understood that the invention is not limited to the form disclosed herein but is not to be construed as excluding other embodiments, but is capable of numerous other combinations, modifications and environments and is capable of modifications within the scope of the inventive concept, either as taught or as a matter of routine skill or knowledge in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (8)

CN202310174680.8A2023-02-272023-02-27Method and system for storing and integrating engineering industry filesActiveCN116126812B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310174680.8ACN116126812B (en)2023-02-272023-02-27Method and system for storing and integrating engineering industry files

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310174680.8ACN116126812B (en)2023-02-272023-02-27Method and system for storing and integrating engineering industry files

Publications (2)

Publication NumberPublication Date
CN116126812A CN116126812A (en)2023-05-16
CN116126812Btrue CN116126812B (en)2024-02-23

Family

ID=86297460

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310174680.8AActiveCN116126812B (en)2023-02-272023-02-27Method and system for storing and integrating engineering industry files

Country Status (1)

CountryLink
CN (1)CN116126812B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104283960A (en)*2014-10-152015-01-14福建亿榕信息技术有限公司System for achieving heterogeneous network storage virtualization integration and hierarchical management
CN104539659A (en)*2014-12-092015-04-22华迪计算机集团有限公司Multi-user-file exchange and sharing method and device based on NAS
CN104980401A (en)*2014-04-092015-10-14北京亿赛通科技发展有限责任公司Secure data storage system and secure data storage and reading method of NAS server
CN106406765A (en)*2016-09-222017-02-15江苏赞奇科技股份有限公司A file link-based heterogeneous distributed storage system and file management method
CN107566533A (en)*2017-10-262018-01-09南威软件股份有限公司A kind of intranet and extranet shared file system realized based on NAS
CN108028833A (en)*2015-12-302018-05-11华为技术有限公司A kind of method, system and the relevant device of NAS data accesses
CN109408487A (en)*2018-11-012019-03-01郑州云海信息技术有限公司Document handling system and method under a kind of NAS file system
US10419537B1 (en)*2016-03-242019-09-17EMC IP Holding Company LLCArchitecture for a converged compute and file system within network-attached storage clusters
CN112019566A (en)*2020-09-252020-12-01中国农业银行股份有限公司Data transmission method, server, client and computer storage medium
CN115189956A (en)*2022-07-182022-10-14中原银行股份有限公司File security sharing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7873700B2 (en)*2002-08-092011-01-18Netapp, Inc.Multi-protocol storage appliance that provides integrated support for file and block access protocols
JP4320195B2 (en)*2003-03-192009-08-26株式会社日立製作所 File storage service system, file management apparatus, file management method, ID designation type NAS server, and file reading method
US10664447B2 (en)*2016-07-122020-05-26Commvault Systems, Inc.Dynamic management of expandable cache storage for multiple network shares configured in a file server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104980401A (en)*2014-04-092015-10-14北京亿赛通科技发展有限责任公司Secure data storage system and secure data storage and reading method of NAS server
CN104283960A (en)*2014-10-152015-01-14福建亿榕信息技术有限公司System for achieving heterogeneous network storage virtualization integration and hierarchical management
CN104539659A (en)*2014-12-092015-04-22华迪计算机集团有限公司Multi-user-file exchange and sharing method and device based on NAS
CN108028833A (en)*2015-12-302018-05-11华为技术有限公司A kind of method, system and the relevant device of NAS data accesses
US10419537B1 (en)*2016-03-242019-09-17EMC IP Holding Company LLCArchitecture for a converged compute and file system within network-attached storage clusters
CN106406765A (en)*2016-09-222017-02-15江苏赞奇科技股份有限公司A file link-based heterogeneous distributed storage system and file management method
CN107566533A (en)*2017-10-262018-01-09南威软件股份有限公司A kind of intranet and extranet shared file system realized based on NAS
CN109408487A (en)*2018-11-012019-03-01郑州云海信息技术有限公司Document handling system and method under a kind of NAS file system
CN112019566A (en)*2020-09-252020-12-01中国农业银行股份有限公司Data transmission method, server, client and computer storage medium
CN115189956A (en)*2022-07-182022-10-14中原银行股份有限公司File security sharing method

Also Published As

Publication numberPublication date
CN116126812A (en)2023-05-16

Similar Documents

PublicationPublication DateTitle
JP7532364B2 (en) SYSTEM AND METHOD FOR EFFICIENT AND SECURE PROCESSING, ACCESSING, AND TRANSMITTING DATA VIA A BLOCKCHAIN NETWORK
US9262643B2 (en)Encrypting files within a cloud computing environment
US9396208B2 (en)Selecting storage cloud for storage of entity files from plurality of storage clouds
US8977661B2 (en)System, method and computer readable medium for file management
US7730033B2 (en)Mechanism for exposing shadow copies in a networked environment
JP4876734B2 (en) Document use management system and method, document management server and program thereof
EP3133507A1 (en)Context-based data classification
JP5575071B2 (en) Information processing apparatus, information processing method, and program
US20140019497A1 (en)Modification of files within a cloud computing environment
US7840750B2 (en)Electrical transmission system in secret environment between virtual disks and electrical transmission method thereof
TW202232312A (en)Nuts: encrypted userdata transit and storage
US9043218B2 (en)Rule compliance using a configuration database
CN101320377A (en) Method and System for Constructing Web Application Program
CN110363017A (en)Mix the data safety sharing method and system based on client encryption under cloud environment
CN105095785A (en)File access processing method, and file access method and device of distributed file system
Chandra et al.Separating Web Applications from User Data Storage with {BSTORE}
CN116126812B (en)Method and system for storing and integrating engineering industry files
CN113961912A (en) Android software package automatic encryption and decryption method, device, device and storage medium
JP4807289B2 (en) Information processing apparatus, file processing method, and program
Badertscher et al.Composable and robust outsourced storage
CN116541347A (en)Method and device for obtaining document cognition and computing equipment
CN111352910B (en) A method and device for online preview of data
JP4691892B2 (en) Information processing apparatus, file management method, and program
US11824842B2 (en)Computer method for secure disclosure of information
JP2015207140A (en)Information leakage prevention system and information leakage prevention method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp