Summary of the invention
It for overcome the deficiencies in the prior art, being capable of basis the present invention provides a kind of method for expanding contact person's mode
Contact person in user oneself address list searches the people's contact method required to look up.
Technical solution provided by the invention are as follows:
A method of expanding contact person's mode, comprising:
Obtain the second level address list of a contact person B in the level-one address list of a mobile terminal, wherein on the mobile terminal
The address list of setting is level-one address list, and the contact person in the level-one address list is arranged logical on its corresponding mobile terminal
News record is second level address list, and the level-one address list and the second level address list are stored on network server;
From the second level address list of the contact person B, obtain the contact person B allow the mobile terminal user A or
The linkman set J of group access where person user A, wherein the permission of the contact person B setting or the permission of prevention are stored in
On network server;
It searches for the presence or absence of contact person identical with the Given information of people C to be searched in the linkman set J, if
In the presence of then search result is stored in linkman set K;
Judge to organize visit where whether the contact person in the linkman set K allows the friend or friend of the contact person B
It asks, if allowing, contact person's contact method of permission is shown, if not allowing, search result is sky.
Preferably, the method for described expansion contact person's mode, if in the linkman set J there is no with to look into
The identical contact person of the Given information of the people C looked for then continues the three-level communication for obtaining the contact person D in the linkman set J
Record, wherein the three-level address list is arranged on its corresponding mobile terminal logical for the contact person D in the second level address list
News record, and the three-level address list is stored on the webserver;
From the three-level address list, obtaining the contact person D allows user A or user the A institute of the mobile terminal
In the linkman set L of group access, wherein the permission of the contact person D setting or the permission of prevention are stored in network service
On device;
It searches for the presence or absence of contact person identical with the Given information of people C to be searched in the linkman set L, if
In the presence of then search result is stored in linkman set M;
Judge to organize visit where whether the contact person in the linkman set M allows the friend or friend of the contact person D
It asks, if allowing, contact person's contact method of permission is shown, if not allowing, search result is sky.
Preferably, the method for expansion contact person's mode, the Given information of the people C to be searched are its name
Word or the Business Name at place.
Preferably, the method for expansion contact person's mode, the level-one address list, second level address list or three-level
The contact feature field of address list includes: name, company, number and group.
Preferably, the method for expansion contact person's mode, the people C the to be searched and contact person B are
Friend.
Preferably, the method for expansion contact person's mode, the permission of the setting or the permission feature of prevention
Field includes: the group of permission, the individual of permission, the people for allowing the group accessed and allowing to access.
Preferably, the method for expansion contact person's mode when search result is empty, mentions if described do not allow
Show that not finding relevant people or people to be searched does not allow to access.
The present invention is include at least the following beneficial effects: the level-one address list due to the present invention first by obtaining mobile terminal
In a contact person B second level address list;Then the contact person B is obtained from the second level address list of contact person B allows movement eventually
The linkman set J of group access where the user A or user A at end;And search in linkman set J with the presence or absence of with to look into
The identical contact person of the Given information of the people C looked for, and if it exists, then search result is stored in linkman set K;Finally judge
Whether the contact person in linkman set K allows group access where the friend or friend of contact person B, if allowing, by permission
Contact person's contact method is shown, if not allowing, search result is sky, in this case, when knowing that the people C required to look up is
When the friend or colleague of oneself contact person in address list B, so that it may easily scan for searching, and in oneself address list
Contact person B is provided with the permission for whether allowing oneself to access she or he friend, the friend of oneself same contact person in address list B
Friend or colleague C are also equipped with friend's (such as oneself) of contact person B whether is allowed to access, and the setting mutually limited also protects
The privacy of circle of friends.
Further advantage, target and feature of the invention will be partially reflected by the following instructions, and part will also be by this
The research and practice of invention and be understood by the person skilled in the art.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
The advantages of to make technical solution of the present invention, is clearer, makees specifically to the present invention with reference to the accompanying drawings and examples
It is bright.
As shown in Figure 1, the method for expansion contact person's mode that one embodiment of the invention provides, comprising:
S110, the second level address list for obtaining a contact person B in the level-one address list of a mobile terminal, wherein the movement
The address list being arranged in terminal is level-one address list, and the contact person in the level-one address list sets on its corresponding mobile terminal
The address list set is second level address list, and the level-one address list and the second level address list are stored on network server;
S120, from the second level address list of the contact person B, obtaining the contact person B allows the use of the mobile terminal
The linkman set J of group access where family A or user A, wherein the permission of the contact person B setting or the permission of prevention
It is stored on the webserver;
It should be noted that the present invention needs to come using network server the contact method of contact person in memory communicating record,
When mobile terminal user needs to retrieve the contact method of people to be searched, the embodiment of the present invention will be from mobile terminal
The contact person of storage either mobile terminal user is stored in the contact person on network and starts to retrieve.
Wherein, the contact feature field of the level-one address list or second level address list includes: name, company, number
Code and group.The people C to be searched and the contact person B are friends, in this way can be targetedly to setting on mobile terminal
The contact person in level-one address list set scans for searching, rather than scans for whole contact persons in address list, changes
Numerous is letter, when whether the friend or company if it is the All Contacts in retrieval level-one address list are the object for wanting to look for, only
It is the repetitive operation of the present embodiment.
Wherein, the permission of the setting or the rights field of prevention include: the group of permission, and the individual of permission allows to visit
The group asked and the people for allowing to access.Specifically allow to access data and please refers to table one.
Table one
It is contacted in S130, the search linkman set J with the presence or absence of identical with the Given information of people C to be searched
People, and if it exists, then search result is stored in linkman set K;
Wherein, the Given information of the people C to be searched is the Business Name at its name or place.
Whether S140, the contact person for judging in the linkman set K allow where the friend or friend of the contact person B
Group access shows contact person's contact method of permission if allowing, if not allowing, search result is sky.
If when search result is empty, prompting not finding relevant people or to search specifically, described do not allow
People do not allow to access.
For embodiment one, for a specific example, when mobile terminal user wants the good friend Linda by oneself, look for
To the contact method of the good friend FAE of Linda, there are following several situations:
One, Linda and FAE understanding, the permission mobile terminal user of Linda first search her friend, and the friend of Linda
FAE allows the friend of Linda to find oneself, then mobile terminal user can be successfully found the contact method of FAE.
Two, Linda does not allow mobile terminal user to search her friend, although the good friend FAE of Linda allows Linda's
Friend finds oneself, then mobile terminal user can not be successfully found the contact method of FAE.
Three, Linda permission mobile terminal user searches her friend, but the good friend FAE of Linda does not allow Linda's
Friend finds oneself, then mobile terminal user can not be successfully found the contact method of FAE.
So mobile terminal user wants the good friend's FAE contact method for being successfully found Linda, it is necessary to which Linda allows mobile whole
End subscriber searches her friend, and the friend FAE of Linda allows the friend of also Linda to find oneself, if the two conditions are not
It is able to satisfy, lookup just will fail, and the benefit being arranged in this way can protect the privacy of address list circle of friends.
Therefore, because the embodiment of the present invention passes through two of a contact person B in the level-one address list for obtaining mobile terminal first
Grade address list;Then the contact person B is obtained from the second level address list of contact person B allows the user A or use of mobile terminal
The linkman set J of group access where the A of family;And it searches in linkman set J with the presence or absence of the known letter with people C to be searched
Cease identical contact person, and if it exists, then search result is stored in linkman set K;Finally judge in linkman set K
Whether contact person allows group access where the friend or friend of contact person B, if allowing, contact person's contact method of permission is shown
It shows and, if not allowing, search result is sky, in this case, when knowing that the people C required to look up is contacted in oneself address list
When the friend or colleague of people B, so that it may easily scan for searching, and the contact person B in oneself address list is provided with and is
No permission oneself accesses her, and perhaps the friend of oneself same contact person in address list B of permission of his friend or colleague C are also set
Whether allow the friend (such as oneself) of contact person B access, the setting mutually limited also protects the privacy of circle of friends if being equipped with.
The method for expansion contact person's mode that further embodiment of this invention provides, further includes:
S210, the second level address list for obtaining a contact person B in the level-one address list of a mobile terminal, wherein the movement
The address list being arranged in terminal is level-one address list, and the contact person in the level-one address list sets on its corresponding mobile terminal
The address list set is second level address list, and the level-one address list and the second level address list are stored on network server;
S220, from the second level address list of the contact person B, obtaining the contact person B allows the use of the mobile terminal
The linkman set J of group access where family A or user A, wherein the permission of the contact person B setting or the permission of prevention
It is stored on the webserver;
It is contacted in S230, the search linkman set J with the presence or absence of identical with the Given information of people C to be searched
People continues to obtain if contact person identical with the Given information of people C to be searched is not present in the linkman set J
The three-level address list of contact person D in the linkman set J, wherein the three-level address list is in the second level address list
The address list that is arranged on its corresponding mobile terminal of contact person D, and the three-level address list is stored on the webserver;
S240, from the three-level address list, obtaining the contact person D allows the user A or use of the mobile terminal
The linkman set L of group access where the A of family, wherein the permission of the contact person D setting or the permission of prevention are stored in network
On server;
It is contacted in S250, the search linkman set L with the presence or absence of identical with the Given information of people C to be searched
People, and if it exists, then search result is stored in linkman set M;
Whether S260, the contact person for judging in the linkman set M allow where the friend or friend of the contact person D
Group access shows contact person's contact method of permission if allowing, if not allowing, search result is sky.
Search range is extended to three-level address list by the embodiment of the present invention two, keeps search range wider, is improved successfully
Probability.Likewise, search range can be expanded to N grades, at this moment, can also be existed by the other number of limiter stage, the embodiment of the present invention
This does not do specific restriction, this can be determined according to the actual situation.
Although the embodiments of the present invention have been disclosed as above, but its is not only in the description and the implementation listed
With it can be fully applied to various fields suitable for the present invention, for those skilled in the art, can be easily
Realize other modification, therefore without departing from the general concept defined in the claims and the equivalent scope, the present invention is simultaneously unlimited
In specific details and legend shown and described herein.