Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A Widget Access Control Method Based on extjs

A technology for access control, widgets, applied in programming languages/paradigms, creating/generating source code, etc.

Active Publication Date: 2020-07-31
NANJING GUODIAN NANZI WEIMEIDE AUTOMATION CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The front-end feedback of the Web content access control method is passive and can only be made after the user initiates a content request.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Widget Access Control Method Based on extjs
  • A Widget Access Control Method Based on extjs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The present invention will be further described below. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.

[0041] Such as figure 1 Shown, the widget access control method based on ExtJS of the present invention, comprises the following steps:

[0042] Step 1: Create the AuthPlugin when the Component is instantiated, call its init() method, and initialize the authorization logic; when the rendering of the Component ends, call the authorize() method of the AuthPlugin.

[0043] Step 2: AuthPlugin calls the checkPerms() method of AuthProxy to verify authorization.

[0044] Step 3: AuthProxy returns the verification result.

[0045] Step 4: AuthPlugin sets the enable / disable status (enable / disable) of the Component according to the result.

[0046] In order to realize the above method, the present invention defines a set of authorization framewor...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an ExtJS-based widget access control method. The method comprises the following steps of: 1) creating an AuthPlugin plugin class when a Component is instantiated, calling an init() method, initializing an authorization logic, and when rendering of the Component is finished, calling an authorize() method of the AuthPlugin plugin class; 2) calling a checkPerms() method of an AuthProxy abstract class by the AuthPlugin plugin class, and authenticating the authorization; 3) returning an authentication result by the AuthProxy abstract class; and 4) setting a start / forbid state of the Component by the AuthPlugin plugin class according to the returned authentication result. The method is capable of flexibly adding an authorization function into controls needing access control, so as to realize basic content access control.

Description

technical field [0001] The invention relates to an ExtJS-based widget access control method, which belongs to the technical field of desktop access control. Background technique [0002] Modern Web applications with B / S architecture are replacing the latter in more and more application occasions with their similar operation mode and more beautiful and easy-to-customize interface as traditional desktop applications. However, in terms of access control methods, web applications are also different from traditional desktops because of their fundamental differences in technical details. [0003] Generally, we need to control access to content in terms of security and logic. The former refers to whether the user has access to the currently requested content; the latter refers to whether the requested content is available (accessible) under the current conditions. . [0004] Web applications execute security and logic judgments through server-side scripts, and return correspondin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/30
CPCG06F8/31
Inventor 周金国金舒董胜刚
Owner NANJING GUODIAN NANZI WEIMEIDE AUTOMATION CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products