CN105760192B - Registration method and device for service module of system server - Google Patents

Registration method and device for service module of system server Download PDF

Info

Publication number
CN105760192B
CN105760192B CN201610076539.4A CN201610076539A CN105760192B CN 105760192 B CN105760192 B CN 105760192B CN 201610076539 A CN201610076539 A CN 201610076539A CN 105760192 B CN105760192 B CN 105760192B
Authority
CN
China
Prior art keywords
page
module
function
business module
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.)
Active
Application number
CN201610076539.4A
Other languages
Chinese (zh)
Other versions
CN105760192A (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.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
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 Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201610076539.4A priority Critical patent/CN105760192B/en
Publication of CN105760192A publication Critical patent/CN105760192A/en
Application granted granted Critical
Publication of CN105760192B publication Critical patent/CN105760192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F9/44526Plug-ins; Add-ons
    • 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/44505Configuring for program initiating, e.g. using registry, configuration files

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)
  • Stored Programmes (AREA)

Abstract

The application discloses a registration method and device for a service module of a system server. The method comprises the following steps: receiving registration information of a newly developed service module through a visual user interface, wherein the registration information comprises access path and authority information of the service module; according to the access path, registering the service module into the system server to store the authority information of the service module; the service module comprises a function and a basic function for realizing corresponding services, and part or all of the basic function is realized by using a common class for defining the class of the service module to inherit the functional module of the system server; the function module is used for defining the common basic functions of all the service modules in the system server. The method registers the newly developed service module through the configuration interface, thereby improving the reliability and the development efficiency of the system code; in addition, repeated development of common functions in the service module is avoided, development time is saved, and development efficiency is improved.

Description

The register method and device of server of the system business module
Technical field
The present invention relates to Computer Applied Technologies, in particular to a kind of registration side of server of the system business module Method and device.
Background technique
Currently, every time new traffic module in development system server-side when, usually because the code of application layer and operation layer The degree of coupling is higher, causes developer other than needing to develop in business module for realizing the code of corresponding service, it is also necessary to Corresponding basic function code in exploitation business module, and the code of most basic function base in each new traffic module Be on this it is identical, overlapping development affects the working efficiency of developer.
In addition, for business module (such as page module) newly developed, it is required to every time through change system code or straight The mode for connecing operating database goes to be registered, and on the one hand because needing to modify system code every time, increases and misses to system code The possibility of modification reduces the privacy of system code;On the other hand lead to repetition and cumbersome action, and lack data Visualized operation.
Summary of the invention
The present invention provides the register method and device of a kind of server of the system business module, can be avoided duplicate redundancy behaviour Make, promotes development efficiency.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to an aspect of the present invention, a kind of register method of server of the system business module is provided, comprising: by can Depending on changing user interface, the registration information of business module newly developed is received, the registration information includes the visit of the business module It asks the way diameter and authority information;And the access path according to the business module, it registers the business module and is taken to the system It is engaged in end, to store the authority information of the business module;Wherein the business module includes the function for realizing corresponding service Energy and basic function, some or all of described basic function are by using described in the Similar integral in the definition business module The public class of the functional module for server-side of uniting is realized;The functional module is for defining each business mould in the server of the system The publicly-owned basic function of block.
According to an embodiment of the present invention, the public class of the functional module includes: for defining page binding, rewriteeing Load events, file in system import and export and compress in some or all of function class, and/or it is slow for defining system Deposit the class of management;Wherein the cache management includes: that static dictionary, login user information cache and/or authority module function are slow The management cached some or all of in depositing.
According to an embodiment of the present invention, the business module is a page, the registration information further include: the page The user right information of each control in face.
According to an embodiment of the present invention, the user right includes: in personal authority, role-security and post permission At least one;Wherein the personal authority is the permission assigned by different individuals, and the role-security is for different angles The permission that color is assigned, the post permission are the permissions assigned by different posies.
According to an embodiment of the present invention, the above method further include: when receiving request of the user to the page, According to the user right of the user, is created for the user and return to the institute including the matched control with the user right State the page.
According to another aspect of the present invention, a kind of register device of server of the system business module is provided, comprising: registration Information receiving unit, for receiving the registration information of business module newly developed, the registration letter by visible user interface Breath includes the access path and authority information of the business module;And business module registering unit, for according to the business The access path of module registers the business module into the server of the system, to store the permission letter of the business module Breath;Wherein the business module includes the function and basic function for realizing corresponding service, the part of the basic function or All realized by using the public class of the functional module of the server of the system described in the Similar integral for defining the business module; The functional module is for defining the basic function that each business module is publicly-owned in the server of the system.
According to an embodiment of the present invention, the public class of the functional module includes: for defining page binding, rewriteeing Load events, file in system import and export and compress in some or all of function class, and/or it is slow for defining system Deposit the class of management;Wherein the cache management includes: that static dictionary, login user information cache and/or authority module function are slow The management cached some or all of in depositing.
According to an embodiment of the present invention, the business module is a page, the registration information further include: the page The user right information of each control in face.
According to an embodiment of the present invention, the user right includes: in personal authority, role-security and post permission At least one;Wherein the personal authority is the permission assigned by different individuals, and the role-security is for different angles The permission that color is assigned, the post permission are the permissions assigned by different posies.
According to an embodiment of the present invention, above-mentioned apparatus further include: page request receiving unit, for receiving user couple The request of the page;And page creation unit, for receiving the user to institute when the page request receiving unit When stating the request of the page, according to the user right of the user, created for the user and return including with the user right Matched control the page.
On the one hand the register method of the system according to the present invention server-side business module is used by the unified visualization provided Family configuration interface registers business module newly developed, to store the permission of business module newly developed, avoids existing skill Need to modify server of the system code in art every time to register and reduce system code reliability and private brought by new traffic module The problem of close property and repeated and redundant code development;On the other hand for function publicly-owned in each business module, by inheriting function The public class of module avoids every time when developing new traffic module, to the functional overlapping development of the public affairs, to save out The time is sent out, development efficiency is improved.
In addition, the register method of server of the system business module of the invention still further comprises according to some embodiments Permission registration to each control in the page newly developed, so that when the user with different user permission requests the page, The page for being loaded with the control of corresponding matching permission can be returned according to the permission of the user.In addition, in present embodiment User right can be configured flexibly, can be both independent individual and assigned individual permission, or a kind of (or one Group) user assigns corresponding permission.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Invention.
Detailed description of the invention
Its example embodiment is described in detail by referring to accompanying drawing, above and other target of the invention, feature and advantage will It becomes more fully apparent.
Fig. 1 is a kind of process of the register method of server of the system business module shown according to an illustrative embodiments Figure.
Fig. 2 is the stream of the register method of another server of the system business module shown according to an illustrative embodiments Cheng Tu.
Fig. 3 is a kind of frame of the register device of server of the system business module shown according to an illustrative embodiments Figure.
Fig. 4 is the frame of the register device of another server of the system business module shown according to an illustrative embodiments Figure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Attached drawing is only the present invention Schematic illustrations, be not necessarily drawn to scale.Identical appended drawing reference indicates same or similar part in figure, thus Repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In mode.In the following description, many details are provided to provide and fully understand to embodiments of the present invention.So And it will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced and omit one in the specific detail Or more, or can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes Known features, method, apparatus, realization or operation are to avoid a presumptuous guest usurps the role of the host and each aspect of the present invention is made to thicken.
Fig. 1 is a kind of process of the register method of server of the system business module shown according to an illustrative embodiments Figure.The register method 10 of server of the system business module as shown in Figure 1 for example can be applied to the system service of cruising inspection system In end, but invention is not limited thereto.Register method 10 includes:
In step s 102, the registration information of business module newly developed is received.
Business module newly developed includes the function for realizing corresponding service and the basic function for auxiliary.With business Module is the new business that for a page, which is for example provided for realizing server of the system.It is not only wrapped in the page Include realize the new business itself function, further include corresponding basic function, for example, record login user personal information and its Organization's information, the processing that cache class calls in system, the basic functions such as load events in page binding and rewriting system.
By the visible user interface of exploitation, such as a configuration interface, developer adds business module newly developed Registration information, to register the business module newly developed in server of the system or database.
The registration information may include the information such as the title, access path and permission of the business module newly developed.Exploitation Personnel configure the information such as business module title, access path and permission in above-mentioned configuration interface.
The logon mode registers business module newly developed by the user interface of unitized overall development, developer The registration information for configuring the business module in the user interface is only needed, without such as passing through change server of the system in the prior art The mode of code is registered, and is on the one hand avoided the possibility to server of the system code maloperation, is improved system service Hold the reliability and privacy of code;On the other hand it also avoids repeating to write registration code every time, improves development efficiency.
In step S104, according to the registration information of business module newly developed, which is registered Into server of the system, to store the authority information of business module newly developed.
After receiving the registration information of business module newly developed of developer's configuration, pass through the business module configured Access path, the authority information etc. in the business module is stored in the database of server of the system.It is when user logs in System, when requesting the business module, the permission stored in the permission of login user and database is matched, thus according to user Permission, business module is loaded.
The code of business module newly developed includes the class for defining the business module.Namely developing a new industry When module of being engaged in, the class of a new business module is defined, the class of the new business module can be made of at least one function, respectively Function includes: function name, some or all of in function call information and function realization;When there is multiple functions, a letter It can also include calling other defined functions etc. that number, which is realized,.
Such as in the server-side based on ASP.Net Technical Architecture, when needing newly to create a WebForm page, definition One class based on WebForm technology.It later, such as can be by this class declaration one based on WebForm technology for creating The function of the WebForm page, to create the WebForm page when executing the function.
As described above, the business module includes the function for realizing corresponding service and the basic function for auxiliary.It is right Function is possible to publicly-owned for business module each in server of the system some or all of in basic function.In order to avoid every When secondary exploitation new traffic module, overlapping development to these utility functions can develop a function mould in the system business end Block, which is used to define the basic function that each business module is publicly-owned in server of the system namely the functional module is determined These basic functions of justice are shared by each business module in server of the system.
The different basic functions completed in the functional module can be defined as to different public classes, and by making business The mode of the public class of the Similar integral functional module of module realizes multiplexing of each business module to respective code in functional module.And The basic function exclusive for the business module is individually developed then there is still a need in the business module newly developed.Such as There is no exclusive basic function in the fruit business module, then can be all multiplexed by way of inheriting the public class of functional module These basic functions.
The public class of the functional module can also be made of at least one function, and each function includes: function name, function tune With some or all of in information and function realization;When there is multiple functions, it can also include calling to determine that a function, which is realized, Other functions etc. of justice.
Function defined in the public class of functional module includes at least the basic function of server of the system, such as record logs in The personal information and its organization's information of user, the processing that cache class calls in system, in page binding and rewriting system The utility functions such as load events.These basic functions are publicly-owned for each business module, therefore in each business module newly developed, Developer only needs to be absorbed in opening for basic function exclusive in the function and business module of realizing business itself in business module Hair, and the function publicly-owned for each business module, then can directly inherit the public class, avoid functional module code weight to reach The purpose developed again promotes development efficiency to save the development time.
It is one to be based on ASP with business module, for the page of Net technological development.The public class of functional module may include For page binding, the load events in rewriting system, the public class that file imports and exports and compress etc. is realized, for the ease of saying It is bright, such as the public class can be named as BasePage.BasePage class can inherit ASP, basic Page in Net technology (page) class, and by rewriting OnPreInit () function and OnLoad () function in Page class, further increase binding control Part imports and exports public methods and the association attributes such as file and compressed file, load JavaScript script.
The public class of functional module can also include the personal information and its organization's information for recording login user Public class similarly for ease of description, such as the public class can be named as CacheMangage.CacheManage Definition is used for the cache class in management system in class, includes static dictionary, login user information cache, authority module in cache class The functions such as function caching.
After defining above-mentioned public class, it is based on ASP when one newly developed, when the WebForm page of Net technology, A class based on WebForm technology is defined, function and business mould of the developer in addition to developing realization business itself in such In block outside exclusive basic function, for publicly-owned basic function, then it can inherit such as BasePage class and CacheManage class Etc. public class, to be multiplexed the corresponding function in the public class such as BasePage class and CacheManage class.In new page, open The function that hair personnel individually develop is combined with from the function of public Similar integral, and the two is flexibly used in a manner of loose coupling, is saved Development time promotes development efficiency.
10 one side of register method of the server of the system business module of present embodiment passes through the unified visualization provided Business module newly developed is registered at user configuration interface, to store the permission of business module newly developed, is avoided existing Need to modify server of the system code in technology every time register reduce brought by new traffic module system code reliability with The problem of privacy and repeated and redundant code development;On the other hand for function publicly-owned in each business module, by inheriting function The public class of energy module, avoids every time when developing new traffic module, to the functional overlapping development of the public affairs, to save Development time improves development efficiency.
It will be clearly understood that the present disclosure describe how being formed and using particular example, but the principle of the present invention is not limited to These exemplary any details.On the contrary, the introduction based on present disclosure, these principles can be applied to many other Embodiment.
Fig. 2 is the stream of the register method of another server of the system business module shown according to an illustrative embodiments Cheng Tu.The register method 20 of server of the system business module as shown in Figure 2 can be applied to the registration of a page newly developed, example As cruising inspection system server of the system in the page newly developed registration, but invention is not limited thereto.Register method 20 includes:
In step S202, by a visible user interface, the registration information of the page newly developed is received.
Include not only the function of realizing the new business itself in the page newly developed, further includes corresponding basic function, example Such as record the personal information and its organization's information of login user, in system cache class call processing, the page binding and again Write the basic functions such as the load events in system.
By the visible user interface of exploitation, such as a configuration interface, developer adds the note of the page newly developed Volume information, to register the page in server of the system or database.
The registration information is other than including the title, access path and authority information of the page newly developed, if should Each control in the page needs to control by permission, such as the user of different rights, the control cloth in the shown page Office is different (such as the user with the power of examination and approval, providing examination & approval option button etc.), then further includes note when registering the page The permission of each control in the volume page, thus when the user with different rights requests the page, load and user right The control matched, to embody different permission control functions.
In some embodiments, user right may include: at least one in personal authority, role-security and post permission Kind.Wherein personal authority refers to that the permission assigned by different individuals, the permission are individually allocated to a certain individual and are possessed.
Role-security refers to the permission assigned by different role.Different roles is defined first, such as ordinary user, management Member etc. is assigned with different permissions for every kind of role.After defining different role, one is imparted if it is some user After a role, which then has whole permissions of the role.It can be seen from the above, role-security is to possess identical permission What a kind of user was prepared, if the permission of certain role needs to change, it is only necessary to the permission for changing the role, without Change possesses the permission of all users of the role one by one.
When a user has personal authority and role-security simultaneously, the permission of the user be both permissions and Collection.Such as the role-security of the user has tri- permissions of a, b, c, and its personal authority has tri- permissions of b, c, d, the then use Family has tetra- permissions of a, b, c, d.
Role-security and personal authority can be only seen oneself institutional affiliation or the total data of its affiliated institutions, but cannot See sane level or the data across grade.In order to solve this problem, the present invention is additionally provided with post permission.
Post permission refers to the permission assigned by different posies, when user is endowed a certain post permission, the user It can check all data under its post.For example, the employee A of subsidiary 1 wishes to the number of some department of subsidiary 2 According to the post permission of the department of subsidiary 2 can be assigned for the employee A, then employee A is it is seen that number under the department According to.
It can be seen from the above, the user right in the present embodiment neatly can distribute corresponding authority for user, either The permission assigned by an individual is also possible to the permission assigned for a kind of (or one group) user.
The logon mode registers the page newly developed by the user interface of unitized overall development, and developer only needs The registration information for configuring the page in the user interface, without such as in the prior art by way of changing system code come into Row registration, on the one hand avoids the possibility to system code maloperation, improves the reliability and privacy of system code;It is another Aspect also avoids writing for each duplicate registration code, improves development efficiency.
In step S204, according to the registration information of the page newly developed, which is registered in server of the system, with Store the authority information of the page newly developed.
Developer configures the registration information of the new page by visual user configuration interface.Receiving these After the registration information of configuration, according to the access path of the new page of configuration, by the permission of new page and it includes space power Limit information is stored into the database of server of the system.The authority information of control each in the page newly developed is being configured to system It can be that index is configured, but invention is not limited thereto with the ID of each control when in the feature list of server-side code.
Work as logging in system by user, when requesting the new page, by the permission stored in the permission of login user and database into Row matching, and according to the permission of user, the control to match in loading page with the user right.
The code of the page newly developed includes the class for defining the page.Such as in the clothes based on ASP.Net technology It is engaged in end, when needing newly to create a WebForm page, defines a class based on WebForm technology.It should be based on WebForm The class of technology can be made of at least one function, and each function includes: function name, in function call information and function realization Partly or entirely;When there is multiple functions, it can also include calling other defined functions etc. that a function, which is realized,.Later, Such as it can be by this class declaration one based on WebForm technology for creating the function of the WebForm page, thus executing When the function, the WebForm page is created.
As described above, the page includes for realizing the function of corresponding service and for basic function.For basic function In some or all of function be possible to by business module each in server of the system share.In order to avoid developing new industry every time When module of being engaged in, the overlapping development to these utility functions can develop a functional module in the system business end, the function mould Block is for realizing these are basic defined in the publicly-owned basic function of business module each in server of the system namely the functional module Function is shared by each business module in server of the system.
The different basic functions completed in the functional module can be defined as to different public classes, and by making business The mode of the public class of the Similar integral functional module of module realizes multiplexing of each business module to respective code in functional module.And The basic function exclusive for the business module is individually developed then there is still a need in the business module newly developed.Such as There is no exclusive basic function in the fruit business module, then can be all multiplexed by way of inheriting the public class of functional module These basic functions.
The public class of the functional module can be made of at least one function, and each function includes: function name, function call Some or all of in information and function realization;When there is multiple functions, it can also include calling to be defined that a function, which is realized, Other functions etc..
Function defined in the public class of functional module includes at least the basic function of server of the system, such as record logs in The personal information and its organization's information of user, the processing that cache class calls in system, in page binding and rewriting system The utility functions such as load events.These basic functions are required for each business module, therefore in each business module newly developed When, developer, which only needs to be absorbed in, realizes opening for basic function exclusive in business function itself and business module in business module Hair, and the function publicly-owned for each business module, then can directly inherit the public class, avoid functional module code weight to reach The purpose developed again promotes development efficiency to save the development time.
The public class of functional module may include leading for the load events in page binding, rewriting system, realization file Enter the public class of export and compression etc., for ease of description, such as the public class can be named as BasePage.BasePage Class can inherit ASP, basic Page (page) class in Net technology, and by rewriting OnPreInit () letter in Page class Several and OnLoad () function, to further increase bound control, import and export file and compressed file, load The public methods such as JavaScript script and association attributes.
The public class of functional module can also include the personal information and its organization's information for recording login user Public class similarly for ease of description, such as the public class can be named as CacheMangage.CacheManage Definition is used for the cache class in management system in class, includes static dictionary, login user information cache, authority module in cache class The functions such as function caching.
After defining above-mentioned public class, ASP, when the page of Net technology, institute as above are based on when one newly developed It states, defines a class based on WebForm technology, function and business of the developer in addition to developing realization business itself in such In module outside exclusive basic function, for publicly-owned basic function, then it can inherit such as BasePage class and CacheManage The public class such as class, to be multiplexed the corresponding function in the public class such as BasePage class and CacheManage class.In new page, The function that developer individually develops is combined with from the function of public Similar integral, and the two is flexibly used in a manner of loose coupling, section The development time has been saved, development efficiency is promoted.
In step S206, when user requests the page newly developed, according to the permission of the user, for user return The page newly developed, include in the page of return load with the matched control of user right.
After the page that this is newly developed is registered in server of the system, when user requests the page newly developed, Such as can be by executing the function for creating the page, to create the page, and the page is returned for user.The wherein letter Number is stated by the class of the page of above-mentioned new definition.
When returning to the page newly developed for user, according to the user right of user, it is newly developed that this is returned for user The page.As described above, including the registration to control permission each in the page, i.e. storage should when registering the page newly developed The permission of each control is into the database of server of the system in the page.When user requests the page newly developed, according to request The user right of user determines the corresponding control in the page to be returned, namely only when the permission of control is with request user's When user right matches, the control can be just loaded in the page to be returned.
The register method 20 of the server of the system business module of present embodiment is still further comprised in the page newly developed The permission of each control is registered, so that when the user with different user permission requests the page, it can be according to the user Permission return to the page of the control for being loaded with corresponding matching permission.In addition, the user right in present embodiment can be flexible It is configured, can both be independent individual and assign individual permission, or the assigned phase of a kind of (or one group) user The permission answered.
It will be appreciated by those skilled in the art that realizing that all or part of the steps of above embodiment is implemented as being held by CPU Capable computer program.When the computer program is executed by CPU, execute above-mentioned defined by the above method provided by the invention Function.The program can store in a kind of computer readable storage medium, which can be read-only memory, Disk or CD etc..
Further, it should be noted that above-mentioned attached drawing is only according to the present invention included by the method for illustrative embodiments Processing schematically illustrates, rather than limits purpose.It can be readily appreciated that above-mentioned processing shown in the drawings does not indicate or limits these The time sequencing of processing.In addition, being also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules 's.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.For apparatus of the present invention reality Undisclosed details in example is applied, embodiment of the present invention method is please referred to.
Fig. 3 is a kind of frame of the register device of server of the system business module shown according to an illustrative embodiments Figure.The register device 30 of server of the system business module as shown in Figure 3 for example can be applied to the system service of cruising inspection system In end, but invention is not limited thereto.Register device 30 includes: registration information receiving unit 302 and business module registering unit 304。
Wherein, registration information receiving unit 302 is used to receive business module newly developed by visible user interface Registration information, the registration information include the access path and authority information of the business module.
Business module registering unit 304 is used to register business newly developed according to the access path in above-mentioned registration information Module is into server of the system, to store the authority information of the business module.
Wherein the business module includes the function and basic function for realizing corresponding service, the portion of the basic function Divide or is all come by using the public class of the functional module of the server of the system described in the Similar integral for defining the business module It realizes;The functional module is for defining the basic function that each business module is publicly-owned in the server of the system.
The code of business module newly developed includes the class for defining the business module.Namely developing a new industry When module of being engaged in, the class of a new business module is defined, the class of the new business module can be made of at least one function, respectively Function includes: function name, some or all of in function call information and function realization;When there is multiple functions, a letter It can also include calling other defined functions etc. that number, which is realized,.
Such as in the server-side based on ASP.Net Technical Architecture, when needing newly to create a WebForm page, definition One class based on WebForm technology.It later, such as can be by this class declaration one based on WebForm technology for creating The function of the WebForm page, to create the WebForm page when executing the function.
As described above, the business module includes the function for realizing corresponding service and the basic function for auxiliary.It is right Function is possible to publicly-owned for business module each in server of the system some or all of in basic function.In order to avoid every When secondary exploitation new traffic module, overlapping development to these utility functions can develop a function mould in the system business end Block, which is used to define the basic function that each business module is publicly-owned in server of the system namely the functional module is determined These basic functions of justice are shared by each business module in server of the system.
The different basic functions completed in the functional module can be defined as to different public classes, and by making business The mode of the public class of the Similar integral functional module of module realizes multiplexing of each business module to respective code in functional module.And The basic function exclusive for the business module is individually developed then there is still a need in the business module newly developed.Such as There is no exclusive basic function in the fruit business module, then can be all multiplexed by way of inheriting the public class of functional module These basic functions.
The public class of the functional module can also be made of at least one function, and each function includes: function name, function tune With some or all of in information and function realization;When there is multiple functions, it can also include calling to determine that a function, which is realized, Other functions etc. of justice.
Function defined in the public class of functional module includes at least the basic function of server of the system, such as record logs in The personal information and its organization's information of user, the processing that cache class calls in system, in page binding and rewriting system The utility functions such as load events.These basic functions are publicly-owned for each business module, therefore in each business module newly developed, Developer only needs to be absorbed in opening for basic function exclusive in the function and business module of realizing business itself in business module Hair, and the function publicly-owned for each business module, then can directly inherit the public class, avoid functional module code weight to reach The purpose developed again promotes development efficiency to save the development time.
It is one to be based on ASP with business module, for the page of Net technological development.The public class of functional module may include For page binding, the load events in rewriting system, the public class that file imports and exports and compress etc. is realized, for the ease of saying It is bright, such as the public class can be named as BasePage.BasePage class can inherit ASP, basic Page in Net technology (page) class, and by rewriting OnPreInit () function and OnLoad () function in Page class, further increase binding control Part imports and exports public methods and the association attributes such as file and compressed file, load JavaScript script.
The public class of functional module can also include the personal information and its organization's information for recording login user Public class similarly for ease of description, such as the public class can be named as CacheMangage.CacheManage Definition is used for the cache class in management system in class, includes static dictionary, login user information cache, authority module in cache class The functions such as function caching.
After defining above-mentioned public class, it is based on ASP when one newly developed, when the WebForm page of Net technology, A class based on WebForm technology is defined, function and business mould of the developer in addition to developing realization business itself in such In block outside exclusive basic function, for publicly-owned basic function, then it can inherit such as BasePage class and CacheManage class Etc. public class, to be multiplexed the corresponding function in the public class such as BasePage class and CacheManage class.In new page, open The function that hair personnel individually develop is combined with from the function of public Similar integral, and the two is flexibly used in a manner of loose coupling, is saved Development time promotes development efficiency.
30 one side of register device of the server of the system business module of present embodiment passes through the unified visualization provided Business module newly developed is registered at user configuration interface, to store the permission of business module newly developed, is avoided existing Need to modify server of the system code in technology every time register reduce brought by new traffic module system code reliability with The problem of privacy and repeated and redundant code development;On the other hand for function publicly-owned in each business module, by inheriting function The public class of energy module, avoids every time when developing new traffic module, to the functional overlapping development of the public affairs, to save Development time improves development efficiency.
Fig. 4 is the frame of the register device of another server of the system business module shown according to an illustrative embodiments Figure.The register device 40 of server of the system business module as shown in Figure 4 can be applied to the registration of a page newly developed, such as The registration of the page newly developed in the server of the system of cruising inspection system, but invention is not limited thereto.Register device 40 includes: note Volume information receiving unit 402, business module registering unit 404, page request receiving unit 406 and page creation unit 408.
Registration information receiving unit 402 is used to receive the registration of business module newly developed by visible user interface Information, the registration information include the access path and authority information of the business module.
Business module registering unit 404 is used to register business newly developed according to the access path in above-mentioned registration information Module is into server of the system, to store the authority information of the business module.
Wherein the business module includes the function and basic function for realizing corresponding service, the portion of the basic function Divide or is all come by using the public class of the functional module of the server of the system described in the Similar integral for defining the business module It realizes;The functional module is for defining the basic function that each business module is publicly-owned in the server of the system.
Such as in the server-side based on ASP.Net technology, when needing newly to create a WebForm page, one is defined Class based on WebForm technology.The class based on WebForm technology can be made of at least one function, and each function includes: letter Several titles, function call information and function realize in some or all of;When there is multiple functions, function is realized can be with Including calling other defined functions etc..It later, such as can be by this class declaration one based on WebForm technology for creating The function of the WebForm page is built, to create the WebForm page when executing the function.
As described above, the page includes for realizing the function of corresponding service and for basic function.For basic function In some or all of function be possible to by business module each in server of the system share.In order to avoid developing new industry every time When module of being engaged in, the overlapping development to these utility functions can develop a functional module in the system business end, the function mould Block is for realizing these are basic defined in the publicly-owned basic function of business module each in server of the system namely the functional module Function is shared by each business module in server of the system.
The different basic functions completed in the functional module can be defined as to different public classes, and by making business The mode of the public class of the Similar integral functional module of module realizes multiplexing of each business module to respective code in functional module.And The basic function exclusive for the business module is individually developed then there is still a need in the business module newly developed.Such as There is no exclusive basic function in the fruit business module, then can be all multiplexed by way of inheriting the public class of functional module These basic functions.
The public class of the functional module can be made of at least one function, and each function includes: function name, function call Some or all of in information and function realization;When there is multiple functions, it can also include calling to be defined that a function, which is realized, Other functions etc..
Function defined in the public class of functional module includes at least the basic function of server of the system, such as record logs in The personal information and its organization's information of user, the processing that cache class calls in system, in page binding and rewriting system The utility functions such as load events.These basic functions are required for each business module, therefore in each business module newly developed When, developer, which only needs to be absorbed in, realizes opening for basic function exclusive in business function itself and business module in business module Hair, and the function publicly-owned for each business module, then can directly inherit the public class, avoid functional module code weight to reach The purpose developed again promotes development efficiency to save the development time.
The public class of functional module may include leading for the load events in page binding, rewriting system, realization file Enter the public class of export and compression etc., for ease of description, such as the public class can be named as BasePage.BasePage Class can inherit ASP, basic Page (page) class in Net technology, and by rewriting OnPreInit () letter in Page class Several and OnLoad () function, to further increase bound control, import and export file and compressed file, load The public methods such as JavaScript script and association attributes.
The public class of functional module can also include the personal information and its organization's information for recording login user Public class similarly for ease of description, such as the public class can be named as CacheMangage.CacheManage Definition is used for the cache class in management system in class, includes static dictionary, login user information cache, authority module in cache class The functions such as function caching.
After defining above-mentioned public class, ASP, when the page of Net technology, institute as above are based on when one newly developed It states, defines a class based on WebForm technology, function and business of the developer in addition to developing realization business itself in such In module outside exclusive basic function, for publicly-owned basic function, then it can inherit such as BasePage class and CacheManage The public class such as class, to be multiplexed the corresponding function in the public class such as BasePage class and CacheManage class.In new page, The function that developer individually develops is combined with from the function of public Similar integral, and the two is flexibly used in a manner of loose coupling, section The development time has been saved, development efficiency is promoted.
Page request receiving unit 406 is for receiving request of the user to the above-mentioned page.
Page creation unit 408 is used to ask the above-mentioned page when first page request reception unit 406 receives user When asking, creates for user and return to the above-mentioned page newly developed.
In some embodiments, registration information further include: the user right information of each control in the above-mentioned page.User right It may include: at least one of personal authority, role-security and post permission.Page creation unit 408 is also used to when first When page request receiving unit 406 receives request of the user to the above-mentioned page, according to the user right of user, created for user And return to the page of the control including relative users permission.
The register device 40 of the server of the system business module of present embodiment further comprises in the page newly developed The permission of each control is registered, so that when the user with different user permission requests the page, it can be according to the user Permission return to the page for being loaded with corresponding matching permission control.In addition, user right in present embodiment can flexibly into Row configuration can both be independent individual and assign individual permission, or a kind of (or one group) user assigns accordingly Permission.
It should be noted that above-mentioned block diagram shown in the drawings is functional entity, not necessarily must with physically or logically Independent entity is corresponding.Can realize these functional entitys using software form, or in one or more hardware modules or These functional entitys are realized in integrated circuit, or are realized in heterogeneous networks and/or processor device and/or microcontroller device These functional entitys.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) executes embodiment according to the present invention Method.
It is particularly shown and described exemplary embodiments of the present invention above.It should be appreciated that the present invention is unlimited In detailed construction described herein, set-up mode or implementation method;On the contrary, it is intended to cover included in appended claims Spirit and scope in various modifications and equivalence setting.

Claims (8)

1. a kind of register method of server of the system business module characterized by comprising
By visible user interface, the registration information of business module newly developed is received, the registration information includes the industry The access path and authority information for module of being engaged in;And
According to the access path of the business module, the business module is registered into the server of the system, described in storage The authority information of business module;
Wherein the business module includes the function and basic function for realizing corresponding service, the part of the basic function or All realized by using the public class of the functional module of the server of the system described in the Similar integral for defining the business module; The functional module is for defining the basic function that each business module is publicly-owned in the server of the system;
Wherein the public class of the functional module include: for defining page binding, the load events in rewriting system, file are led The class of function some or all of in entering export and compressing, and/or the class for defining system cache management;The wherein caching Management include: static dictionary, login user information cache and/or authority module function caching in some or all of caching pipe Reason.
2. the registration information is also the method according to claim 1, wherein the business module is a page It include: the user right information of each control in the page.
3. according to the method described in claim 2, it is characterized in that, the user right include: personal authority, role-security and At least one of post permission;Wherein the personal authority is the permission assigned by different individuals, the role-security It is the permission assigned by different role, the post permission is the permission assigned by different posies.
4. according to the method in claim 2 or 3, which is characterized in that further include:
When receiving request of the user to the page, according to the user right of the user, creates and return for the user Return includes the page with the matched control of the user right.
5. a kind of register device of server of the system business module characterized by comprising
Registration information receiving unit, for receiving the registration information of business module newly developed, institute by visible user interface State the access path and authority information that registration information includes the business module;And
Business module registering unit registers the business module to the system for the access path according to the business module In server-side of uniting, to store the authority information of the business module;
Wherein the business module includes the function and basic function for realizing corresponding service, the part of the basic function or All realized by using the public class of the functional module of the server of the system described in the Similar integral for defining the business module; The functional module is for defining the basic function that each business module is publicly-owned in the server of the system;
Wherein the public class of the functional module include: for defining page binding, the load events in rewriting system, file are led The class of function some or all of in entering export and compressing, and/or the class for defining system cache management;The wherein caching Management include: static dictionary, login user information cache and/or authority module function caching in some or all of caching pipe Reason.
6. device according to claim 5, which is characterized in that the business module is a page, and the registration information is also It include: the user right information of each control in the page.
7. device according to claim 6, which is characterized in that the user right include: personal authority, role-security and At least one of post permission;Wherein the personal authority is the permission assigned by different individuals, the role-security It is the permission assigned by different role, the post permission is the permission assigned by different posies.
8. device according to claim 6 or 7, which is characterized in that further include:
Page request receiving unit, for receiving request of the user to the page;And
Page creation unit, for when the page request receiving unit receives request of the user to the page, According to the user right of the user, created for the user and return including with described in the matched control of the user right The page.
CN201610076539.4A 2016-02-03 2016-02-03 Registration method and device for service module of system server Active CN105760192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610076539.4A CN105760192B (en) 2016-02-03 2016-02-03 Registration method and device for service module of system server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610076539.4A CN105760192B (en) 2016-02-03 2016-02-03 Registration method and device for service module of system server

Publications (2)

Publication Number Publication Date
CN105760192A CN105760192A (en) 2016-07-13
CN105760192B true CN105760192B (en) 2019-01-11

Family

ID=56329941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610076539.4A Active CN105760192B (en) 2016-02-03 2016-02-03 Registration method and device for service module of system server

Country Status (1)

Country Link
CN (1) CN105760192B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145354A (en) * 2017-05-04 2017-09-08 武汉斗鱼网络科技有限公司 Software frame and its construction method, electric terminal and readable storage medium storing program for executing
CN108416199B (en) * 2018-03-07 2022-07-15 北京恒华伟业科技股份有限公司 User permission control method and device of application and server
CN109101264A (en) * 2018-07-27 2018-12-28 武汉斗鱼网络科技有限公司 A kind of method and electronic equipment for direct broadcasting room page development
CN109697089A (en) * 2018-12-26 2019-04-30 无线生活(北京)信息技术有限公司 Resume module method and device
CN109766158A (en) * 2018-12-27 2019-05-17 益萃网络科技(中国)有限公司 Methods of exhibiting, device, computer equipment and the storage medium of user interface
CN112836187B (en) * 2019-11-25 2024-02-02 杭州海康威视系统技术有限公司 Authority management method and device and electronic equipment
CN111552956B (en) * 2020-04-30 2023-08-04 成都新潮传媒集团有限公司 Role authority control method and device for background management
CN113849242A (en) * 2020-06-12 2021-12-28 华为技术有限公司 Method and device for generating and registering UI service package and loading UI service
WO2022126372A1 (en) * 2020-12-15 2022-06-23 深圳晶泰科技有限公司 Multi-service multi-environment management method and system
CN112506579B (en) * 2020-12-15 2024-05-10 深圳晶泰科技有限公司 Multi-service multi-environment management method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377737A (en) * 2007-08-28 2009-03-04 上海宝信软件股份有限公司 Resource management apparatus of application system
CN101499906A (en) * 2008-02-02 2009-08-05 厦门雅迅网络股份有限公司 Method for implementing subscriber authority management based on role function mapping table
CN101867666A (en) * 2009-04-15 2010-10-20 中兴通讯股份有限公司 Service management platform and method
CN102520932A (en) * 2011-11-25 2012-06-27 福州博远无线网络科技有限公司 System used for managing service module on movement equipment
CN103581143A (en) * 2012-08-03 2014-02-12 北京亿赞普网络技术有限公司 User authority authentication method, system, client side and server side

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377737A (en) * 2007-08-28 2009-03-04 上海宝信软件股份有限公司 Resource management apparatus of application system
CN101499906A (en) * 2008-02-02 2009-08-05 厦门雅迅网络股份有限公司 Method for implementing subscriber authority management based on role function mapping table
CN101867666A (en) * 2009-04-15 2010-10-20 中兴通讯股份有限公司 Service management platform and method
CN102520932A (en) * 2011-11-25 2012-06-27 福州博远无线网络科技有限公司 System used for managing service module on movement equipment
CN103581143A (en) * 2012-08-03 2014-02-12 北京亿赞普网络技术有限公司 User authority authentication method, system, client side and server side

Also Published As

Publication number Publication date
CN105760192A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105760192B (en) Registration method and device for service module of system server
US11451442B2 (en) System and method for generic configuration management system application programming interface
US11675774B2 (en) Remote policy validation for managing distributed system resources
JP6188732B2 (en) Computer-implemented method, computer program product, and system for managing tenant-specific data sets in a multi-tenant environment
CN109783581A (en) Right management method, device, electronic equipment and storage medium
US9047462B2 (en) Computer account management system and realizing method thereof
CN102844756B (en) Computer relational database method and system with access control based roles
US20180089299A1 (en) Different hierarchies of resource data objects for managing system resources
CN108701182A (en) The data management of multi-tenant identity cloud service
CN103309650B (en) The generation method and apparatus of persistent layer code
CN110032886A (en) The method and apparatus of access authorization for resource management
CN106126540A (en) Data base access system and access method thereof
US20190286849A1 (en) Data anonymization
US11455337B2 (en) Preventing biased queries by using a dictionary of cause and effect terms
CN110399309A (en) A kind of test data generating method and device
US20160364388A1 (en) Selective exposure of document tags for search, access, and feed based on user groups
CN108573171A (en) Greenplum data desensitization method, device, equipment and medium
US11386108B2 (en) Mining data transformation flows in spreadsheets
US20230306026A1 (en) Database query performance improvement
KR20230132878A (en) Reduce transaction cancellations in execute-order-verify blockchain models
Deshpande Mastering DynamoDB
US20170220656A1 (en) Information Access System
US20210350015A1 (en) Secure data replication in distributed data storage environments
CN114579585A (en) Block chain selective world state database
US20160070608A1 (en) Sharing a partitioned data set across parallel applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210224

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160713

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Registration method and device for service module of system server

Granted publication date: 20190111

License type: Common License

Record date: 20210531