A data display layer optimization configuration method, device, equipment and medium

By unifying the multi-channel design of the presentation layer and the data layer into a standardized single data channel, the problems of system complexity and stability are solved, the standardization and security of the data channel are achieved, and the development difficulty is reduced.

CN115454549BActive Publication Date: 2026-11-27GUANGZHOU PINWEI SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211055851.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2026-11-27
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In existing data visualization solutions, personalized data channels are often established between the presentation layer and the data layer in a one-to-one manner, which increases system complexity, makes maintenance more difficult, and affects system stability.

Method used

The multi-channel design of the presentation layer and data layer is abstracted and summarized into a unified and standardized single data channel design. By configuring the service module to predefine the relationship between the presentation layer and the data source, permission verification and data filtering are performed to ensure the standardization and security of the data channel.

Benefits of technology

It achieves standardization and security of data channels, lowers the threshold for data visualization development, improves system stability, and is suitable for a wide range of visualization business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115454549B_ABST
    Figure CN115454549B_ABST
Patent Text Reader

Abstract

The application discloses a data display layer optimization configuration method and device, equipment and medium, and relates to the technical field of data processing. The method comprises the following steps: receiving a data request of a user based on a display layer for any data source in the display layer; reading a pre-configured data layer association relationship definition corresponding to the display layer and the data source according to the data request; reading the configuration of the data layer according to the association relationship definition, and performing permission verification of the user according to the configuration of the data layer; if the permission verification of the user is passed, a data channel is established, data corresponding to the data source is read, and the data is returned to the display layer. The application can abstract and generalize the complex multi-data channel design into a unified standardized single-data channel design, thereby increasing the stability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, device and medium for optimizing the configuration of a data presentation layer. Background Technology

[0002] With the continuous development of modern information technology, data is being generated at an increasingly rapid pace, resulting in the collection and storage of massive amounts of data. This vast amount of data must be processed and analyzed systematically to uncover its potential value. Data visualization, utilizing graphical means and various charts to visualize complex data, can clearly and effectively convey and communicate information, making data expression more intuitive and easier to understand, thus improving the efficiency of data communication. The world has now entered the era of big data, which is profoundly changing people's thinking, production, and lifestyles. Data visualization has become an indispensable tool in this era. It has unified the fields of scientific visualization and information visualization, encompassing multiple professional areas such as data analysis, graphics, visualization, and design. At the same time, the new characteristics of big data itself present more urgent needs and more severe challenges for data visualization.

[0003] Existing data visualization solutions often suffer from the following drawbacks: a personalized data channel is frequently established between the presentation layer and the data layer in a one-to-one manner. As business grows, numerous data channels increase system complexity and maintenance difficulty, thereby affecting system stability. Summary of the Invention

[0004] To address at least one of the problems mentioned in the background art, this application provides a data presentation layer optimization configuration method, apparatus, device, and medium that can abstract and summarize complex multi-data-channel designs into a unified, standardized single-data-channel design, thereby increasing system stability.

[0005] The specific technical solutions provided in this application are as follows:

[0006] Firstly, a method for optimizing the configuration of a data presentation layer is provided, including:

[0007] Receive data requests from users for any data source in the presentation layer based on the presentation layer;

[0008] The data request is used to read the pre-configured data layer association definition between the presentation layer and the data source;

[0009] The configuration of the data layer is read according to the defined association relationship, and the user's permission is verified according to the configuration of the data layer.

[0010] If the user's permissions are verified, a data channel is established, data corresponding to the data source is read, and the data is returned to the presentation layer.

[0011] Furthermore, the pre-configured association between the presentation layer and the data layer corresponding to the data source includes:

[0012] Definitions of the presentation layer, data layer management, and the relationship between the presentation layer and the data layer;

[0013] The presentation layer corresponds to at least one of the data sources, and each data source corresponds to one data layer;

