CN109088911B - Customized distribution method and system based on SaaS service - Google Patents

Customized distribution method and system based on SaaS service Download PDF

Info

Publication number
CN109088911B
CN109088911B CN201810670777.7A CN201810670777A CN109088911B CN 109088911 B CN109088911 B CN 109088911B CN 201810670777 A CN201810670777 A CN 201810670777A CN 109088911 B CN109088911 B CN 109088911B
Authority
CN
China
Prior art keywords
customized
request
user
processing
module
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.)
Active
Application number
CN201810670777.7A
Other languages
Chinese (zh)
Other versions
CN109088911A (en
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.)
Sichuan Juma Technology Co ltd
Original Assignee
Sichuan Juma Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Juma Technology Co ltd filed Critical Sichuan Juma Technology Co ltd
Priority to CN201810670777.7A priority Critical patent/CN109088911B/en
Publication of CN109088911A publication Critical patent/CN109088911A/en
Application granted granted Critical
Publication of CN109088911B publication Critical patent/CN109088911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a customized distribution method based on SaaS service, which is used for acquiring a request of a user and mapping the request to a unique processing method; before executing the processing method, determining the information of all users according to the customized annotation, and performing customized processing. The invention also discloses a customized distribution system based on the SaaS service, which comprises a request acquisition module and a customized processing module. The invention realizes the customization processing in different modes through the Customized note (custom note) by dynamically selecting and executing the appointed method through one configuration (custom note), saves the resource space, improves the processing efficiency, makes up the deficiency when requesting distribution based on SpringMVC and realizes the framework of the SaaS service customization.

Description

