CN103532993A - XML-based contact person customization property synchronization method and apparatus - Google Patents

XML-based contact person customization property synchronization method and apparatus Download PDF

Info

Publication number
CN103532993A
CN103532993A CN201210229000.XA CN201210229000A CN103532993A CN 103532993 A CN103532993 A CN 103532993A CN 201210229000 A CN201210229000 A CN 201210229000A CN 103532993 A CN103532993 A CN 103532993A
Authority
CN
China
Prior art keywords
contact
information
custom attributes
attribute
associated person
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
CN201210229000.XA
Other languages
Chinese (zh)
Other versions
CN103532993B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210229000.XA priority Critical patent/CN103532993B/en
Publication of CN103532993A publication Critical patent/CN103532993A/en
Application granted granted Critical
Publication of CN103532993B publication Critical patent/CN103532993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an XML-based contact person customization property synchronization method and apparatus. The method comprises: obtaining contact person information from an external contact person data source; by using a property analyzing rule customized by a user and the contact information, generating a contact property XML file containing the customization properties of corresponding contact persons; and analyzing the contact property XML file, obtaining the customization property information of the corresponding contact persons and updating the customization property information to a local contact person database. By using the method and apparatus provided by the invention, the contact person customization properties can be completely processed at different platforms.

Description

Contact person's Custom Attributes synchronous method and device based on XML
Technical field
The present invention relates to a kind of contact person's Custom Attributes synchronous method and relevant apparatus based on XML, make contact application can in the cross-platform scene such as lower as synchronous, process contact person's Custom Attributes.
Background technology
Development along with information technology, the mankind are increasing to the demand of the mobile intelligent terminals such as mobile phone, contact application is as one of most important application in the intelligent movables such as mobile phone, be subject to people and more and more paid close attention to, user experiences and also has higher requirement this user.In existing market, some are synchronous carrying out as user for general smart mobile phone, during the cross-platform services such as importing, often can only resolve some fixed attributes of contact person, such as phone, Email etc., and some Custom Attributes that user is preserved can not finely be processed, general way is to abandon this Custom Attributes, naturally when showing these contact persons can not show these Custom Attributes, for example, if from the Google server sync contact person who comprises Custom Attributes that user synchronously gets at other platform that gets off, and user-defined attribute is many times the content that user is concerned about, current common practice is to adopt the mode abandoning to remove to process this Custom Attributes, lack a kind of demand that can meet User Defined attribute that meets, can make again Custom Attributes cross-platformly use, can be in the method for complete process Custom Attributes under different platform.
Summary of the invention
The object of the present invention is to provide a kind of contact person's Custom Attributes synchronous method and device based on XML, can solve better cross-platform lower processing contact person Custom Attributes problem.
According to an aspect of the present invention, provide the synchronous method of the contact person's Custom Attributes based on XML, having comprised:
A) from external relation personal data source, obtain associated person information;
B) utilize user-defined attribute resolution rules and described associated person information, generate the contact attribute XML file of the Custom Attributes that comprises respective contacts;
C) resolve described contact attribute XML file, obtain the Custom Attributes information of respective contacts, and by described Custom Attributes information updating to local contact database.
Preferably, described steps A) comprising:
Utilize cross-platform service module, from external relation personal data source, obtain the associated person information that comprises contact data and attribute data thereof, wherein said attribute data comprises contact person's build-in attribute data and Custom Attributes data.
Preferably, carry out described steps A) after, also comprise:
Utilize cross-platform service module, described associated person information is carried out associated with local linkages people information.
Preferably, described step B) comprising:
Utilize cross-platform service module, resolve described associated person information, and according to analysis result, generate the associated person information XML file of respective contacts;
According to user-defined attribute resolution rules, resolve described associated person information XML file, and according to analysis result, generate the contact attribute XML file of the Custom Attributes that comprises respective contacts.
Preferably, described step C) comprising:
Utilize contact attribute XML parsing module, resolve described contact attribute XML file, obtain the Custom Attributes information of respective contacts, and by calling contact database memory module, by described Custom Attributes information updating to local contact database.
Preferably, described step C) also comprise:
Utilize contact person UI display module, edit described Custom Attributes information, and by the information updating after editor to local contact database.
Preferably, also comprise:
Utilize associated person information XML parsing module, resolve described associated person information XML file, and analysis result is updated to local contact database.
According to a further aspect in the invention, provide a kind of contact person's Custom Attributes synchronizer based on expandable mark language XML, having comprised:
Cross-platform service module, for obtaining associated person information from external relation personal data source, and utilizes user-defined attribute resolution rules and described associated person information, generates the contact attribute XML file of the Custom Attributes that comprises respective contacts;
Contact attribute XML parsing module, for resolving described contact attribute XML file, obtains the Custom Attributes information of respective contacts;
Contact database memory module, for by the Custom Attributes information updating of described respective contacts to local contact database.
Preferably, described device also comprises:
Contact person UI display module, for editing described Custom Attributes information, and by the information updating after editor to local contact database.
Preferably, described device also comprises:
Associated person information XML parsing module, for resolving described associated person information XML file, to analysis result is updated to local contact database.。
Compared with prior art, beneficial effect of the present invention is:
The present invention can either meet the demand of User Defined attribute, can make again Custom Attributes cross-platformly use, i.e. complete process Custom Attributes under different platform.
Accompanying drawing explanation
Fig. 1 is the contact person's Custom Attributes synchronous method schematic diagram based on XML that the embodiment of the present invention provides;
Fig. 2 is the contact person's Custom Attributes synchronizer integrated stand composition based on XML that the embodiment of the present invention provides;
Fig. 3 is the contact person's Custom Attributes synchronous method flow chart based on XML that the embodiment of the present invention provides.
Embodiment
Below in conjunction with accompanying drawing, to a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment, only for description and interpretation the present invention, is not intended to limit the present invention.
Fig. 1 is the contact person's Custom Attributes synchronous method schematic diagram based on XML that the embodiment of the present invention provides, and as shown in Figure 1, step comprises:
Step S101, from external relation personal data source, obtain associated person information.
Furtherly, utilize cross-platform service module, from external relation personal data source, obtain the associated person information that comprises contact data and attribute data thereof, wherein said attribute data comprises contact person's build-in attribute data and Custom Attributes data, and utilize cross-platform service module, described associated person information is carried out associated with local linkages people information.
Step S102, utilize user-defined attribute resolution rules and described associated person information, generate the contact attribute XML file of the Custom Attributes that comprises respective contacts.
Furtherly, utilize cross-platform service module, resolve described associated person information, and according to analysis result, generate the associated person information XML file of respective contacts; According to user-defined attribute resolution rules, resolve described associated person information XML file, and according to analysis result, generate the contact attribute XML file of the Custom Attributes that comprises respective contacts.
Step S103, resolve described contact attribute XML file, obtain the Custom Attributes information of respective contacts, and by described Custom Attributes information updating to local contact database.
Furtherly, utilize contact attribute XML parsing module, resolve described contact attribute XML file, obtain the Custom Attributes information of respective contacts, and by calling contact database memory module, by described Custom Attributes information updating to local contact database.Utilize contact person UI display module, edit described Custom Attributes information, and by the information updating after editor to local contact database.
Further, can also utilize associated person information XML parsing module, resolve described associated person information XML file, and analysis result is updated to local contact database.
Fig. 2 is the contact person's Custom Attributes synchronizer integrated stand composition based on XML that the embodiment of the present invention provides, and as shown in Figure 2, comprising:
External relation personal data source 201, for storing contact information, these associated person informations may be that user synchronously gets on, and may be also user's newly-built getting in the above.
The cross-platform service module 202 such as synchronous, for obtaining associated person information from external relation personal data source 201, and utilize user-defined attribute resolution rules and described associated person information, generate the contact attribute XML file of the Custom Attributes that comprises respective contacts.Specifically, this module has following functions:
1, from external relation personal data source 201, obtain the associated person information that comprises contact data and attribute data thereof.That is to say, cross-platform service module 202 obtains associated person information from outside, has comprised the attribute information under contact data and this data format, for example, can obtain from synchronous Google server.
2, according to the associated person information obtaining, generate corresponding associated person information XML file.That is to say, cross-platform service module is resolved the associated person information getting, and the associated person information XML file corresponding according to the structural generation of associated person information.
3,, for user provides UI operation interface, the contact attribute that association gets, is about to described associated person information and carries out associated with local linkages people information.That is to say, cross-platform service module 202, by UI operation interface is provided for user, allows user by the contact attribute information getting and the humanized information association of local linkages.
4,, for user provides UI operation interface, make user carry out self-defined to Custom Attributes resolution rules.That is to say, to the Custom Attributes information getting, cross-platform service module 202 provides UI operation interface for user, and user can be to these self-defining attribute resolution rules.
5, resolve the associated person information XML file obtaining, the humanized XML file of generic connection.That is to say, cross-platform service is resolved the associated person information XML file structure generating, and the contact attribute information in structure is collected, and comprising more user-defined attributes, and is generated corresponding contact attribute XML file.
Contact attribute XML parsing module 203, for resolving described contact attribute XML file, obtains the Custom Attributes information of respective contacts.Specifically, described contact attribute XML parsing module 203 is responsible for obtaining contact attribute XML file from cross-platform service module 202, complete the parsing of contact attribute XML file, and for providing UI operation interface, user carries out attributes edit, user can be edited the attribute information getting easily, and send message to contact database renewal contact attribute form.Because contact database has been resolved and be saved to contact attribute XML file in synchronizing process, therefore, from cross-platform service module 102 obtains associated person information XML file and resolves, by calling the contact data that contact database memory module obtains parsing, directly deposit contact database in.
Associated person information XML parsing module 204, for resolving described associated person information XML file, to analysis result is updated to local contact database.Specifically, described associated person information XML parsing module 204 is responsible for obtaining associated person information XML file from cross-platform service module 202, completes the parsing of contact details, and sends message to contact database renewal associated person information form.
Contact database memory module 205, for by the Custom Attributes information updating of described respective contacts to local contact database.Specifically, described contact database memory module 205 is responsible for the relevant informations such as contact person and attribute thereof to be updated into contact database.
Contact database 206, for actual storage contact data and attribute data thereof.
Contact person UI display module 207, is used to user that a UI operation interface is provided, and makes user edit, revise the contact attribute that comprises Custom Attributes information, and by the information updating after editor to local contact database.Further, the contact person of contact database is stored in described contact person UI display module 207 demonstrations into, and by calling contact database memory module, calls on demand contact attribute XML parsing module and complete contact person's demonstration.
Fig. 3 is the contact person's Custom Attributes synchronous method flow chart based on XML that the embodiment of the present invention provides, as shown in Figure 3, below in conjunction with accompanying drawing 2, by sync packet, contain the Google contact person of Custom Attributes to local, and the flow process that completes displaying illustrates the present invention, should illustrate, contact person's cross-platform of synchronous Custom Attributes described herein, only for explaining the present invention, is not intended to limit the present invention.
Step S301, cross-platform service module obtain the associated person information that comprises contact data and attribute data thereof from Google server.
Step S302, provide UI operation interface for user, Associate to Contact's known attribute, to Custom Attributes, by provide UI interface to make User Defined resolution rules for user, according to Custom Attributes resolution rules, the associated person information getting the most at last generates corresponding associated person information XML file.
Step S303, parsing associated person information XML file, generate corresponding contact attribute XML file.
Step S304, contact attribute XML parsing module are resolved the contact attribute XML file sending from cross-platform service module, and provide UI operation interface for user, user can edit, revise contact attribute in the above, renewal contact attribute form after completing.
The associated person information XML file that step S305, obtaining step S302 generate, completes the parsing of associated person information XML file, and is updated to associated person information form.
Step S306, judge whether to show contact person, if it is perform step S307, otherwise, execution step S308.
Step S307, call contact data access modules, the contact person after upgrading is shown, finally realized the cross-platform of the self-defined contact attribute based on XML.
Step S308, the same EOS of contact attribute.
Although above the present invention is had been described in detail, the invention is not restricted to this, those skilled in the art of the present technique can carry out various modifications according to principle of the present invention.Therefore, all modifications of doing according to the principle of the invention, all should be understood to fall into protection scope of the present invention.

