CN110688167A - Method and device for generating function link set and computer readable storage medium - Google Patents

Method and device for generating function link set and computer readable storage medium Download PDF

Info

Publication number
CN110688167A
CN110688167A CN201810722669.XA CN201810722669A CN110688167A CN 110688167 A CN110688167 A CN 110688167A CN 201810722669 A CN201810722669 A CN 201810722669A CN 110688167 A CN110688167 A CN 110688167A
Authority
CN
China
Prior art keywords
function
link
authority
functional
user
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
CN201810722669.XA
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201810722669.XA priority Critical patent/CN110688167A/en
Publication of CN110688167A publication Critical patent/CN110688167A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a method and a device for generating functional link set and a computer readable storage medium. The functional link set generation method comprises the following steps: the functional link centralized generation device generates functional links for all the view pages in a centralized manner; responding to a function link access request of a user, and intensively judging whether the current user has the authority of accessing the function link by a function link centralized generation device; in a case where the current user has the authority to access the function link, the function link set generation means returns a normal function link so that the user uses the function. The invention can flexibly realize the authority control of the centralized system function page and reduce the control complexity of the system page function authority, thereby reducing the difficulty of regulating the authority control and reducing the system development code amount.

Description

Method and device for generating function link set and computer readable storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for generating functional link in a centralized manner and a computer-readable storage medium.
Background
A URL (Uniform Resource Locator) is a web page link based on HTML (hypertext markup Language) Language, and can link to different functional pages.
The MVC (Model View Controller) technology is a system development technology architecture, in which a Model is a data layer, a View is a page layer, and a Controller is a control layer.
Disclosure of Invention
The applicant found that: in the related art, for controlling view function permissions of an IT (Internet Technology ) system, generally, control codes of permissions are put into pages that need permission control, and different function view pages for different permissions are generated in a manner that the permissions are judged by a large number of codes (such as if … else …). The applicant has thus found that: the related technology has the problems of complex codes, large code quantity, difficult adjustment of page function authority and the like.
In view of the above technical problems, the present invention provides a method and an apparatus for generating a functional link in a centralized manner, and a computer-readable storage medium, which can flexibly implement authority control of a centralized system functional page, and reduce the control complexity of the system page functional authority.
According to an aspect of the present invention, there is provided a functional link set generation method, including:
the functional link centralized generation device generates functional links for all the view pages in a centralized manner;
responding to a function link access request of a user, and intensively judging whether the current user has the authority of accessing the function link by a function link centralized generation device;
in a case where the current user has the authority to access the function link, the function link set generation means returns a normal function link so that the user uses the function.
In some embodiments of the invention, the functional linkset generation method further comprises:
and under the condition that the current user does not have the authority of accessing the function link, returning a blank page by the function link centralized generation device, so that the user cannot use the function.
In some embodiments of the invention, the functional linkset generation method further comprises:
the function link set generation means configures the function authority of each user in advance.
In some embodiments of the present invention, the function link set generation means pre-configures the function authority of each user, including:
the function link set generation means configures all accessible function links in advance for each user.
According to another aspect of the present invention, there is provided a functional link set generation apparatus including:
the functional link centralized generation module is used for generating functional links for all the view pages in a centralized manner;
the authority judging module is used for responding to a function link access request of a user and intensively judging whether the current user has the authority of accessing the function link;
and the function link returning module is used for returning the normal function link under the condition that the current user has the authority of accessing the function link so as to facilitate the user to use the function.
In some embodiments of the invention, the functional link set generation apparatus further comprises:
and the blank page returning module is also used for returning a blank page under the condition that the current user does not have the authority of accessing the function link, so that the user cannot use the function.
In some embodiments of the invention, the functional link set generation apparatus further comprises:
and the authority configuration module is used for configuring the function authority of each user in advance.
In some embodiments of the present invention, the permission configuration module is configured to pre-configure all accessible function links for each user.
According to another aspect of the present invention, there is provided a functional link set generation apparatus including:
a memory to store instructions;
a processor configured to execute the instructions to cause the functional linkset generating apparatus to perform operations for implementing the functional linkset generating method according to any of the above embodiments.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the method for generating a set of functional links according to any of the above embodiments.
The invention can flexibly realize the authority control of the centralized system function page and reduce the control complexity of the system page function authority, thereby reducing the difficulty of regulating the authority control and reducing the system development code amount.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of some embodiments of a functional link set generation method of the present invention.
FIG. 2 is a diagram illustrating additional embodiments of a functional link set generation method according to the present invention.
Fig. 3 is a schematic diagram of some embodiments of a functional link set generation apparatus according to the present invention.
Fig. 4 is a schematic diagram of another embodiment of the functional link set generation apparatus according to the present invention.
Fig. 5 is a schematic diagram of some further embodiments of the functional link set generation apparatus of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
FIG. 1 is a diagram of some embodiments of a functional link set generation method of the present invention. Preferably, the present embodiment can be executed by the functional link set generation apparatus of the present invention. The method comprises the following steps:
and step 11, the functional link centralized generation device generates functional links for all the view pages in a centralized manner.
And step 12, responding to a function link access request sent by a user from the view page, and intensively judging whether the current user has the authority of accessing the function link by the function link centralized generation device.
And step 13, under the condition that the current user has the authority of accessing the function link, returning the normal function link by the function link centralized generation device so that the user can use the system function.
The method for generating a functional link set according to the above embodiment of the present invention is a method for controlling system function authority for generating a page URL in a set, and can use a set URL generation method in a web (World wide web) system, and implement control of user function authority in the functional link set generation apparatus in a set. Furthermore, the embodiment of the invention can flexibly realize the authority control of the centralized system function page, thereby reducing the control complexity of the system page function authority, reducing the difficulty of the authority control adjustment and reducing the system development code amount.
FIG. 2 is a diagram illustrating additional embodiments of a functional link set generation method according to the present invention. Preferably, the present embodiment can be executed by the functional link set generation apparatus of the present invention. The method comprises the following steps:
step 21, pre-configuring the function authority of each user in the authority configuration module of the function link set generation device.
In some embodiments of the invention, step 21 may comprise: in the authority configuration module of the function link set generation device, all accessible URL function links are configured in advance for each user.
Step 22, the function link set generation device generates function links for all view pages in a set.
In some embodiments of the present invention, step 22 may comprise: defining a method for generating URLs on all view pages as link _ to, wherein functional link URLs on all view pages can be seen only after the method is called to generate the functional link URLs.
And step 23, responding to the function link access request of the user, and intensively judging whether the current user has the authority of accessing the function link by the function link centralized generation device.
In step 24, in the case that the current user has the authority to access the function link, that is, in the case of an authorized URL configured for the user, the function link set generation means generates and returns a normal function link so that the user can normally use the system function, that is, the user can use the system function.
And step 25, in the case that the current user does not have the authority to access the function link, that is, the URL of the user authority cannot be matched, the function link set generation device returns a blank page by default, that is, the page does not generate the function link, and the user cannot see the function, that is, the user does not have the authority of the function.
The embodiment of the invention performs centralized control at one point in the function link centralized generation device, and the pages on all view layers do not need to be added with function authority control codes, thereby reducing the code amount of the whole system and reducing the difficulty of page authority adjustment.
The applicant found that: in the related art, for controlling the function permission of the IT system view, generally, a control code of the permission is put into each page that needs to be subjected to the permission control, and different function view pages for different permissions are generated by judging the permission through a large number of codes (such as if … else …).
Therefore, compared with the related art, the embodiment of the invention does not need to add the control code of the authority on all views, thereby reducing the maintenance code amount and the code complexity.
Compared with the related technology, the embodiment of the invention integrates a little point to control the system authority, thereby simplifying the adjustment of the system authority and reducing the difficulty of controlling the authority.
The above-described embodiments of the present invention can be used in most web-like application systems. As a basic framework of the authority control, the embodiment of the invention can reduce the complexity of the web system page authority control, reduce the code amount of development and reduce the independent development cost of the system.
Fig. 3 is a schematic diagram of some embodiments of a functional link set generation apparatus according to the present invention. As shown in fig. 3, the function link set generation apparatus may include a function link set generation module 31, an authority judgment module 32, and a function link return module 33, wherein:
and a functional link set generation module 31 for generating functional links for all view pages collectively.
And the permission judging module 32 is configured to respond to a function link access request of the user, and intensively judge whether the current user has permission to access the function link.
And a function link returning module 33, configured to return a normal function link in a case where the current user has an authority to access the function link, so that the user can use the function.
The functional link centralized generation device provided based on the above embodiment of the present invention is a control device for centrally generating system functional authority of page URLs, and can utilize one centralized URL generation device in a web-like system, and centrally implement control of user functional authority in the functional link centralized generation device. Furthermore, the embodiment of the invention can flexibly realize the authority control of the centralized system function page, thereby reducing the control complexity of the system page function authority, reducing the difficulty of the authority control adjustment and reducing the system development code amount.
Fig. 4 is a schematic diagram of another embodiment of the functional link set generation apparatus according to the present invention. As shown in fig. 4, the function link set generation apparatus may include an authority configuration module 30, a function link set generation module 31, an authority determination module 32, a function link return module 33, and a blank page return module 34, wherein:
and the authority configuration module 30 is used for configuring the function authority of each user in advance.
In some embodiments of the present invention, privilege configuration module 30 may be used to pre-configure all accessible function links for each user.
And a functional link set generation module 31 for generating functional links for all view pages collectively.
In some embodiments of the present invention, the functional link set generation module 31 may be configured to define a generation method of URLs on all view pages as link _ to, and functional link URLs on all view pages need to be generated by invoking the method, and then the functional item can be seen on the page.
And the permission judging module 32 is configured to respond to a function link access request of the user, and intensively judge whether the current user has permission to access the function link.
And a function link returning module 33, configured to generate and return a normal function link when the current user has the right to access the function link, so that the user can normally use the system function, that is, the user can use the system function.
The blank page returning module 34 is further configured to, in a case that the current user does not have the authority to access the function link, return a blank page by default, that is, the function link is not generated by the page, and the user cannot see the function, that is, the user does not have the authority of the function.
The embodiment of the invention performs centralized control at one point in the function link centralized generation device, and the pages on all view layers do not need to be added with function authority control codes, thereby reducing the code amount of the whole system and reducing the difficulty of page authority adjustment.
Compared with the related art, the embodiment of the invention does not need to add the control code of the authority on all views, thereby reducing the maintenance code amount and the code complexity.
Compared with the related technology, the embodiment of the invention integrates a little point to control the system authority, thereby simplifying the adjustment of the system authority and reducing the difficulty of controlling the authority.
Fig. 5 is a schematic diagram of some further embodiments of the functional link set generation apparatus of the present invention. As shown in fig. 5, the functional link set generation apparatus may include a memory 51 and a processor 52, wherein:
a memory 51 for storing instructions.
A processor 52, configured to execute the instructions to enable the functionally linked set generating device to perform operations for implementing the functionally linked set generating method according to any of the embodiments described above (e.g., the embodiment of fig. 1 or fig. 2).
The above-described embodiments of the present invention can be used in most web-like application systems. As a basic framework of the authority control, the embodiment of the invention can reduce the complexity of the web system page authority control, reduce the code amount of development and reduce the independent development cost of the system.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the method for generating a set of functional links according to any of the above embodiments.
Based on the functional link set generation method provided by the above embodiment of the present invention, a centralized URL generation method can be utilized in a web-like system, and the control of the user functional authority can be realized in the functional link set generation apparatus. Furthermore, the embodiment of the invention can flexibly realize the authority control of the centralized system function page, thereby reducing the control complexity of the system page function authority, reducing the difficulty of the authority control adjustment and reducing the system development code amount.
The functional link set generation apparatus described above may be implemented as a general purpose processor, a Programmable Logic Controller (PLC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof, for performing the functions described herein.
Thus far, the present invention has been described in detail. Some details well known in the art have not been described in order to avoid obscuring the concepts of the present invention. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A method for generating a set of functional links, comprising:
the functional link centralized generation device generates functional links for all the view pages in a centralized manner;
responding to a function link access request of a user, and intensively judging whether the current user has the authority of accessing the function link by a function link centralized generation device;
in a case where the current user has the authority to access the function link, the function link set generation means returns a normal function link so that the user uses the function.
2. The method of claim 1, further comprising:
and under the condition that the current user does not have the authority of accessing the function link, returning a blank page by the function link centralized generation device, so that the user cannot use the function.
3. The method of generating a set of functional links according to claim 1 or 2, further comprising:
the function link set generation means configures the function authority of each user in advance.
4. The method of claim 3, wherein the pre-configuring of the functional permission of each user by the functional linkset generating device comprises:
the function link set generation means configures all accessible function links in advance for each user.
5. A functional link centralized generation apparatus, comprising:
the functional link centralized generation module is used for generating functional links for all the view pages in a centralized manner;
the authority judging module is used for responding to a function link access request of a user and intensively judging whether the current user has the authority of accessing the function link;
and the function link returning module is used for returning the normal function link under the condition that the current user has the authority of accessing the function link so as to facilitate the user to use the function.
6. The functional link set generation apparatus according to claim 5, further comprising:
and the blank page returning module is also used for returning a blank page under the condition that the current user does not have the authority of accessing the function link, so that the user cannot use the function.
7. The functional link set generation apparatus according to claim 5 or 6, further comprising:
and the authority configuration module is used for configuring the function authority of each user in advance.
8. The functional link set generation apparatus according to claim 7,
and the authority configuration module is used for configuring all accessible function links for each user in advance.
9. A functional link centralized generation apparatus, comprising:
a memory to store instructions;
a processor configured to execute the instructions to cause the functionally linked set generating device to perform operations to implement the functionally linked set generating method of any of claims 1-4.
10. A computer-readable storage medium storing computer instructions which, when executed by a processor, implement the method of generating a set of functional links according to any one of claims 1-4.
CN201810722669.XA 2018-07-04 2018-07-04 Method and device for generating function link set and computer readable storage medium Pending CN110688167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810722669.XA CN110688167A (en) 2018-07-04 2018-07-04 Method and device for generating function link set and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810722669.XA CN110688167A (en) 2018-07-04 2018-07-04 Method and device for generating function link set and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110688167A true CN110688167A (en) 2020-01-14

Family

ID=69106336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810722669.XA Pending CN110688167A (en) 2018-07-04 2018-07-04 Method and device for generating function link set and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110688167A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682240A (en) * 2012-05-16 2012-09-19 河南辉煌科技股份有限公司 Method for controlling resources in large browser/server (BS) structured system
CN103049859A (en) * 2011-10-13 2013-04-17 阿里巴巴集团控股有限公司 Processing method and system for influencing data operation
CN105808990A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Method and device for controlling URL access on basis of IOS system
CN107341388A (en) * 2017-06-19 2017-11-10 东软集团股份有限公司 Access right control method and device
CN107707522A (en) * 2017-08-14 2018-02-16 北京奇安信科技有限公司 A kind of authority control method and device based on cloud agency
CN108023725A (en) * 2016-11-04 2018-05-11 华为技术有限公司 A kind of quantum key trunking method and device based on centralized management with control network
CN108243183A (en) * 2017-12-20 2018-07-03 北京车和家信息技术有限公司 Integrated control method, system and the computer equipment of gate system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049859A (en) * 2011-10-13 2013-04-17 阿里巴巴集团控股有限公司 Processing method and system for influencing data operation
CN102682240A (en) * 2012-05-16 2012-09-19 河南辉煌科技股份有限公司 Method for controlling resources in large browser/server (BS) structured system
CN105808990A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Method and device for controlling URL access on basis of IOS system
CN108023725A (en) * 2016-11-04 2018-05-11 华为技术有限公司 A kind of quantum key trunking method and device based on centralized management with control network
CN107341388A (en) * 2017-06-19 2017-11-10 东软集团股份有限公司 Access right control method and device
CN107707522A (en) * 2017-08-14 2018-02-16 北京奇安信科技有限公司 A kind of authority control method and device based on cloud agency
CN108243183A (en) * 2017-12-20 2018-07-03 北京车和家信息技术有限公司 Integrated control method, system and the computer equipment of gate system

Similar Documents

Publication Publication Date Title
Subramanian et al. Hands-On RESTful API Design Patterns and Best Practices: Design, develop, and deploy highly adaptable, scalable, and secure RESTful web APIs
KR102131159B1 (en) Methods and devices for controlling smart devices and computer storage media
CN102750486B (en) Method and device for updating login information by login control
WO2012005928A1 (en) Facilitating propagation of user interface patterns or themes
CN103383681B (en) A kind of file type identification method and system
EP3271831B1 (en) Method and apparatus for conditionally controlled styling
EP3000054A1 (en) Methods and systems for validating multiple methods of input using a unified rule set
CN107436873A (en) A kind of network address jump method, device and transferring device
CN109657177A (en) The generation method of the page, device, storage medium and computer equipment after upgrading
Liu et al. H∞ tracking control for linear discrete‐time systems via reinforcement learning
CN104503752A (en) Method and device for controlling webpage to call system functions in intelligent equipment
CN110765428A (en) Behavior control method and device based on enterprise browser
EP3602387A1 (en) Identifiers for integrity protection of digitally coded copies
WO2013138004A1 (en) Method and system for optimally transcoding websites
CN110688167A (en) Method and device for generating function link set and computer readable storage medium
CN102999580B (en) Password input frame element processing method and browser
CN104461509A (en) Information interaction framework and method
CN104539585B (en) Method, browser client and the device of the anti-injection of browser
CN110457667A (en) The good sheet disposal method and system based on B/S framework of safety
CN106817355A (en) The control method and device of webpage authority
Veselý et al. Novel approach to switched controller design for linear continuous‐time systems
Yin et al. A parameter dependent controller design approach for delayed LPV system
Krokavec et al. FTC with dynamic virtual actuators: characterization via dynamic output controllers and H∞ approach
CN107451167A (en) The click data acquisition methods and system of position are clicked in standing
CN108650257B (en) Security detection setting method and device based on website content 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114