CN102411575A - Method and system for displaying webpage, and server - Google Patents

Method and system for displaying webpage, and server Download PDF

Info

Publication number
CN102411575A
CN102411575A CN2010102901964A CN201010290196A CN102411575A CN 102411575 A CN102411575 A CN 102411575A CN 2010102901964 A CN2010102901964 A CN 2010102901964A CN 201010290196 A CN201010290196 A CN 201010290196A CN 102411575 A CN102411575 A CN 102411575A
Authority
CN
China
Prior art keywords
node
authorization resources
webpage
webpage authorization
tree
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
Application number
CN2010102901964A
Other languages
Chinese (zh)
Inventor
王朝阳
王飞飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN2010102901964A priority Critical patent/CN102411575A/en
Publication of CN102411575A publication Critical patent/CN102411575A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for displaying a webpage, and a server, and relates to an information processing technology. The method comprises the following steps of: acquiring a webpage authorization resource tree node having display permission according to the authorization of a request user after a display request is received; for each webpage authorization resource tree node having the display permission, acquiring the father node of the webpage authorization resource tree node and straightly tracing upward to a root node or an acquired node in a webpage authorization resource tree; and transmitting the generated webpage authorization resource tree to the request user for processing and displaying. By the method, because the webpage authorization resource tree is generated from the bottom up and started from a discrete stored authorization tree node, whether all child nodes of an unauthorized node are authorized or not is not required to be calculated, the calculation amount is reduced and the calculation efficiency is improved.

Description