Claims (10)

1. the contact person's Custom Attributes synchronous method based on expandable mark language XML, is characterized in that, comprising:
A) from external relation personal data source, obtain associated person information;
B) utilize user-defined attribute resolution rules and described associated person information, generate the contact attribute XML file of the Custom Attributes that comprises respective contacts;
C) resolve described contact attribute XML file, obtain the Custom Attributes information of respective contacts, and by described Custom Attributes information updating to local contact database.
2. method according to claim 1, is characterized in that, described steps A) comprising:
Utilize cross-platform service module, from external relation personal data source, obtain the associated person information that comprises contact data and attribute data thereof, wherein said attribute data comprises contact person's build-in attribute data and Custom Attributes data.
3. method according to claim 2, is characterized in that, carries out described steps A) after, also comprise:
Utilize cross-platform service module, described associated person information is carried out associated with local linkages people information.
4. method according to claim 3, is characterized in that, described step B) comprising:
Utilize cross-platform service module, resolve described associated person information, and according to analysis result, generate the associated person information XML file of respective contacts;
According to user-defined attribute resolution rules, resolve described associated person information XML file, and according to analysis result, generate the contact attribute XML file of the Custom Attributes that comprises respective contacts.
5. method according to claim 4, is characterized in that, described step C) comprising:
Utilize contact attribute XML parsing module, resolve described contact attribute XML file, obtain the Custom Attributes information of respective contacts, and by calling contact database memory module, by described Custom Attributes information updating to local contact database.
6. method according to claim 5, is characterized in that, described step C) also comprise:
Utilize contact person UI display module, edit described Custom Attributes information, and by the information updating after editor to local contact database.
7. according to the method described in claim 4-6 any one, it is characterized in that, also comprise:
Utilize associated person information XML parsing module, resolve described associated person information XML file, and analysis result is updated to local contact database.
8. the contact person's Custom Attributes synchronizer based on expandable mark language XML, is characterized in that, comprising:
Cross-platform service module, for obtaining associated person information from external relation personal data source, and utilizes user-defined attribute resolution rules and described associated person information, generates the contact attribute XML file of the Custom Attributes that comprises respective contacts;
Contact attribute XML parsing module, for resolving described contact attribute XML file, obtains the Custom Attributes information of respective contacts;
Contact database memory module, for by the Custom Attributes information updating of described respective contacts to local contact database.
9. device according to claim 8, is characterized in that, also comprises:
Contact person UI display module, for editing described Custom Attributes information, and by the information updating after editor to local contact database.
10. device according to claim 8 or claim 9, is characterized in that, also comprises:
Associated person information XML parsing module, for resolving described associated person information XML file, to analysis result is updated to local contact database.
CN201210229000.XA 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device Active CN103532993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210229000.XA CN103532993B (en) 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210229000.XA CN103532993B (en) 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device