[0014] Each of the presentation layer definitions corresponds to one or more presentation layer and data layer relationship definitions, and each presentation layer and data layer relationship definition corresponds to a data layer management definition. The presentation layer and data layer relationship definition is used to describe the relationship information between a presentation layer and a data layer.

[0015] Furthermore, the presentation layer definition includes at least one of the following: presentation layer code, presentation layer name, presentation layer description, presentation layer status, presentation layer creator, presentation layer creation time, presentation layer updater, and presentation layer update time;

[0016] The definition of the relationship between the presentation layer and the data layer includes at least one of the following: presentation layer code, data layer code, permission verification control switch, relationship status between the presentation layer and the data layer, relationship creator, relationship creation time, relationship updater, and relationship update time. The permission verification control switch is used to control the enabling and disabling of permission verification.

[0017] The data layer management definition includes at least one of the following: data encoding, data name, data connection address, data request parameters, data connection method, data verification field, data filtering content, data description, data layer status, data layer creator, data layer creation time, data layer updater, and data layer update time.

[0018] Furthermore, the step of reading the configuration of the data layer according to the association relationship and performing user permission verification according to the configuration of the data layer includes:

[0019] The permission verification control switch determines whether permission verification should be started. If permission verification is not started, the user's permission verification is directly determined to be successful.

[0020] If permission verification is enabled, the parameters of the data request are checked to see if they exceed the user's permissions. If they do, an unauthorized permission message is returned; otherwise, the user's permission verification is deemed to have passed.

[0021] Furthermore, after establishing the data channel and reading the data corresponding to the data source, the method further includes:

[0022] Determine whether data filtering is required. If data filtering is required, perform data filtering according to the data filtering content configuration in the data layer management definition.

[0023] If data filtering is not required or the data filtering process is complete, return the data to the presentation layer.

[0024] Furthermore, before returning the data to the presentation layer, the method further includes:

[0025] The data from the data source is encapsulated into structured data with a unified and fixed format, so that the presentation layer can parse the data and present it to the user.

[0026] Secondly, a data presentation layer optimization configuration device is provided, the device comprising:

[0027] The communication module is used to receive data requests from users for any data source in the presentation layer based on the presentation layer;

[0028] The configuration service module is used to read the pre-configured data layer association definition between the presentation layer and the data source according to the data request;

[0029] The permission verification module is used to read the configuration of the data layer according to the association definition, and to verify the user's permissions according to the configuration of the data layer.

[0030] The data service module is used to establish a data channel, read data from the corresponding data source, and return the data to the presentation layer if the user's permission verification is successful.

[0031] Furthermore, the configuration service module is also used to pre-configure the data layer association relationship definition between the presentation layer and the data source, including:

[0032] Definitions of the presentation layer, data layer management, and the relationship between the presentation layer and the data layer;

[0033] The presentation layer corresponds to at least one of the data sources, and each data source corresponds to one data layer;

[0034] Each of the presentation layer definitions corresponds to one or more presentation layer and data layer relationship definitions, and each presentation layer and data layer relationship definition corresponds to a data layer management definition. The presentation layer and data layer relationship definition is used to describe the relationship information between a presentation layer and a data layer.

[0035] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the data presentation layer optimization configuration method.

[0036] Fourthly, a computer-readable storage medium is provided, storing computer-executable instructions for executing the data presentation layer optimization configuration method.

[0037] The embodiments of this application have the following beneficial effects:

[0038] This application provides a data presentation layer optimization configuration method, apparatus, device, and medium that can abstract and summarize the complex multi-channel design between the presentation layer and the data layer into a unified and standardized single data channel design. This ensures that data is standardized and authenticated as it passes through the single data channel established between the presentation layer and the data layer, guaranteeing the consistency and security of the output data format. Through configurable services, it lowers the threshold for data visualization development, is applicable to a wide range of visualization business scenarios, and also improves system stability. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 This document shows a general flowchart of the data presentation layer optimization configuration method provided in an embodiment of this application;

[0041] Figure 2 A detailed flowchart of a data presentation layer optimization configuration method according to an embodiment of this application is shown;

[0042] Figure 3 This diagram illustrates the structure of the data presentation layer optimization configuration device provided in an embodiment of this application.

[0043] Figure 4 Exemplary systems that can be used to implement the various embodiments described in this application are shown. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0045] It should be understood that, in the description of this application, unless the context explicitly requires it, the words "comprising," "including," and similar terms throughout the specification and claims should be interpreted as encompassing rather than being exclusive or exhaustive; that is, meaning "including but not limited to."

[0046] It should be noted that the terms "S1," "S2," etc., are used only for descriptive purposes and do not specifically refer to the order or sequence, nor are they intended to limit this application. They are merely for the convenience of describing the method of this application and should not be construed as indicating the sequential order of the steps. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.

[0047] Example 1

[0048] This application provides a method for optimizing the configuration of a data presentation layer, referring to... Figure 1 The methods include:

[0049] S1. Receive data requests from users for any data source in the presentation layer based on the presentation layer;

[0050] S2. Read the pre-configured data layer association definition between the presentation layer and the data source according to the data request;

[0051] S3. Define the configuration to read the data layer based on the association relationship, and perform user permission verification based on the configuration of the data layer;

[0052] S4. If the user's permissions are verified, establish a data channel, read the data from the corresponding data source, and return the data to the presentation layer.

[0053] Specifically, refer to Figure 2In this embodiment, the system mainly consists of three parts: a configuration service, an authentication service, and a data service. The configuration service is primarily responsible for the mapping management between the presentation layer and the data layer. The data service establishes data source connection channels through mapping configuration, outputting structured presentation layer data with a unified format. The data service also supports various data source connections, including but not limited to common SQL data sources and big data HIVE data sources. It has undergone deep optimization for external service interface data sources, allowing the definition of interface types, interface parameters, interface connection methods, interface data verification methods, and special filtering content. The data service outputs standardized and formatted data structures to support data applications in the presentation layer. The authentication service verifies user permissions and provides security guarantees. The aforementioned presentation layer includes multiple data sources. In existing technologies, personalized data channels are often established between the presentation layer and the data layer in a one-to-one manner. However, this approach results in complex data channels, affecting system stability. By configuring the data layer association definition between the presentation layer and the data source in advance through the configuration service in this embodiment, the complex multi-data-channel design can be abstracted and summarized into a unified and standardized single-data-channel design, thereby increasing the stability of the system. It can also provide configuration services, reduce the technical requirements for data visualization development, thereby lowering the threshold for data visualization and greatly accelerating the data transformation process of an enterprise.

[0054] In some implementations, the pre-configured relationship definition between the presentation layer and the data layer corresponding to the data source includes: presentation layer definition, data layer management definition, and relationship definition between the presentation layer and the data layer.

[0055] The presentation layer corresponds to at least one data source, and each data source corresponds to one data layer.

[0056] Each presentation layer definition corresponds to one or more presentation layer and data layer relationship definitions, and each presentation layer and data layer relationship definition corresponds to a data layer management definition. The presentation layer and data layer relationship definition is used to describe the relationship information between a presentation layer and a data layer.

[0057] Specifically, the presentation layer definition describes its related attributes, including but not limited to the presentation layer ID, name, and purpose. The data layer management definition mainly describes related attributes such as data source, data type, and data connection, and includes definitions of flags for data requiring special processing and processing methods. The relationship definition between the presentation layer and the data layer describes the association between the two, and includes the definition of permission switches between users and their corresponding associated layers.

[0058] In some implementations, the presentation layer definition includes at least one of the following: presentation layer code, presentation layer name, presentation layer description, presentation layer status, presentation layer creator, presentation layer creation time, presentation layer updater, and presentation layer update time;

[0059] The definition of the relationship between the presentation layer and the data layer includes at least one of the following: presentation layer code, data layer code, permission verification control switch, relationship status between the presentation layer and the data layer, relationship creator, relationship creation time, relationship updater, and relationship update time. The permission verification control switch is used to control the enabling and disabling of permission verification.

[0060] The data layer management definition includes at least one of the following: data encoding, data name, data connection address, data request parameters, data connection method, data validation field, data filtering content, data description, data layer status, data layer creator, data layer creation time, data layer updater, and data layer update time.

[0061] For example, considering that a data source can be applied to multiple presentation layers, and a presentation layer can have multiple data sources, meaning the mapping between presentation layers and data layers is always 1-to-n, permission control switches (i.e., the permission switch definition mentioned above) can be placed in the relationship definition between the two layers. This allows the same data source to dynamically apply permission verification services in different presentation layers. For instance, for data source 'a', corresponding to data layer A, it can be applied to both presentation layer A and presentation layer B simultaneously. When applied to presentation layer A, the permission verification switch can be configured to be enabled in the relationship definition between presentation layer A and data layer A, i.e., enabled permission verification as described below; when applied to presentation layer B, the permission verification switch can be configured to be disabled in the relationship definition between presentation layer B and data layer A, i.e., disabled permission verification as described below.

[0062] For example, the data layer management definition defines the data connection address, data request parameters, data connection method, data validation fields, and data filtering fields. This definition method allows for friendly support of various heterogeneous data sources. For instance, the data connection address can be a service interface address, an SQL data source address, or a data tag, etc. Using a universal definition method ensures the overall solution is portable and applicable to different systems and business scenarios.

[0063] In some implementations, S3 includes:

[0064] S31. Determine whether to start permission verification based on the permission verification control switch. If permission verification is not started, directly determine that the user's permission verification has passed.

[0065] S32. If permission verification is enabled, check whether the parameter content of the data request exceeds the authorization limit. If it does, return an authorization violation message. If it does not exceed the authorization limit, determine that the user's permission verification has passed.

[0066] Specifically, the authentication service can determine whether to provide authentication based on whether the permission verification switch is enabled in the configuration service (i.e., the permission verification control switch in the definition of the relationship between the presentation layer and the data layer mentioned above). If permission verification is enabled, the authentication service can perform an initial unauthorized access check on the parameters of the data request, as well as a secondary data filtering before the data is returned, thereby greatly preventing data leakage. The authentication service primarily prevents data leakage, ensuring that users can only access data within their authorized scope, thus enhancing data security.

[0067] In some implementations, after establishing a data channel and reading data from the corresponding data source, the method further includes:

[0068] 101. Determine whether data filtering is required. If data filtering is required, configure data filtering according to the data filtering content in the data layer management definition.

[0069] 102. If data filtering is not required or the data filtering process is complete, return the data to the presentation layer.

[0070] Specifically, in addition to performing the first privilege check on the parameters of the data request, it can also perform a second data filtering before the data is returned. It can perform characteristic-based data filtering based on the data filtering content or data filtering fields defined in the data layer management definition, which can greatly prevent data leakage and is applicable to different business needs.

[0071] In some implementations, the method further includes:

[0072] The data from the data source is encapsulated into structured data with a unified and fixed format, so that the presentation layer can parse the data and present it to the user.

[0073] Specifically, the data service can determine whether a user's data request type is supported for the presentation layer. If supported, it further checks the input parameters to ensure the request is valid. If the request type is unsupported or the input parameters are incorrect, a request exception is returned. For valid data requests, the service can invoke the relevant configurations defined in the presentation layer, data layer management, and the relationship between the presentation and data layers. It then establishes the corresponding data channel according to these configurations and retrieves data from the appropriate data source. The data service provides the presentation layer with structured data in a fixed format and performs unified data encapsulation to facilitate data parsing and presentation to the user. During the data transmission through the single data channel between the presentation and data layers, data standardization and authentication are performed, ensuring the consistency and security of the output data format.

[0074] In this embodiment, the complex multi-channel design between the presentation layer and the data layer can be abstracted and summarized into a unified and standardized single data channel design. This allows data to be standardized and authenticated as it passes through the single data channel between the presentation layer and the data layer, ensuring the consistency and security of the output data format. Through configurable services, the development threshold for data visualization is lowered, making it applicable to a wide range of visualization business scenarios while also improving system stability.

[0075] Example 2

[0076] Corresponding to the above embodiments, this application also provides a data presentation layer optimization configuration device, referring to... Figure 3 The device includes a communication module, a configuration service module, an authorization verification module, and a data service module.

[0077] The system includes a communication module for receiving data requests from users for any data source within the presentation layer; a configuration service module for reading pre-configured data layer association definitions between the presentation layer and the data source based on the data request; a permission verification module for reading the configuration of the data layer based on the association definition and verifying the user's permissions based on the data layer configuration; and a data service module for establishing a data channel, reading data from the corresponding data source, and returning the data to the presentation layer if the user's permission verification passes.

[0078] Furthermore, the configuration service module is also used to pre-configure the data layer association relationship definition between the presentation layer and the data source, including: presentation layer definition, data layer management definition, and presentation layer and data layer relationship definition; wherein, the presentation layer corresponds to at least one data source, and each data source corresponds to one data layer; each presentation layer definition corresponds to one or more presentation layer and data layer relationship definitions, each presentation layer and data layer relationship definition corresponds to one data layer management definition, and the presentation layer and data layer relationship definition is used to describe the relationship information between a presentation layer and a data layer.

[0079] Furthermore, the presentation layer definition includes at least one of the following: presentation layer code, presentation layer name, presentation layer description, presentation layer status, presentation layer creator, presentation layer creation time, presentation layer updater, and presentation layer update time; the presentation layer and data layer relationship definition includes at least one of the following: presentation layer code, data layer code, permission verification control switch, presentation layer and data layer relationship status, relationship creator, relationship creation time, relationship updater, and relationship update time, wherein the permission verification control switch is used to control the enabling and disabling of permission verification; the data layer management definition includes at least one of the following: data code, data name, data connection address, data request parameters, data connection method, data verification field, data filtering content, data description, data layer status, data layer creator, data layer creation time, data layer updater, and data layer update time.

[0080] Furthermore, the permission verification module is also used to determine whether to start permission verification based on the permission verification control switch. If permission verification is not started, the user's permission verification is directly determined to be successful. If permission verification is started, the module is also used to verify whether the parameter content of the data request exceeds the authority. If it exceeds the authority, an unauthorized prompt is returned. If it does not exceed the authority, the user's permission verification is determined to be successful.

[0081] Furthermore, the device also includes a data filtering module, used to determine whether data filtering is required; if data filtering is required, to perform data filtering according to the data filtering content configuration in the data layer management definition; and to return the data to the display layer if data filtering is not required or if data filtering has been completed.

[0082] Furthermore, the data service module is also used to encapsulate the data from the data source into structured data with a unified and fixed format, so that the presentation layer can parse the data and present it to the user.

[0083] Specific limitations regarding the data presentation layer optimization configuration device can be found in the relevant limitations of the data presentation layer optimization configuration method embodiments described above, and will not be repeated here. Each module in the aforementioned data presentation layer optimization configuration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0084] Example 3

[0085] Corresponding to the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it can implement the above-mentioned data presentation layer optimization configuration method.

[0086] like Figure 4 As shown, in some embodiments, the system can serve as any of the aforementioned electronic devices for the data presentation layer optimization configuration method in each of the various embodiments. In some embodiments, the system may include one or more computer-readable media (e.g., system memory or NVM / storage device) having instructions and one or more processors (e.g., one or more processors) coupled to the one or more computer-readable media and configured to execute the instructions to implement the module and thereby perform the actions described in this application.

[0087] In one embodiment, the system control module may include any suitable interface controller to provide any suitable interface to at least one of the processors(s) and / or any suitable device or component communicating with the system control module.

[0088] The system control module may include a memory controller module to provide an interface to the system memory. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0089] System memory can be used, for example, to load and store data and / or instructions for the system. In one embodiment, system memory may include any suitable volatile memory, such as suitable DRAM. In some embodiments, system memory may include Double Data Rate Type Quad Synchronous Dynamic Random Access Memory (DDR4 SDRAM).

[0090] In one embodiment, the system control module may include one or more input / output (I / O) controllers to provide interfaces to the NVM / storage device and (one or more) communication interfaces.

[0091] For example, an NVM / storage device can be used to store data and / or instructions. An NVM / storage device may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable (one or more) non-volatile storage devices (e.g., one or more hard disk drives (HDDs), one or more optical disc drives (CDs), and / or one or more digital universal optical disc (DVD) drives).

[0092] NVM / storage devices may include storage resources that are physically part of a device on which the system is mounted, or that can be accessed by the device without necessarily being part of it. For example, an NVM / storage device may be accessed over a network via one or more communication interfaces.

[0093] One or more communication interfaces may provide the system with an interface to communicate over one or more networks and / or with any other suitable device. The system may wirelessly communicate with one or more components of a wireless network in accordance with any of the standards and / or protocols in one or more wireless network standards and / or protocols.

[0094] In one embodiment, at least one of the processors may be logically packaged with one or more controllers of the system control module (e.g., a memory controller module). In one embodiment, at least one of the processors may be logically packaged with one or more controllers of the system control module to form a system-in-package (SiP). In one embodiment, at least one of the processors may be integrated with the logic of one or more controllers of the system control module on the same die. In one embodiment, at least one of the processors may be integrated with the logic of one or more controllers of the system control module on the same die to form a system-on-a-chip (SoC).

[0095] In various embodiments, the system may be, but is not limited to, a server, workstation, desktop computing device, or mobile computing device (e.g., laptop computing device, handheld computing device, tablet computer, netbook, etc.). In various embodiments, the system may have more or fewer components and / or different architectures. For example, in some embodiments, the system includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0096] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In one embodiment, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives, floppy disks, and similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.

[0097] Furthermore, a portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0098] Communication media include media through which communication signals containing, for example, computer-readable instructions, data structures, program modules, or other data are transmitted from one system to another. Communication media can include guided transmission media (such as cables and wires (e.g., optical fibers, coaxial cables, etc.)) and wireless (unguided transmission) media capable of propagating energy waves, such as sound, electromagnetic, RF, microwave, and infrared. Computer-readable instructions, data structures, program modules, or other data can be embodied as modulated data signals in, for example, wireless media (such as carrier waves or similar mechanisms embodied as part of spread spectrum technology). The term "modulated data signal" refers to a signal whose one or more characteristics are altered or set in a manner that encodes information in the signal. Modulation can be analog, digital, or a hybrid modulation technique.

[0099] Herein, one embodiment of this application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the apparatus is triggered to run a method and / or technical solution based on the foregoing embodiments of this application.

[0100] Example 4

[0101] Corresponding to the above embodiments, this application also provides a computer-readable storage medium storing computer-executable instructions for executing a data presentation layer optimization configuration method.

[0102] In this embodiment, a computer-readable storage medium may include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. For example, a computer-readable storage medium includes, but is not limited to, volatile memories such as random access memory (RAM, DRAM, SRAM); and non-volatile memories such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, magnetic tapes, CDs, DVDs); or other currently known media or those developed hereafter capable of storing computer-readable information / data for use by a computer system.

[0103] Although preferred embodiments have been described in this application, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of this application.

[0104] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for optimizing the configuration of a data presentation layer, characterized in that, include: Receive user data requests from the presentation layer for any data source in the presentation layer, determine whether the request type of the data request is supported, if it is supported, further determine whether the input parameters of the data request are correct to determine whether it is a valid request; if the request type is not supported or the request input parameters are incorrect, return a request exception. The data request is used to read the pre-configured data layer association definition between the presentation layer and the data source; The configuration of the data layer is read according to the defined association relationship, and the user's permission is verified according to the configuration of the data layer. If the user's permissions are verified, a data channel is established, data corresponding to the data source is read, and the data is returned to the presentation layer; The pre-configured association between the presentation layer and the data layer corresponding to the data source includes: Definitions of the presentation layer, data layer management, and the relationship between the presentation layer and the data layer; The presentation layer corresponds to at least one data source, each data source corresponds to one data layer, one data source can be applied to multiple presentation layers, one presentation layer can have multiple data sources, and the mapping between the presentation layer and the data layer is 1 to n. Each of the presentation layer definitions corresponds to one or more presentation layer and data layer relationship definitions, and each presentation layer and data layer relationship definition corresponds to a data layer management definition. The presentation layer and data layer relationship definition is used to describe the relationship information between a presentation layer and a data layer. The presentation layer definition includes at least one of the following: presentation layer code, presentation layer name, presentation layer description, presentation layer status, presentation layer creator, presentation layer creation time, presentation layer updater, and presentation layer update time; The definition of the relationship between the presentation layer and the data layer includes at least one of the following: presentation layer code, data layer code, permission verification control switch, relationship status between the presentation layer and the data layer, relationship creator, relationship creation time, relationship updater, and relationship update time. The permission verification control switch is used to control the enabling and disabling of permission verification. The data layer management definition includes at least one of the following: data encoding, data name, data connection address, data request parameters, data connection method, data validation field, data filtering content, data description, data layer status, data layer creator, data layer creation time, data layer updater, and data layer update time. The data connection address can be a service interface address, an SQL data source address, or a data tag.

2. The data presentation layer optimization configuration method according to claim 1, characterized in that, The step of reading the configuration of the data layer according to the association relationship and performing user permission verification according to the configuration of the data layer includes: The permission verification control switch determines whether permission verification should be started. If permission verification is not started, the user's permission verification is directly determined to be successful. If permission verification is enabled, the parameters of the data request are checked to see if they exceed the user's permissions. If they do, an unauthorized permission message is returned; otherwise, the user's permission verification is deemed to have passed.

3. The data presentation layer optimization configuration method according to claim 2, characterized in that, After establishing the data channel and reading the data corresponding to the data source, the method further includes: Determine whether data filtering is required. If data filtering is required, perform data filtering according to the data filtering content configuration in the data layer management definition. If data filtering is not required or the data filtering process is complete, return the data to the presentation layer.

4. The data presentation layer optimization configuration method according to claim 1, characterized in that, Before returning the data to the presentation layer, the method further includes: The data from the data source is encapsulated into structured data with a unified and fixed format, so that the presentation layer can parse the data and present it to the user.

5. A data presentation layer optimization configuration apparatus for implementing the data presentation layer optimization configuration method according to any one of claims 1-4, characterized in that, The device includes: The communication module is used to receive data requests from users for any data source in the presentation layer based on the presentation layer; The configuration service module is used to read the pre-configured data layer association definition between the presentation layer and the data source according to the data request; The permission verification module is used to read the configuration of the data layer according to the association definition, and to verify the user's permissions according to the configuration of the data layer. The data service module is used to establish a data channel, read data from the corresponding data source, and return the data to the presentation layer if the user's permission verification is successful.

6. The data presentation layer optimization configuration device according to claim 5, characterized in that, The configuration service module is also used to pre-configure the data layer association relationship definition between the presentation layer and the data source, including: Definitions of the presentation layer, data layer management, and the relationship between the presentation layer and the data layer; The presentation layer corresponds to at least one of the data sources, and each data source corresponds to one data layer; Each of the presentation layer definitions corresponds to one or more presentation layer and data layer relationship definitions, and each presentation layer and data layer relationship definition corresponds to a data layer management definition. The presentation layer and data layer relationship definition is used to describe the relationship information between a presentation layer and a data layer.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the data presentation layer optimization configuration method as described in any one of claims 1 to 4.

8. A computer-readable storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are used to execute the data presentation layer optimization configuration method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Page access method and device

    CN110399578A

  • Cross-terminal deployable business arrangement method and system

    CN110727742A