A kind of Webpage display process, system and server
Technical field
The present invention relates to the information processing technology, relate in particular to a kind of Webpage display process, system and server.
Background technology
At present, in WEB uses, often use tree construction on webpage, to show data; Each webpage authorization resources tree node can require different authorisation; Usually only show the node of mandate, when still the display web page authorization resources is set on html, if the child node with mandate of a node; Though father node is not authorized so, also to this father node be shown in the html tree.This webpage authorization resources tree is created and shows in the situations such as displaying of displaying, classified resource of the displaying that often appears at mechanism of department, resource file folder.
Because the webpage authorization resources tree node of authorizing is discrete storage; And the employing of traditional html dynamic tree generation method begins from root node; In layer expand to leaf nodes; Promptly at first generate the ground floor node of webpage authorization resources tree, get access to second layer tree node from the ground floor tree node again, generate the leaf node of webpage authorization resources tree at last.
When generating webpage authorization resources tree, because different tree nodes carries out different processing according to the authorization conditions needs, so when calculating ground floor; If this node is not authorized; Then need calculate its all child nodes, whether mandate is arranged, even the ground floor tree node is not authorized to; In case its some child node has mandate; Then this tree node that is not authorized to also needs display process, has only and satisfies under the situation that all child nodes do not have to authorize, and the tree node of itself not authorizing is not just showed.
As shown in Figure 1, suppose to have only the D2 node that mandate is arranged, when generating webpage authorization resources tree; Begin to calculate from the A node, when whether calculating A node can show, need to calculate its all child nodes; Whether until calculating its child node D2 mandate arranged, thereby obtain the A node, when calculating B1 node can show; Then need calculate all child nodes of B1 node, same, when can each do not have node of mandate show in calculating; All need calculate,, then need all calculate and to confirm that it can not show after finishing its all child nodes if its child node is not authorized yet to its child node.
Like this, in the time of will causing showing each node layer, all will calculate the mandate of its child node, calculated amount is bigger, causes counting yield low, and then influences the efficient of web displaying.
Summary of the invention
The embodiment of the invention provides a kind of Webpage display process, system and server, to improve the counting yield of web displaying.
A kind of Webpage display process comprises:
After receiving the demonstration request, the webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring;
Each is had the webpage authorization resources tree node that shows authority, obtain its father node and upwards trace back to root node in this webpage authorization resources tree or the node that has obtained always;
The webpage authorization resources tree that generates is sent to the request user to process and display.
A kind of server comprises:
Acquiring unit is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring;
Processing unit is used for that each is had the webpage authorization resources tree node that shows authority, obtains its father node and upwards traces back to node or the root node that has obtained in this webpage authorization resources tree always;
Transmitting element is used for that the webpage authorization resources tree that generates is sent to the request user and processs and displays.
A kind of webpage display system comprises:
Server is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring; Each is had the webpage authorization resources tree node that shows authority, obtain its father node and upwards trace back to node or the root node that has obtained in this webpage authorization resources tree always; The webpage authorization resources tree that generates is sent to the request user to process and display;
The terminal after being used to receive user's browse request, is sent to said server and to be shown request, and after receiving the webpage authorization resources tree that said server returns, this webpage authorization resources tree also shows zone-by-zone analysis.
The embodiment of the invention provides a kind of Webpage display process, system and server; Begin from discrete stored authorized tree node; Up generate webpage authorization resources tree the end of from; Whether all child nodes that so just need not to calculate again the node that does not have mandate authorize, and have reduced calculated amount, have improved counting yield.
Description of drawings
Fig. 1 is a web page resources tree synoptic diagram of the prior art;
The Webpage display process process flow diagram that Fig. 2 provides for the embodiment of the invention;
A kind of preferable Webpage display process process flow diagram that Fig. 3 provides for the embodiment of the invention;
The server architecture synoptic diagram that Fig. 4 provides for the embodiment of the invention;
The webpage display system structural representation that Fig. 5 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of Webpage display process, system and server; When generating webpage authorization resources tree; Begin from the webpage authorization resources tree node that shows authority that has that obtains; Upwards obtaining father node, is that root node is perhaps for till the node that has obtained up to the node that obtains.Included node in the webpage authorization resources tree that generates like this; All are the nodes that can show, and in the process that generates, need not calculate the child node of a node and whether authorize; Improve the efficient of generation webpage authorization resources tree, and then improved the counting yield of web displaying.
Webpage display process as shown in Figure 2, that the embodiment of the invention provides comprises:
Step S201, receive show request after, have the webpage authorization resources tree node that shows authority according to request user's authority acquiring;
Step S202, each is had the webpage authorization resources tree node that shows authority, obtain its father node and upwards trace back to root node in this webpage authorization resources tree or the node that has obtained always;
Step S203, the webpage authorization resources tree that generates is sent to the request user process and display.
When the user needs display web page, show request accordingly to the server transmission, in demonstration is asked, generally include information such as user profile, request address, server asks generation webpage authorization resources to be set according to showing after receiving the demonstration request.
When generating webpage authorization resources tree; At first know user right according to user profile, the node according to this user's authority acquiring has the demonstration authority begins from having the node that shows authority then; Obtain its father node and upwards trace back to root node in this webpage authorization resources tree or the node that has obtained always; So just need not the node that does not obtain to show authority and also do not have the child node that shows authority is calculated, reduced calculated amount, especially under the less situation of the node with demonstration authority; Greatly reduce calculated amount, improved counting yield.
For example, still generate webpage authorization resources tree, equally only have the D2 node to obtain the authorization according to the tree among Fig. 1; When obtaining webpage authorization resources tree node, just only get access to node of D2 node so, when generating webpage authorization resources tree with demonstration authority; Then at first obtain the father node C3 node of D2 node, upwards review again always, obtain B2 node and A node; Because the A node is a root node, then no longer upwards review, accomplish the generation of webpage authorization resources tree.
If have C1, C2, three nodes of D2 to obtain the authorization, when obtaining webpage authorization resources tree node, just get access to C1, C2, three nodes of D2 so with demonstration authority; When generating webpage authorization resources tree, obtain the father node B1 of C1 node, upwards review again; Obtain the father node A of B1 node,, then no longer upwards review because the A node is a root node; Continuation begins upwards to review from C2, obtains the father node B1 of C2, because the node of B1 for having obtained; So no longer upwards review, begin upwards to review from D2, accomplish the generation of webpage authorization resources tree.
This shows that the method that provides through the embodiment of the invention generates webpage authorization resources tree need not calculate the node that can not show, and need not the node that double counting has obtained, and has reduced a large amount of calculated amount, has improved the efficient of web displaying.
The terminal is after receiving webpage authorization resources tree; Usually zone-by-zone analysis should be set, and promptly obtained the tree node information of each layer, and whether clear and definite each tree node has child node; Whether can handle etc.; And process and display according to the different situations of each node, concrete processing and display packing are conventionally known to one of skill in the art, just repeat no more at this.
Further, server can also be simultaneously with in the webpage authorization resources tree that generates when webpage authorization resources tree is sent to the request user; The information of the webpage authorization resources tree node that acquiescence shows sends to the request user; The terminal when analyzing each tree node, is analyzed this node simultaneously and whether is given tacit consent to demonstration after the information of the webpage authorization resources tree node that receives webpage authorization resources tree and acquiescence demonstration; If; Then need when showing, expansion be shown to this node, the node content that non-acquiescence shows then can be handled with the form of second-level directory, when the user further operates, shows.
Certainly; Server also can be when generating webpage authorization resources tree; Directly the webpage authorization resources tree root that generates is launched according to the webpage authorization resources tree node that predefined acquiescence shows, and the tree of the webpage authorization resources after will launching sends to and asks the user to process and display.After the webpage authorization resources of terminal after receiving expansion set like this, directly according to the deployed condition of webpage authorization resources tree, the webpage authorization resources tree node that expansion is shown to the acquiescence demonstration got final product.
At this moment, as shown in Figure 3, the entire flow of carrying out web displaying comprises following several steps:
The demonstration request is sent to server in step S301, terminal after receiving user's browse request;
Step S302, server have the webpage authorization resources tree node that shows authority according to the authority acquiring of asking the user after receiving the demonstration request;
Step S303, server have the webpage authorization resources tree node that shows authority to each, obtain its father node and upwards trace back to root node in this webpage authorization resources tree or the node that has obtained always;
The webpage authorization resources tree node that step S304, server show according to acquiescence launches the webpage authorization resources tree that generates, and sends to the request user and process and display;
After step S305, terminal receive webpage authorization resources tree, each node of the webpage authorization resources tree that zone-by-zone analysis receives;
The deployed condition that set according to the webpage authorization resources at step S306, terminal, expansion being shown to the webpage authorization resources tree node that acquiescence shows.
The embodiment of the invention also provides a kind of server, and is as shown in Figure 4, comprising: acquiring unit 401, processing unit 402 and transmitting element 403, wherein:
Acquiring unit 401 is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring;
Processing unit 402 is used for that each is had the webpage authorization resources tree node that shows authority, obtains its father node and upwards traces back to node or the root node that has obtained in this webpage authorization resources tree always;
Transmitting element 403 is used for that the webpage authorization resources tree that generates is sent to the request user and processs and displays.
Further, transmitting element also is used for: with the webpage authorization resources tree that generates, the information of the webpage authorization resources tree node that acquiescence shows sends to the request user.
Perhaps, when being carried out the expansion of webpage authorization resources tree node by server, transmitting element also is used for:
The webpage authorization resources tree root that generates is launched according to the webpage authorization resources tree node that predefined acquiescence shows, and the tree of the webpage authorization resources after will launching sends to and asks the user to process and display.
The embodiment of the invention is also corresponding to provide a kind of webpage display system, as shown in Figure 5, comprising: server 501 and terminal 502, wherein:
Server 501 is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring; Each is had the webpage authorization resources tree node that shows authority, obtain its father node and upwards trace back to node or the root node that has obtained in this webpage authorization resources tree always; The webpage authorization resources tree that generates is sent to the request user to process and display;
Terminal 502 after being used to receive user's browse request, send to show request to server, and after receiving the webpage authorization resources tree that server returns, this webpage authorization resources tree also shows zone-by-zone analysis.
Wherein, server 501 specifically comprises:
Acquiring unit 5011 is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring;
Processing unit 5012 is used for that each is had the webpage authorization resources tree node that shows authority, obtains its father node and upwards traces back to node or the root node that has obtained in this webpage authorization resources tree always;
Transmitting element 5013 is used for that the webpage authorization resources tree that generates is sent to the request user and processs and displays.
When the expansion of being carried out webpage authorization resources tree node by terminal 502 and demonstration, transmitting element 5013 also is used for: with the webpage authorization resources tree that generates, the information of the webpage authorization resources tree node that acquiescence shows sends to asks the user;
Terminal 502 also is used for, and behind the webpage authorization resources tree node that receives the acquiescence demonstration, the webpage authorization resources tree node that acquiescence is shown launches to show.
When carrying out the expansion of webpage authorization resources tree node by server 501, transmitting element 5013 specifically is used for:
The webpage authorization resources tree root that generates is launched according to the webpage authorization resources tree node that predefined acquiescence shows, and the tree of the webpage authorization resources after will launching sends to and asks the user to process and display.
The embodiment of the invention provides a kind of Webpage display process, system and server; Begin from discrete stored authorized tree node; Up generate webpage authorization resources tree the end of from; Whether all child nodes that so just need not to calculate again the node that does not have mandate authorize, and have reduced calculated amount, have improved counting yield.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. a Webpage display process is characterized in that, comprising:
After receiving the demonstration request, the webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring;
Each is had the webpage authorization resources tree node that shows authority, obtain its father node and upwards trace back to root node in this webpage authorization resources tree or the node that has obtained always;
The webpage authorization resources tree that generates is sent to the request user to process and display.
2. the method for claim 1 is characterized in that, also comprises:
In the webpage authorization resources tree that generates, the information of the webpage authorization resources tree node that acquiescence shows sends to the request user.
3. the method for claim 1 is characterized in that, the said webpage authorization resources tree that generates is sent to asks the user to process and display, and is specially:
The webpage authorization resources tree root that generates is launched according to the webpage authorization resources tree node that predefined acquiescence shows, and the tree of the webpage authorization resources after will launching sends to and asks the user to process and display.
4. a server is characterized in that, comprising:
Acquiring unit is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring;
Processing unit is used for that each is had the webpage authorization resources tree node that shows authority, obtains its father node and upwards traces back to node or the root node that has obtained in this webpage authorization resources tree always;
Transmitting element is used for that the webpage authorization resources tree that generates is sent to the request user and processs and displays.
5. server as claimed in claim 4 is characterized in that, said transmitting element also is used for:
In the webpage authorization resources tree that generates, the information of the webpage authorization resources tree node that acquiescence shows sends to the request user.
6. server as claimed in claim 4 is characterized in that, said transmitting element also is used for:
The webpage authorization resources tree root that generates is launched according to the webpage authorization resources tree node that predefined acquiescence shows, and the tree of the webpage authorization resources after will launching sends to and asks the user to process and display.
7. a webpage display system is characterized in that, comprising:
Server is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring; Each is had the webpage authorization resources tree node that shows authority, obtain its father node and upwards trace back to node or the root node that has obtained in this webpage authorization resources tree always; The webpage authorization resources tree that generates is sent to the request user to process and display;
The terminal after being used to receive user's browse request, is sent to said server and to be shown request, and after receiving the webpage authorization resources tree that said server returns, this webpage authorization resources tree also shows zone-by-zone analysis.
8. system as claimed in claim 7 is characterized in that, said server specifically comprises:
Acquiring unit is used for after receiving the demonstration request webpage authorization resources tree node that has the demonstration authority according to request user's authority acquiring;
Processing unit is used for that each is had the webpage authorization resources tree node that shows authority, obtains its father node and upwards traces back to node or the root node that has obtained in this webpage authorization resources tree always;
Transmitting element is used for that the webpage authorization resources tree that generates is sent to the request user and processs and displays.
9. system as claimed in claim 8 is characterized in that, said transmitting element also is used for: with the webpage authorization resources tree that generates, the information of the webpage authorization resources tree node that acquiescence shows sends to the request user;
Said terminal also is used for, and behind the webpage authorization resources tree node that receives the acquiescence demonstration, the webpage authorization resources tree node that acquiescence is shown launches to show.
10. system as claimed in claim 8 is characterized in that, said transmitting element specifically is used for:
The webpage authorization resources tree root that generates is launched according to the webpage authorization resources tree node that predefined acquiescence shows, and the tree of the webpage authorization resources after will launching sends to and asks the user to process and display.
CN2010102901964A 2010-09-21 2010-09-21 Method and system for displaying webpage, and server Pending CN102411575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102901964A CN102411575A (en) 2010-09-21 2010-09-21 Method and system for displaying webpage, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102901964A CN102411575A (en) 2010-09-21 2010-09-21 Method and system for displaying webpage, and server

Publications (1)

Publication Number Publication Date
CN102411575A true CN102411575A (en) 2012-04-11

Family

ID=45913652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102901964A Pending CN102411575A (en) 2010-09-21 2010-09-21 Method and system for displaying webpage, and server

Country Status (1)

Country Link
CN (1) CN102411575A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513872A (en) * 2012-06-18 2014-01-15 联想(北京)有限公司 Node generation method, page positioning method and device
CN105677651A (en) * 2014-11-18 2016-06-15 方正国际软件(北京)有限公司 Permission tree generation method and device
CN106845175A (en) * 2015-12-04 2017-06-13 方正国际软件(北京)有限公司 The establishing method and device of a kind of data permission
CN108536463A (en) * 2018-04-09 2018-09-14 深圳市腾讯网络信息技术有限公司 Obtain method, apparatus, equipment and the computer readable storage medium of resource packet
CN111580912A (en) * 2020-05-09 2020-08-25 北京飞讯数码科技有限公司 Display method and storage medium for multi-level structure resource group

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050354A1 (en) * 2003-08-28 2005-03-03 Ciprian Gociman Delegated administration of a hosted resource
US20060070004A1 (en) * 2004-09-30 2006-03-30 Microsoft Corporation System and method for unified navigation
CN1906615A (en) * 2004-01-30 2007-01-31 金善权 Method of collecting and searching for access route of information resource on internet and computer readable medium stored thereon program for implementing the same
CN101408877A (en) * 2007-10-10 2009-04-15 英业达股份有限公司 System and method for loading tree node
CN101436195A (en) * 2008-10-30 2009-05-20 东软集团股份有限公司 Method and system for generating resource access entrance in Web user interface
CN101436307A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Interactive typesetting method and system for formula
CN101515874A (en) * 2008-02-21 2009-08-26 卓望数码技术(深圳)有限公司 Access control method and access control system for network server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050354A1 (en) * 2003-08-28 2005-03-03 Ciprian Gociman Delegated administration of a hosted resource
CN1906615A (en) * 2004-01-30 2007-01-31 金善权 Method of collecting and searching for access route of information resource on internet and computer readable medium stored thereon program for implementing the same
US20060070004A1 (en) * 2004-09-30 2006-03-30 Microsoft Corporation System and method for unified navigation
CN101408877A (en) * 2007-10-10 2009-04-15 英业达股份有限公司 System and method for loading tree node
CN101515874A (en) * 2008-02-21 2009-08-26 卓望数码技术(深圳)有限公司 Access control method and access control system for network server
CN101436195A (en) * 2008-10-30 2009-05-20 东软集团股份有限公司 Method and system for generating resource access entrance in Web user interface
CN101436307A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Interactive typesetting method and system for formula

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513872A (en) * 2012-06-18 2014-01-15 联想(北京)有限公司 Node generation method, page positioning method and device
CN105677651A (en) * 2014-11-18 2016-06-15 方正国际软件(北京)有限公司 Permission tree generation method and device
CN106845175A (en) * 2015-12-04 2017-06-13 方正国际软件(北京)有限公司 The establishing method and device of a kind of data permission
CN106845175B (en) * 2015-12-04 2021-03-30 方正国际软件(北京)有限公司 Method and device for setting data permission
CN108536463A (en) * 2018-04-09 2018-09-14 深圳市腾讯网络信息技术有限公司 Obtain method, apparatus, equipment and the computer readable storage medium of resource packet
CN111580912A (en) * 2020-05-09 2020-08-25 北京飞讯数码科技有限公司 Display method and storage medium for multi-level structure resource group