Publications (2)

Publication Number Publication Date
CN103532993A true CN103532993A (en) 2014-01-22
CN103532993B CN103532993B (en) 2018-08-14

Family

ID=49934671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210229000.XA Active CN103532993B (en) 2012-07-04 2012-07-04 Contact person's Custom Attributes synchronous method based on XML and device

Country Status (1)

Country Link
CN (1) CN103532993B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718496A (en) * 2014-12-18 2016-06-29 群晖科技股份有限公司 cross-platform file attribute synchronization method and computer readable storage medium
CN106776062A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Multi-system contact person attribute information synchronization method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968076A (en) * 2006-04-28 2007-05-23 华为技术有限公司 Method for data synchronization between devices
US20090136013A1 (en) * 2007-11-19 2009-05-28 Kuykendall Peter A System for obtaining information regarding telephone calls
CN101527755A (en) * 2009-03-30 2009-09-09 中兴通讯股份有限公司 Voice interactive method based on VoiceXML movable termination and movable termination
CN101572677A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method for integrating address books and integrated address book server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968076A (en) * 2006-04-28 2007-05-23 华为技术有限公司 Method for data synchronization between devices
US20090136013A1 (en) * 2007-11-19 2009-05-28 Kuykendall Peter A System for obtaining information regarding telephone calls
CN101572677A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method for integrating address books and integrated address book server
CN101527755A (en) * 2009-03-30 2009-09-09 中兴通讯股份有限公司 Voice interactive method based on VoiceXML movable termination and movable termination

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718496A (en) * 2014-12-18 2016-06-29 群晖科技股份有限公司 cross-platform file attribute synchronization method and computer readable storage medium
CN106776062A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Multi-system contact person attribute information synchronization method and device

