Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the technical scheme in the embodiment of the present invention is described in further detail, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Be understandable that; specific embodiment described herein is only for explaining the present invention; but not limitation of the invention; based on the embodiment in the present invention; those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not full content.
Embodiment mono-
Refer to Fig. 1 a, the process flow diagram of a kind of User Defined list disposal route providing for the embodiment of the present invention one.The User Defined list treating apparatus that the method for the embodiment of the present invention can be realized by hardware and/or software is carried out, this implement device is typically and is disposed in the server that can provide User Defined list to process service, or is disposed in the client that can provide User Defined list to process service.Client is generally the software being installed in user terminal, and can communicate based on http protocol between background server, and to process User Defined list, or client also can be processed in this locality User Defined list.The present embodiment will be first carried out following method taking server and is described as example.
As shown in Figure 1a, the method comprises:
110, obtain the User Defined list migration request that user initiates by current application;
User Defined list migration request is specifically obtained in this operation, also migrates to the request of current application by the User Defined list in migration source.Current application can the self-defined list of compatible user application (App) service, server is to provide the server of this application conventionally.Wherein moving resources bank corresponding to resources bank corresponding to source and current application is same type, such as music or video etc.
Wherein, User Defined list refers to that user is by web browser, the PC (PersonalComputer of mobile device, PC) web browser of equipment, the client of mobile device, and/or the client of PC equipment is set up or the list relevant to personal interest of setting, and can in User Defined list, add the current interested project of user, the operation such as check, add, delete, download, collect and share to facilitate user to click project.
Because the difference of characteristic, the terminal of application self and user are in the difference of different terminal use habits, cause the application for same type, user may create respectively User Defined list in different application.Wherein, the migration terminal type in source and the terminal type of current application can be identical, also can be different; Application corresponding to User Defined list in migration source can be identical with current application, also can be different.For identical application, user can carry out the migration of User Defined list between the different accounts of oneself.
120, according to the migration source mark in described migration request, obtain the User Defined list of user in migration source, and migrate in described current application;
This operation specifically, according to migration source mark, is obtained the User Defined list of user in migration source.After getting User Defined list, this self-defined list is moved, also migrate to current application from migration source by User Defined list.Particularly, the project information (for example, project name, creator etc.) for example, comprising in the information of User Defined list (List name) and User Defined list is moved.
Wherein, migration source mark is for locating User Defined list to be migrated.Migration source mark can comprise: the filename of the resource in the resources bank that move source name, move source network address, migration source is corresponding, URL (the Uniform Resource Locator of resource, URL(uniform resource locator)) one or more combination in address and user name, the present embodiment does not limit this, as long as can unique identification migration source.
It should be noted that, the quantity of the User Defined list that user sets up or arranges in same migration source can be one or more, for example, user is provided with two self-defined lists in the KuGoo music client of mobile terminal, the name of a self-defined list is called " my favorite ", and the name of another self-defined list is called " Liang Jingru ".Correspondingly, the project in the User Defined list that user sets up or arranges can be the resource in resources bank corresponding to this migration source, can be also local resource, is also arranged in the resource of terminal local data base.
Also it should be noted that, User Defined list can also comprise the list relevant with user's historical behavior, and for example, client or browser are according to the historical record of user's audition song, and the name of generation is called the list of " playing recently ".Correspondingly, the project in the list relevant with user's historical behavior can be the resource in resources bank corresponding to this migration source, can be also local resource.
Correspondingly, the User Defined list of the user who obtains in migration source can comprise the User Defined list that user sets up or arranges, and can also comprise the list relevant with user's historical behavior.And, the quantity of the User Defined list of the user who obtains in same migration source can be one, also can be multiple, in the quantity from the User Defined list in same migration source of obtaining, be limited to the quantity of User Defined list that user sets up or arrange and the summation of the quantity of the list relevant with user's historical behavior.Certainly, also can be according to default acquisition strategy, obtain the User Defined list of specifying number.
130,, according to the information of the project in described User Defined list, in setting resources bank, mate described project, and determine the link information of project described in described User Defined list according to matching result.
Set resources bank and be generally associated with current application or with applications client place terminal, for example, the resources bank using for current application, can provide more excellent resource transmission path or better audio-visual quality etc. can be provided for current application.This setting resources bank can also be the resources bank of terminal this locality, applications client place, and local repository provides the resource of project in User Defined list, can reduce the resource that Internet Transmission takies.
This operation, specifically setting in resources bank to search whether there be the resource consistent with project information, if existed, changes to the former link information of the project in User Defined list this project at the link information of setting corresponding resource in resources bank; If there is no, carry out other and operate to determine the link information of project described in described User Defined list, the former link information of for example suspended item, is also the original link of suspended item in migration source.
Originally be operating as the map operation of project link, for the project of migration redefines preferred resource approach, thereby make the project of the User Defined list after migration, can obtain link resources in mode preferably and offer user, thereby all obtain preferably performance at aspects such as download, transmission, quality.
The technical scheme of the present embodiment, by obtain User Defined list migration request in current application, can migrate to User Defined list current application from migration source; And by setting the project in the self-defined list of match user in resources bank, can redefine the link of project in User Defined list, thereby the resource acquisition approach of identifying project optimum promotes user's experience.
Said method, can be carried out by server, obtains user's migration request from applications client, carries out after migration and map operation, then is pushed to applications client.Or, also can directly bring in execution by application client, carry out migration and mapping at client terminal local, or client coordinates with server, completes migration by client, completes map operation by server.
Refer to Fig. 1 b, on the basis of the present embodiment, as operation 110 one preferred embodiment, obtain the User Defined list migration request that user initiates by current application, preferably include:
111, obtain the User Defined list migration request that user initiates by current application;
112, carry out authentication according to the username and password in described migration request;
113, if the verification passes, migration source network address and the user name obtained in described migration request identify as described migration source.
Describe taking User Defined list as music list.Refer to Fig. 1 c, user can input or select migration source in " I will move " page of the current application of smart mobile phone " Baidu's music ", for example select " KuGoo music ", and input user name " mymusic " and the password " 123 " corresponding with migration source, to initiate User Defined list migration request; Then carry out authentication according to the user name in migration request " mymusic " and password " 123 "; If the verification passes, also be user name " mymusic " and password " 123 " be username and password corresponding to migration source " KuGoo music ", obtain migration source network address in described migration request and user name " mymusic " mark as described migration source " KuGoo music ".If authentication failed, can point out user to carry out the operation such as " re-entering " or " giving password for change ".
This preferred embodiment, by obtaining User Defined list migration request, and the username and password in User Defined list migration request is carried out to authentication, and in the time being verified, obtain migration source mark, can operate afterwards 120 and operation 130, to realize the migration of User Defined list.
It should be noted that, by executable operations 110-operation 130, project in the User Defined list and this list that come from migration source can be migrated in current application, exemplarily, refer to Fig. 1 d, for the project " Song of Joy " of the User Defined list " a spring breeze stroking the face " in the source of moving " KuGoo music " and this list, " Dj Rainman Remix " and " The Orchid Pavilion order " being migrated to the result figure at " my list " interface of current application " Baidu's music " client.By repeatedly executable operations 110-operation 130, the User Defined list coming from different migrations source can be migrated in current application, exemplarily, refer to Fig. 1 e, after executable operations 110-operation for the first time 130, the project " Song of Joy " of the User Defined list " a spring breeze stroking the face " in the source of moving " KuGoo music " and this list, " Dj Rainman Remix " and " The Orchid Pavilion order " are migrated to " my list " interface of current application " Baidu's music " client; After executable operations 110-operation for the second time 130, the project of the User Defined list " the chilling autumn night " in the source of moving " QQ music " and this list " I am a bird ", " Spring girl " and " happy native place " are migrated to current application " Baidu's music " client " my list " interface.
The User Defined list disposal route that the embodiment of the present invention provides, can be applied to several scenes.In other words, User Defined list can comprise following at least one: User Defined music list, User Defined list of videos, the list of User Defined picture and the list of User Defined e-book, correspondingly, can realize the migration of User Defined music list, User Defined list of videos, the list of User Defined picture and the list of User Defined e-book.
Particularly, the technical scheme of the present embodiment is applicable to multiple migration scene, taking music list as example, migration scene comprise following at least one:
Migration source is the music browser that is positioned at PC end, and current application is the music browser that is positioned at PC end, and the type of music browser can be identical, for example, is Baidu's music browser; The type of music browser can be different, and for example migration source is the KuGoo music browser that is positioned at PC end, and current application is the Baidu's music browser that is positioned at PC end; Or
Migration source is the music client that is positioned at PC end, and current application is the music client that is positioned at PC end, and the type of music client can be identical, for example, is Baidu's music client; The type of music client can be different, and for example migration source is the KuGoo music client that is positioned at PC end, and current application is the Baidu's music client that is positioned at PC end; Or
Migration source is the music browser that is positioned at mobile terminal, and current application is the music browser that is positioned at mobile terminal, and the type of music browser can be identical, for example, is Baidu's music browser; The type of music browser can be different, and for example migration source is the KuGoo music browser that is positioned at mobile terminal, and current application is the Baidu's music browser that is positioned at mobile terminal; Or
Migration source is the music client that is positioned at mobile terminal, and current application is the music client that is positioned at mobile terminal, and the type of music client can be identical, for example, is Baidu's music client; The type of music client can be different, and for example migration source is the KuGoo music client that is positioned at mobile terminal, and current application is the Baidu's music client that is positioned at mobile terminal.
Embodiment bis-
Refer to Fig. 2 a, the process flow diagram of a kind of User Defined list disposal route providing for the embodiment of the present invention two.The present embodiment is on the basis of above-described embodiment, provide according to the information of the project in described User Defined list, in setting resources bank, mate described project, and determine the preferred version of this operation of link information of project described in described User Defined list according to matching result.
As shown in Figure 2 a, this method for optimizing comprises:
210,, according to the information of the project in described User Defined list, in setting resources bank, mate described project;
In this operation, the information of described project at least comprises: the former chained address of project name, creator's title and project.Wherein, the former chained address of project refers to the chained address of project in migration source.
The information of described project can also comprise: the information such as item size or duration.
If 220 match described project in described setting resources bank, the former link information of project described in described User Defined list is updated to the chained address in described setting resources bank;
This operation specifically can, according to the project name in project information and creator's title setting the resource of searching this project in resources bank, be determined matching result, then determines linking of project in User Defined list and corresponding resource in setting resources bank.
Describe as an example of User Defined music list example.For example, migration source is " KuGoo music ", and in list, including project name is the project that " THE INVISIBLE WINGS ", creator's name are called " Zhang Shaohan " and former chained address sensing " KuGoo music ".Through coupling, in current application for existing name to be called the resource that " THE INVISIBLE WINGS " and creator's name are called " Zhang Shaohan " in the setting resources bank of " Baidu's music ", " Baidu's music " pointed in chained address corresponding to this resource, adopts the described chained address of pointing to " Baidu's music " to replace the described chained address of pointing to " KuGoo music ".
If 230 do not match described project in described setting resources bank, in described User Defined list, retain the former link information of described project as chained address.
Still describe as an example of above-mentioned project example.If for not existing name to be called the resource that " THE INVISIBLE WINGS " and creator's name are called " Zhang Shaohan " in the setting resources bank of " Baidu's music ", retain the former link information of this project in current application in described User Defined list.
It should be noted that, operation 220 and operation 230 are separately independently to carry out, and specifically carry out the matching result that operation 210 is depended in which operation.
The technical scheme of the present embodiment, according to the information of the project in described User Defined list, take certain matching strategy, in setting resources bank, mate described project, and determine linking of corresponding resource in the setting resources bank of project and current application in described User Defined list according to matching result, thereby make user in current application, pass through the link information of project in the User Defined list after migration, can access resource corresponding to User Defined list project that is arranged in migration source before moving, promote user's experience.
Refer to Fig. 2 b, the another preferred embodiment when it fails to match, comprising:
If 240 do not match described project in described setting resources bank, download the resource of described project according to the former link information of described project, store in described setting resources bank, the former link information of project described in described User Defined list is updated to the chained address in described setting resources bank;
Still describe as an example of above-mentioned project example.If in current application for not existing name to be called the resource that " THE INVISIBLE WINGS " and creator's name are called " Zhang Shaohan " in the setting resources bank of " Baidu's music ", download the resource of described project according to the former link information of described project, and this resource is stored in the setting resources bank of " Baidu's music ", then upgrade chained address.
It should be noted that, operation 220 and operation 240 are separately independently to carry out, and specifically carry out the matching result that operation 210 is depended in which operation.In fact, in the present embodiment, can be according to matching result, adopt at least one the rule operating in 220,230 and 240 to determine the link information of project described in described User Defined list.
Operation 230 is with the difference of operation 240: in operation 230, in User Defined list, the former of a suspended item links, only, in the situation that network connects, user can be accessed and be moved resource corresponding to User Defined list project that is arranged in migration source before by current application; And not only obtain corresponding resource by former link in operation 240, with new settings resources bank more, and by set up item with upgrade after resources bank in the linking of corresponding resource, with the former link of renewal item, especially in the time that the resource of downloading stores in local data base, no matter network connects or disconnects, and user can both be accessed and be moved resource corresponding to User Defined list project that is arranged in migration source before by current application, has further promoted user's experience.
Embodiment tri-
Refer to Fig. 3, the process flow diagram of a kind of User Defined list disposal route providing for the embodiment of the present invention three.The present embodiment is on the basis of embodiment mono-, provide according to the information of the project in described User Defined list, in setting resources bank, mate described project, and determine the preferred version of this operation of link information of project described in described User Defined list according to matching result.This method for optimizing comprises:
310,, according to the information of the project in described User Defined list, in the local data base of client place terminal, mate described project;
This operation is specifically searched and whether is had the local resource mating with described project in the local data base of client place terminal, particularly, can mate by project name and creator's title.
If 320 do not match described project in described local data base, send matching request to server, to mate described project in server resource storehouse;
This operation is the matching result in the local data base of client place terminal according to project specifically, if match described project in described local data base, the former link information of project described in described User Defined list can be updated to the chained address in described local data base; If do not match described project in described local data base, further mate in server resource storehouse.
330, determine the link information of project described in described User Defined list according to matching result.
The scheme of the link information of project described in described User Defined list is determined in this operation according to matching result, the link information that is equally applicable to previous embodiment operation 220 and operation 230 is determined operation, also the link information that is applicable to previous embodiment operation 220 and operation 240 is determined operation, repeats no more herein.
The technical scheme of the present embodiment, the first project in the self-defined list of match user in the local data base of client place terminal, in the time that the match is successful, can set up linking of this project and corresponding resource in local data base; And in the time that it fails to match, in server resource storehouse, further mate, can determine linking of corresponding resource in the server resource storehouse of project described in described User Defined list and current application, thereby make user in current application, pass through the link information of project in the User Defined list after migration, can access resource corresponding to User Defined list project that is arranged in migration source before moving, promote user's experience.
Embodiment tetra-
Refer to Fig. 4, the process flow diagram of a kind of User Defined list disposal route providing for the embodiment of the present invention four.The method comprises:
410, obtain the User Defined list migration request that user initiates by current application;
420, according to the migration source mark in described migration request, obtain the User Defined list of user in migration source, and migrate in described current application;
Belong to described setting resources bank if 430 recognize described project according to the former link information of the project in described User Defined list; Or
Belong to if recognize described project according to the migration source of described User Defined list the migration source of setting;
The link information of project described in described User Defined list is left to former link information.
Setting resources bank or the no migration source of setting that belongs to whether project belongs to current application specifically identified in this operation, also be, whether identification migration source is identical with current application, for example, while in current application being " Baidu's music " browser, recognize according to the domain name " .*baidu.com " in the former link information of the project in User Defined list the setting resources bank that this project belongs to current application " Baidu's music ", or according to the migration source name " Baidu's music " in the migration source mark of User Defined list, recognize the setting migration source that this project belongs to current application " Baidu's music ", the link information of project described in described User Defined list is left to former link information.
Wherein, ". " represents the character set that has comprised all ascii characters; " * " represents the continuous repetition of arbitrary number of times.
The technical scheme of the present embodiment, be applicable to following migration scene: taking User Defined music list as example, no matter move place, source terminal and current application place terminal is identical or different, as long as meet: migration source is music browser (or music client), current application is music browser (or music client), and the type of music browser (or music client) is identical, for example, be Baidu's music browser (or Baidu's music client).Typical as, user registers two different accounts by same music browser, and the User Defined music list in an account is migrated in another account.
It should be noted that, the technical scheme of the present embodiment is equally applicable to the migration of User Defined list of videos, the list of User Defined picture or the list of User Defined e-book or other User Defined lists.
The technical scheme of the present embodiment, whether belong to setting resources bank by the project in the list of identification User Defined, or the no migration source of setting that belongs to, and when recognition result is when belonging to, by retaining former link information, migrate in current application from migration source thereby realize User Defined list.
It should be noted that, not belong to described setting resources bank if recognition result is project, or do not belong to setting migration source, carry out following operation:
According to the information of the project in described User Defined list, in setting resources bank, mate described project, and determine the link information of project described in described User Defined list according to matching result.
The present embodiment is determined the scheme of the link information of project described in described User Defined list according to matching result, the link information that is equally applicable to previous embodiment operation 220 and operation 230 is determined operation, also the link information that is applicable to previous embodiment operation 220 and operation 240 is determined operation, repeats no more herein.
Embodiment five
Refer to Fig. 5, the structural representation of a kind of User Defined list treating apparatus providing for the embodiment of the present invention five.This device comprises: migration request acquisition module 510, list transferring module 520 and link information determination module 530.
Wherein, the User Defined list migration request that migration request acquisition module 510 is initiated by current application for obtaining user; List transferring module 520, for according to the migration source mark of described migration request, is obtained the User Defined list of user in migration source, and is migrated in described current application; Link information determination module 530, for according to the information of the project of described User Defined list, mates described project, and determines the link information of project described in described User Defined list according to matching result in setting resources bank.
The technical scheme of the present embodiment, by obtain User Defined list migration request in current application, can migrate to User Defined list current application from migration source; And by setting the project in the self-defined list of match user in resources bank, can redefine the link of project in User Defined list, thereby the resource acquisition approach of identifying project optimum promotes user's experience.
As the one of the present embodiment preferred embodiment, link information determination module 530 comprises: the first matching unit, also comprises at least one in the first chained address determining unit, the second chained address determining unit and the 3rd chained address determining unit.
Wherein, the first matching unit, for according to the information of the project of described User Defined list, mates described project in setting resources bank; If the first chained address determining unit, for matching described project at described setting resources bank, is updated to the chained address in described setting resources bank by the former link information of project described in described User Defined list; If the second chained address determining unit is not for matching described project at described setting resources bank, download the resource of described project according to the former link information of described project, store in described setting resources bank, the former link information of project described in described User Defined list is updated to the chained address in described setting resources bank; If the 3rd chained address determining unit, for not matching described project at described setting resources bank, retains the former link information of described project as chained address in described User Defined list.
As another preferred embodiment of the present embodiment, link information determination module 530 comprises: the second matching unit, the 3rd matching unit and link information determining unit.
Wherein, the second matching unit, for according to the information of the project of described User Defined list, mates described project in the local data base of client place terminal; If the 3rd matching unit is not also for matching described project at described local data base, send matching request to server, to mate described project in server resource storehouse; Link information determining unit is for determining the link information of project described in described User Defined list according to matching result.
As the present embodiment another preferred embodiment, this device can also comprise: the first identification module or the second identification module.
Wherein, the first identification module is for according to the information of the project of described User Defined list, in setting resources bank, mate described project, and determine the link information of project described in described User Defined list according to matching result before, belong to described setting resources bank if recognize described project according to the former link information of the project in described User Defined list, the link information of project described in described User Defined list is left to former link information; The second identification module is for according to the information of the project of described User Defined list, in setting resources bank, mate described project, and determine the link information of project described in described User Defined list according to matching result before, belong to setting migration source if recognize described project according to the migration source of described User Defined list, the link information of project described in described User Defined list is left to former link information.
In such scheme, the information of described project at least comprises: the former chained address of project name, creator's title and project.
In such scheme, migration request acquisition module 510 preferably includes: migration request acquiring unit, identity authenticating unit and migration source mark acquiring unit.
Wherein, migration request acquiring unit is for obtaining the User Defined list migration request that user initiates by current application; Identity authenticating unit is for carrying out authentication according to the username and password of described migration request; Migration source mark acquiring unit is used for if the verification passes, and migration source network address and the user name obtained in described migration request identify as described migration source.
In such scheme, included following at least one of User Defined list: User Defined music list, User Defined list of videos, the list of User Defined picture and the list of User Defined e-book.
The User Defined list treating apparatus that the embodiment of the present invention provides can be carried out the User Defined list disposal route that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Finally it should be noted that: above each embodiment is only for technical scheme of the present invention is described, but not be limited; In embodiment, preferred embodiment, be not limited, to those skilled in the art, the present invention can have various changes and variation.All any amendments of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included within spirit of the present invention and principle.