Embodiment
Below in conjunction with the accompanying drawing in the present embodiment, the technical scheme in the present embodiment is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The present embodiment provides a kind of method of Data Migration, and described method is applied to first user equipment side.As shown in Figure 1, described method comprises:
101, first user equipment receiving data migration indication, carries for identifying the attribute information of chat record to be migrated in this Data Migration indication.
Described Data Migration indication is used to indicate the chat record of preserving in first user equipment is moved in the second subscriber equipment.When user changes subscriber equipment, first user equipment receives the Data Migration instruction that user triggers on first user equipment, obtains thus Data Migration indication.
In the present embodiment, first user equipment is except indicating the instruction that obtains migration chat record by Data Migration, and the customer attribute information carrying in can also indicating by Data Migration is selected the scope of chat record to be migrated.For example whole chat records of certain good friend are moved, or the chat record of all good friends in certain grouping is moved; Again for example, to certain good friend (or the interior all good friends of certain grouping), the chat record within certain time period moves.In order to guarantee the integrality of user data information, in a preferred version of the present embodiment, all historical chat record that first user equipment can be applied all good friends (grouping) in account to user moves.
102, first user equipment is derived chat record to be migrated according to the attribute information of chat record to be migrated, generates migrated file.
Attribute information in Data Migration indication is arranged according to individual demand by user, described attribute information comprises at least one in following information: the time period that the object of chat record to be migrated, the data format of chat record to be migrated and chat record to be migrated generate, wherein, the object of described chat record to be migrated comprises grouping, good friend, group etc., first user equipment supports that user carries out multiselect, for example, select 3 good friends' chat record; The data format of described chat record to be migrated comprises text formatting, picture format and stream media format, wherein said stream media format can comprise video format and audio format again, first user equipment supports user to select to comprise the chat record in general sense of Document type data, equally also supports user to select the sensu lato chat record that comprises that the application such as video calling, voice-enabled chat and transfer files produce; The time period that described chat record to be migrated generates is arranged by user, and first user equipment is engraved in the chat record in this time period while only obtaining generation.
In the present embodiment, first user equipment supports user to select attribute information of more than two kinds, after getting a plurality of attribute informations, first user equipment with " and " relation a plurality of attribute informations are identified, and treat accordingly migration data and select.For example, when user selects certain good friend as the first attribute information, while selecting that the same day, 10:00 to 20:00 was as the time period, first user equipment filters out the chat record of this good friend in same day 10:00 to 20:00 in all chat records of preserving, as chat record to be migrated.
Optionally, when user does not select the attribute information of chat record, first user equipment acquiescence is defined as chat record to be migrated by whole chat records of preserving, and all historical chat record that first user equipment is applied all good friends (grouping) in account by user is defined as chat record to be migrated.
First user equipment is derived after chat record to be migrated according to attribute information, generates migrated file.First user equipment can add in a file all chat records to be migrated as migrated file to, also can generate a plurality of migrated files according to the form of chat record, for example generate a text migrated file, a photo migrated file and a voice migrated file, the specific rules that the present embodiment generates migrated file to first user equipment does not limit.
103, first user equipment uploads to network side server by migrated file.
First user equipment is uploaded to network side server by the migrated file after generating, and by network side server, the chat record in this migrated file is preserved, so that the second subscriber equipment obtains this chat record to network side server.
The method of the Data Migration that the present embodiment provides, can be by first user equipment receiving data migration indication, according in Data Migration indication, carry for identifying the attribute information of chat record to be migrated, derive chat record to be migrated, generate migrated file, then migrated file is uploaded to network side server, so that the second subscriber equipment obtains this chat record to network side server.The mode that the network side server of usining moves chat record as intermediary, can make user obtain this user by the second subscriber equipment and produce chat record on first user equipment, thereby can guarantee that user can check the complete chat record that comprises the chat record producing on the chat record that produces on first user equipment and the second subscriber equipment on the second subscriber equipment, guarantees that user obtains the integrality of chat record thus.In addition, which can realize a bond migration of chat record, and in prior art, needs user manually to copy to paste to chat record to compare, can simplify user's operating procedure, to improve the convenience of chat record migration.Finally, which can directly be carried out data interaction by existing channel between subscriber equipment and network side server, with in prior art, between subscriber equipment, by wireless modes such as bluetooth, infrared ray, carry out chat record migration and compare, can save the time of setting up wireless connections between subscriber equipment, improve the efficiency of chat record migration; Compare with carry out chat record migration by physical storage mediums such as flash disk, portable hard drives, can save the hardware resource that Data Migration consumes, reduce cost and the complexity of chat record migration.
The present embodiment also provides a kind of method of Data Migration, and described method is applied in network side server.As shown in Figure 2, described method comprises:
201, network side server receives the migrated file that first user equipment is uploaded.
This migrated file carries the first user equipment chat record that indication is derived according to Data Migration, i.e. chat record to the second subscriber equipment to be migrated.
202, network side server is preserved the chat record in migrated file.
Network side server is preserved the chat record to the second subscriber equipment to be migrated, so that the second subscriber equipment is follow-up, obtains.
203, network side server receives the data download indication that the second subscriber equipment sends, and described data are downloaded in indication and carried for identifying the user ID of chat record.
Described data download indication is used to indicate network side server the chat record of storage is moved on the second subscriber equipment.In the present embodiment so-called migration refer to by chat record from first user equipment " transfer " to the second subscriber equipment, in the process shifting, chat record need to be through the transfer of network side server, this wherein chat record in the transfer between first user equipment and network side server and the transfer between network side server and the second subscriber equipment, all can be called migration, in the follow-up description of the present embodiment, continue to continue to use this form of presentation.
Conventionally, network side server carries out O&M to thousands of users' data message, for the chat record of different user (or different account) is distinguished, the second subscriber equipment is when request msg is downloaded, need to download in indication and carry for identifying the user ID of chat record, to avoid receiving other users' chat record in data.Example, described user ID can be user identification number (User Identification Number is called for short UIN), for example, be user's application account number.What on first user equipment and the second subscriber equipment, login due to user is same application account, therefore, can in the situation that not increasing unnecessary signaling consumption, by application account number, to chat record, identify.
204, network side server is searched chat record according to user ID, generates download file.
Network side server, after receiving data download indication, is searched the chat record corresponding with user's application account number, generates download file.Similar with migrated file, network side server can add in a file all chat records as download file to, also can generate a plurality of download files according to the form of chat record, for example generate a text download file, a photo download file and a voice download file, the specific rules that the present embodiment generates download file to first user equipment does not limit.
205, network side server sends to the second subscriber equipment by download file, so that the second subscriber equipment is preserved this chat record.
The second subscriber equipment receives after download file, extracts the chat record wherein carrying and preserves, and completes thus the migration of chat record.
The method of the Data Migration that the embodiment of the present invention provides, can receive the migrated file that the first application apparatus is uploaded by network side server, chat record in migrated file is preserved, then receive the data download indication that the second subscriber equipment sends, according to data download in indication, carry for identifying the user ID of chat record, search chat record to be downloaded, generate download file, finally download file is sent to the second subscriber equipment.The mode that the network side server of usining moves chat record as intermediary, can make user obtain this user by the second subscriber equipment and produce chat record on first user equipment, thereby can guarantee that user can check the complete chat record that comprises the chat record producing on the chat record that produces on first user equipment and the second subscriber equipment on the second subscriber equipment, guarantees that user obtains the integrality of chat record thus.In addition, which can realize a bond migration of chat record, and in prior art, needs user manually to copy to paste to chat record to compare, can simplify user's operating procedure, to improve the convenience of chat record migration.Finally, which can directly be carried out data interaction by existing channel between subscriber equipment and network side server, with in prior art, between subscriber equipment, by wireless modes such as bluetooth, infrared ray, carry out chat record migration and compare, can save the time of setting up wireless connections between subscriber equipment, improve the efficiency of chat record migration; Compare with carry out chat record migration by physical storage mediums such as flash disk, portable hard drives, can save the hardware resource that Data Migration consumes, reduce cost and the complexity of chat record migration.
As to the detailed description of method shown in Fig. 1 and Fig. 2 and further expand, the present embodiment also provides a kind of method of Data Migration.As shown in Figure 3, described method comprises:
301, first user equipment receiving data migration indication.
First user equipment can show that one for moving the function key of chat record on instant communication applications interface, " uploading " key shown in Fig. 4 (a) for example, when user triggers this function key, first user equipment receives chat record migration instruction, and shows the chat record migration menu as shown in Fig. 4 (b).In this chat record migration menu, comprise selection grouping to be migrated, select good friend to be migrated, select chat record content to be migrated and four function keys of select time section, select grouping key to be migrated and select good friend's key to be migrated for selecting the object of chat record to be migrated; Select chat record content key to be migrated for selecting the data format of chat record to be migrated, such as selecting text chat record or Video chat record etc.; The time of select time paragraph key for selecting chat record to occur, for example, between 2013.4.1 to 2013.4.20.User, each function key being selected and being triggered and determine that, after key, first user equipment receives the triggering command of above-mentioned at least one function key, obtains the Data Migration indication that comprises at least one attribute information thus.
It should be noted that, first user equipment when receiving at least one attribute information, give tacit consent between various attribute informations for " and " relation, first user equipment selects the chat record that simultaneously meets all properties information as chat record to be migrated.In addition, first user equipment can also move in menu and to increase " with or " as shown in dotted line frame as middle in Fig. 4 (b) and be related to key at chat record, so as user the relation between each attribute information can be chosen into " or ".
Further, conventionally user is when migration chat record, hope is all moved all chat records, operation for the convenience of the user, first user equipment can also move in menu " all uploading " key increasing as Fig. 4 (b) as shown at chat record, realizes thus a bond migration of chat record, and in prior art, needs user manually to copy stickup to chat record to compare, can simplify user's operating procedure, improve the convenience of chat record migration.
302, first user equipment is derived chat record to be migrated according to the attribute information of chat record to be migrated, generates migrated file.
Take between each attribute information as " and " pass be example, first user equipment, after getting Data Migration indication, is searched the target chat record that simultaneously meet at least one attribute information in the chat record of preserving in this locality.Concrete:
1), when user has only selected a kind of attribute information, in the chat record that first user equipment is preserved in this locality, traversal meets the chat record of this attribute information.
2) when user has selected two or more attribute informations, in the chat record that first user equipment is preserved in this locality, traversal meets the chat record of the first attribute information, obtain first object set, then in first object set, travel through the chat record that meets the second attribute information, obtain the second goal set, until all properties information was all traversed.
For example, when user has selected " good friend 1 " and " 20:00 to 22:00 on the same day " two attribute informations, first first user equipment selected all chat records of good friend 1 and amounted to 100 pages, obtains first object set.Then in these 100 pages of chat records, further select the chat record that meets attribute information " 20:00 to 22:00 on the same day " and amount to 12 pages, obtain thus the second goal set.First user equipment is defined as chat record to be migrated by these 12 pages of chat records.
Above-mentioned 1) or 2) select in the implementation of chat record to be migrated, first user equipment traversal meets the implementation of the chat record of attribute information can be specific as follows:
302a, first user equipment obtain the structured message of each chat record.
First user equipment carries out structuring preservation to chat record conventionally, the content of preserving is except chat content itself, also comprise the structure item information such as timestamp, transmit-receive position, corresponding good friend, wherein, transmit-receive position comprises " user to good friend " and " good friend to user ", and timestamp is the moment value that this chat record occurs.Example, described structured message is as shown in the table:
| Structure item information | Parameter |
| Corresponding good friend | Zhang San |
| Timestamp | 22:02:47 |
| Transmit-receive position | Zhang San to user |
| Data format | Text |
302b, first user equipment extract the structure item information consistent with attribute information classification from structured message.
For example, when first user equipment travels through chat record according to attribute information " good friend of chat record ", extract structure item information " corresponding good friend " from upper table, this information is the structure item information consistent with attribute information " good friend of chat record " classification; When first user equipment travels through chat record according to attribute information " rise time of chat record ", from upper table, extract structure item information " timestamp ", this information is the structure item information consistent with attribute information " rise time of chat record " classification.
302c, first user equipment judge that whether structure item information is consistent with attribute information, draws judged result.
The attribute information of take is example as " good friend of chat record ", when the attribute information of user's selection is " Zhang San ", this attribute information is consistent with " Zhang San " in structure item information " corresponding good friend ", first user equipment execution step 302d, and when the attribute information of user's selection is " Li Si ", first user equipment is skipped this chat record.
302d, first user equipment are defined as target chat record by this chat record.
First user equipment is defined as target chat record by this chat record, i.e. chat record to be migrated.
After definite target chat record, first user equipment obtains the file path of target chat record, then according to this document path, derives target chat record.Concrete, first user equipment can be usingd good friend and as granularity of division, user's chat record preserved, and as shown in Figure 5, user has 4 good friends, and first user equipment is set up 4 file paths, is respectively used to preserve 4 good friends' chat record.In addition, first user equipment also can be preserved chat record to be greater than good friend's granularity of division, for example the corresponding file path of the chat record of a grouping is preserved, or can also to chat record, preserve to be less than good friend's granularity of division, for example the corresponding file path of a chat record is preserved, the implementation that the present embodiment is set up file path to first user equipment does not limit.
First user equipment, after deriving target chat record, generates migrated file, then performs step 303.
303, first user equipment uploads to network side server by migrated file.
Preferably, the signaling consumption producing for reducing transfer of data is saved the time that user uploads migrated file simultaneously, and first first user equipment can compress migrated file, obtain migration compressed file, then migration compressed file is uploaded to network side server.When chat record to be migrated comprises audio or video formatted data, migrated file is often excessive, if first user equipment is directly uploaded migrated file, uplink time is long.In the present embodiment, first user equipment can compress migrated file, obtains relatively little migration compressed file, then to network side server, uploads migration compressed file, saves thus uplink time, improves data transmission efficiency.
Correspondingly, the migrated file receiving when network side server is that while moving compressed file, network side server decompresses to this migration compressed file, obtains migrated file.
304, network side server sends and uploads response message to first user equipment.
Network side server can send one for feeding back the response message of uploading of uploading result to first user equipment after receiving migrated file, this upload response message can be only one such as the Indication message of " successfully uploading chat record ", can be also a report of uploading that comprises information such as migrated file size, attribute information confirmation, uploading speed.
305, network side server is preserved the chat record in migrated file.
Concrete:
305a, network side server obtain the structured message of each chat record in migrated file, and the structured message described in this structured message and step 302 is similar, repeats no more herein.
305b, network side server extract the structure item information of chat record from structured message.
This structure item packets of information contains following at least one information: the timestamp of the object of chat record, the data format of chat record and chat record.
305c, network side server according to this structure item information to the chat record preservation of classifying.For example according to the structure item information of " corresponding good friend ", good friend " Zhang San " and good friend's " Li Si " chat record is preserved respectively or according to the structure item information of " timestamp " by timestamp between period 20:00 to 22:00 and the chat record of timestamp between period 23:00 to 24:00 preserve respectively.
Preferably, when chat record being classified to preservation, network side server can judge whether to have preserved this sorted chat record, draws judged result.When judgment result is that while being, cancel and preserve this sorted chat record.Because user may repeatedly move chat record, and there is unavoidably duplicate contents between the chat record of each migration.For saving the memory space of network side server, guarantee the accuracy of Data Migration simultaneously, before sorted chat record is preserved, first network side server can judge whether to preserve this chat record, thereby avoids identical chat record to repeat to preserve.
306, the second subscriber equipment sends data to network side server and downloads indication.
User is uploading after chat record by first user equipment, just can be by the application account of the second subscriber equipment login oneself.When the second subscriber equipment receives after user's chat record download request, to network side server, send data and download indication, the chat record that request download network side server is preserved.
307, the user ID that network side server is downloaded in indication according to data is searched chat record, generates download file.
Due to the chat record that in network side server, in store thousands of subscriber equipmenies are uploaded, for guaranteeing that the second subscriber equipment can and only can download the chat record that first user equipment is uploaded, the chat record that network side server need to need to be downloaded the second subscriber equipment by user ID is searched.Wherein, described user ID is preferably user's account number.The data that network side server can send from the second subscriber equipment are downloaded the account number of obtaining user indication, also can receive the account number of automatically identifying and obtain user when data are downloaded indication.
After getting user's account number, network side server is searched the chat record number associated with the account in the chat record of preserving.Concrete, network side server travels through all chat records of preserving, from every chat record, extract the structure item information of " user account ", then compare with the account number of obtaining, the identical chat record of account number that account number is obtained with network side server is defined as the second subscriber equipment chat record to be downloaded, finally generates download file.
Optionally, after step 306, the chat record that network side server can also indicate the second user equipment to report to preserve, the described chat record of having preserved is the chat record that the second subscriber equipment is preserved.Then the chat record of the second subscriber equipment having been preserved is preserved.In step 307, network side server generates download file as the second subscriber equipment chat record to be downloaded in the lump using the chat record of the second user equipment to report.Conventionally, user, when using the second subscriber equipment login application account, also can carry out communication with good friend, and consequent chat record is kept in the second application apparatus.For guaranteeing the integrality of Data Migration, network side server is before the second user equipment migration chat record, first the second subscriber equipment reports network side server by the chat record of preservation, then the chat record that network side server reports first user equipment and the chat record of the second user equipment to report generate in the lump download file and send to the second subscriber equipment, thereby guarantee that user can check the complete chat record that comprises the chat record producing on the chat record that produces on first user equipment and the second subscriber equipment on the second subscriber equipment, avoiding repeating to transmit on the basis of same chat but record thus, further guarantee that user obtains the integrality of chat record.
Further alternative, the data that network side server receives are downloaded in indication can also carry time period information, this time period information is for limiting the rise time of chat record, and user can arrange when by the second user equipment requests chat record.For example user is uploaded to network side server by first user equipment by all good friends' whole historical chat record before this, when downloading chat record by the second subscriber equipment, user only wishes to download part (for example nearly one month) chat record, now the second subscriber equipment supports that user limited the rise time of chat record to be downloaded, i.e. setup times segment information.Network side server is after finding the chat record associated with account number, in the chat record associated with account number, search timestamp and belong to chat record in this time period, then only by timestamp, the chat record within this time period sends to the second subscriber equipment.
308, network side server sends to the second subscriber equipment by download file.
Optionally, for reducing the signaling consumption of transfer of data, save the time that user uploads migrated file simultaneously, before sending download file, network side server can compress download file, obtains and downloads compressed file, then this download compressed file is sent to the second subscriber equipment.
309, the second subscriber equipment is preserved the chat record in download file.
When download file is while downloading compressed file, first the second subscriber equipment decompresses to downloading compressed file, then the chat record in download file is preserved.
The method of the Data Migration that the embodiment of the present invention provides, can be by first user equipment receiving data migration indication, according to what carry in Data Migration indication, for identifying the attribute information of chat record to be migrated, derive chat record to be migrated, generate migrated file, then migrated file is uploaded to network side server.Network side server is after receiving the migrated file that first user equipment uploads, chat record in migrated file is preserved, then receive the data download indication that the second subscriber equipment sends, according to data download in indication, carry for identifying the user ID of chat record, search chat record to be downloaded, generate download file, finally download file is sent to the second subscriber equipment.The mode that the network side server of usining moves chat record as intermediary, can make user obtain this user by the second subscriber equipment and produce chat record on first user equipment, thereby can guarantee that user can check the complete chat record that comprises the chat record producing on the chat record that produces on first user equipment and the second subscriber equipment on the second subscriber equipment, guarantees that user obtains the integrality of chat record thus.In addition, which can realize a bond migration of chat record, and in prior art, needs user manually to copy to paste to chat record to compare, can simplify user's operating procedure, to improve the convenience of chat record migration.Finally, which can directly be carried out data interaction by existing channel between subscriber equipment and network side server, with in prior art, between subscriber equipment, by wireless modes such as bluetooth, infrared ray, carry out chat record migration and compare, can save the time of setting up wireless connections between subscriber equipment, improve the efficiency of chat record migration; Compare with carry out chat record migration by physical storage mediums such as flash disk, portable hard drives, can save the hardware resource that Data Migration consumes, reduce cost and the complexity of chat record migration.
Below, in conjunction with the realization of said method, provide three application scenarioss of the present embodiment:
1) user changes mobile phone
Conventionally, when user uses old mobile phone login application account, the chat record producing is kept in old mobile phone, when changing new cell-phone, user can be uploaded to network side server by the chat record of preserving in old mobile phone, then by new cell-phone, login application account, to the chat record of preserving in the old mobile phone of network side server request, realize thus the migration of chat record between new and old mobile phone.
2) user checks chat record by different subscriber equipmenies
When user goes to work, use company computer login application account, receive the vital document that client sends.While coming off duty, the file that user sends client by company computer is uploaded to network side server.After Hours, user uses home computer record application account, to network side server request this document, checks.
3) transfer of data between subscriber equipment
Employee can be uploaded to network side server by the data content that carries out video conference with client on company computer, then the application account of oneself and password is sent to the company leader who goes on business in other places.Leader logs in employee's application account by mobile phone, to this video conference of network side server request, check, breaks through thus the distance limit and the transmission speed restriction that while transmitting data between subscriber equipment, exist.
The present embodiment is usingd the chat record producing in instant messaging application and is illustrated as migration data, in actual applications, the data object that can move also includes but are not limited to the data messages such as mail, ordinary file, telephone directory, and such as the data message producing in other application such as game progress, notepad.
With reference to the realization of method shown in figure 1, the present embodiment also provides a kind of device of Data Migration, and described device is arranged in first user equipment, in order to realize the method shown in Fig. 1.As shown in Figure 6, described device is first device 61, comprising: receiving element 611, lead-out unit 612 and transmitting element 613, wherein,
Described receiving element 611, for receiving Data Migration indication, carries for identifying the attribute information of chat record to be migrated in described Data Migration indication;
Described lead-out unit 612, for deriving chat record to be migrated according to the attribute information of the described chat record to be migrated of described receiving element 611 receptions, generates migrated file;
Described transmitting element 613, uploads to network side server for the described migrated file that described lead-out unit 612 is generated, so that the second subscriber equipment obtains described chat record to described network side server.
Further, as shown in Figure 7, described receiving element 611 comprises:
Receive subelement 711, for receiving chat record migration instruction;
Show subelement 712, for the described chat record migration instruction receiving according to described reception subelement 711, show chat record migration menu, in described chat record migration menu, comprise following at least one function key: select the object of chat record to be migrated, the time period of selecting the data format of chat record to be migrated and selecting chat record to be migrated to generate;
Described reception subelement 711, also for receiving the triggering command of at least one function key, obtains the Data Migration indication that comprises at least one attribute information thus.
Further, as shown in Figure 7, described lead-out unit 612 comprises:
Search subelement 713, for the chat record of preserving in this locality, search the target chat record that simultaneously meets described at least one attribute information;
Obtain subelement 714, for searching the file path of the described target chat record that subelement 713 finds out described in obtaining;
Derive subelement 715, for obtaining the described file path that subelement 714 obtains described in basis, derive described target chat record.
Further, described in search subelement 713 for when only having a kind of attribute information, in the chat record that preserve this locality, traversal meets the chat record of described attribute information.
Further, the described subelement 713 of searching is also for when having two or more attribute informations, in the chat record of preserving in this locality, traversal meets the chat record of the first attribute information, obtain first object set, in described first object set, traversal meets the chat record of the second attribute information, obtain the second goal set, until all properties information was all traversed.
Further, as shown in Figure 8, described in search subelement 713 and comprise:
Acquisition module 811, for obtaining the structured message of each chat record;
Extraction module 812, extracts the structure item information consistent with attribute information classification for the described structured message obtaining from described acquisition module 811;
Judge module 813, whether consistent with described attribute information for judging the described structure item information of described extraction module 812 extractions, draw judged result;
Determination module 814, for when judgment result is that of described judge module 813 is, is defined as target chat record by described chat record.
Further, as shown in Figure 7, described lead-out unit 612 comprises:
Compression subelement 716, for described migrated file is compressed, obtains migration compressed file;
Described transmitting element 613 is for uploading to network side server by described migration compressed file.
The first device 61 that the present embodiment provides, can receive Data Migration indication, according in Data Migration indication, carry for identifying the attribute information of chat record to be migrated, derive chat record to be migrated, generate migrated file, then migrated file is uploaded to network side server, so that the second subscriber equipment obtains this chat record to network side server, the mode that the network side server of usining moves chat record as intermediary, can make user obtain this user by the second subscriber equipment and produce chat record on first user equipment, thereby can guarantee that user can check the complete chat record that comprises the chat record producing on the chat record that produces on first user equipment and the second subscriber equipment on the second subscriber equipment, guarantee that thus user obtains the integrality of chat record.In addition, which can realize a bond migration of chat record, and in prior art, needs user manually to copy to paste to chat record to compare, can simplify user's operating procedure, to improve the convenience of chat record migration.Finally, which can directly be carried out data interaction by existing channel between subscriber equipment and network side server, with in prior art, between subscriber equipment, by wireless modes such as bluetooth, infrared ray, carry out chat record migration and compare, can save the time of setting up wireless connections between subscriber equipment, improve the efficiency of chat record migration; Compare with carry out chat record migration by physical storage mediums such as flash disk, portable hard drives, can save the hardware resource that Data Migration consumes, reduce cost and the complexity of chat record migration.
With reference to the realization of method shown in figure 2, the present embodiment also provides a kind of device of Data Migration, and described device is arranged in network side server, in order to realize the method shown in Fig. 2.As shown in Figure 9, described device is the second device 91, comprising: receiving element 911, storage unit 912, search unit 913, transmitting element 914 and indicating member 915, wherein,
Described receiving element 911, the migrated file of uploading for receiving first user equipment;
Described storage unit 912, for preserving the chat record of the described migrated file of described receiving element 911 receptions;
The data download indication that described receiving element 911 also sends for receiving the second subscriber equipment, described data are downloaded in indication and are carried for identifying the user ID of described chat record;
The described unit 913 of searching, searches described chat record for the described user ID receiving according to described receiving element 911, generates download file;
Described transmitting element 914, for the described described download file of searching unit 913 generations is sent to described the second subscriber equipment, so that described the second subscriber equipment is preserved described chat record.
Further, as shown in figure 10, described storage unit 912 comprises:
Obtain subelement 1011, for obtaining the structured message of each chat record;
Extract subelement 1012, for obtaining from described the structure item information that described structured message that subelement 1011 obtains extracts described chat record, described structure item packets of information is containing following at least one information: the timestamp of the object of chat record, the data format of chat record and chat record;
Preserve subelement 1013, for the described structure item information extracted according to described extraction subelement 1012 to the preservation of classifying of described chat record.
Further, as shown in figure 10, described storage unit 912 comprises:
Judgment sub-unit 1014, preserves described sorted chat record for judging whether, draws judged result;
Described preservation subelement 1013, also for when judgment result is that of described judgment sub-unit 1014 is, cancelled and is preserved described sorted chat record.
Described indicating member 915, after downloading indication for the data that receive the second subscriber equipment transmission at described receiving element 911, the chat record of indicating described the second user equipment to report to preserve, the described chat record of having preserved is the chat record that described the second subscriber equipment is preserved;
Described storage unit 912 is also preserved for the chat record that described the second subscriber equipment has been preserved.
Further, the account number that the described user ID that described receiving element 911 receives is user;
The described unit 913 of searching is also for searching the chat record associated with described account number.
Further, the described data that described receiving element 911 receives are downloaded indication and are also carried time period information, and described time period information is for limiting the rise time of described chat record;
The described unit 913 of searching, also for after searching the chat record associated with described account number, is searched timestamp and is belonged to chat record in the described time period in the chat record associated with described account number.
Further, as shown in figure 11, described receiving element 911 comprises:
Receive subelement 1111, the migration compressed file of uploading for receiving first user equipment;
Decompression subelement 1112, decompresses for the described migration compressed file that described reception subelement 1111 is received, and obtains described migrated file.
Further, as shown in figure 11, described transmitting element 914 comprises:
Compression subelement 1113, for described download file is compressed, obtains and downloads compressed file;
Send subelement 1114, for the described download compressed file of described compression subelement 1113 compressions is sent to described the second subscriber equipment.
The second device 91 that the embodiment of the present invention provides, can receive the migrated file that the first application apparatus is uploaded, chat record in migrated file is preserved, then receive the data download indication that the second subscriber equipment sends, according to data download in indication, carry for identifying the user ID of chat record, search chat record to be downloaded, generate download file, finally download file is sent to the second subscriber equipment, the mode that the network side server of usining moves chat record as intermediary, can make user obtain this user by the second subscriber equipment and produce chat record on first user equipment, thereby can guarantee that user can check the complete chat record that comprises the chat record producing on the chat record that produces on first user equipment and the second subscriber equipment on the second subscriber equipment, guarantee that thus user obtains the integrality of chat record.In addition, which can realize a bond migration of chat record, and in prior art, needs user manually to copy to paste to chat record to compare, can simplify user's operating procedure, to improve the convenience of chat record migration.Finally, which can directly be carried out data interaction by existing channel between subscriber equipment and network side server, with in prior art, between subscriber equipment, by wireless modes such as bluetooth, infrared ray, carry out chat record migration and compare, can save the time of setting up wireless connections between subscriber equipment, improve the efficiency of chat record migration; Compare with carry out chat record migration by physical storage mediums such as flash disk, portable hard drives, can save the hardware resource that Data Migration consumes, reduce cost and the complexity of chat record migration.
With reference to the device shown in figure 6 to Figure 11, this enforcement also provides a kind of system of Data Migration.As shown in figure 12, described system 12 comprises: first user equipment 1201, network side server 1202 and the second subscriber equipment 1203, wherein, described first user equipment 1201 comprises the first device 61 as shown in arbitrary width in Fig. 6 to Fig. 8, and described network side server 1202 comprises the second device 91 as shown in arbitrary width in Fig. 9 to Figure 11.
Described first user equipment 1201, be used for receiving Data Migration indication, in described Data Migration indication, carry for identifying the attribute information of chat record to be migrated, according to the attribute information of described chat record to be migrated, derive chat record to be migrated, generate migrated file, described migrated file is uploaded to described network side server 1202;
Described network side server 1202, the migrated file of uploading for receiving described first user equipment 1201, and the chat record in described migrated file is preserved;
Described the second subscriber equipment 1203, downloads indication for sending data to described network side server 1202, and described data are downloaded in indication and carried for identifying the user ID of described chat record;
The described data download indication that described network side server 1202 also sends for receiving described the second subscriber equipment 1203, the described user ID of downloading in indication according to described data is searched described chat record, generate download file, described download file is sent to described the second subscriber equipment 1203;
Described the second subscriber equipment 1203 also for, receive the described download file that described network side server 1202 sends, the chat record in described download file is preserved.
The system of the Data Migration that the embodiment of the present invention provides, can be by first user equipment receiving data migration indication, according in Data Migration indication, carry for identifying the attribute information of chat record to be migrated, derive chat record to be migrated, generate migrated file, then migrated file is uploaded to network side server.Network side server is after receiving the migrated file that first user equipment uploads, chat record in migrated file is preserved, then receive the data download indication that the second subscriber equipment sends, according to data download in indication, carry for identifying the user ID of chat record, search chat record to be downloaded, generate download file, finally download file is sent to the second subscriber equipment.The mode that the network side server of usining moves chat record as intermediary, can make user obtain this user by the second subscriber equipment and produce chat record on first user equipment, thereby can guarantee that user can check the complete chat record that comprises the chat record producing on the chat record that produces on first user equipment and the second subscriber equipment on the second subscriber equipment, guarantees that user obtains the integrality of chat record thus.In addition, which can realize a bond migration of chat record, and in prior art, needs user manually to copy to paste to chat record to compare, can simplify user's operating procedure, to improve the convenience of chat record migration.Finally, which can directly be carried out data interaction by existing channel between subscriber equipment and network side server, with in prior art, between subscriber equipment, by wireless modes such as bluetooth, infrared ray, carry out chat record migration and compare, can save the time of setting up wireless connections between subscriber equipment, improve the efficiency of chat record migration; Compare with carry out chat record migration by physical storage mediums such as flash disk, portable hard drives, can save the hardware resource that Data Migration consumes, reduce cost and the complexity of chat record migration.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.