Similar Documents

Publication Publication Date Title
CN101594376B (en) Method and corresponding device for registering CIM provider to CIMOM
CN103607427A (en) Method and device for information display
CN104767775A (en) Webpage application information push method and webpage application information push system
CN102932352A (en) Method and server for communicating with client
CN102411575A (en) Method and system for displaying webpage, and server
CN103197930A (en) Method for generating automobile diagnostic software automatically
CN104994060A (en) Method and device for providing verification for user login
CN102752388A (en) Browser-based interactive system, browser-based interactive method, browser and cloud server
CN105302920A (en) Optimal management method and system for cloud storage data
CN103177043A (en) Method and electronic system used for transferring file across system platform
CN102904903A (en) Communication system and communication method
CN110175833B (en) Computer device, method, system and medium for binding bank card information
CN105491078A (en) Data processing method and device in SOA system, and SOA system
CN101751349B (en) Virtual USB interface coding method and computer readable medium thereof
CN104348905A (en) Method and device for pushing message in off-line way
CN102984218A (en) Browser and login method thereof and login system thereof
CN104618324A (en) Method and device for transmitting data and detecting data legality
CN103399776A (en) Creation method and system for reusable MOCK
CN104461509A (en) Information interaction framework and method
WO2016165539A1 (en) Method and apparatus for generating cloud service experience tool
CN103561113A (en) Web Service interface generating method and device
CN107368376B (en) Message sending method and device, expansion method and terminal
US10178512B2 (en) Information broadcast
CN115905745A (en) Method and system for rendering Building Information Model (BIM) and electronic equipment
CN103051607B (en) Access method, equipment and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120411