CN105653363A - Interface function realization method and apparatus - Google Patents
Interface function realization method and apparatus Download PDFInfo
- Publication number
- CN105653363A CN105653363A CN201511001165.1A CN201511001165A CN105653363A CN 105653363 A CN105653363 A CN 105653363A CN 201511001165 A CN201511001165 A CN 201511001165A CN 105653363 A CN105653363 A CN 105653363A
- Authority
- CN
- China
- Prior art keywords
- interface
- function
- document
- module
- processing software
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Abstract
The invention provides an interface function realization method and apparatus. The method comprises the steps of previously packaging function interfaces of different document processing software in an interface module; after a function interface calling instruction sent by a user is received, judging a document processing software product by the interface module through a JS function; and according to the document processing software product, calling a function interface corresponding to the document processing software product in the interface module. The function interfaces of the different document processing software are packaged in the interface module, so that a system developer does not need to communicate with a document processing software developer for interface adaptation and the problem of complicated adaptation performed by different document processing software products due to different function interface implementations is solved; and a unified calling function of the function interfaces of the different document processing software is finished in a way of direct calling or combined calling of the function interfaces packaged in the interface module and provided by the document processing software, so that the user can finish the calling of the function interfaces without the need for installing other plug-ins and the document processing efficiency is improved.
Description
Technical field
The present invention relates to data processing field, particularly relate to a kind of interface functional realiey method and device.
Background technology
Office system or other application systems have the demand of process document. At present, country, carrying forward vigorously office production domesticization, namely carries domestic operating system on domestic hardware, installs domestic office software, and unified the name of document interface. In system development process, in order to the interface of adaptive documents in various formats in systems in which, system development side and Document processing software exploitation box drain is needed to lead to the demand of oneself, function interface is provided to realize interface function by Document processing software exploitation side, or the problem of system development side's research and development burden that realizes interface function by system development side oneself programming, there is construction cycle length, increases. Especially, when allowing the document embedding different-format in system, the problems referred to above highlight more.
Summary of the invention
It is an object of the invention to provide a kind of interface functional realiey method and device, it is intended to solve the problem that the Document processing software function interface interchange inconvenience of different-format is not high with document process efficiency.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of interface functional realiey method, comprising:
Receiving the function instruction that user sends, the function of described function command request is by function Interface realization, and multiple function interface encapsulation is in interface module;
Call JS function, for judging the Document processing software product that current document uses;
Call function interface corresponding with described Document processing software product in described interface module, for realizing the function of described function command request.
On this basis, further, described function interface comprises standard interface and self defined interface, wherein,
Described standard interface is the function interface directly called;
Described self defined interface is the function interface that described standard interface is called in combination.
On the basis of above-mentioned any embodiment, further, the function of the function command request that described user sends for preserve time, described in call function interface corresponding with described Document processing software product in described interface module, after realizing the functional steps of described function command request, also comprise:
Data transmittal and routing form according to described Document processing software, preserves described current document.
On this basis, further, described data form is: data stream or data packet.
On the basis of above-mentioned any embodiment, further, described the step that described current document preserves is comprised:
The document content of described current document and document information are separately preserved, described document information at least comprises the preservation path of described document content.
On this basis, further, also comprise:
Receive the reading command that user sends;
Call read functions interface, for according to the described preservation path in described document information, reading described document content.
On the basis of above-mentioned any embodiment, further, described the step that described current document preserves is comprised:
According to encryption algorithm, by described document content encrypting storing.
On this basis, further, described encryption algorithm is circulation encryption algorithm.
A kind of interface functional realiey device, comprising:
Receiver module, for receiving the function instruction that user sends, the function of described function command request is by function Interface realization, and multiple function interface encapsulation is in interface module;
Form judges module, for calling JS function, for judging the Document processing software product that current document uses;
Function interface interchange module, for calling function interface corresponding with described Document processing software product in described interface module, for realizing the function of described function command request.
On this basis, further, also comprise:
Background processing module, for the data transmittal and routing form according to described Document processing software, preserves described current document.
On this basis, further, described background processing module comprises:
Preserve module, for the document content of described current document and document information separately being preserved, described document information at least comprises the preservation path of described document content.
On this basis, further, described background processing module also comprises:
Read module, for receiving the reading command that user sends;
Call read functions interface, for according to the described preservation path in described document information, reading described document content.
On the basis of above-mentioned any embodiment, further, described background processing module comprises:
Encryption module, for according to encryption algorithm, by described document content encrypting storing.
The invention has the beneficial effects as follows:
The present invention provides a kind of interface functional realiey method and device, in advance by the function interface encapsulation of different document process software in interface module, after the instruction receiving the calling function interface that user sends, call the Document processing software product that JS function uses to judge current document, function interface corresponding with Document processing software product in interface module is called, to realize interface function according to Document processing software product. By the function interface encapsulation of different Document processing software in an interface module, do not need system development side to go to develop box drain with Document processing software more logical, adaptive, solve different document process software product and cause again adaptive problem because function Interface realization is different; The mode calling the function interface being encapsulated in interface module that Document processing software provides by directly calling or combine is to complete the unified call function to different document process software interface, do not need user that other plug-in unit is installed again and can complete calling of function interface, convenient for users to use, it is to increase the efficiency of document process.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the present invention is further described.
Fig. 1 is the function connection interface of a kind of Document processing software.
Fig. 2 is the schema of a kind of interface functional realiey method that the embodiment of the present invention provides.
In figure, 1. function interface, 2. creates interface, 3. preserves interface, 4. inserts interface, 5. cancels interface, 6. document content input frame; S101. receiving step, S102. form determining step, S103. function interface interchange step.
Embodiment
In order to make the object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated. It is to be understood that specific embodiment described herein is only in order to explain the present invention, it is not intended to limit the present invention.
Fig. 1 shows the function connection interface of a kind of Document processing software, and the documents button such as " establishment ", " preservation ", " insertion ", " cancelling " is the function interface realizing various documents editing function that Document processing software provides. Use these function interfaces, it is possible to process document in systems in which. The unification of the motherland call of function interface, such as, realize preserving the equal called after of the interface " preservation " of this function.
Fig. 2 shows the schema of a kind of interface functional realiey method that the embodiment of the present invention provides.
In S101, receiving the function instruction that user sends, the function of function command request is by function Interface realization, and multiple function interface encapsulation is in interface module.
In S102, call JS function, for judging the Document processing software product that current document uses.
In S103, call function interface corresponding with Document processing software product in interface module, for the function of practical function command request.
For " preservation " this function interface, " preservation " function module that Kingsoft WPS provides and " preservation " function module package that Yongzhong office provides are in " preservation " interface of interface module. When the function of the function command request that user sends in WPS word is for preserving, interface module receives " preservation " instruction, call JS function, judge the process software product that current document uses, i.e. WPS word processor, call " preservation " interface corresponding with WPS word processor in interface module afterwards, complete hold function, the automatic physics file cryptographic storage in backstage.
Further, function interface comprises standard interface and self defined interface, and wherein, standard interface is the function interface directly called; Self defined interface is the function interface that standard interface is called in combination. That is, the function interface being integrated in interface module by directly calling that standard interface provides for Document processing software; Self defined interface for Document processing software provide by combination, to call standard interface integrated to the function interface in interface module. Such as " preservation " interface is a kind of standard interface that can directly call, and when the function of the function command request that user sends in WPS word is for preserving, by directly calling " preservation " interface corresponding with WPS word in interface module, completes hold function; Such as " adding and tilt " interface thick is that one can combine the self defined interface calling " adding thick " and " inclination " two standard interfaces, when the function command request that user sends in WPS word function for add thick and when tilting, called " adding thick " interface corresponding with WPS word in interface module and " inclination " interface by combination, complete to add function that is thick and that tilt.
On the basis of above-mentioned any embodiment, further, when the function of the function command request that user sends is for preserving, call function interface corresponding with Document processing software product in interface module, after functional steps for practical function command request, also comprise: according to the data transmittal and routing form of Document processing software, current document is preserved. The data transmittal and routing form of different document process software is different, it may be that data stream, it is also possible to data packet, data according to different data forms, can be processed by interface module.
On this basis, further, data transmittal and routing form is: data stream or data packet.
On the basis of above-mentioned any embodiment, further, the step that current document preserves is comprised: the document content of document and document information are separately preserved, document information at least comprises the preservation path of document content. Document is adopted separate type to store by interface module, and namely document content and document information preserve respectively, and when document is excessive, the mode that dispersion stores is more convenient and flexible.
On this basis, further, also comprise: receive the reading command that user sends; Call read functions interface, for according to the preservation path in document information, reading document content. After receiving the reading command that user sends, read document content according to the preservation path of document information, it is to increase the efficiency that document reads.
On the basis of above-mentioned any embodiment, further, the step that current document preserves is comprised: according to encryption algorithm, by document content encrypting storing. Preservation process adopts encryption algorithm, it is to increase the security of document storing.
On this basis, further, algorithm is encrypted for circulation encryption algorithm. Such as adopt circulation encryption algorithm, concrete: using front 10 bytes of document as seed, produce randomized number, this randomized number is for being encrypted these 10 bytes, and then read ensuing 10 bytes as seed, producing randomized number, these 10 bytes are encrypted by this randomized number, analogize with this.
On the basis of above-mentioned any embodiment, further, also comprise: receive the recovery instruction that user sends; Call restore funcitons interface, for according to recovery algorithms, recovering document content. After the instruction receiving the recovery encrypted document that user sends, according to recovery algorithms, recover the document content encrypted so that the document content of encryption is read.
On the basis of above-mentioned any embodiment, further, interface module can also provide " affixing one's seal " interface, for affixing one's seal for format document.
Present invention also offers a kind of interface functional realiey device, comprising: receiver module, for receiving the function instruction that user sends, the function of function command request is by function Interface realization, and multiple function interface encapsulation is in interface module; Form judges module, for calling JS function, for judging the Document processing software product that current document uses; Function interface interchange module, for calling function interface corresponding with Document processing software product in interface module, for the function of practical function command request. By the function interface encapsulation of different Document processing software in an interface module, do not need system development side to go to develop box drain with Document processing software more logical, adaptive, solve different document process software product and cause again adaptive problem because function Interface realization is different; The mode calling the function interface being encapsulated in interface module that Document processing software provides by directly calling or combine is to complete the unified call function to different document process software interface, do not need user that other plug-in unit is installed again and can complete calling of function interface, convenient for users to use, it is to increase the efficiency of document process.
On this basis, further, also comprise: background processing module, for the data transmittal and routing form according to Document processing software, current document is preserved.The data transmittal and routing form of different document process software is different, it may be that data stream, it is also possible to data packet, data according to different data forms, can be processed by interface module.
On this basis, further, background processing module comprises: preserve module, for the document content of current document and document information separately being preserved, at least comprises the preservation path of document content in document information. Document is adopted separate type to store by interface module, and namely document content and document information preserve respectively, and when document is excessive, the mode that dispersion stores is more convenient and flexible.
On this basis, further, background processing module also comprises: read module, for receiving the reading command that user sends; Call read functions interface, for according to the preservation path in document information, reading document content. After receiving the reading command that user sends, read document content according to the preservation path of document information, it is to increase the efficiency that document reads.
On the basis of above-mentioned any embodiment, further, background processing module comprises: encryption module, for according to encryption algorithm, by document content encrypting storing. Preservation process adopts encryption algorithm, it is to increase the security of document storing.
Although present invention has been description to a certain degree, it is evident that when not departing from the spirit and scope of the present invention, can carry out the suitable change of each condition. It can be appreciated that the invention is not restricted to described embodiment, and being attributed to the scope of claim, it comprises the equivalent replacement of each factor described.
Claims (13)
1. an interface functional realiey method, it is characterised in that, comprising:
Receiving the function instruction that user sends, the function of described function command request is by function Interface realization, and multiple function interface encapsulation is in interface module;
Call JS function, for judging the Document processing software product that current document uses;
Call function interface corresponding with described Document processing software product in described interface module, for realizing the function of described function command request.
2. interface functional realiey method according to claim 1, it is characterised in that, described function interface comprises standard interface and self defined interface, wherein,
Described standard interface is the function interface directly called;
Described self defined interface is the function interface that described standard interface is called in combination.
3. interface functional realiey method according to claim 1 and 2, it is characterized in that, when the function of the function command request that described user sends is for preserving, described call function interface corresponding with described Document processing software product in described interface module, after realizing the functional steps of described function command request, also comprise:
Data transmittal and routing form according to described Document processing software, preserves described current document.
4. interface functional realiey method according to claim 3, it is characterised in that, described data transmittal and routing form is: data stream or data packet.
5. interface functional realiey method according to claim 3, it is characterised in that, described the step that described current document preserves is comprised:
The document content of described current document and document information are separately preserved, described document information at least comprises the preservation path of described document content.
6. interface functional realiey method according to claim 5, it is characterised in that, also comprise:
Receive the reading command that user sends;
Call read functions interface, for according to the described preservation path in described document information, reading described document content.
7. interface functional realiey method according to claim 3, it is characterised in that, described the step that described current document preserves is comprised:
According to encryption algorithm, by described document content encrypting storing.
8. interface functional realiey method according to claim 7, it is characterised in that, described encryption algorithm is circulation encryption algorithm.
9. an interface functional realiey device, it is characterised in that, comprising:
Receiver module, for receiving the function instruction that user sends, the function of described function command request is by function Interface realization, and multiple function interface encapsulation is in interface module;
Form judges module, for calling JS function, for judging the Document processing software product that current document uses;
Function interface interchange module, for calling function interface corresponding with described Document processing software product in described interface module, for realizing the function of described function command request.
10. interface functional realiey device according to claim 9, it is characterised in that, also comprise:
Background processing module, for the data transmittal and routing form according to described Document processing software, preserves described current document.
11. interface functional realiey devices according to claim 10, it is characterised in that, described background processing module comprises:
Preserve module, for the document content of described current document and document information separately being preserved, described document information at least comprises the preservation path of described document content.
12. interface functional realiey devices according to claim 11, it is characterised in that, described background processing module also comprises:
Read module, for receiving the reading command that user sends;
Call read functions interface, for according to the described preservation path in described document information, reading described document content.
13. interface functional realiey devices according to claim 10, it is characterised in that, described background processing module comprises:
Encryption module, for according to encryption algorithm, by described document content encrypting storing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001165.1A CN105653363B (en) | 2015-12-28 | 2015-12-28 | A kind of interface function implementation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001165.1A CN105653363B (en) | 2015-12-28 | 2015-12-28 | A kind of interface function implementation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105653363A true CN105653363A (en) | 2016-06-08 |
CN105653363B CN105653363B (en) | 2018-10-26 |
Family
ID=56476959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511001165.1A Active CN105653363B (en) | 2015-12-28 | 2015-12-28 | A kind of interface function implementation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105653363B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888631A (en) * | 2016-09-28 | 2018-04-06 | 北京京东尚科信息技术有限公司 | A kind of interface interchange method and apparatus of configurable combination |
CN109710340A (en) * | 2019-01-18 | 2019-05-03 | 北京顺丰同城科技有限公司 | Software tool call method and device, software tool packaging method and device |
CN109828806A (en) * | 2018-12-24 | 2019-05-31 | 苏州蜗牛数字科技股份有限公司 | A kind of optimization method based on the customized diversified control combing of UI |
CN110673892A (en) * | 2019-09-17 | 2020-01-10 | 中电万维信息技术有限责任公司 | Interface unified calling method based on component configuration |
CN110750295A (en) * | 2019-09-30 | 2020-02-04 | 联想(北京)有限公司 | Information processing method, device, electronic equipment and storage medium |
CN111026466A (en) * | 2019-12-03 | 2020-04-17 | 成都卫士通信息产业股份有限公司 | File processing method and device, computer readable storage medium and electronic equipment |
CN113010218A (en) * | 2019-12-20 | 2021-06-22 | 中国移动通信集团陕西有限公司 | Plug-in loading method and device, computing equipment and computer storage medium |
CN113256259A (en) * | 2021-06-01 | 2021-08-13 | 通号智慧城市研究设计院有限公司 | Online editing service system and implementation method thereof |
CN114090116A (en) * | 2021-11-08 | 2022-02-25 | 芜湖雄狮汽车科技有限公司 | Application method and device of vehicle-mounted equipment, vehicle and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168037A1 (en) * | 2007-01-10 | 2008-07-10 | Microsoft Corporation | Integrating enterprise search systems with custom access control application programming interfaces |
CN101567065A (en) * | 2009-05-26 | 2009-10-28 | 杭州世导科技有限公司 | Cross-platform online file editing system and method thereof |
CN101620536A (en) * | 2009-08-17 | 2010-01-06 | 用友软件股份有限公司 | Method and device for invoking performance function |
CN101739256A (en) * | 2009-12-30 | 2010-06-16 | 中国运载火箭技术研究院 | Universal interface system for integration optimizing software |
CN101950258A (en) * | 2010-09-29 | 2011-01-19 | 用友软件股份有限公司 | Word processing system-based plug-in generating method and device |
CN104320396A (en) * | 2014-10-28 | 2015-01-28 | 用友优普信息技术有限公司 | Data interaction device and method |
-
2015
- 2015-12-28 CN CN201511001165.1A patent/CN105653363B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168037A1 (en) * | 2007-01-10 | 2008-07-10 | Microsoft Corporation | Integrating enterprise search systems with custom access control application programming interfaces |
CN101567065A (en) * | 2009-05-26 | 2009-10-28 | 杭州世导科技有限公司 | Cross-platform online file editing system and method thereof |
CN101620536A (en) * | 2009-08-17 | 2010-01-06 | 用友软件股份有限公司 | Method and device for invoking performance function |
CN101739256A (en) * | 2009-12-30 | 2010-06-16 | 中国运载火箭技术研究院 | Universal interface system for integration optimizing software |
CN101950258A (en) * | 2010-09-29 | 2011-01-19 | 用友软件股份有限公司 | Word processing system-based plug-in generating method and device |
CN104320396A (en) * | 2014-10-28 | 2015-01-28 | 用友优普信息技术有限公司 | Data interaction device and method |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888631A (en) * | 2016-09-28 | 2018-04-06 | 北京京东尚科信息技术有限公司 | A kind of interface interchange method and apparatus of configurable combination |
CN109828806A (en) * | 2018-12-24 | 2019-05-31 | 苏州蜗牛数字科技股份有限公司 | A kind of optimization method based on the customized diversified control combing of UI |
CN109710340A (en) * | 2019-01-18 | 2019-05-03 | 北京顺丰同城科技有限公司 | Software tool call method and device, software tool packaging method and device |
CN109710340B (en) * | 2019-01-18 | 2022-03-25 | 北京顺丰同城科技有限公司 | Software tool calling method and device and software tool packaging method and device |
CN110673892A (en) * | 2019-09-17 | 2020-01-10 | 中电万维信息技术有限责任公司 | Interface unified calling method based on component configuration |
CN110673892B (en) * | 2019-09-17 | 2023-01-03 | 中电万维信息技术有限责任公司 | Interface unified calling method based on component configuration |
CN110750295A (en) * | 2019-09-30 | 2020-02-04 | 联想(北京)有限公司 | Information processing method, device, electronic equipment and storage medium |
CN111026466A (en) * | 2019-12-03 | 2020-04-17 | 成都卫士通信息产业股份有限公司 | File processing method and device, computer readable storage medium and electronic equipment |
CN113010218A (en) * | 2019-12-20 | 2021-06-22 | 中国移动通信集团陕西有限公司 | Plug-in loading method and device, computing equipment and computer storage medium |
CN113256259A (en) * | 2021-06-01 | 2021-08-13 | 通号智慧城市研究设计院有限公司 | Online editing service system and implementation method thereof |
CN113256259B (en) * | 2021-06-01 | 2024-04-19 | 通号智慧城市研究设计院有限公司 | Online editing service system and implementation method thereof |
CN114090116A (en) * | 2021-11-08 | 2022-02-25 | 芜湖雄狮汽车科技有限公司 | Application method and device of vehicle-mounted equipment, vehicle and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105653363B (en) | 2018-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105653363A (en) | Interface function realization method and apparatus | |
US10789348B2 (en) | Login information data processing | |
US9037870B1 (en) | Method and system for providing a rotating key encrypted file system | |
CN111930676B (en) | Method, device, system and storage medium for communication among multiple processors | |
US20130185569A1 (en) | Data protection system and method based on cloud storage | |
WO2015058620A1 (en) | Method and apparatus for generating installation package corresponding to an application and executing application | |
CN104111832A (en) | Android application program installation package packing method and system and unpacking method | |
CN104063225B (en) | Screen locking theme development method and device | |
US20170272407A1 (en) | Encrypted communications method and communications terminal, and computer storage medium | |
US9420070B2 (en) | Streaming zip | |
CN103885830A (en) | Data processing method used in cross-data-center live migration process of virtual machine | |
CN104615929A (en) | Security key device for secure cloud services, and system and method of providing security cloud services | |
CN113190877B (en) | Model loading method and device, readable storage medium and electronic equipment | |
CN108055585A (en) | Data processing method, set top box upgrading method, terminal and set-top box | |
CN103685060A (en) | Data packet sending method and data packet sending device | |
CN107622207A (en) | Encryption system DBMS structure | |
CN105468987A (en) | Data processing method and device | |
KR20170069337A (en) | Method and apparatus for protecting application and program made by the method | |
CN109857571B (en) | Clipboard control method and device | |
KR20140139392A (en) | Method for generating application execution file for mobile device, application execution method of mobile device, device for generating application execution file and mobile device | |
CN113238789A (en) | Electronic equipment, firmware upgrading method and device thereof and computer readable storage medium | |
CN103973450B (en) | A kind of communication means, system and terminal device | |
CN103197950B (en) | Plug-in virtual machine implementation method | |
CN110971581B (en) | Encrypted data processing method and device | |
CA3052849C (en) | Payment control method and device, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100195 Haidian District, Beijing, North Village, a road, a static core Park, block N Applicant after: Beijing Zhiyuan Internet software Limited by Share Ltd Address before: 100195 Haidian District, Beijing, North Village, a road, a static core Park, block N Applicant before: Beijing Seeyon Software Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |