CN101727470A - System and method for controlling web page display authority - Google Patents

System and method for controlling web page display authority Download PDF

Info

Publication number
CN101727470A
CN101727470A CN200810305298A CN200810305298A CN101727470A CN 101727470 A CN101727470 A CN 101727470A CN 200810305298 A CN200810305298 A CN 200810305298A CN 200810305298 A CN200810305298 A CN 200810305298A CN 101727470 A CN101727470 A CN 101727470A
Authority
CN
China
Prior art keywords
user role
page elements
page
authority
label
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
CN200810305298A
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN200810305298A priority Critical patent/CN101727470A/en
Publication of CN101727470A publication Critical patent/CN101727470A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for controlling web page display authority, which comprises the following steps of reading and loading a customized label database corresponding to a web page visited by a server; analyzing a label in the web page according to the customized label database; dividing page elements with the same display authority in the web page into the same congregation; obtaining a user role corresponding to each divided page element congregation in the web page according to the corresponding relationship between the display authority of each page element and the user role; obtaining a user role of the page element which currently visits in the web page; displaying the page element in the page element congregation corresponding to the user role which is currently visited if the user role which is currently visited is in the corresponding user roles of each divided page element congregation; and displaying an unavailable state of the page elements in the page element congregation if the user role which is currently visited is not in the corresponding user roles of each divided page element congregation. In addition, the invention also provides a system for controlling web page display authority.

Description

System for controlling web page display authority and method
Technical field
The present invention relates to a kind of webpage control system and method, relate in particular to a kind of system for controlling web page display authority and method.
Background technology
Along with the continuous development of production informatization and networking, based on the system of B/S framework by feat of do not have installation, the characteristics such as easy that distribute are applied to industry-by-industry more and more widely, and are therefore also more and more higher to the requirement of the security of this class method and dirigibility.Traditional Web client authority control method is mainly taked the user conversation of preserving in the session of website is read, then according to the difference of user types, on the page, show different web page element and function, thereby reach the effect that realizes giving the different user different rights.
Yet this traditional way often needs the web page element code under the various different rights is write out all, takes similar " if else " mode to show different elements according to the difference of user role.This program code is not discerned by some main flow webpage development instruments of present industry, and for example: Dreamweaver, frontpage etc., nearly all webpage development instrument can all show all web page elements in the code.And the code that traditional authority design system is write the web page element of different rights correspondence in webpage is often more inflexible, and these web page element coding changes are got up and can be bothered very much, does not obviously possess dirigibility.Simultaneously, carry out a large amount of functional codes at Webpage and cause webpage to be resolved seriously slowly easily, reduce the performance of Web system on the whole.
Summary of the invention
In view of above content, be necessary to provide a kind of system for controlling web page display authority, can control the authority of netpage page surface element effectively.
Also be necessary to provide a kind of web displaying authority control method, can control the authority of netpage page surface element effectively.
A kind of system for controlling web page display authority, this system runs in the server, be used for the demonstration authority of the webpage of this server access is controlled, described webpage is to there being a customized tag storehouse, described webpage comprises the authority configuration file, store the pairing user role of demonstration authority of each page elements in the described webpage in this authority configuration file, described system comprises: initialization module is used to read and loads described customized tag storehouse; Parsing module is used for resolving according to the customized tag storehouse that is loaded the label of described webpage, and the page elements that has identical demonstration authority in the webpage is divided in the same set; Acquisition module, be used for according to the demonstration authority of defined each page elements of this authority configuration file and the corresponding relation between the user role, obtain each page elements of being divided in the described webpage and gather pairing user role, this acquisition module also is used to obtain the user role of the described netpage page surface element of current accessed; Judge module is used to judge whether the user role of current accessed is gathered in the pairing user role at each page elements of being divided; And display module, be used for if the user role of current accessed is gathered in the pairing user role at each page elements of being divided, then show the page elements in the user role corresponding page element set of current accessed, if the user role of current accessed is not gathered in the pairing user role at each page elements of being divided, then show the down state of page elements in this page elements set.
A kind of web displaying authority control method, this method comprise the steps: to read the also customized tag storehouse of the webpage correspondence of load server visit; Resolve label in the described webpage according to the customized tag storehouse that is loaded; The page elements that has identical demonstration authority in the webpage is divided in the same set; According to the demonstration authority of defined each page elements in the authority configuration file and the corresponding relation between the user role, obtain each page elements of being divided in the described webpage and gather pairing user role; Obtain the user role of the described netpage page surface element of current accessed; If the user role of current accessed is gathered in the pairing user role at each page elements of being divided, then show the page elements in the user role corresponding page element set of current accessed; And, then show the down state of page elements in this page elements set if the user role of current accessed is not gathered in the pairing user role at each page elements of being divided.
Compared to prior art, described system for controlling web page display authority and method utilize tag library that webpage is resolved, and make that page elements and the role-security in the webpage forms corresponding relation, are beneficial to the management and control to the demonstration authority of netpage page surface element.
Description of drawings
Fig. 1 is the running environment figure of system for controlling web page display authority preferred embodiment of the present invention.
Fig. 2 is the functional block diagram of system for controlling web page display authority preferred embodiment of the present invention.
Fig. 3 is the operation process chart of web displaying authority control method of the present invention preferred embodiment.
Fig. 4 is the synoptic diagram of authority configuration file preferred embodiment.
Fig. 5 is the synoptic diagram of page elements tabulation preferred embodiment.
Embodiment
As shown in Figure 1, be the running environment figure of a kind of system for controlling web page display authority preferred embodiment of the present invention.This system for controlling web page display authority 100 runs on the server 1, and this server 1 also is connected with database 2.This database 2 can be the memory device that is built in the server 1, and for example: internal memory, hard disk etc. also can be the memory devices that can be external in server 1, for example: USB flash disk, portable hard drive, database server etc.Described server 1 is by network 4 accessed web pages 3.Described network 4 can be internet, intranet or other any suitable telecommunication medias.Corresponding to a customized tag storehouse (JSP tag library), this customized tag stock is stored in this database 2 described webpage 3 by the statement of self-defining customized tag storehouse.All labels and attribute thereof in the webpage 3 in the described customized tag storehouse.
Described webpage 3 comprises a plurality of page elements.This page elements is meant button, navigation bar etc.Each page elements in this webpage 3 is all distinguished corresponding label.The demonstration authority that comprises this label corresponding page element in the attribute of each label.This webpage 3 comprises the authority configuration file, and this authority configuration file is the XML file, has defined the pairing user role of authorization privilege that shows each page elements in this webpage 3 in this XML file.As shown in Figure 4, the demonstration authority of first page elements is an administrator right, and the pairing user role of this administrator right is first user role and second user role.Also comprise the page elements tabulation in this webpage 3, this page elements tabulation is used for storing these webpage 3 all page elements, the label of each page elements correspondence and the corresponding relation between the user role three.
As shown in Figure 2, be the functional block diagram of system for controlling web page display authority 100 preferred embodiments of the present invention.Described module is the software program section with specific function, and this software is stored in computer-readable recording medium or other memory device, can be comprised the calculation element execution of processor by computing machine or other, thereby finish the serial flow process of control of authority.Described system for controlling web page display authority 100 comprises: initialization module 10, parsing module 12, acquisition module 14, memory module 16, judge module 18 and display module 20.
Initialization module 10 is used for when server 1 accessed web page 3, the customized tag storehouse corresponding in the reading database 2 with this webpage 3, and load this customized tag storehouse in the tag library description document.
Parsing module 12 is used for according to the customized tag storehouse that is loaded the label of this webpage 3 being resolved, and the page elements that has identical demonstration authority in the webpage 3 is divided in the same set.Particularly, at first, when the label in 12 pairs of webpages 3 of described parsing module is resolved, check the attribute of each label correspondence in the customized tag storehouse that is loaded; Then, divide the demonstration authority of the page elements in this webpage 3, will in the customized tag storehouse that is loaded the page elements that the same label attribute should be arranged being included in the set, the page elements in each set has identical demonstration authority.
Acquisition module 14 is used for obtaining each page elements of being divided in the described webpage 3 and gathering pairing role according to the corresponding relation between defined each page elements demonstration authority of authority configuration file and the user role.
Memory module 16 is used for the label with webpage 3, and user role and the page elements set of being divided are stored in the described page elements tabulation accordingly.As shown in Figure 5, because the attribute of second label that the attribute of pairing first label of first page elements and second page elements are corresponding is identical, so parsing module 12 is divided into first page elements and second page elements in the same page elements set, this page elements is gathered pairing user role and is role 1 and role 2.
Described acquisition module 14 also is used for obtaining the user role of these webpage 3 page elements of current accessed.
Judge module 18 is used to judge whether active user role gathers in the pairing user role at each page elements of being divided.
Display module 20 is used for user role when described current accessed when each page elements of being divided is gathered in the pairing user role, shows the page elements in the user role corresponding page element set of current accessed.When described active user role does not gather in the pairing user role at each page elements of being divided, then show the down state of page elements in this page elements set.
As shown in Figure 3, be the operation process chart of web displaying authority control method of the present invention preferred embodiment.
Step S30, when server 1 accessed web page 3, the customized tag storehouse corresponding in initialization module 10 reading databases 2 with this webpage 3, and load this customized tag storehouse in the tag library file.
Step S32, parsing module 12 is resolved the label in this webpage 3 according to the customized tag storehouse that is loaded, and divides the demonstration authority of the page elements in this webpage 3.Particularly, at first, when the label in 12 pairs of webpages 3 of described parsing module is resolved, check the attribute of each label correspondence in the customized tag storehouse that is loaded; Then, divide the demonstration authority of the page elements in this webpage 3, will in the customized tag storehouse that is loaded the page elements that the same label attribute should be arranged being included in the set, the page elements in each set has identical demonstration authority.
Step S34, acquisition module 14 obtains each page elements of being divided in the described webpage 3 and gathers pairing role according to the authority of defined each page elements demonstration in the authority configuration file and the corresponding relation between the user role.
Step S36, memory module 16 is with the label in the webpage 3, and user role and the page elements set of being divided are stored in the described page elements tabulation accordingly.As shown in Figure 5, because the attribute of second label that the attribute of pairing first label of first page elements and second page elements are corresponding is identical, so parsing module 12 is divided into first page elements and second page elements in the same page elements set, this page elements is gathered pairing user role and is role 1 and role 2.
Step S38, described acquisition module 14 obtain the user role of page elements in this webpage 3 of current accessed.
Step S40, judge module 18 judge whether active user role gathers in the pairing user role at each page elements of being divided.When described active user role when each page elements of being divided is gathered in the pairing user role, enter step S42.When described active user role not when each page elements of being divided is gathered in the pairing user role, enter step S44.
Step S42, the page elements in the user role corresponding page element set of display module 20 demonstration current accessed.
Step S44, the down state of the page elements in the user role corresponding page element set of display module 20 demonstration current accessed.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (8)

1. system for controlling web page display authority, this system runs in the server, be used for the demonstration authority of the webpage of this server access is controlled, it is characterized in that, described webpage is to there being a customized tag storehouse, described webpage comprises the authority configuration file, stores the pairing user role of demonstration authority of each page elements in the described webpage in this authority configuration file, and described system comprises:
Initialization module is used to read and loads described customized tag storehouse;
Parsing module is used for resolving according to the customized tag storehouse that is loaded the label of described webpage, and the page elements that has identical demonstration authority in the webpage is divided in the same set;
Acquisition module, be used for according to the demonstration authority of defined each page elements of this authority configuration file and the corresponding relation between the user role, obtain each page elements of being divided in the described webpage and gather pairing user role, this acquisition module also is used to obtain the user role of the described netpage page surface element of current accessed;
Judge module is used to judge whether the user role of current accessed is gathered in the pairing user role at each page elements of being divided; And
Display module, be used for if the user role of current accessed is gathered in the pairing user role at each page elements of being divided, then show the page elements in the user role corresponding page element set of current accessed, if the user role of current accessed is not gathered in the pairing user role at each page elements of being divided, then show the down state of page elements in this page elements set.
2. system for controlling web page display authority as claimed in claim 1 is characterized in that, this customized tag storehouse comprises the attribute of each label and each label correspondence in the described webpage.
3. system for controlling web page display authority as claimed in claim 2, it is characterized in that, when described parsing module is resolved label in the described webpage, check this label corresponding attribute in this customized tag storehouse, the label corresponding page element of same alike result is included in the set.
4. system for controlling web page display authority as claimed in claim 3 is characterized in that, described server also comprises:
Memory module is used for label, the user role of described webpage and the page elements set of being divided are stored in the page elements tabulation accordingly.
5. a web displaying authority control method is characterized in that, this method comprises the steps:
Read the also customized tag storehouse of the webpage correspondence of load server visit;
Resolve label in the described webpage according to the customized tag storehouse that is loaded;
The page elements that has identical demonstration authority in the webpage is divided in the same set;
According to the demonstration authority of defined each page elements in the authority configuration file and the corresponding relation between the user role, obtain each page elements of being divided in the described webpage and gather pairing user role;
Obtain the user role of the described netpage page surface element of current accessed;
If the user role of current accessed is gathered in the pairing user role at each page elements of being divided, then show the page elements in the user role corresponding page element set of current accessed; And
If the user role of current accessed is not gathered in the pairing user role at each page elements of being divided, then show the down state of page elements in this page elements set.
6. web displaying authority control method as claimed in claim 5 is characterized in that, this customized tag storehouse comprises the attribute of each label and each label correspondence in the described webpage.
7. web displaying authority control method as claimed in claim 6, it is characterized in that, the label that described step is resolved in the described webpage according to the customized tag storehouse that is loaded also comprises: check this label corresponding attribute in the customized tag storehouse, the label corresponding page element of same alike result is included in the set.
8. web displaying authority control method as claimed in claim 7, it is characterized in that described step also comprises before obtaining the user role of the described netpage page surface element of current accessed: the label in the described webpage, user role and the page elements set of being divided are stored in the page elements tabulation accordingly.
CN200810305298A 2008-10-30 2008-10-30 System and method for controlling web page display authority Pending CN101727470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810305298A CN101727470A (en) 2008-10-30 2008-10-30 System and method for controlling web page display authority

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810305298A CN101727470A (en) 2008-10-30 2008-10-30 System and method for controlling web page display authority

Publications (1)

Publication Number Publication Date
CN101727470A true CN101727470A (en) 2010-06-09

Family

ID=42448366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810305298A Pending CN101727470A (en) 2008-10-30 2008-10-30 System and method for controlling web page display authority

Country Status (1)

Country Link
CN (1) CN101727470A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456042A (en) * 2010-10-29 2012-05-16 金蝶软件(中国)有限公司 Tab loading method and device as well as communication terminal
CN102469074A (en) * 2010-11-03 2012-05-23 腾讯科技(深圳)有限公司 Method and system for accessing website
CN102955910A (en) * 2011-08-25 2013-03-06 阿里巴巴集团控股有限公司 Method and device for multi-account authority control
CN105227560A (en) * 2015-10-14 2016-01-06 浪潮集团有限公司 A kind of method of control of authority and device
CN103971036B (en) * 2013-01-28 2017-03-01 深圳学无国界教育科技有限公司 Page column authority control system and method
CN109409048A (en) * 2018-10-09 2019-03-01 郑州云海信息技术有限公司 A kind of system and method for realizing page fining permission control
CN114666167A (en) * 2022-05-23 2022-06-24 中电云数智科技有限公司 Safety user authentication method of industrial equipment and industrial equipment
CN116702213A (en) * 2023-08-01 2023-09-05 北京太极法智易科技有限公司 Service system data authority management method, device and equipment for multi-level enterprise

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456042A (en) * 2010-10-29 2012-05-16 金蝶软件(中国)有限公司 Tab loading method and device as well as communication terminal
CN102469074A (en) * 2010-11-03 2012-05-23 腾讯科技(深圳)有限公司 Method and system for accessing website
CN102955910A (en) * 2011-08-25 2013-03-06 阿里巴巴集团控股有限公司 Method and device for multi-account authority control
CN103971036B (en) * 2013-01-28 2017-03-01 深圳学无国界教育科技有限公司 Page column authority control system and method
CN105227560A (en) * 2015-10-14 2016-01-06 浪潮集团有限公司 A kind of method of control of authority and device
CN109409048A (en) * 2018-10-09 2019-03-01 郑州云海信息技术有限公司 A kind of system and method for realizing page fining permission control
CN114666167A (en) * 2022-05-23 2022-06-24 中电云数智科技有限公司 Safety user authentication method of industrial equipment and industrial equipment
CN116702213A (en) * 2023-08-01 2023-09-05 北京太极法智易科技有限公司 Service system data authority management method, device and equipment for multi-level enterprise

Similar Documents

Publication Publication Date Title
CN101727470A (en) System and method for controlling web page display authority
US11797558B2 (en) Generating data transformation workflows
US11113456B2 (en) System and method for deep linking and search engine support for web sites integrating third party application and components
US8397212B2 (en) Module hosting and content generation platform
CN100489879C (en) Method, system and server for checking page data
US8825817B1 (en) Using a template to update a stack of resources
CN104375808B (en) interface display method and device
CN102567436A (en) Multi-Tenant system
US20170003957A1 (en) Instrumenting a website with dynamically generated code
CN104104649A (en) Webpage logging method, device and system
US20190065444A1 (en) Techniques for efficient & high-throughput web content-creation
CN106681891A (en) Method and device for adjusting log levels in Java application system
US7627579B2 (en) Managing portal response times
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN104767653A (en) Method and device for monitoring network interfaces
CN103971036A (en) Page field access control system and method
CN103631820A (en) Metadata management method and device of distributed file system
US10867006B2 (en) Tag plan generation
US9350738B2 (en) Template representation of security resources
RU2691834C1 (en) Method of managing web site data
US20130262662A1 (en) Methods and systems for smart adapters in a social media content analytics environment
CN110990799A (en) Data processing method, device and system for anti-crawler and storage medium
US10482279B2 (en) Pattern-less private data detection on data sets
CN107609038A (en) Data clearing method and device
CN110874370B (en) Data query method and device, computer equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100609