Customized distribution method and system based on SaaS service
Technical Field
The invention relates to the technical field of customized processing, in particular to a customized distribution method and a customized distribution system based on SaaS (software as a service).
Background
With the development of services, more and more users (hereinafter referred to as users) of a service system are used, and meanwhile, more and more abundant service scenes are accompanied, and at present, the service system of each board can support the development of daily services of each user by adopting a traditional standard service (SaaS service), but cannot support the personalized and customized service requirements of the user.
At present, the traditional request distribution method uses a SpringMVC technical framework to receive and process requests from users, the technical framework can realize an REST-based interface very elegantly, can realize flexible analysis of URL requests, can realize mapping, conversion and automatic injection of client request parameters and server interface parameters efficiently, can flexibly process request return data into various forms according to requirements, and has very powerful functions.
However, the framework adopted by the above conventional method cannot achieve the following: distributing the request to different interface methods based on configuration through a fixed URL request; and each business system now just needs to implement such a distribution mode to meet the customization needs of users.
Disclosure of Invention
In view of the above, there is a need for a customized distribution method based on SaaS service and a system thereof, which make up for the deficiency of requesting distribution and realize a framework of SaaS service customization by dynamically selecting and executing a designated method through one configuration.
The invention provides a customized distribution method based on SaaS service, which has the technical scheme as follows:
a customized distribution method based on SaaS service comprises the following steps:
acquiring a request of a user, and mapping the request to a unique processing method;
before executing the processing method, determining the information of all users according to the customized annotation, and performing customized processing.
In the technical scheme, when a request reaches a server, a URL request is mapped to a unique processing method, at the moment, a distributor is started after the request reaches the determined method and before the method is executed, the distributor can find the Customized processing modules of all users according to Customized annotations (customizations) when a system is started, when the request reaches the unique method, the distributor can analyze the current request and select whether to redirect and execute the Customized operation according to the user to which the request belongs, so that the purpose that the same URL request corresponds to a plurality of different processing methods in appearance is realized through a configuration (customizations) dynamic selection and execution of the specified method, the defect of SpringMVC in the request distribution is made up, and a SaaS service Customized framework is realized.
Preferably, before obtaining the request of the user, the method further includes a step of customizing information storage, which is specifically as follows:
scanning and classifying a SaaS service standard class and a user customized class complete set;
in the classification process, judging whether the current class is marked by the customized annotation, if so, putting the current class into a customized map; otherwise, abandoning;
and traversing the customized map, analyzing the user information marked by the customized annotation, structuring the user information and storing the user information into the redirected customized map.
Before the request of the user is obtained, the scanned Customized schemes of the user are classified, then the Customized schemes are marked by Customized annotations (customizations), marked user information is put into a Customized map for traversal, and is stored in a redirection Customized map after being analyzed and determined, so that the user request is conveniently searched and called after being received, and the multi-method processing can be realized according to different called Customized user information by one request.
Preferably, after the request of the user is obtained and before the processing method is executed, the method further includes a step of customizing redirection, which specifically includes:
receiving a user request, executing AOP interception, and if the interception fails, releasing the request; if the interception is successful, acquiring the user information in the request before releasing the request;
judging whether the user information is in the redirection customized map, if so, executing customized processing; and if not, entering a standard flow of the SaaS service.
After receiving a user request and before executing a processing method, executing distribution and redirection operations, performing AOP interception on the request, adding a custom distributor (custom distributor) in the AOP for permission check, and realizing the distribution of the user custom request by using the distributor as a core, thereby realizing that the same request corresponds to a plurality of different processing methods and making up the defect of SpringMVC in the process of requesting distribution.
Preferably, the customized portal is confirmed in the redirected customized map according to the user information before the customizing process is performed.
If the acquired user information exists in the redirection customized map, searching a customized entrance in the redirection customized map, and further executing customization processing; the customization entry is the premise of executing customization processing, the existence of the customization entry can prove that the acquired user information exists in the redirected customization map, customization processing in different modes is realized through a Customized customization annotation (custom), resource space is saved, and processing efficiency is improved.
The invention provides a customized distribution system based on SaaS service, which has the technical scheme as follows:
a customized distribution system based on SaaS service comprises a request acquisition module and a customized processing module, wherein:
the request acquisition module is used for acquiring a request of a user and mapping the request to a unique processing method;
and the customization processing module is used for determining the information of all users according to the customized annotation and performing customization processing before executing the processing method.
Preferably, the system further comprises a scanning classification module, a labeling judgment module and an analysis storage module, wherein:
the scanning classification module is used for scanning and classifying a SaaS service standard class and a user customized class complete set;
the marking judgment module is used for judging whether the currently scanned class is marked by the customized annotation, and if so, the currently scanned class is put into the customized map; otherwise, abandoning;
and the analysis storage module is used for traversing the customized map, analyzing the user information marked by the customized annotation, structuring the user information and storing the user information into the redirected customized map.
Preferably, the system further comprises an interception judgment module and an information judgment module, wherein:
the interception judgment module is used for receiving a user request, executing AOP interception, and releasing the request if the interception fails; if the interception is successful, acquiring the user information in the request before releasing the request;
the information judgment module is used for judging whether the user information is in the redirected customized map, and if so, the customized processing is executed; and if not, entering a standard flow of the SaaS service.
Preferably, the customized portal confirmation module is further included, and the customized portal is confirmed in the redirected customized map according to the user information before the customization processing is executed.
The invention has the beneficial effects that:
1. the invention realizes that the specification method is dynamically selected and executed through one configuration (customized annotation), makes up the deficiency when the distribution is requested based on SpringMVC, and realizes the framework of SaaS service customization.
2. The marked user information is put into the customized map for traversal, and is stored in the redirection customized map after being analyzed and determined, so that the user request is conveniently searched and called after being received, and the purpose that one request can be processed by multiple methods according to different called customized user information is realized.
3. In the invention, a custom distributor (custom distributor) is added in the AOP for authority check, the distributor is used as a core to realize the distribution of the user custom request, so that the same request corresponds to a plurality of different processing methods, and the defect of SpringMVC in requesting distribution is overcome.
4. If the acquired user information exists in the redirection customized map, searching a customized entrance in the redirection customized map, and further executing customization processing; the customization processing in different modes is realized through the Customized annotation (custom), so that the resource space is saved, and the processing efficiency is improved.
Drawings
Fig. 1 is a flowchart of a customized distribution method based on SaaS service according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a customized distribution system based on SaaS service according to an embodiment of the present invention.
Description of reference numerals:
10-a request acquisition module; 20-customizing a processing module; 30-a scanning classification module; 40-label judging module; 50-an analysis storage module; 60-interception judgment module; 70-an information judgment module; 80-custom entry validation Module.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Example 1
As shown in fig. 1, a customized distribution method based on SaaS service includes the following steps:
acquiring a request of a user, and mapping the request to a unique processing method;
before executing the processing method, determining the information of all users according to the customized annotation, and performing customized processing.
In this embodiment, when a request reaches a server, a URL request is mapped to a unique processing method, at this time, a distributor is started after the request reaches the determined method and before the method is executed, the distributor finds out the Customized processing modules of all users according to a Customized annotation (Customized) defined by us when a system is started, when a request reaches the unique method, the distributor analyzes the current request and selects whether to redirect and execute the Customized operation according to the user to which the request belongs, so that the purpose of dynamically selecting and executing the specified method through a configuration (Customized) is achieved, the same URL request corresponds to a plurality of different processing methods in appearance, the defect of SpringMVC in requesting distribution is overcome, and a SaaS service Customized framework is implemented.
Example 2
On the basis of embodiment 1, the present embodiment further includes a step of storing customized information before acquiring the request of the user, which is specifically as follows:
scanning and classifying a SaaS service standard class and a user customized class complete set;
in the classification process, judging whether the current class is marked by the customized annotation, if so, putting the current class into a customized map; otherwise, abandoning;
and traversing the customized map, analyzing the user information marked by the customized annotation, structuring the user information and storing the user information into the redirected customized map.
Before the request of the user is obtained, the scanned Customized schemes of the user are classified, then the Customized schemes are marked by Customized annotations (customizations), marked user information is put into a Customized map for traversal, and is stored in a redirection Customized map after being analyzed and determined, so that the user request is conveniently searched and called after being received, and the multi-method processing can be realized according to different called Customized user information by one request.
Example 3
On the basis of embodiment 2, the present embodiment further includes a step of customizing redirection after acquiring the request of the user and before executing the processing method, which is specifically as follows:
receiving a user request, executing AOP interception, and if the interception fails, directly releasing the request; if the interception is successful, acquiring the user information in the request before releasing the request;
judging whether the user information is in the redirection customized map, if so, executing customized processing; and if not, entering a standard flow of the SaaS service.
After receiving a user request and before executing a processing method, executing distribution and redirection operations, performing AOP interception on the request, adding a custom distributor (custom distributor) in the AOP for permission check, and realizing the distribution of the user custom request by using the distributor as a core, thereby realizing that the same request corresponds to a plurality of different processing methods and making up the defect of SpringMVC in the process of requesting distribution.
Example 4
This embodiment is based on embodiment 3, and confirms a customized entry in the redirected customized map based on the user information before performing the customization process.
If the acquired user information exists in the redirection customized map, searching a customized entrance in the redirection customized map, and further executing customization processing; the customization entry is the premise of executing customization processing, the existence of the customization entry can prove that the acquired user information exists in the redirected customization map, customization processing in different modes is realized through a Customized customization annotation (custom), resource space is saved, and processing efficiency is improved.
Example 5
This example is the system of example 1 and,
as shown in fig. 2, a customized distribution system based on SaaS service includes a request obtaining module 10 and a customized processing module 20, where:
a request acquiring module 10, configured to acquire a request of a user and map the request into a unique processing method;
and the customization processing module 20 is used for determining the information of all users according to the customized annotation and performing customization processing before executing the processing method.
Example 6
The present embodiment is the system of embodiment 2, further comprising a scanning classification module 30, a labeling judgment module 40, and an analysis storage module 50, wherein:
a scanning classification module 30, configured to scan and classify a full set of SaaS service standards and user customization classes;
the marking judgment module 40 is used for judging whether the currently scanned class is marked by the customized annotation, and if so, the currently scanned class is put into the customized map; otherwise, abandoning;
and the analysis storage module 50 is used for traversing the customized map, analyzing the user information marked by the customized annotation, structuring the user information and storing the user information into the redirected customized map.
Example 7
The present embodiment is the system of embodiment 3, further comprising an interception determining module 60 and an information determining module 70, wherein:
an interception judgment module 60, configured to receive a user request, execute AOP interception, and if interception fails, directly release the request; if the interception is successful, acquiring the user information in the request before releasing the request;
an information judging module 70, configured to judge whether the user information is in the redirected customized map, and if so, execute a customization process; and if not, entering a standard flow of the SaaS service.
Example 8
This embodiment is the system of embodiment 4, further including a customized portal confirmation module 80 that confirms the customized portal in the redirected customized map according to the user information before performing the customization process.
The above-mentioned embodiments only express the specific embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.

Claims (6)

1. A customized distribution method based on SaaS service is characterized by comprising the following steps:
acquiring a request of a user, and mapping the request to a unique processing method;
before executing the processing method, determining information of all users according to the customized annotation, and performing customized processing;
before a request of a user is obtained, scanning a SaaS service standard class and a user customized class complete set, and classifying;
in the classification process, judging whether the current class is marked by the customized annotation, if so, putting the current class into a customized map; otherwise, abandoning;
and traversing the customized map, analyzing the user information marked by the customized annotation, structuring the user information and storing the user information into the redirected customized map.
2. The SaaS service-based customized distribution method according to claim 1, further comprising a step of redirecting customization after acquiring a request of a user and before executing the processing method, specifically as follows:
receiving a user request, executing AOP interception, and if the interception fails, directly releasing the request; if the interception is successful, acquiring the user information in the request before releasing the request;
judging whether the user information is in the redirection customized map, if so, executing customized processing; and if not, entering a standard flow of the SaaS service.
3. The SaaS service-based customized distribution method according to claim 2, wherein a customized entry is confirmed in the redirection customization map according to user information before performing customization processing.
4. The utility model provides a customization distribution system based on SaaS service which characterized in that, includes request acquisition module, customization processing module, scanning classification module, mark judgement module and analysis storage module, wherein:
the request acquisition module is used for acquiring a request of a user and mapping the request to a unique processing method;
the customized processing module is used for determining the information of all users according to the customized annotation and performing customized processing before executing the processing method;
the scanning classification module is used for scanning and classifying a SaaS service standard class and a user customized class complete set;
the marking judgment module is used for judging whether the currently scanned class is marked by the customized annotation, and if so, the currently scanned class is put into the customized map; otherwise, abandoning;
and the analysis storage module is used for traversing the customized map, analyzing the user information marked by the customized annotation, structuring the user information and storing the user information into the redirected customized map.
5. The SaaS service-based customized distribution system according to claim 4, further comprising an interception determination module and an information determination module, wherein:
the interception judgment module is used for receiving the user request, executing AOP interception, and directly releasing the request if the interception fails; if the interception is successful, acquiring the user information in the request before releasing the request;
the information judgment module is used for judging whether the user information is in the redirected customized map, and if so, the customized processing is executed; and if not, entering a standard flow of the SaaS service.
6. The SaaS service-based customized distribution system according to claim 5, further comprising a customized portal confirmation module that confirms a customized portal in the redirected customized map according to user information before performing the customization processing.
CN201810670777.7A 2018-06-26 2018-06-26 Customized distribution method and system based on SaaS service Active CN109088911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810670777.7A CN109088911B (en) 2018-06-26 2018-06-26 Customized distribution method and system based on SaaS service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810670777.7A CN109088911B (en) 2018-06-26 2018-06-26 Customized distribution method and system based on SaaS service

Publications (2)

Publication Number Publication Date
CN109088911A CN109088911A (en) 2018-12-25
CN109088911B true CN109088911B (en) 2021-01-22

Family

ID=64839806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810670777.7A Active CN109088911B (en) 2018-06-26 2018-06-26 Customized distribution method and system based on SaaS service

Country Status (1)

Country Link
CN (1) CN109088911B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309674A (en) * 2013-06-25 2013-09-18 深圳中兴网信科技有限公司 Software architecture system
CN104981802A (en) * 2013-02-27 2015-10-14 日立数据系统有限公司 Content class for object storage indexing system
CN107133055A (en) * 2017-06-07 2017-09-05 焦点科技股份有限公司 A kind of method that customized development is realized based on ClassLoader

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10452374B2 (en) * 2013-10-30 2019-10-22 Oracle International Corporation System and method for providing a clone service for use with a cloud platform environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104981802A (en) * 2013-02-27 2015-10-14 日立数据系统有限公司 Content class for object storage indexing system
CN103309674A (en) * 2013-06-25 2013-09-18 深圳中兴网信科技有限公司 Software architecture system
CN107133055A (en) * 2017-06-07 2017-09-05 焦点科技股份有限公司 A kind of method that customized development is realized based on ClassLoader

Also Published As

Publication number Publication date
CN109088911A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
US10922355B2 (en) Method and apparatus for recommending news
CN111061484B (en) Code compiling method, device, server, user terminal and readable medium
CN107403173B (en) Face recognition system and method
US10311877B2 (en) Performing tasks and returning audio and visual answers based on voice command
CN110457256A (en) Date storage method, device, computer equipment and storage medium
CN102955858B (en) The search ordering method of video file, system and server
WO2017071122A1 (en) Method and device for acquiring access information of wireless access point
US20180376335A1 (en) Method and device for realizing wireless access point connection authentication
CN106792047B (en) Voice control method and system of smart television
CN105095407A (en) Method and system for real-time search of application program content
WO2020124966A1 (en) Program search method, apparatus and device, and medium
CN111143555A (en) Big data-based customer portrait generation method, device, equipment and storage medium
CN106407268A (en) Method and system for content retrieval based on rate-coverage optimization
CN113615141B (en) Account association method, device, system, server and storage medium
CN109088911B (en) Customized distribution method and system based on SaaS service
CN107832342B (en) Robot chatting method and system
WO2020044094A1 (en) Resource recommendation method and apparatus, electronic device and computer readable medium
CN109964473B (en) Voice service response method and device
CN112235124A (en) Method and device for configuring pico-cell, storage medium and electronic device
CN113709187B (en) Multi-server data request method, device, equipment and storage medium
CN106604263B (en) Downloading method and system based on mobile equipment
CN111124866B (en) Voice interaction method and device
CN110472113B (en) Intelligent interaction engine optimization method, device and equipment
CN114297229A (en) Data query method and device, electronic equipment and storage medium
CN113822126A (en) Icon recognition method, device and computer-readable 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
GR01 Patent grant
GR01 Patent grant