Also Published As

Publication number Publication date
CN103532993B (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN108701127A (en) Electronic equipment and its operating method
CN109145123A (en) Construction method, intelligent interactive method, system and the electronic equipment of knowledge mapping model
CN106096064A (en) For the method and apparatus generating the page
CN106663241A (en) List accumulation and reminder triggering
JP2004532474A5 (en)
US10893135B2 (en) Data processing method and apparatus
CN106681698B (en) Dynamic list generation method and device
KR101406528B1 (en) Apparatus and method for providing and sharing consumption pattern
CN104078038A (en) Page content aloud-reading method and device
CN103026697B (en) Service server device and service provision method
WO2007008050A1 (en) System, apparatus and method for providing a flashcon in a instant messenger of a mobile device
CN103369479A (en) Information generation method and mobile terminal
CN112380365A (en) Multimedia subtitle interaction method, device, equipment and medium
CN104216982B (en) A kind of information processing method and electronic equipment
CN113778419A (en) Multimedia data generation method and device, readable medium and electronic equipment
CN103412885A (en) Contact person photo setting method and device
CN102375738A (en) Device and method for managing data of mobile terminal
CN105590241B (en) Self-adaptive electronic bill implementation method and system
CN105589680B (en) Information display method, providing method and device
CN106959858B (en) Information processing method and device
CN103532993A (en) XML-based contact person customization property synchronization method and apparatus
KR20140076469A (en) System and method for advertisiing using background image
CN108595141A (en) Pronunciation inputting method and device, computer installation and computer readable storage medium
CN104079698A (en) Incoming call information display method and device
CN103853697A (en) Mobile terminal and back-up method for application data thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant