CN116795366A - Method and device for shielding foreground webpage of application system, electronic equipment and medium - Google Patents

Method and device for shielding foreground webpage of application system, electronic equipment and medium Download PDF

Info

Publication number
CN116795366A
CN116795366A CN202310760655.8A CN202310760655A CN116795366A CN 116795366 A CN116795366 A CN 116795366A CN 202310760655 A CN202310760655 A CN 202310760655A CN 116795366 A CN116795366 A CN 116795366A
Authority
CN
China
Prior art keywords
shielding
button
jsp
application system
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
CN202310760655.8A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310760655.8A priority Critical patent/CN116795366A/en
Publication of CN116795366A publication Critical patent/CN116795366A/en
Pending legal-status Critical Current

Links

Abstract

The disclosure provides a shielding method for foreground webpages of an application system, which can be used in the financial field or other fields. The method comprises the steps of firstly, newly adding a common shielding script js, and introducing the common shielding script js to all jsp front-end pages of an application system; based on the common mask script js: in a first aspect, a masking total tag may be configured in a login interface; in a second aspect, a menu shielding label may be configured at a menu loading interface; in a third aspect, a first button mask tag may be configured on each jsp front-end page. Then, while any jsp front-end page of the application system interacts with the background Servlet container, the requests and responses of all page-level interfaces are filtered by using a filter, and a second button shielding label is configured in the response. And finally, integrating the first button shielding label and the second button shielding label to obtain unshielded button sets of all jsp front-end pages. The disclosure also provides a shielding device, an electronic device, a storage medium and a program product of the application system foreground webpage.

Description

Method and device for shielding foreground webpage of application system, electronic equipment and medium
Technical Field
The present disclosure relates to the field of software development technology, and may be used in the financial field or other fields, and more particularly, to a method, an apparatus, an electronic device, a medium, and a program product for shielding a foreground webpage of an application system.
Background
At present, old systems based on jsp development such as old credit systems and the like need to be manually adjusted by developers because the system construction completion time is long, and the functions of dynamic shielding menus and buttons are not considered at the beginning of design. The existing menu shielding function, namely changing the state of the menu in the database, carries out logic deletion, so that the menu which wants to be shielded cannot be seen on the page. The existing button deleting function is that, for each jsp page, a developer deletes a button to be masked by manually deleting a corresponding node tag.
However, old systems may involve up to thousands of jsp front-end pages, hundreds of button labels, which takes a lot of time if the jsp pages are individually modified according to the prior art scheme, and the button shielding is very easy to be incomplete, and the version needs to be redeveloped every time a new shielding button is added, which is time-consuming and labor-consuming.
Thus, there is still a need for a configuration method that can be adapted to an old credit system, with a large number of masks for menus or buttons.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a method, apparatus, electronic device, medium, and program product for shielding a foreground web page of an application system, which can improve the efficiency of shielding menus or buttons for old systems developed based on jsp, such as old credit systems.
According to a first aspect of the present disclosure, there is provided a method for masking a foreground webpage of an application system, including: acquiring a plurality of jsp front-end pages of an application system, and introducing a common shielding script js into the jsp front-end pages, wherein the common shielding script js comprises a shielding total tag, a menu shielding tag and a first button shielding tag; configuring a shielding total tag at a login interface of an application system, wherein the shielding total tag is used for opening or closing shielding of the application system; responding to the shielding total label indication to open the shielding to the application system, configuring a menu shielding label at a menu loading interface of the application system, wherein the menu shielding label is used for opening or closing the shielding to N menus of the application system, and N is a positive integer; a first button shielding label is configured for each jsp front-end page and used for opening or closing shielding for M buttons under the jsp front-end page, wherein M is a positive integer; responding to interaction between any jsp front-end page of the application system and a background Servlet container, filtering a request object and a response object in the interaction process by using a filter, and configuring a second button shielding label in the response object, wherein the second button shielding label is used for opening shielding for J buttons under the jsp front-end page, and J is a positive integer smaller than M; and determining an unmasked button set of one or more jsp front-end pages of the application system according to the first button mask tag and the second button mask tag, and closing the mask for one or more buttons in the unmasked button set.
According to an embodiment of the present disclosure, introducing a common mask script js at a jsp front-end page includes: and acquiring a universal header file of each jsp front-end page, and introducing a common shielding script js into the universal header file.
According to an embodiment of the present disclosure, the method further comprises: when the menu shielding label indicates that shielding is closed for N menus in the N menus, N is a positive integer smaller than N, and the N menus are displayed.
According to an embodiment of the present disclosure, determining an unmasked button set of one or more jsp front-end pages of an application system according to a first button mask tag and a second button mask tag includes, for any target button under any jsp front-end page of the application system: when the first button mask tag indicates that the mask is opened for the target button and the second button mask tag indicates that the mask is closed for the target button, the target button is added to the unmasked button set and the target button under the jsp front page is displayed.
According to an embodiment of the present disclosure, the method further comprises: acquiring first database tables corresponding to N-N remaining menus in the N menus and second database tables corresponding to one or more buttons in the unshielded button set; the permissions of the first database table and the second database table are set to a read-only state.
According to an embodiment of the present disclosure, a first button mask tag is configured for each jsp front-end page, and is configured to open or close a mask for M buttons under the jsp front-end page, and further includes any one button of the M buttons: judging whether at least one dimension attribute in the multi-dimension attributes under the node label of the button is selected, if so, opening a shield for the button; otherwise, the shield is closed to the button.
A second aspect of the present disclosure provides a shielding device for a foreground webpage of an application system, including: the common shielding script configuration module is used for acquiring a plurality of jsp front-end pages of the application system, introducing a common shielding script js into the jsp front-end pages, wherein the common shielding script js comprises a shielding total tag, a menu shielding tag and a first button shielding tag; configuring a shielding total tag at a login interface of an application system, wherein the shielding total tag is used for opening or closing shielding of the application system; responding to the shielding total label indication to open the shielding to the application system, configuring a menu shielding label at a menu loading interface of the application system, wherein the menu shielding label is used for opening or closing the shielding to N menus of the application system, and N is a positive integer; a first button shielding label is configured for each jsp front-end page and used for opening or closing shielding for M buttons under the jsp front-end page, wherein M is a positive integer; the button shielding special configuration module is used for responding to interaction between any jsp front-end page of the application system and a background Servlet container, filtering a request object and a response object in the interaction process by using a filter, and configuring a second button shielding label in the response object, wherein the second button shielding label is used for opening shielding of J buttons under the jsp front-end page, and J is a positive integer smaller than M; and an unmasked button set determining module, configured to determine an unmasked button set of one or more jsp front end pages of the application system according to the first button mask tag and the second button mask tag, and close the mask for one or more buttons in the unmasked button set.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of masking an application system foreground web page described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described masking method for application-system foreground web pages.
The fifth aspect of the present disclosure also provides a computer program product, which includes a computer program, and the computer program when executed by a processor implements the method for masking a foreground webpage of an application system.
According to the shielding method, the device, the electronic equipment, the medium and the program product of the foreground webpage of the application system, firstly, a common shielding script js is newly added and is introduced into all jsp front-end pages of the application system; based on the common mask script js: in a first aspect, a masking total tag may be configured in a login interface; in a second aspect, a menu shielding label may be configured at a menu loading interface; in a third aspect, a first button mask tag may be configured on each jsp front-end page. Then, while any jsp front-end page of the application system interacts with the background Servlet container, the requests and responses of all page-level interfaces are filtered by using a filter, and a second button shielding label is configured in the response. And finally, integrating the first button shielding label and the second button shielding label to obtain unshielded button sets of all jsp front-end pages. The configurable scheme based on the filter for shielding the menu level and the button level is provided, so that a large amount of time is saved, the shielding efficiency is greatly improved, the preparation is made for the follow-up service personnel to put forward the requirement of shielding the rest buttons and menus, and a certain preparation is made for the later-stage technical development team to smoothly withdraw the old credit system. By the method, the problems that a menu/button shielding mode in an old system based on jsp development such as an old credit system depends on manual development, is low in efficiency, is incomplete in shielding and the like can be solved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a system architecture of a masking method and apparatus suitable for application system foreground web pages in accordance with an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flowchart of a method of masking an application system foreground web page in accordance with an embodiment of the disclosure;
FIG. 3 schematically illustrates a schematic diagram of a method of masking an application system foreground web page in accordance with an embodiment of the disclosure;
FIG. 4 schematically illustrates a flow chart of rights settings of a database table according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a flow chart of a configuration process of a first button shielding label according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a shielding apparatus for an application system foreground web page in accordance with an embodiment of the disclosure;
fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a masking method for application system foreground web pages, in accordance with an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some of the block diagrams and/or flowchart illustrations are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, when executed by the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon, the computer program product being for use by or in connection with an instruction execution system.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing, applying and the like of the personal information of the user all conform to the regulations of related laws and regulations, necessary security measures are adopted, and the public order harmony is not violated.
In the technical scheme of the disclosure, the authorization or consent of the user is obtained before the personal information of the user is obtained or acquired.
Embodiments of the present disclosure provide a method, an apparatus, an electronic device, a medium, and a program product for shielding a foreground webpage of an application system, which may be used in a financial field or other fields. The method comprises the following steps: acquiring a plurality of jsp front-end pages of an application system, and introducing a common shielding script js into the jsp front-end pages, wherein the common shielding script js comprises a shielding total tag, a menu shielding tag and a first button shielding tag; configuring a shielding total tag at a login interface of an application system, wherein the shielding total tag is used for opening or closing shielding of the application system; responding to the shielding total label indication to open the shielding to the application system, configuring a menu shielding label at a menu loading interface of the application system, wherein the menu shielding label is used for opening or closing the shielding to N menus of the application system, and N is a positive integer; a first button shielding label is configured for each jsp front-end page and used for opening or closing shielding for M buttons under the jsp front-end page, wherein M is a positive integer; responding to interaction between any jsp front-end page of the application system and a background Servlet container, filtering a request object and a response object in the interaction process by using a filter, and configuring a second button shielding label in the response object, wherein the second button shielding label is used for opening shielding for J buttons under the jsp front-end page, and J is a positive integer smaller than M; and determining an unmasked button set of one or more jsp front-end pages of the application system according to the first button mask tag and the second button mask tag, and closing the mask for one or more buttons in the unmasked button set.
Fig. 1 schematically illustrates a system architecture of a method and apparatus for masking a foreground web page of an application system according to an embodiment of the disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the method for shielding the foreground web page of the application system provided in the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the shielding device for the foreground webpage of the application system provided in the embodiments of the present disclosure may be generally disposed in the server 105. The method for masking a foreground webpage of an application system provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the shielding device of the application system foreground webpage provided in the embodiments of the present disclosure may also be disposed in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The method for shielding the foreground web page of the application system according to the embodiments of the present disclosure will be described in detail below with reference to fig. 2 to 5 based on the system architecture described in fig. 1.
Fig. 2 schematically illustrates a flowchart of a method of masking an application system foreground web page in accordance with an embodiment of the disclosure. Fig. 3 schematically illustrates a schematic diagram of a method of masking an application system foreground web page according to an embodiment of the disclosure.
As shown in fig. 2 and 3, the method for masking an application system foreground webpage of the embodiment may include operations S210 to S230, and the method for masking an application system foreground webpage may be performed by the server 105.
In operation S210, a plurality of jsp front-end pages of the application system are acquired, and a common mask script js is introduced into the jsp front-end pages, wherein the common mask script js includes a mask total tag, a menu mask tag, and a first button mask tag.
For example, the application system is an old system developed based on jsp, such as an old credit system. And newly adding a common shielding script js in the old system, and introducing the common shielding script js to all jsp front-end pages.
In the embodiment of the present disclosure, introducing a common mask script js on a jsp front-end page includes: and acquiring a universal header file of each jsp front-end page, and introducing a common shielding script js into the universal header file. For example, a common header file of all jsp front-end pages is found in the old credit system, and a newly added common mask script js is introduced into the common header file.
Specifically, operation S210 may include the following operations S210A to S210C;
in operation S210A, a mask total tag is configured at a login interface of an application system for opening or closing a mask to the application system.
In operation S210B, in response to the mask total tag indicating that the mask is opened to the application system, configuring a menu mask tag at a menu loading interface of the application system for N of the application system
The menu turns on or off the mask, N being a positive integer.
In operation S210C, a first button mask tag is configured for each jsp front-end page, and is used to open or close the mask for M buttons under the jsp front-end page, where M is a positive integer.
In this way, the common mask script js is introduced into the jsp front-end page, and the implementation logic can be as follows: judging whether the shielding is opened for the whole application system according to the shielding total label configured in the login interface; according to the menu shielding label configured by the menu loading interface, shielding N menus of the application system; and according to the first button shielding label configured by each jsp front-end page, carrying out shielding operation on a plurality of buttons/a labels under the current jsp front-end page.
In operation S220, in response to interaction between any jsp front-end page of the application system and the background Servlet container, a filter (filter) is used to filter a request object (request) and a response object (response) in the interaction process, and a second button shielding label is configured in the response object, so as to open shielding for J buttons under the jsp front-end page, where J is a positive integer smaller than M.
In operation S230, an unmasked button set of one or more jsp front-end pages of the application system is determined according to the first button mask tag and the second button mask tag, and the mask is closed to one or more buttons in the unmasked button set.
Through the above embodiment, the present disclosure first newly adds the common mask script js and introduces the common mask script js to all jsp front end pages of the application system; based on the common mask script js: in a first aspect, a masking total tag may be configured in a login interface; in a second aspect, a menu shielding label may be configured at a menu loading interface; in a third aspect, a first button mask tag may be configured on each jsp front-end page. Then, while any jsp front-end page of the application system interacts with the background Servlet container, the requests and responses of all page-level interfaces are filtered by using a filter, and a second button shielding label is configured in the response. And finally, integrating the first button shielding label and the second button shielding label to obtain unshielded button sets of all jsp front-end pages. The configurable scheme based on the filter for shielding the menu level and the button level is provided, so that a large amount of time is saved, the shielding efficiency is greatly improved, the preparation is made for the follow-up service personnel to put forward the requirement of shielding the rest buttons and menus, and a certain preparation is made for the later-stage technical development team to smoothly withdraw the old credit system. By the method, the problems that a menu/button shielding mode in an old system based on jsp development such as an old credit system depends on manual development, is low in efficiency, is incomplete in shielding and the like can be solved.
As shown in fig. 3, in the embodiment of the present disclosure, the above-mentioned operation S210A configures a mask total tag in a system interface, which may match whether the current application system opens the mask, and puts the mask total tag in a session for controlling the entire application system. If the shielding total label indicates that the shielding is closed to the application system, shielding limitation is carried out on the whole system according to subsequent operation; if the shielding total label indicates that the shielding is started for the application system, the current application system is consistent with that before transformation, the user has no sense, and the user experience can be improved.
In the embodiment of the present disclosure, the above-mentioned operation S210B configures the menu shielding label at the menu loading interface, if a menu is opened, the user cannot continue to use such menu, and if the administrator needs to release some of the menus from the subsequent service department, the configuration is performed in the management page. Meanwhile, after the above operation S210B, further includes: when the menu shielding label indicates that shielding is closed for N menus in the N menus, N is a positive integer smaller than N, and the N menus are displayed.
In the embodiment of the present disclosure, the above operation S210C configures a first button shielding label on each jsp front-end page, so as to determine a shielding button configured by the whole application system.
With continued reference to fig. 3, in the embodiment of the present disclosure, in operation S220, while any JSP front-end page of the application system interacts with the background Servlet container, a custom filter is added between JSP and Servlet interactions, and the filter is used to filter requests and response of all page-level interfaces, and a second button mask tag is configured in the response. It can be seen that the second button mask tab is a local to global relationship compared to the first button mask tab described above, and the second button mask tab indicates a special case mask button under a jsp front page.
It will be appreciated that a Servlet object is stored in a background Servlet container, which may be, for example, a tomcat server as shown in fig. 3, where the tomcat server may deploy Servlet objects into a container that would otherwise not function.
Next, in the embodiment of the present disclosure, the above-mentioned determining, in operation S230, the unmasked button set of the one or more jsp front-end pages of the application system according to the first button mask tag and the second button mask tag includes, for any target button under any jsp front-end page of the application system:
When the first button mask tag indicates that the mask is opened for the target button and the second button mask tag indicates that the mask is closed for the target button, the target button is added to the unmasked button set and the target button under the jsp front page is displayed.
Through the above embodiment, the present disclosure may integrate a shielding button (i.e., a first button shielding tag) configured by an entire application system and a special shielding button (i.e., a second button shielding tag) under a certain jsp front-end page, so as to obtain a button actually needing to be shielded under the current jsp front-end page, thereby determining an unmasked button set of one or more jsp front-end pages of the application system.
For example, the [ modify ] button belongs to a shielding button for the whole application system, but is released from the shielding button set when the key is in the password modification page, so that the [ modify ] button in the password modification page is guaranteed to be in an unshielded state and can be used normally.
In addition, the determination mode of the unmasked button set can also be extended to the shielding of the a label, and the mouth of the shielding accessible by other node labels is reserved. The above-mentioned all have been made into the configurable operation, the newly added shielding button, newly added shielding node label all need not to carry on any code layer improvement.
Fig. 4 schematically illustrates a flow chart of rights settings of a database table according to an embodiment of the disclosure.
As shown in fig. 4, in the embodiment of the present disclosure, the method for shielding a foreground webpage of an application system may further include operations S401 to S402.
In operation S401, a first database table corresponding to N-N menus remaining in the N menus and a second database table corresponding to one or more buttons in the unshielded button set are acquired;
in operation S402, the rights of the first database table and the second database table are set to a read-only state.
For example, the rights settings of the database table may be performed by a system administrator of the application system.
Through the embodiment, the authority of the database table corresponding to the menu and the button to be shielded is set to be in a read-only state, so that a user can be shielded to operate the database in a special way, and the problem of data warehouse entry caused by insufficient shielding of the front-end menu button can be avoided. In addition, the authority of the system administrator of the application system to configure the menu and the database table of the buttons is given, so that preparation can be made for the follow-up service personnel to put forward the requirement of shielding the other buttons and the menu, and certain preparation is made for the later-stage technical development team to smoothly withdraw the old system based on jsp development, such as the old credit system.
Fig. 5 schematically illustrates a flowchart of a configuration process of a first button shielding label according to an embodiment of the present disclosure.
As shown in fig. 5, in the embodiment of the present disclosure, the above operation S210C configures a first button mask tag for each jsp front-end page, for opening or closing a mask for M buttons under the jsp front-end page, and further includes executing the following operation S501 for any one of the M buttons.
In operation S501, it is determined whether at least one of the multi-dimensional attributes under the node label of the button is selected, and if so, a mask is opened for the button; otherwise, the shield is closed to the button.
For example, the implementation logic may be to perform a shielding operation on a plurality of buttons/a tags under the current jsp front-end page: matching with the attributes label, labelType, lableName and the like below the node in the current page, deleting if the attributes are selected, and otherwise, retaining the display.
In summary, the method for shielding the application system foreground webpage provided by the embodiment of the invention solves the problem that old and old systems developed based on jsp, such as old credit systems, smoothly transit a transition period after a project goes offline, and performs shielding configuration of the application system foreground webpage by maintaining shielding total tags, menu shielding tags, shielding buttons, shielding special cases of jsp front end pages and buttons, table authority and the like, so as to dynamically realize the function. The method has the advantages that:
(1) The application range is wide: all menus, all pages and all buttons/links in the old credit systemization can be shielded and displayed;
(2) The usability is strong: the management page is newly added to all configuration forms, dynamic configuration can be carried out on labels of all levels, and management by a system administrator and subsequent requirement satisfaction are facilitated after the functions are online;
(3) The usability is strong: the foreground is newly added with four configuration pages, including maintenance of a system level, a menu level, a button label level and a form level, so that a system administrator can perform unified configuration maintenance conveniently;
(4) The safety is strong: the database table is also read-only limited, so that interfaces such as new addition and modification are avoided from being called by a user through a special way;
(5) The expansibility is strong: 1) The method not only can carry out shielding operation on menus, buttons and a labels, but also can be expanded to carry out shielding on all wanted node labels in the follow-up process; 2) The method is not only suitable for old credit systems supported at present, but also suitable for all old systems developed based on jsp.
The disclosure also provides a shielding device for the foreground webpage of the application system. The device will be described in detail below in connection with fig. 6.
Fig. 6 schematically illustrates a block diagram of a shielding apparatus for an application system foreground web page according to an embodiment of the disclosure.
As shown in fig. 6, the shielding apparatus 600 of the application system foreground webpage of this embodiment includes a common shielding script configuration module 610, a button shielding special case configuration module 620, and an unshielded button set determination module 630.
The common shielding script configuration module 610 is configured to obtain a plurality of jsp front end pages of the application system, introduce a common shielding script js at the jsp front end pages, where the common shielding script js includes a shielding total tag, a menu shielding tag and a first button shielding tag; configuring a shielding total tag at a login interface of an application system, wherein the shielding total tag is used for opening or closing shielding of the application system; responding to the shielding total label indication to open the shielding to the application system, configuring a menu shielding label at a menu loading interface of the application system, wherein the menu shielding label is used for opening or closing the shielding to N menus of the application system, and N is a positive integer; and configuring a first button shielding label for each jsp front-end page, wherein the first button shielding label is used for opening or closing shielding for M buttons under the jsp front-end page, and M is a positive integer. In an embodiment, the common mask script configuration module 610 may be used to perform the operation S210 described above, which is not described herein.
The button mask special configuration module 620 is configured to respond to interaction between any jsp front-end page of the application system and the background Servlet container, filter the request object and the response object in the interaction process by using the filter, and configure a second button mask label in the response object, where the second button mask label is used to open the mask for J buttons under the jsp front-end page, and J is a positive integer smaller than M. In an embodiment, the button mask special configuration module 620 may be used to perform the operation S220 described above, which is not described herein.
An unmasked button set determining module 630, configured to determine an unmasked button set of one or more jsp front pages of the application system according to the first button mask tag and the second button mask tag, and close the mask for one or more buttons in the unmasked button set. In an embodiment, the unmasked button set determining module 630 may be used to perform the operation S230 described above, which is not described herein.
Any of the common mask script configuration module 610, the button mask special case configuration module 620, and the unmasked button set determination module 630 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules, according to embodiments of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the common mask script configuration module 610, the button mask special case configuration module 620, and the unmasked button set determination module 630 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of any of the three implementations of software, hardware, and firmware. Alternatively, at least one of the common mask script configuration module 610, the button mask specific configuration module 620, and the unmasked button set determination module 630 may be at least partially implemented as a computer program module that, when executed, performs the corresponding functions.
Fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a masking method for application system foreground web pages, in accordance with an embodiment of the disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. The processor 701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. Note that the program may be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 700 may further include an input/output (I/O) interface 705, the input/output (I/O) interface 705 also being connected to the bus 704. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs that, when executed, implement a method of masking an application system foreground web page according to an embodiment of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 702 and/or RAM 703 and/or one or more memories other than ROM 702 and RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. When the computer program product runs in a computer system, the program code is used for enabling the computer system to realize the shielding method of the foreground webpage of the application system provided by the embodiment of the disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed over a network medium in the form of signals, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A shielding method of an application system foreground webpage comprises the following steps:
acquiring a plurality of jsp front-end pages of an application system, and introducing a common shielding script js into the jsp front-end pages, wherein the common shielding script js comprises a shielding total tag, a menu shielding tag and a first button shielding tag;
Configuring the shielding total tag at a login interface of the application system, wherein the shielding total tag is used for opening or closing shielding for the application system;
responding to the shielding total label indication to open shielding to the application system, configuring the menu shielding label at a menu loading interface of the application system, wherein the menu shielding label is used for opening or closing shielding to N menus of the application system, and N is a positive integer;
the first button shielding labels are configured for each jsp front-end page and are used for opening or closing shielding for M buttons under the jsp front-end page, wherein M is a positive integer;
responding to interaction between any jsp front-end page of the application system and a background Servlet container, filtering a request object and a response object in the interaction process by using a filter, and configuring a second button shielding label in the response object, wherein the second button shielding label is used for opening shielding for J buttons under the jsp front-end page, and J is a positive integer smaller than M; and
and determining an unmasked button set of one or more jsp front-end pages of the application system according to the first button shielding label and the second button shielding label, and closing shielding for one or more buttons in the unmasked button set.
2. The method of claim 1, wherein introducing a common mask script js at the jsp front-end page comprises:
and acquiring a universal header file of each jsp front-end page, and introducing the common shielding script js into the universal header file.
3. The method of claim 1, further comprising:
when the menu shielding label indicates that shielding is closed for N menus in the N menus, N is a positive integer smaller than N, and the N menus are displayed.
4. The method of claim 1, wherein the determining the unmasked button set of the one or more jsp front-end pages of the application system from the first button mask tag and the second button mask tag comprises, for any target button under any jsp front-end page of the application system:
and adding the target button to the unmasked button set and displaying the target button under the jsp front-end page when the first button mask tag indicates that the mask is opened to the target button and the second button mask tag indicates that the mask is closed to the target button.
5. A method according to claim 3, further comprising:
Acquiring first database tables corresponding to the N-N remaining menus in the N menus and second database tables corresponding to one or more buttons in the unmasked button set;
and setting the authority of the first database table and the second database table to be in a read-only state.
6. The method of claim 1, wherein the configuring the first button mask tab for each jsp front-end page is configured to open or close a mask for M buttons under the jsp front-end page, further comprising, for any one of the M buttons:
judging whether at least one dimension attribute in the multi-dimension attributes under the node label of the button is selected, if so, opening a shield for the button; otherwise, the shield is closed to the button.
7. A shielding device for a foreground web page of an application system, comprising:
the system comprises a common shielding script configuration module, a first button shielding label, a second button shielding label, a first shielding label and a second button shielding label, wherein the common shielding script configuration module is used for acquiring a plurality of jsp front-end pages of an application system, and introducing a common shielding script js into the jsp front-end pages, wherein the common shielding script js comprises a shielding total label, the menu shielding label and the first button shielding label;
configuring the shielding total tag at a login interface of the application system, wherein the shielding total tag is used for opening or closing shielding for the application system;
Responding to the shielding total label indication to open shielding to the application system, configuring the menu shielding label at a menu loading interface of the application system, wherein the menu shielding label is used for opening or closing shielding to N menus of the application system, and N is a positive integer;
the first button shielding labels are configured for each jsp front-end page and are used for opening or closing shielding for M buttons under the jsp front-end page, wherein M is a positive integer;
the button shielding special configuration module is used for responding to interaction between any jsp front-end page of the application system and a background Servlet container, filtering a request object and a response object in the interaction process by using a filter, and configuring a second button shielding label in the response object, wherein the second button shielding label is used for opening shielding for J buttons under the jsp front-end page, and J is a positive integer smaller than M; and
and the unmasked button set determining module is used for determining an unmasked button set of one or more jsp front-end pages of the application system according to the first button shielding label and the second button shielding label, and closing shielding for one or more buttons in the unmasked button set.
8. An electronic device, comprising:
One or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
CN202310760655.8A 2023-06-26 2023-06-26 Method and device for shielding foreground webpage of application system, electronic equipment and medium Pending CN116795366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310760655.8A CN116795366A (en) 2023-06-26 2023-06-26 Method and device for shielding foreground webpage of application system, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310760655.8A CN116795366A (en) 2023-06-26 2023-06-26 Method and device for shielding foreground webpage of application system, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN116795366A true CN116795366A (en) 2023-09-22

Family

ID=88041030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310760655.8A Pending CN116795366A (en) 2023-06-26 2023-06-26 Method and device for shielding foreground webpage of application system, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116795366A (en)

Similar Documents

Publication Publication Date Title
US8935755B1 (en) Managing permissions and capabilities of web applications and browser extensions based on install location
US10803140B1 (en) Methods, systems, and computer program products for web browsing
JP6310477B2 (en) System and method for displaying multiple applications
EP3123361B1 (en) System for managing extension modifications to web pages
US11216587B2 (en) Log tokenization in an integration platform
US10529013B2 (en) Identifying business type using public information
US9325717B1 (en) Web-store restriction of external libraries
DE202014010889U1 (en) Priority static hosted web applications
US10534817B2 (en) Sharing a process in a web client
US10951486B2 (en) Terminal device, UI expansion method, and UI expansion program
CN116795366A (en) Method and device for shielding foreground webpage of application system, electronic equipment and medium
US20190138278A1 (en) Cognitive redundant coding corpus determination system
US20210279362A1 (en) Systems and methods for semantic context enrichment and data masking
CN114611144A (en) Authority control method, device, equipment, medium and program product
CN114240392A (en) Information processing method, task approval method, and information processing apparatus
CN113326079A (en) Service version switching method, switching device, electronic equipment and storage medium
CN111325621A (en) Protocol processing method, device, computer system and medium
CN114640585B (en) Resource updating method and device, electronic equipment and storage medium
CN117176576A (en) Network resource changing method, device, equipment and storage medium
CN115062295A (en) Environment detection method, device, equipment and medium
CN112860344A (en) Component processing method and device, electronic equipment and storage medium
CN117112081A (en) Scheduling management method, device, equipment and medium of Python script
CN115098391A (en) Page detection method, device, equipment and medium
CN116774984A (en) Calendar display assembly processing method and device, electronic equipment and storage medium
CN117472716A (en) Non-invasive application log acquisition method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination