CN103532827A - System and method for realizing address book function by extending XMPP (Extensible Messaging and Presence Protocol) - Google Patents
System and method for realizing address book function by extending XMPP (Extensible Messaging and Presence Protocol) Download PDFInfo
- Publication number
- CN103532827A CN103532827A CN201310395634.7A CN201310395634A CN103532827A CN 103532827 A CN103532827 A CN 103532827A CN 201310395634 A CN201310395634 A CN 201310395634A CN 103532827 A CN103532827 A CN 103532827A
- Authority
- CN
- China
- Prior art keywords
- message
- xmpp
- address book
- module
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000008520 organization Effects 0.000 claims abstract description 29
- 238000004891 communication Methods 0.000 claims abstract description 19
- 238000012545 processing Methods 0.000 claims abstract description 14
- 230000001360 synchronised effect Effects 0.000 claims abstract description 8
- 238000012546 transfer Methods 0.000 claims description 8
- 238000003860 storage Methods 0.000 claims description 5
- 230000008676 import Effects 0.000 claims description 3
- 230000001747 exhibiting effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 abstract description 16
- 230000004044 response Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000012625 in-situ measurement Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a system and a method for realizing an address book function by extending an XMPP (Extensible Messaging and Presence Protocol). The system comprises an XPMM message processing module, an interface display module, a member management module, an importing and exporting module, a synchronous updating module and an interface, wherein the XMPP message processing module is used for resolving and encapsulating extended XMPP messages; the interface display module is used for displaying data information; the member management module is used for managing the information of members in an address book; the importing and exporting module is used for importing or exporting XML (Extensible Markup Language) files; the synchronous updating module is used for updating address book data; the interface is used for respectively transmitting data to a communication type service module side and a server side. According to the system and the method, an enterprise organization structure, friends and contact persons stored by a user are integrated into the address book, so that operation of the user is enriched; compared with an address book realized on the basis of a standard XMPP, the system has the advantages that member information in the address book is richer; a data organization way in a personal address book is improved, and a data organizing way of including contact person information in grouping information is adopted, so that data redundancy is reduced.
Description
Technical field
The invention belongs to computer network communication technology field, relate in particular to a kind of system and method for realizing address list correlation function based on XMPP agreement.
Background technology
IM(Instant Message, instant messaging) be a kind of internet, applications for exchanging in real time, be mainly used in daily life the communication between people and contact.In recent years, instant messaging is applied in increasing enterprise, has improved employee's operating efficiency, quick solution communication problem.
XMPP(scalable message is processed on-the-spot agreement) be the agreement based on extend markup language (XML), it is for instant message (IM) and online in-situ measurement.This agreement allows any user on network to transfer immediate news to other users.XMPP has the features such as publicity, good autgmentability, distributed, fail safe, and developer can expand it very easily, realizes new function.
The instant communication client of realizing based on standard x MPP has address list function, and this address list can show good friend and state thereof.The functions such as the message transmission between address list support good friend, file transmission, group chat.
The instant communication client of realizing based on standard x MPP only provides the most basic address list function, also has certain defect: in address list, good friend's information is very few, need to expand it, increases more information; A guy good friend only in address list, does not have the organization structure of the enterprise, cannot meet the demand of enterprise immediate communication; In address list, increase non-good friend, non-good friend can not carry out instant messaging, but can preserve the information of some user's inputs, operations such as can making a phone call, send short messages, send e-mails by these information.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the invention provides the system and method for a kind of better fusion enterprise address book and personal address book, XMPP has been done to further expansion and definition, strengthened the function of address list.
In order to realize foregoing invention object, the present invention takes following technical scheme:
An aspect of of the present present invention, provides a kind of system that realizes address list function by expansion XMPP agreement, it is characterized in that, this system comprises:
XMPP message processing module, for resolving and encapsulate the XMPP message of expansion;
Interface display module, for exhibiting data information;
Member management module, member's information in supervisory communications record;
Import and export module, for importing or derive XML file;
Synchronous update module, for upgrading address list data; And
Transmit respectively the interface of data with communication class business module end and server end;
Described address list comprises business organization's framework and personal address book; Described personal address book comprises the contact person of good friend and user's storage.
Preferably, in the XMPP message of described expansion, realize the equal called after of message " contacts " of address list function, NameSpace is " com.iq.contacts "; This message that realizes address list function comprises the type of this message.
Preferably, described business organization framework adopts multistage tree organising data; Described personal address book divides two-stage to show, comprises the member under grouping and group.
Another aspect of the present invention, provides a kind of method that realizes address list function by expansion XMPP agreement, it is characterized in that: described address list comprises business organization's framework and personal address book; Described personal address book comprises that contact person's the method for good friend and user's storage comprises the following steps:
A. user end to server sends request information;
B. this solicited message of server parses, and carry out associative operation;
C. the XMPP message that server organizes data into expansion returns to client;
D. the message that client server returns, upgrades local data base and shows on UI interface.
Preferably, the solicited message sending in described steps A comprises the XMPP message of expansion; This step comprises:
XMPP message processing module is packaged into user's retouching operation the XMPP message of expansion;
This message transfers to server by encryption and decryption module and bottom transport module.
Preferably, in the XMPP message of described expansion, the message that realizes address list function is called after " contacts " all, and NameSpace is " com.iq.contacts "; This message that realizes address list function comprises the type of this message.
Preferably, described step D comprises:
The message that XMPP message processing module receives and resolution server transmits;
Interface display module is shown the data after resolving;
Synchronous update module is upgraded local data base.
Preferably, described business organization framework adopts multistage tree organising data, and XMPP message processing module parses the data of tree from the XMPP message of expansion, is stored in local data base and refreshes the business organization's framework part in address list;
Described personal address book divides two-stage to show, comprises the member under grouping and group, and group can not be mutually nested with group; XMPP message processing module is resolved the personal address book data that obtain and is comprised information about firms and grouping information, respectively these two kinds of information is deposited in local data base, and refreshes the personal address book part in address list.
Compared with prior art, beneficial effect of the present invention is:
The contact person of 1.Jiang business organization framework, good friend and user's storage is incorporated in address list, enriches user's operation;
2. the address list of realizing based on standard x MPP agreement, the information about firms in this address list is abundanter;
3. improve Method of Data Organization in personal address book, adopt associated person information to be included in the Method of Data Organization in grouping information, reduce data redundancy.
Accompanying drawing explanation
Fig. 1 is that address list system of the present invention forms schematic diagram;
Fig. 2 is the schematic diagram that is related to of address list business of the present invention and other business;
Fig. 3 is client obtaining communication record flow chart in the embodiment of the present invention;
Fig. 4 adds good friend's operating process in the embodiment of the present invention;
Fig. 5 accepts good friend's solicit operation flow chart in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, address list comprises XMPP message processing module, interface display module, member management module, imports and exports module, synchronous update module, and the interface with communication class business and transfer of data is provided simultaneously.XMPP message processing module is responsible for reception and the transmission of message, and parsing and the encapsulation function of agreement are provided, and the data that user is provided and request are converted to XMPP message, resolves message and response from server simultaneously; The data that interface display module is responsible for client to obtain are presented to user; Member management module is responsible for member's increase, deletion, modification and rights management; Importing and exporting module is responsible for address list to export to XML file or XML file is imported to address list; Synchronous update module is responsible for regularly upgrading address list data.
As shown in Figure 2, address list comprises business organization's framework and personal address book.Business organization's framework presentation mode is multistage tree, can unit of display organizational information and information about firms, and business organization's framework is created by enterprise administrator, and user can only check, can not revise; In personal address book, comprise a plurality of groups, exist one or more members, member to comprise member Name's information and member property information in each group, user oneself creates and safeguards personal address book.
As shown in Figure 2, the member in personal address book can be both good friend, can be also the contact person that user stores.Subscription status and transferring immediate news mutually between good friend; Contact person is only some input messages that user preserves, and can utilize these information to make a phone call, send short messages, send out mail etc., but can not subscribe to partner state and transfer immediate news.
The data of business organization's framework and personal address book are all kept at server end, and client retains the up-to-date backup of an address list.During client login, first Backup Data is organized into address list and presents to user, to the new address list data of server request, the address list data that obtain are stored in client terminal local database, and refresh interface display afterwards.
One, expansion XMPP agreement
Client produces corresponding instruction according to user's different operating, and the XMPP message that instruction is packaged into expansion is sent to server.The message that realizes address list function is all that name is " contacts ", and namespace is that the expansion XMPP message of " com.iq.contacts " realizes.Each message comprises a definite type of message, is used for corresponding specific instruction.
The client of take below sends increase contact person message and by expansion XMPP agreement, carries out mutual flow process as example illustrates client and server.
The first step, the record of user's operation communication, carries out and increases contact person's operation.
Second step, client produces expansion XMPP information and sending to server end according to the data of user's operation and input, and type of message, for increasing contact person, comprises the information such as user grouping, user name, phone in message.
The 3rd step, the message that client is sent is received and resolved to server, and judgement is personal address book request, and type of message is to increase contact person.
The 4th step, server parses increases contact person's message, obtains contact data, and is stored in server-side database.
The 5th step, server becomes the Organization of Data after upgrading the XMPP message of expansion and returns to result to respond to client.
The 6th step, client is received the message that server is sent, and parses contact data, stores in local data base and upgrades address list interface.
Two, obtaining communication record
Will be to the record of server obtaining communication after client login, the flow process of obtaining communication record is as shown in Figure 3.
First client utilizes the address list backup of storing in local data base to generate address list, sends obtaining communication record request to server simultaneously, comprises request business organization's framework and personal address book.
Server is received after message, obtains corresponding data respectively according to the request of business organization's framework and personal address book in database.
Server becomes the Organization of Data getting the XMPP message of expansion, returns to business organization's framework response and personal address book response respectively to client.
Business organization's framework adopts multistage tree organising data, and client parses the data of tree from the XMPP message of expansion, is stored in local data base and refreshes the business organization's framework part in address list.
Personal address book divides two-stage to show, only shows the member under grouping and group, and group can not be mutually nested with group.Client is resolved the personal address book data that obtain and is comprised information about firms and grouping information, respectively these two kinds of information is deposited in local data base, and refreshes the personal address book part in address list.
Three, personal address book operation
The address list of realizing based on standard x MPP agreement has only been realized personal communication recording function, and minute two-stage shows.But its data acquisition is included in the organizational form in associated person information by grouping information, when grouping is less and contact person is more, can produce larger data redundancy.
The present invention improves the Method of Data Organization of personal address book, adopts associated person information to be included in the Method of Data Organization in grouping information, reduces data redundancy.
Member in personal address book can be good friend, can be also the contact person that user stores.Subscription status and transferring immediate news mutually between good friend; Contact person is only some input messages that user preserves, and can utilize these information to make a phone call, send short messages, send out mail etc., but can not subscribe to partner state and transfer immediate news.
The operation of personal address book mainly refers to that the additions and deletions of member and grouping change and looks into operation, also comprise assembling and dismantling division and combination also, member moves and copy, add contact people for good friend, draw the special operationals such as black good friend and blacklist good friend recovery.
As shown in Figure 4, be that personal address book realization adds the operating process that contact people is good friend below:
The first step, user selects a contact person in personal address book, and wanting to add the other side is good friend.
Second step, client sends authentication information, and whether authentication of users wants the good friend who adds to exist.
The 3rd step, client is received the response that server returns.If authentication success, sends plusing good friend request to the other side; If authentification failure, the failure of prompting user plusing good friend.
The 4th step, after the request of transmission plusing good friend completes, waits for that the other side confirms.At this moment can transfer immediate news to the other side, but can not subscribe to partner state.
As shown in Figure 5, be that client is received the operating process after plusing good friend request below:
The first step, client receives after plusing good friend request, first selecting whether to agree to add the other side is good friend.If it is good friend that refusal adds the other side, to the other side, send the response of refusal plusing good friend.
Second step, if agree to that adding the other side is good friend, whether Client-Prompt user is associated with existing contact person by good friend.
The 3rd step, if user selects good friend to be associated with existing contact person, points out user to select a contact person associated; If user does not want good friend to be associated with existing contact person, a newly-built good friend in personal address book.
The 4th step, sends and agrees to plusing good friend response to the other side.At this moment both can see that partner state also can transfer immediate news to the other side.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit, although the present invention is had been described in detail with reference to above-described embodiment, those of ordinary skill in the field are to be understood that: still can modify or be equal to replacement the specific embodiment of the present invention, and do not depart from any modification of spirit and scope of the invention or be equal to replacement, it all should be encompassed in the middle of claim scope of the present invention.
Claims (8)
1. by expansion XMPP agreement, realize a system for address list function, it is characterized in that, this system comprises:
XMPP message processing module, for resolving and encapsulate the XMPP message of expansion;
Interface display module, for exhibiting data information;
Member management module, member's information in supervisory communications record;
Import and export module, for importing or derive XML file;
Synchronous update module, for upgrading address list data; And
Transmit respectively the interface of data with communication class business module end and server end;
Described address list comprises business organization's framework and personal address book; Described personal address book comprises the contact person of good friend and user's storage.
2. the system as claimed in claim 1, is characterized in that, in the XMPP message of described expansion, realizes the equal called after of message " contacts " of address list function, and NameSpace is " com.iq.contacts "; This message that realizes address list function comprises the type of this message.
3. the system as claimed in claim 1, is characterized in that, described business organization framework adopts multistage tree organising data; Described personal address book divides two-stage to show, comprises the member under grouping and group.
4. by expansion XMPP agreement, realize a method for address list function, it is characterized in that: described address list comprises business organization's framework and personal address book; Described personal address book comprises that contact person's the method for good friend and user's storage comprises the following steps:
A. user end to server sends request information;
B. this solicited message of server parses, and carry out associative operation;
C. the XMPP message that server organizes data into expansion returns to client;
D. the message that client server returns, upgrades local data base and shows on UI interface.
5. method as claimed in claim 4, is characterized in that: the solicited message sending in described steps A comprises the XMPP message of expansion; This step comprises:
XMPP message processing module is packaged into user's retouching operation the XMPP message of expansion;
This message transfers to server by encryption and decryption module and bottom transport module.
6. the method as described in claim 4 or 5, is characterized in that: in the XMPP message of described expansion, the message that realizes address list function is called after " contacts " all, and NameSpace is " com.iq.contacts "; This message that realizes address list function comprises the type of this message.
7. method as claimed in claim 4, is characterized in that: described step D comprises:
The message that XMPP message processing module receives and resolution server transmits;
Interface display module is shown the data after resolving;
Synchronous update module is upgraded local data base.
8. method as claimed in claim 4, it is characterized in that: described business organization framework adopts multistage tree organising data, XMPP message processing module parses the data of tree from the XMPP message of expansion, is stored in local data base and refreshes the business organization's framework part in address list;
Described personal address book divides two-stage to show, comprises the member under grouping and group, and group can not be mutually nested with group; XMPP message processing module is resolved the personal address book data that obtain and is comprised information about firms and grouping information, respectively these two kinds of information is deposited in local data base, and refreshes the personal address book part in address list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310395634.7A CN103532827A (en) | 2013-09-03 | 2013-09-03 | System and method for realizing address book function by extending XMPP (Extensible Messaging and Presence Protocol) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310395634.7A CN103532827A (en) | 2013-09-03 | 2013-09-03 | System and method for realizing address book function by extending XMPP (Extensible Messaging and Presence Protocol) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103532827A true CN103532827A (en) | 2014-01-22 |
Family
ID=49934519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310395634.7A Pending CN103532827A (en) | 2013-09-03 | 2013-09-03 | System and method for realizing address book function by extending XMPP (Extensible Messaging and Presence Protocol) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103532827A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106941556A (en) * | 2017-04-20 | 2017-07-11 | 青岛海信移动通信技术股份有限公司 | The determination method and device of converged communication associated person information |
CN112152905A (en) * | 2015-02-16 | 2020-12-29 | 钉钉控股(开曼)有限公司 | Communication method, communication device and mobile equipment |
CN113489634A (en) * | 2021-06-16 | 2021-10-08 | 中企链信(北京)科技有限公司 | Inter-enterprise collaborative instant messaging extension method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060080130A1 (en) * | 2004-10-08 | 2006-04-13 | Samit Choksi | Method that uses enterprise application integration to provide real-time proactive post-sales and pre-sales service over SIP/SIMPLE/XMPP networks |
CN101197018A (en) * | 2007-12-28 | 2008-06-11 | 宇龙计算机通信科技(深圳)有限公司 | Address book ranking method and system |
CN102404290A (en) * | 2010-09-10 | 2012-04-04 | 杭州世导通讯有限公司 | System and method for realizing business layer association of virtual switchboard by extending XMPP (extensible messaging and presence protocol) |
CN102594845A (en) * | 2012-03-29 | 2012-07-18 | 东南大学 | Instant message transmission method based on XMPP |
-
2013
- 2013-09-03 CN CN201310395634.7A patent/CN103532827A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060080130A1 (en) * | 2004-10-08 | 2006-04-13 | Samit Choksi | Method that uses enterprise application integration to provide real-time proactive post-sales and pre-sales service over SIP/SIMPLE/XMPP networks |
CN101197018A (en) * | 2007-12-28 | 2008-06-11 | 宇龙计算机通信科技(深圳)有限公司 | Address book ranking method and system |
CN102404290A (en) * | 2010-09-10 | 2012-04-04 | 杭州世导通讯有限公司 | System and method for realizing business layer association of virtual switchboard by extending XMPP (extensible messaging and presence protocol) |
CN102594845A (en) * | 2012-03-29 | 2012-07-18 | 东南大学 | Instant message transmission method based on XMPP |
Non-Patent Citations (1)
Title |
---|
陈武: "基于XMPP的企业级即时通信系统的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112152905A (en) * | 2015-02-16 | 2020-12-29 | 钉钉控股(开曼)有限公司 | Communication method, communication device and mobile equipment |
CN106941556A (en) * | 2017-04-20 | 2017-07-11 | 青岛海信移动通信技术股份有限公司 | The determination method and device of converged communication associated person information |
CN106941556B (en) * | 2017-04-20 | 2020-08-04 | 青岛海信移动通信技术股份有限公司 | Method and device for determining information of converged communication contact persons |
CN113489634A (en) * | 2021-06-16 | 2021-10-08 | 中企链信(北京)科技有限公司 | Inter-enterprise collaborative instant messaging extension method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102664871B (en) | A kind of processing method of intelligent terminal address list | |
US8953571B2 (en) | Electronic messaging technology | |
US7720920B2 (en) | Client side based data synchronization and storage | |
CA2544837C (en) | Synchronization and merge engines | |
CN106850788B (en) | Integrated framework and integrated approach towards multi-source heterogeneous geographic information resources | |
CN102202102B (en) | Network service polymerization system and polymerization method thereof based on cloud computing configuration | |
CN100568235C (en) | Be used to carry out instant messaging client computer and the method that project is shared | |
US10122665B2 (en) | Distributed synchronization data in a message management service | |
US20050044235A1 (en) | System, computer product and method for enabling wireless data synchronization | |
CN101098313B (en) | Mail transmitting method and system | |
CN101188625B (en) | Method and system for realizing information content subscription | |
US20140129511A1 (en) | On-demand viewing of a report with security permissions | |
CN103136658A (en) | Automatically aggregating contact information | |
CN102769640B (en) | The update method of user profile, server and system | |
CN103873518B (en) | Multiple terminals synchronously obtains method, system and the Web server of enhancing address list | |
CN102111347A (en) | Multi-protocol instant message-based processing method and system in unified communication system | |
CN105162697A (en) | Microblog system and data control method thereof | |
CN103119911A (en) | System and method for synchronizing the profile of a user in social networks and the user's personal contact card (PCC) | |
US20140156763A1 (en) | Person centric feeds and direct messaging in business systems | |
CN105207885B (en) | The method and device of user information is shown in session interface | |
CN110213156B (en) | Cross-center group instant messaging method and system | |
CN103532827A (en) | System and method for realizing address book function by extending XMPP (Extensible Messaging and Presence Protocol) | |
CN103036861A (en) | Relationship match method, system, server-side and client-side of contacts in address book | |
CN101924815A (en) | 3G MOA phone middleware embedded system | |
CN101645788A (en) | System and method for setting enterprise information in instant messenger for enterprise |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140122 |