CN106126720A - The method and device that the collection of browser of mobile terminal is managed - Google Patents
The method and device that the collection of browser of mobile terminal is managed Download PDFInfo
- Publication number
- CN106126720A CN106126720A CN201610512735.1A CN201610512735A CN106126720A CN 106126720 A CN106126720 A CN 106126720A CN 201610512735 A CN201610512735 A CN 201610512735A CN 106126720 A CN106126720 A CN 106126720A
- Authority
- CN
- China
- Prior art keywords
- file
- data
- bookmark
- folder
- collection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9562—Bookmark management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method and device being managed the collection of browser of mobile terminal, method therein includes: at the local client of mobile terminal, set up with collection, file, bookmark be order from father to the tree data structure of son;When receiving the request of management collection, according to the filiation of described tree data structure, corresponding file and/or bookmark are edited.Visible, the present invention uses one tree construction from top to bottom of sequential build of " favorite folders bookmark ", thus facilitates follow-up to the hierarchy management of data between each node.
Description
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of collection to browser of mobile terminal and be managed
Method and device.
Background technology
Collection is user when using browser, runs into the file liked or preserve management during conventional website, convenient
Follow-up use.This Core Feature of collection is just had during mobile phone browser early development.Support to add collection to all websites
Folder, but collection is single catalogue, and support folder is not self-defined.Along with people's life-time service to browser, find
The file needing collection gets more and more, and single collection can not meet easy-to-look-up function.And due to the use on mobile phone
Experience different with PC, it is considered to be easy to user's Classification Management, therefore in follow-up browser version, extend editor's merit of collection
Energy.Add multifile folder in collection to support.Make user can be added as needed on file in collection, as required
Mobile file, the network address that editor (increasing, delete, change) collects as required, and support and the synchronization of PC end browser collection folder.
The existing mobile phone browser collection Managed Solution that realizes mainly has two kinds.
A kind of is the mode realized based on network side, concrete, and to the different operating of collection, user is packaged into difference
Api interface, collection content preserves to service end, and client, by asking different API, updates service end favorites data
Mode realize the editor of collection.But there is following shortcoming in this scheme: 1, owing to depending on the mode of interface, limited
In network environment, without under net environment, it is impossible to perform respective handling;2, consider that distinct interface splits and needs to hold concurrently due to needs
Rong Fei logs in and the operation of logging status, thus results in service end expense relatively big, and maintenance cost and interface exploitation cost are the highest;
3, request of data causes flow consumption bigger frequently.
Another kind is, modes based on local data library storage data, concrete, different by creating different table correspondences
File mode, only database file is revised by this locality accordingly during editorial management.But this mode exists such as
Lower shortcoming: 1, different files create the mode of different forms, changes in form that to look into cost relatively low, but the level between file
Manage relatively costly;2, autgmentability is poor, for getting through limited with data syn-chronization demand tenabilities such as high in the clouds synchronizations with PC.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on
State the method and device that the collection to browser of mobile terminal of problem is managed.
According to one aspect of the present invention, it is provided that a kind of method that the collection of browser of mobile terminal is managed,
Including: at the local client of mobile terminal, set up with collection, file, bookmark be order from father to the tree-shaped number of son
According to structure;When receiving the request of management collection, according to the filiation of described tree data structure, to corresponding file
Folder and/or bookmark are edited.
Preferably, described request is new folder request, described corresponding file and/or bookmark is carried out edit package
Include: inserting a data in tree data structure, wherein, data type is file, create time and change time assignment
For present system time, and give folder identifier and Folder Name.
Preferably, described request is Delete Folder request, described corresponding file and/or bookmark is carried out edit package
Include: determine folder identifier to be deleted by resolving described request, search in tree data structure and Delete Folder mark
Corresponding data;And, recursive lookup goes out father and is designated all bookmarks of folder identifier to be deleted, by described all bookmarks one
And delete.
Preferably, described request is mobile file request, described corresponding file and/or bookmark is carried out edit package
Include: judging whether the file of the same name with file to be moved, if so, prompting is moved unsuccessfully, otherwise, it is judged that literary composition to be moved
Whether the lower bookmark of part folder repeats with other bookmarks, if so, repetition bookmark is merged process.
Preferably, merge process to repeating bookmark, including: judge whether active user is in logging status;For
Logging status, retains the bookmark obtained from service end, deletes the bookmark under local file to be moved;For non-logging status,
Retain the bookmark under local file to be moved.
Preferably, set up with collection, file, bookmark be order from father to the tree data structure of son, including: fixed
Justice bookmark data form and folder data form, obtain data record;Reads data log also takes out common parameters data,
Obtain set of records ends;The multiway tree of collection is built according to described set of records ends.
Preferably, also include: local client obtains the favorites data with account other-end from service end, and incite somebody to action this
Ground favorites data merges with favorites data.
According to another aspect of the present invention, it is provided that a kind of dress that the collection of browser of mobile terminal is managed
Put, including: tree sets up unit, for the local client at mobile terminal, sets up with collection, file, bookmark for order
From father to son tree data structure;Editing and processing unit, for when receiving the request of management collection, according to described
The filiation of tree data structure, edits corresponding file and/or bookmark.
Preferably, described request be new folder request, described editing and processing unit specifically for, to tree type data tie
Inserting a data in structure, wherein, data type is file, and establishment time and change time are entered as present system time,
And give folder identifier and Folder Name.
Preferably, described request is Delete Folder request, described editing and processing unit specifically for, described by resolving
Request determines folder identifier to be deleted, searches and the data of Delete Folder mark correspondence in tree data structure;And,
Recursive lookup goes out father and is designated all bookmarks of folder identifier to be deleted, is deleted in the lump by described all bookmarks.
Preferably, described request is mobile file request, described editing and processing unit specifically for, it may be judged whether exist
The file of the same name with file to be moved, if so, prompting is moved unsuccessfully, otherwise, it is judged that under file to be moved, whether bookmark
Repeat with other bookmarks, if so, repetition bookmark is merged process.
Preferably, described editing and processing unit specifically for, it is judged that whether active user is in logging status;For logging in
State, retains the bookmark obtained from service end, deletes the bookmark under local file to be moved;For non-logging status, retain
Bookmark under local file to be moved.
Preferably, described tree sets up unit specifically for, definition bookmark data form and folder data form, is counted
According to record;Reads data log also takes out common parameters data, obtains set of records ends;Collection is built according to described set of records ends
The multiway tree of folder.
Preferably, also include: service end processing unit, for obtaining the collection number with account other-end from service end
According to, and this locality favorites data is merged with favorites data.
Visible, the embodiment of the present invention is based on local data base way to manage, but has carried out data store organisation at all
Property improve.Concrete, use one tree construction from top to bottom of sequential build of " collection-file-bookmark ", thus convenient
Follow-up to the hierarchy management of data between each node.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can
Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the method flow that the collection to browser of mobile terminal according to embodiments of the present invention is managed
Figure;
Fig. 2 shows tree data structure schematic diagram according to embodiments of the present invention;
Fig. 3 shows mobile file schematic flow sheet according to embodiments of the present invention;And
Fig. 4 shows the apparatus structure that the collection to browser of mobile terminal according to embodiments of the present invention is managed
Schematic diagram.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
The present invention is primarily directed to extend the specific implementation of collection editting function, the most how to realize literary composition in collection
Part folder is supported, how to process file and moves and increase, deleting and the operation such as amendment.Framework of the present invention is to use client kimonos
The mode that business end combines.The renewal of favorites data and merging are placed on client process, service end storage latest data.Make client
End possesses parsing, merges and represent the ability of the favorites data that service end issues.Transmission means uses data base (DB) file
Mode.
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
See Fig. 1, it is shown that method flow diagram according to a first embodiment of the present invention.The method comprises the steps
S101-S102。
S101: at the local client of mobile terminal, set up with collection, file, bookmark be order from father to son
Tree data structure;
S102: when receiving the request of management collection, according to the filiation of tree data structure, to corresponding literary composition
Part folder and/or bookmark are edited.
As described before, collection is that user conveniently records the website oneself liked, commonly use, these network address when online
It is put in file, can be easy to open the when of needs and find.Collection is nominally corresponding to the favorite function of client.
For managing the web page contents of user's collection.The inside can comprise multiple file or multiple network address.Collection include multiple not
The file of same type/title, each network address under each file is bookmark.Bookmark referred to herein is to client
Realize favorite function, the plereme of management collection content.Each web site collection is as a bookmark.
In existing scheme based on local data base, set up different tables of data for different files, the most just
There is the problem that hierarchy management between file is relatively costly.The embodiment of the present invention based on local data base way to manage, but right
Data store organisation has carried out essence improvement.Concrete, use the sequential build one of " collection-file-bookmark " from
Tree construction under up to, thus facilitate follow-up to the hierarchy management of data between each node.
According to the different qualities of relation between data element, generally there is a structure that following four classes are basic: collecting structure, linear junction
Structure, tree and graphic structure.Wherein, tree structure refers to also exist between data element the tree-like relation of " one-to-many "
Data structure, be the important nonlinear data structure of a class.In tree structure, root node does not has forerunner's node, and (father saves
Point), remaining each node has and only one of which forerunner's node.Tree structure can represent hierarchical relationship, membership relation and side by side
Relation.
In the embodiment of the present invention, it is possible to understand that a collection is exactly a complete tree, wherein, root nodes stand collection
Folder, each child node of next layer represents each file, and each file next layer of each child node again represents under this document folder
Each bookmark.
See Fig. 2, for embodiment of the present invention tree data structure schematic diagram.Wherein, root node (father node) A represents one
Collection, child node B of A, C represent 2 files, and child node D of B, E, F represent and be stored in the bookmark under file B, with
Reason, child node G of C, H represent and are stored in the bookmark under file C.
When building a tree data structure, for a collection, root node is acquiescence, by root labelling.
The father node ID (parentId) of the sub-folder of root node passes through assignment " 0 " labelling, and root node ID is 0.Other nodes
Child node parentId points to the ID value of oneself, is all higher than 0.The when of building tree, first search the child node of root node, then divide
Not searching the child node of child node, the rest may be inferred, and circulation generates complete tree after performing.
The feature of tree structure data is that each node is well arranged, and the present invention utilizes this feature, thus the most right
Tree structure data travels through, thus realizes the editor to collection and management.Concrete, when receiving management collection
During request, according to father and son's structure of described tree-type structure database, corresponding file and/or bookmark are edited.
Management collection generally refer to file newly-built, delete or the operation of movement.
For new folder, it is in local data base, inserts a data.Data type is file, during establishment
Between and the change time be entered as present system time, it is new folder that ParentId composes the Id, title of current new folder
Title.
For the bookmark data in Delete Folder, i.e. Delete Folder itself and file, by file ID, counting
According to storehouse is searched and deleted this data;Recursive lookup parentId is the bookmark of file ID to be deleted simultaneously;Will
ParentId is that the bookmark of file Id to be deleted is deleted in the lump.
For mobile file, the most relative complex, need to judge whether the file identical with file to be moved, with
And, need to judge whether the bookmark of conflict, if there is the bookmark of repetition (conflict), then need to carry out at bookmark merging
Reason.Particularly, whether being in logging status for user, the embodiment of the present invention provides different bookmarks and merges mode, and this needs
A premise be: for logging status and non-logging status, preserve the related data of collections respectively with two data structures.
Bookmark merges specifically: under logging status, be as the criterion with the bookmark obtained from service end, i.e. delete local to be moved
The bookmark repeated in file;Under non-logging status, it is as the criterion with local bookmark.
Relative to existing scheme one: the process of collection can be operated under without net environment by this programme, increases, deletes, changes behaviour
All being directed to local data base operation, operating result directly embodies at local data base;When having net environment and high in the clouds synchronizes,
The synchronization of content is realized by the way of local data and cloud database merging.Relative to existing scheme two: this programme is to respectively
The collection of end processes by the way of unification is abstract, it is achieved data compatibility and synchronization;Mobile terminal can resolve and represent PC and receive
Hide the data of folder, otherwise, PC end can also show the favorites data of mobile terminal;Support the data syn-chronization between multiterminal simultaneously.
Below with a specific embodiment, the present invention program is described in detail.
The present invention program uses the mode of local data library management generally, particularly, logs in and non-login for user
Identical data form, different data form records is used under different conditions.Data form compatibility PC end and high in the clouds storage.
One, definition data form form and client process class
1, data base every records as BookMarks, defines each field as follows:
Bookmarks._ID (identifies)
Bookmarks.TITLE (collection network address Title in perhaps Folder Name)
Bookmarks.URL (web-site address)
Bookmarks.IS_FOLDER (whether being file)
Bookmarks.PARENT (parent folder ID)
Bookmarks.DATE_CREATED (creates the time)
Bookmarks.FAVICON (Icon address)
Bookmarks.POS (display position: according to position control DISPLAY ORDER)
Bookmarks.LAST_MODIFY_TIME (finally changes the time)
2, create abstract process class RecordInfo in client, be used for history, collection, deposit from this locality such as PC connections
Storage tables of data is all converted into RecordInfo, it is simple to client traffic data communicate, and facilitate extension process.
RecordInfo comprise id presented hereinbefore, title, url, favicon, type, parent, type, pos,
last_modify_time、creat_time。
In RecordInfo, take out common parameters data.Concrete, turn for Bookmarks and RecordInfo
Change relation as follows:
ColumnIndex_Id in id correspondence Bookmarks;
ColumnIndex_Title in title correspondence Bookmarks;
ColumnIndex_Url in url correspondence Bookmarks;
ColumnIndex_Favicon in favicon correspondence Bookmarks;
Type is expressed as TYPE_BOOKMARK (TYPE_FOLDER arranged side by side) according to dtd--data type definition, such as bookmark;
ColumnIndex_Parent in parent correspondence BookMarks;
ColumnIndex_Pos in pos correspondence BookMarks;
ColumnIndex_Last_Modify_Time in last_modify_time correspondence BookMarks;
ColumnIndex_Create_time in create_time correspondence BookMarks.
3, either bookmark or file, uses same data form record, by type Distinguish, and convenient system
One management and storage.
4, relate to folder hierarchy part to be determined by parentId and the type combination of mark every record, represent
Logic, by the way of building multiway tree, represents file and file level.
Two, file hierarchy management is built multiway tree
1, definition tree structure class TreeNode, exemplary fields comprises as follows:
protected string id;
protected string name;
Protected string parentid="-1 "
protected int level;// hierarchical depth
protected list<tree node>children;// child node
2, complete tree structure is built
By the inquiry all data of data base:
Bookmarks→RecordInfo→ArrayList<RecordInfo>→FolderTree
Thus build complete tree.
Build tree example as follows:
Bookmark data generates ArrayList<RecordInfo after resolving>, pass through:
WrapTreeNode wrap=new WrapTreeNode (info);
nodes.put(wrap.getId(),wrap)
Pack each node;
Pass through: FolderTree tree=new FolderTree (nodes) builds tree;
By the sortNode (wrapRoot) tree each node valuation Level to building, labelling hierarchical depth, finally return
Return complete tree.
After building tree, need each level of tree is carried out assignment.Concrete, by circulation tree construction, each layer of tree is composed
The value Level degree of depth: the child node degree of depth of root node is 1, the child node degree of depth of child node is 2, the like.
Three, Document Editing
After building tree, existing hierarchical structure can represent.As described before, to collection management mainly include right
File newly-built, delete and move three aspects.Complex mobile file is specifically introduced by emphasis below.
To mobile portfolio operations, use in the file that offspring class file folder may only move in its parent level.
See Fig. 3, for mobile portfolio operations flow chart.Comprise the steps:
S301: receive mobile file request, determine file to be moved;
S302: judge whether user is in logging status, for logging status, performs S303-S307 branch, steps on for non-
Record state, performs S308-S312 branch;
S303: detecting whether file of the same name, if so, prompting is moved unsuccessfully, otherwise performs S304;
S304: take out all bookmark records that father's mark (parentid) is file to be moved;
S305: search whether the bookmark of repetition, if any, perform S306: remembered by the repetition bookmark in file to be moved
Record is added in conflict list, otherwise, performs S307: process colliding data: the data in conflict list deleted from data base
Remove;
S308: more new data;
S309: detecting whether file of the same name, if so, prompting is moved unsuccessfully, otherwise performs S309;
S310: take out all bookmark records that father's mark (parentid) is file to be moved;
S311: search whether the bookmark of repetition, if any, perform S312: by the repetition bookmark record in destination folder
Add in conflict list, otherwise, perform S313: process colliding data: the data in conflict list deleted from data base;
S314: more new data.
In mobile portfolio operations, should be noted following some:
1, check whether there is file of the same name: whether have mainly for subfile under data to be moved and mobile target directory
File of the same name, if it has, prompting is moved unsuccessfully.
2, boomard comment occurs that during conflict, logging status and non-logging status differentiation process.Under logging status, during conflict, delete
Except the conflict file in file to be moved.Otherwise under non-logging status.Can so understand: under logging status, when conflict occurs,
Use data on line (data that service end provides) with acquiescence, the data of local collision are ignored.Under non-logging status, punching occurs
Time prominent, local data is used to be as the criterion, by the data deletion under destination folder with acquiescence.
The present invention program aims to solve the problem that the problem of mobile terminal extension favorite function, concrete, by formulating new number
According to form, storage mode, encapsulation manager class, it is achieved can increase file newly, multifile clip management, can be convenient when preserving content
Specify existing file.Enhance mobile phone browser favorite function, preferably manage collection content for user and provide
Technical support, fundamentally solves the original larger amount of favorites data of mobile phone browser and loses, the problem of inconvenience management feedback.
Concrete, the present embodiments relate to following main points:
1, by formulating data form, building the data encapsulation process set, it is achieved the parsing of data and management, data are solved
Compatibling problem.
2, the use of favorite function comprises two states: uses under logging status and uses under non-logging status.Pass through
Logging status and two table storage of non-logging status, during synchronization, the mode of merging treatment realizes logging in and receiving under non-logging status
Hide the management that folder processes.
3, the collection operation of collection comprises two kinds of scenes: have under net environment and without operating under net environment.There iing net environment
Under, local client obtains the favorites data with account other-end from service end, and by this locality favorites data and collection
Folder data merge.This programme is stored by DB file cloud, and client merges mode and realizes synchronizing function, solves data same
Step problem.Under environment without net, locally stored by DB, it is achieved collection still can be carried out under without net environment by collection
Increase, delete, change operation.This client merge, high in the clouds storage mode, it is ensured that user produce data can be recorded and
Synchronize, reduce because changing mobile phone, changing the data loss problem that account is brought.
See Fig. 4, a kind of dress that the collection of browser of mobile terminal is managed provided for the embodiment of the present invention
Putting, this device includes:
Tree sets up unit 401, and for the local client at mobile terminal, it is suitable for setting up with collection, file, bookmark
Sequence from father to son tree data structure;
Editing and processing unit 402, for when receiving the request of management collection, according to described tree data structure
Filiation, edits corresponding file and/or bookmark.
Preferably, described request be new folder request, described editing and processing unit 402 specifically for, to tree-shaped number
According to inserting a data in structure, wherein, data type is file, when establishment time and change time are entered as current system
Between, and give folder identifier and Folder Name.
Preferably, described request be Delete Folder request, described editing and processing unit 402 specifically for, by resolve
Described request determines folder identifier to be deleted, searches and the data of Delete Folder mark correspondence in tree data structure;
And, recursive lookup goes out father and is designated all bookmarks of folder identifier to be deleted, is deleted in the lump by described all bookmarks.
Preferably, described request is mobile file request, described editing and processing unit 402 specifically for, it may be judged whether
There is the file of the same name with file to be moved, if so, prompting is moved unsuccessfully, otherwise, it is judged that bookmark under file to be moved
Whether repeat with other bookmarks, if so, repetition bookmark is merged process.
Preferably, described editing and processing unit 402 specifically for, it is judged that whether active user is in logging status;For
Logging status, retains the bookmark obtained from service end, deletes the bookmark under local file to be moved;For non-logging status,
Retain the bookmark under local file to be moved.
Preferably, described tree sets up unit 401 specifically for, definition bookmark data form and folder data form,
To data record;Reads data log also takes out common parameters data, obtains set of records ends;Build according to described set of records ends
The multiway tree of collection.
Preferably, also include: service end processing unit 403, for obtaining the collection with account other-end from service end
Folder data, and this locality favorites data is merged with favorites data.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint
One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize the some or all portions in device according to embodiments of the present invention
The some or all functions of part.The present invention is also implemented as the part for performing method as described herein or complete
The equipment in portion or device program (such as, computer program and computer program).Such program realizing the present invention
Can store on a computer-readable medium, or can be to have the form of one or more signal.Such signal is permissible
Download from internet website and obtain, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
Visible, the present invention provides at following scheme:
A1, a kind of method that the collection of browser of mobile terminal is managed, including:
At the local client of mobile terminal, set up with collection, file, bookmark be order from father to the tree-shaped of son
Data structure;
When receiving the request of management collection, according to the filiation of described tree data structure, to corresponding literary composition
Part folder and/or bookmark are edited.
A2, method as described in A1, described request is new folder request, described to corresponding file and/or book
Label carry out editor and include:
Inserting a data in tree data structure, wherein, data type is file, creates time and change time
It is entered as present system time, and gives folder identifier and Folder Name.
A3, method as described in A1, described request is Delete Folder request, described to corresponding file and/or book
Label carry out editor and include:
Determine folder identifier to be deleted by resolving described request, search and Delete Folder in tree data structure
The data that mark is corresponding;And, recursive lookup goes out father and is designated all bookmarks of folder identifier to be deleted, by described all books
Sign and delete in the lump.
A4, method as described in A1, described request is mobile file request, described to corresponding file and/or book
Label carry out editor and include:
Judging whether the file of the same name with file to be moved, if so, prompting is moved unsuccessfully, otherwise, it is judged that treat
Under mobile file, whether bookmark repeats with other bookmarks, if so, repetition bookmark is merged process.
A5, method as described in A4, merge process to repeating bookmark, including:
Judge whether active user is in logging status;
For logging status, retain the bookmark obtained from service end, delete the bookmark under local file to be moved;
For non-logging status, retain the bookmark under local file to be moved.
A6, method as described in any one of A1 to A5, set up with collection, file, bookmark be order from father to son
Tree data structure, including:
Definition bookmark data form and folder data form, obtain data record;
Reads data log also takes out common parameters data, obtains set of records ends;
The multiway tree of collection is built according to described set of records ends.
A7, method as described in any one of A1 to A5, also include:
Local client obtains with the favorites data of account other-end from service end, and by this locality favorites data and
Favorites data merges.
B8, a kind of device that the collection of browser of mobile terminal is managed, including:
Tree sets up unit, for the local client at mobile terminal, sets up with collection, file, bookmark for order
From father to son tree data structure;
Editing and processing unit, for when receiving the request of management collection, according to the father of described tree data structure
Subrelation, edits corresponding file and/or bookmark.
B9, device as described in B8, described request is new folder request, described editing and processing unit specifically for,
Inserting a data in tree data structure, wherein, data type is file, and establishment time and change time are entered as working as
Front system time, and give folder identifier and Folder Name.
B10, device as described in B8, described request is Delete Folder request, described editing and processing unit specifically for,
Determine folder identifier to be deleted by resolving described request, search in tree data structure and Delete Folder mark correspondence
Data;And, recursive lookup goes out father and is designated all bookmarks of folder identifier to be deleted, is deleted in the lump by described all bookmarks
Remove.
B11, device as described in B8, described request is mobile file request, described editing and processing unit specifically for,
Judging whether the file of the same name with file to be moved, if so, prompting is moved unsuccessfully, otherwise, it is judged that file to be moved
Whether the lower bookmark of folder repeats with other bookmarks, if so, repetition bookmark is merged process.
B12, device as described in B11, described editing and processing unit specifically for, it is judged that whether active user is in login
State;For logging status, retain the bookmark obtained from service end, delete the bookmark under local file to be moved;For non-
Logging status, retains the bookmark under local file to be moved.
B13, device as described in any one of B8 to B12, described tree set up unit specifically for, define bookmark data form
With folder data form, obtain data record;Reads data log also takes out common parameters data, obtains set of records ends;
The multiway tree of collection is built according to described set of records ends.
B14, device as described in any one of B8 to B12, also include:
Service end processing unit, for obtaining the favorites data with account other-end from service end, and receives this locality
Hide folder data to merge with favorites data.
Claims (10)
1. the method that the collection of browser of mobile terminal is managed, it is characterised in that including:
At the local client of mobile terminal, set up with collection, file, bookmark be order from father to the tree type data of son
Structure;
When receiving the request of management collection, according to the filiation of described tree data structure, to corresponding file
And/or bookmark edits.
2. the method for claim 1, it is characterised in that described request is new folder request, described to accordingly
File and/or bookmark carry out editor and include:
Inserting a data in tree data structure, wherein, data type is file, creates time and change time assignment
For present system time, and give folder identifier and Folder Name.
3. the method for claim 1, it is characterised in that described request is Delete Folder request, described to accordingly
File and/or bookmark carry out editor and include:
Determine folder identifier to be deleted by resolving described request, search in tree data structure and Delete Folder mark
Corresponding data;And, recursive lookup goes out father and is designated all bookmarks of folder identifier to be deleted, by described all bookmarks one
And delete.
4. the method for claim 1, it is characterised in that described request is mobile file request, described to accordingly
File and/or bookmark carry out editor and include:
Judging whether the file of the same name with file to be moved, if so, prompting is moved unsuccessfully, otherwise, it is judged that to be moved
Under file, whether bookmark repeats with other bookmarks, if so, repetition bookmark is merged process.
5. method as claimed in claim 4, it is characterised in that merge process to repeating bookmark, including:
Judge whether active user is in logging status;
For logging status, retain the bookmark obtained from service end, delete the bookmark under local file to be moved;
For non-logging status, retain the bookmark under local file to be moved.
6. the method as described in any one of claim 1 to 5, it is characterised in that it is suitable for setting up with collection, file, bookmark
Sequence from father to son tree data structure, including:
Definition bookmark data form and folder data form, obtain data record;
Reads data log also takes out common parameters data, obtains set of records ends;
The multiway tree of collection is built according to described set of records ends.
7. the method as described in any one of claim 1 to 5, it is characterised in that also include:
Local client obtains the favorites data with account other-end from service end, and by this locality favorites data and collection
Folder data merge.
8. the device that the collection of browser of mobile terminal is managed, it is characterised in that including:
Tree sets up unit, at the local client of mobile terminal, set up with collection, file, bookmark be order from
Father is to sub tree data structure;
Editing and processing unit, for when receiving the request of management collection, closes according to the father and son of described tree data structure
System, edits corresponding file and/or bookmark.
9. device as claimed in claim 8, it is characterised in that described request is new folder request, described editing and processing
Unit specifically for, in tree data structure, insert a data, wherein, data type is file, creates time and more
The time of changing is entered as present system time, and gives folder identifier and Folder Name.
10. device as claimed in claim 8, it is characterised in that described request is Delete Folder request, described editing and processing
Unit specifically for, by resolve described request determine folder identifier to be deleted, search in tree data structure and delete
The data that folder identifier is corresponding;And, recursive lookup goes out father and is designated all bookmarks of folder identifier to be deleted, by described
All bookmarks are deleted in the lump.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610512735.1A CN106126720A (en) | 2016-06-30 | 2016-06-30 | The method and device that the collection of browser of mobile terminal is managed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610512735.1A CN106126720A (en) | 2016-06-30 | 2016-06-30 | The method and device that the collection of browser of mobile terminal is managed |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106126720A true CN106126720A (en) | 2016-11-16 |
Family
ID=57469047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610512735.1A Pending CN106126720A (en) | 2016-06-30 | 2016-06-30 | The method and device that the collection of browser of mobile terminal is managed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106126720A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111506740A (en) * | 2020-04-14 | 2020-08-07 | 天津洪恩完美未来教育科技有限公司 | Word list adding method and device, storage medium and electronic device |
CN111522819A (en) * | 2020-04-24 | 2020-08-11 | 上海用天网络科技有限公司 | Method and system for summarizing tree-structured data |
CN112199612A (en) * | 2020-10-10 | 2021-01-08 | Vidaa美国公司 | Bookmark adding and combining method and display device |
CN113655944A (en) * | 2021-07-22 | 2021-11-16 | 北京搜狗科技发展有限公司 | Favorite processing method, device and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1961312A (en) * | 2004-06-24 | 2007-05-09 | 朴喜燮 | Methods and the program-recording medium for creating, editing and trading home page components to assemble a home page and a personal portal site directly in wysiwyg on web browser |
US20100050067A1 (en) * | 2006-05-20 | 2010-02-25 | International Business Machines Corporation | Bookmarking internet resources in an internet browser |
CN101782851A (en) * | 2009-12-25 | 2010-07-21 | 北京惠信博思技术有限公司 | Method for updating displayed page |
CN102722487A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Method and apparatus for file management |
CN103870494A (en) * | 2012-12-14 | 2014-06-18 | 中兴通讯股份有限公司 | Method, device and terminal for setting bookmark of browser |
CN104035649A (en) * | 2013-03-04 | 2014-09-10 | 腾讯科技(深圳)有限公司 | Bookmark display method and device |
CN104699706A (en) * | 2013-12-06 | 2015-06-10 | 中国移动通信集团海南有限公司 | Directory tree generation method, device and system |
CN107368574A (en) * | 2017-07-12 | 2017-11-21 | 广州视源电子科技股份有限公司 | File directory display method and device, electronic terminal and storage medium |
-
2016
- 2016-06-30 CN CN201610512735.1A patent/CN106126720A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1961312A (en) * | 2004-06-24 | 2007-05-09 | 朴喜燮 | Methods and the program-recording medium for creating, editing and trading home page components to assemble a home page and a personal portal site directly in wysiwyg on web browser |
US20100050067A1 (en) * | 2006-05-20 | 2010-02-25 | International Business Machines Corporation | Bookmarking internet resources in an internet browser |
CN101782851A (en) * | 2009-12-25 | 2010-07-21 | 北京惠信博思技术有限公司 | Method for updating displayed page |
CN102722487A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Method and apparatus for file management |
CN103870494A (en) * | 2012-12-14 | 2014-06-18 | 中兴通讯股份有限公司 | Method, device and terminal for setting bookmark of browser |
CN104035649A (en) * | 2013-03-04 | 2014-09-10 | 腾讯科技(深圳)有限公司 | Bookmark display method and device |
CN104699706A (en) * | 2013-12-06 | 2015-06-10 | 中国移动通信集团海南有限公司 | Directory tree generation method, device and system |
CN107368574A (en) * | 2017-07-12 | 2017-11-21 | 广州视源电子科技股份有限公司 | File directory display method and device, electronic terminal and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111506740A (en) * | 2020-04-14 | 2020-08-07 | 天津洪恩完美未来教育科技有限公司 | Word list adding method and device, storage medium and electronic device |
CN111522819A (en) * | 2020-04-24 | 2020-08-11 | 上海用天网络科技有限公司 | Method and system for summarizing tree-structured data |
CN112199612A (en) * | 2020-10-10 | 2021-01-08 | Vidaa美国公司 | Bookmark adding and combining method and display device |
CN112199612B (en) * | 2020-10-10 | 2024-04-19 | Vidaa美国公司 | Bookmark adding and combining method and display equipment |
CN113655944A (en) * | 2021-07-22 | 2021-11-16 | 北京搜狗科技发展有限公司 | Favorite processing method, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100507915C (en) | Network search method, network search device, and user terminals | |
KR101143198B1 (en) | System and method for unified navigation | |
CN106126720A (en) | The method and device that the collection of browser of mobile terminal is managed | |
US7346607B2 (en) | System, method, and software to automate and assist web research tasks | |
AU6732100A (en) | Database system | |
JP2000148461A (en) | Software model and existing source code synchronizing method and device | |
US20080183680A1 (en) | Documents searching on peer-to-peer computer systems | |
US7275066B2 (en) | Link management of document structures | |
CN107168872A (en) | Method, device, storage medium and the processor of code check | |
CN106682003A (en) | Path segmentation mapping method and device for distributed memory namespace | |
US10540628B2 (en) | Hierarchical business rule model | |
CN106202492A (en) | The Metadata Service optimization method of a kind of NFS and system | |
CN101484892A (en) | A method of managing web services using integrated document | |
CN102193925A (en) | On-line multi-version management method and device for manuscripts in manuscript system | |
CN104008441A (en) | Task management system and method for automatically submitting files into version library | |
CN105787022A (en) | Comprehensive solution for design team data bank | |
CN103914488A (en) | Document collection, identification, association, search and display system | |
CN101782851B (en) | Method for updating displayed page | |
CN106802928B (en) | Power grid historical data management method and system | |
CN106843899A (en) | A kind of web development methods and device based on Node.js platforms | |
JPWO2004111877A1 (en) | Information processing method and apparatus, and program thereof | |
CN115168401A (en) | Data grading processing method and device, electronic equipment and computer readable medium | |
CN115705313A (en) | Data processing method, device, equipment and computer readable storage medium | |
CN111176901B (en) | HDFS deleted file recovery method, terminal device and storage medium | |
CN105893640A (en) | Favorite combining method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161116 |
|
RJ01 | Rejection of invention patent application after publication |