Movatterモバイル変換


[0]ホーム

URL:


CN105653363A - Interface function realization method and apparatus - Google Patents

Interface function realization method and apparatus
Download PDF

Info

Publication number
CN105653363A
CN105653363ACN201511001165.1ACN201511001165ACN105653363ACN 105653363 ACN105653363 ACN 105653363ACN 201511001165 ACN201511001165 ACN 201511001165ACN 105653363 ACN105653363 ACN 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
Application number
CN201511001165.1A
Other languages
Chinese (zh)
Other versions
CN105653363B (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.)
BEIJING SEEYON SOFTWARE Co Ltd
Original Assignee
BEIJING SEEYON SOFTWARE 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 BEIJING SEEYON SOFTWARE Co LtdfiledCriticalBEIJING SEEYON SOFTWARE Co Ltd
Priority to CN201511001165.1ApriorityCriticalpatent/CN105653363B/en
Publication of CN105653363ApublicationCriticalpatent/CN105653363A/en
Application grantedgrantedCritical
Publication of CN105653363BpublicationCriticalpatent/CN105653363B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

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

A kind of interface functional realiey method and device
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)

CN201511001165.1A2015-12-282015-12-28A kind of interface function implementation method and deviceActiveCN105653363B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201511001165.1ACN105653363B (en)2015-12-282015-12-28A kind of interface function implementation method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201511001165.1ACN105653363B (en)2015-12-282015-12-28A kind of interface function implementation method and device

Publications (2)

Publication NumberPublication Date
CN105653363Atrue CN105653363A (en)2016-06-08
CN105653363B CN105653363B (en)2018-10-26

Family

ID=56476959

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201511001165.1AActiveCN105653363B (en)2015-12-282015-12-28A kind of interface function implementation method and device

Country Status (1)

CountryLink
CN (1)CN105653363B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107888631A (en)*2016-09-282018-04-06北京京东尚科信息技术有限公司A kind of interface interchange method and apparatus of configurable combination
CN109710340A (en)*2019-01-182019-05-03北京顺丰同城科技有限公司Software tool call method and device, software tool packaging method and device
CN109828806A (en)*2018-12-242019-05-31苏州蜗牛数字科技股份有限公司A kind of optimization method based on the customized diversified control combing of UI
CN110673892A (en)*2019-09-172020-01-10中电万维信息技术有限责任公司Interface unified calling method based on component configuration
CN110750295A (en)*2019-09-302020-02-04联想(北京)有限公司Information processing method, device, electronic equipment and storage medium
CN111026466A (en)*2019-12-032020-04-17成都卫士通信息产业股份有限公司File processing method and device, computer readable storage medium and electronic equipment
CN113010218A (en)*2019-12-202021-06-22中国移动通信集团陕西有限公司Plug-in loading method and device, computing equipment and computer storage medium
CN113256259A (en)*2021-06-012021-08-13通号智慧城市研究设计院有限公司Online editing service system and implementation method thereof
CN114090116A (en)*2021-11-082022-02-25芜湖雄狮汽车科技有限公司Application method and device of vehicle-mounted equipment, vehicle and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080168037A1 (en)*2007-01-102008-07-10Microsoft CorporationIntegrating enterprise search systems with custom access control application programming interfaces
CN101567065A (en)*2009-05-262009-10-28杭州世导科技有限公司Cross-platform online file editing system and method thereof
CN101620536A (en)*2009-08-172010-01-06用友软件股份有限公司Method and device for invoking performance function
CN101739256A (en)*2009-12-302010-06-16中国运载火箭技术研究院Universal interface system for integration optimizing software
CN101950258A (en)*2010-09-292011-01-19用友软件股份有限公司Word processing system-based plug-in generating method and device
CN104320396A (en)*2014-10-282015-01-28用友优普信息技术有限公司Data interaction device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080168037A1 (en)*2007-01-102008-07-10Microsoft CorporationIntegrating enterprise search systems with custom access control application programming interfaces
CN101567065A (en)*2009-05-262009-10-28杭州世导科技有限公司Cross-platform online file editing system and method thereof
CN101620536A (en)*2009-08-172010-01-06用友软件股份有限公司Method and device for invoking performance function
CN101739256A (en)*2009-12-302010-06-16中国运载火箭技术研究院Universal interface system for integration optimizing software
CN101950258A (en)*2010-09-292011-01-19用友软件股份有限公司Word processing system-based plug-in generating method and device
CN104320396A (en)*2014-10-282015-01-28用友优普信息技术有限公司Data interaction device and method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107888631A (en)*2016-09-282018-04-06北京京东尚科信息技术有限公司A kind of interface interchange method and apparatus of configurable combination
CN109828806A (en)*2018-12-242019-05-31苏州蜗牛数字科技股份有限公司A kind of optimization method based on the customized diversified control combing of UI
CN109710340A (en)*2019-01-182019-05-03北京顺丰同城科技有限公司Software tool call method and device, software tool packaging method and device
CN109710340B (en)*2019-01-182022-03-25北京顺丰同城科技有限公司Software tool calling method and device and software tool packaging method and device
CN110673892A (en)*2019-09-172020-01-10中电万维信息技术有限责任公司Interface unified calling method based on component configuration
CN110673892B (en)*2019-09-172023-01-03中电万维信息技术有限责任公司Interface unified calling method based on component configuration
CN110750295A (en)*2019-09-302020-02-04联想(北京)有限公司Information processing method, device, electronic equipment and storage medium
CN111026466A (en)*2019-12-032020-04-17成都卫士通信息产业股份有限公司File processing method and device, computer readable storage medium and electronic equipment
CN113010218A (en)*2019-12-202021-06-22中国移动通信集团陕西有限公司Plug-in loading method and device, computing equipment and computer storage medium
CN113256259A (en)*2021-06-012021-08-13通号智慧城市研究设计院有限公司Online editing service system and implementation method thereof
CN113256259B (en)*2021-06-012024-04-19通号智慧城市研究设计院有限公司 An online editing service system and implementation method thereof
CN114090116A (en)*2021-11-082022-02-25芜湖雄狮汽车科技有限公司Application method and device of vehicle-mounted equipment, vehicle and storage medium

Also Published As

Publication numberPublication date
CN105653363B (en)2018-10-26

Similar Documents

PublicationPublication DateTitle
CN105653363A (en)Interface function realization method and apparatus
US10698997B2 (en)Login information data processing
CN108028834B (en)Apparatus and method for secure file transfer
BR112019019871A2 (en) consensus verification method and apparatus
WO2015058620A1 (en)Method and apparatus for generating installation package corresponding to an application and executing application
US20130185569A1 (en)Data protection system and method based on cloud storage
CN105468472B (en) Data backup and recovery method and device based on iOS operating system
US20170272407A1 (en)Encrypted communications method and communications terminal, and computer storage medium
WO2019075622A1 (en)Security element and related device
CN104063225B (en)Screen locking theme development method and device
US11210406B2 (en)Encrypting system level data structures
US20160352811A1 (en)Streaming zip
CN114172719A (en)Encryption and decryption method, device, equipment and computer readable storage medium
CN106302123A (en)Data extraction and pasting processing method, device and system
CN104615929A (en)Security key device for secure cloud services, and system and method of providing security cloud services
CN103823726A (en)SIM (subscriber identity module) card data backup method and terminal
CN116866545B (en) Camera module mapping relationship adjustment method, device and storage medium
CN108055585A (en)Data processing method, set top box upgrading method, terminal and set-top box
CN105468987A (en)Data processing method and device
WO2014197071A1 (en)Secured embedded data encryption systems
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
CN103973450B (en)A kind of communication means, system and terminal device
KR20170069337A (en)Method and apparatus for protecting application and program made by the method
US20070112680A1 (en)System and method for processing digital media content in a mobile device
CN113238789B (en)Electronic device, firmware upgrading method and device thereof and computer readable storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change 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.

CORChange of bibliographic data
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp