CN105760192A - 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
CN105760192A
CN105760192A CN201610076539.4A CN201610076539A CN105760192A CN 105760192 A CN105760192 A CN 105760192A CN 201610076539 A CN201610076539 A CN 201610076539A CN 105760192 A CN105760192 A CN 105760192A
Authority
CN
China
Prior art keywords
business module
authority
page
function
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.)
Granted
Application number
CN201610076539.4A
Other languages
Chinese (zh)
Other versions
CN105760192B (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 of system service end business module and device
Technical field
The present invention relates to Computer Applied Technology, in particular to register method and the device of a kind of system service end business module.
Background technology
At present, during new traffic module in each development system service end, usually because the code degree of coupling of application layer and operation layer is higher, cause that developer is except needing in exploitation business module for except realizing the code of corresponding service, also need to corresponding basic function code in exploitation business module, and the code of most basic function is substantially identical in each new traffic module, overlapping development have impact on the work efficiency of developer.
In addition, for business module (such as page module) newly developed, all require over change system code or immediate operand to go to register according to the mode in storehouse every time, on the one hand because needing amendment system code every time, add the possibility to system code amendment by mistake, reduce the privacy of system code;Cause on the other hand repeating and loaded down with trivial details job content, and lack the visualized operation of data.
Summary of the invention
The present invention provides register method and the device of a kind of system service end business module, it is possible to avoids the redundant operation repeated, promotes development efficiency.
Other characteristics of the present invention and advantage will be apparent from by detailed description below, or partially by the practice of the present invention and acquistion.
According to an aspect of the present invention, provide the register method of a kind of system service end business module, including: by visible user interface, receiving the log-on message of business module newly developed, described log-on message includes access path and the authority information of described business module;And the access path according to described business module, register described business module in described system service end, to store the authority information of described business module;Wherein said business module includes the function for realizing corresponding service and basic function, realizing partially or completely through being used in the public class of the functional module of system service end described in the Similar integral defining described business module of described basic function;Described functional module is for defining the basic function that in described system service end, each business module is publicly-owned.
According to an embodiment of the present invention, the public class of described functional module includes: for defining page binding, the load events in rewriting system, file import and export and compress in the class of part or all of function, and/or for defining the class of system cache management;Wherein said cache management includes: the management of the part or all of buffer memory in static dictionary, login user information cache and/or authority module function buffer memory.
According to an embodiment of the present invention, described business module is a page, and described log-on message also includes: the user right information of each control in the described page.
According to an embodiment of the present invention, described user right includes: at least one in personal authority, role-security and post authority;Wherein said personal authority is the authority given for different individualities, and described role-security is the authority given for different role, and described post authority is the authority given for different posies.
According to an embodiment of the present invention, said method also includes: when receiving user to the request of the described page, and the user right according to described user creates for described user and return the described page including the control mated with described user right.
According to a further aspect in the invention, provide the register device of a kind of system service end business module, including: log-on message receives unit, for passing through visible user interface, receiving the log-on message of business module newly developed, described log-on message includes access path and the authority information of described business module;And business module registering unit, for the access path according to described business module, register described business module in described system service end, to store the authority information of described business module;Wherein said business module includes the function for realizing corresponding service and basic function, realizing partially or completely through being used in the public class of the functional module of system service end described in the Similar integral defining described business module of described basic function;Described functional module is for defining the basic function that in described system service end, each business module is publicly-owned.
According to an embodiment of the present invention, the public class of described functional module includes: for defining page binding, the load events in rewriting system, file import and export and compress in the class of part or all of function, and/or for defining the class of system cache management;Wherein said cache management includes: the management of the part or all of buffer memory in static dictionary, login user information cache and/or authority module function buffer memory.
According to an embodiment of the present invention, described business module is a page, and described log-on message also includes: the user right information of each control in the described page.
According to an embodiment of the present invention, described user right includes: at least one in personal authority, role-security and post authority;Wherein said personal authority is the authority given for different individualities, and described role-security is the authority given for different role, and described post authority is the authority given for different posies.
According to an embodiment of the present invention, said apparatus also includes: page request receives unit, for receiving user's request to the described page;And page creation unit, for when described page request receive unit receive described user to the request of the described page time, the user right according to described user, create and return the described page including the control mated with described user right for described user.
The register method of the system according to the present invention service end business module, by the unified visual user's configuration interface provided, business module newly developed is registered on the one hand, to store the authority of business module newly developed, it is to avoid prior art needs every time amendment system service end code to register the problem reducing system code reliability and privacy and repeated and redundant code development that new traffic module is brought;On the other hand for function publicly-owned in each business module, by inheriting the public class of functional module, it is to avoid every time when developing new traffic module, the overlapping development to this publicly-owned function, thus saving the development time, improve development efficiency.
Additionally, according to some embodiments, the register method of the system service end business module of the present invention still further comprises the authority to control each in the page newly developed and registers, so that when the user with different user authority asks this page, it is possible to the page being loaded with the corresponding control mating authority is returned according to the authority of this user.Additionally, the user right in present embodiment can configure flexibly, both can by the independent authority of independent individual imparting, it is also possible to given corresponding authority by a class (or one group) user.
It should be appreciated that above general description and details hereinafter describe and be merely illustrative of, the present invention can not be limited.
Accompanying drawing explanation
Its example embodiment being described in detail by referring to accompanying drawing, above-mentioned and other target of the present invention, feature and advantage will become apparent from.
Fig. 1 is the flow chart of the register method of a kind of system service end business module according to an illustrative embodiments.
Fig. 2 is the flow chart of the register method of the another kind of system service end business module according to an illustrative embodiments.
Fig. 3 is the block diagram of the register device of a kind of system service end business module according to an illustrative embodiments.
Fig. 4 is the block diagram of the register device of the another kind of system service end business module according to an illustrative embodiments.
Detailed description of the invention
It is described more fully with example embodiment referring now to accompanying drawing.But, example embodiment can be implemented in a variety of forms, and is not understood as limited to example set forth herein;On the contrary, it is provided that these embodiments make the present invention will more fully and completely, and the design of example embodiment is conveyed to those skilled in the art all sidedly.Accompanying drawing is only the schematic illustrations of the present invention, is not necessarily drawn to scale.Accompanying drawing labelling identical in figure represents same or similar part, thus will omit repetition thereof.
Additionally, described feature, structure or characteristic can be combined in one or more embodiment in any suitable manner.In the following description, it is provided that many details are thus providing fully understanding embodiments of the present invention.It will be appreciated, however, by one skilled in the art that can put into practice technical scheme and omit in described specific detail is one or more, or other method, constituent element, device, step etc. can be adopted.In other cases, known features, method, device, realization or operation are not shown in detail or describe to avoid that a presumptuous guest usurps the role of the host and to make each aspect of the present invention thicken.
Fig. 1 is the flow chart of the register method of a kind of system service end business module according to an illustrative embodiments.The register method 10 of system service end business module as shown in Figure 1 such as can apply in the system service end of cruising inspection system, but the present invention is not limited.Register method 10 includes:
In step s 102, the log-on message of business module newly developed is received.
Business module newly developed includes the function for realizing corresponding service and the basic function for assisting.For business module for a page, this page is such as realizing the new business that system service end provides.This page not only includes the function realizing this new business itself, also include corresponding basic function, such as record the basic functions such as personal information and organization's information thereof of login user, the process that in system, cache class calls, the load events in page binding and rewriting system.
By the visible user interface developed, for instance a configuration interface, developer adds the log-on message of business module newly developed, to register this business module newly developed in system service end or data base.
This log-on message can include the information such as the title of this business module newly developed, access path and authority.The information such as business module title, access path and authority are configured by developer in above-mentioned configuration interface.
Business module newly developed is registered by this logon mode by the user interface of unitized overall development, developer only needs to configure in the user interface the log-on message of this business module, registered by the mode of change system service end code without in such as prior art, avoid the possibility to system service end code maloperation on the one hand, improve reliability and the privacy of system service end code;It also avoid on the other hand and repeat to write registration code every time, improve development efficiency.
In step S104, the log-on message according to business module newly developed, the business module that this is newly developed is registered in system service end, to store the authority information of business module newly developed.
After receiving the log-on message of business module newly developed of developer's configuration, the access path of this business module by configuring, the authority information etc. in this business module is stored in the data base of system service end.Work as logging in system by user, when asking this business module, the authority of login user is mated with the authority of storage in data base, thus the authority according to user, business module is loaded.
The code of business module newly developed includes the class for defining this business module.Namely when developing a new business module, the class of one new business module of definition, the class of this new business module can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..
Such as in the service end based on ASP.Net Technical Architecture, it is necessary to during a newly created WebForm page, define the class of a sing on web Form technology.Afterwards, for instance can be used for creating the function of this WebForm page by the class declaration one of this sing on web Form technology, thus when performing this function, creating this WebForm page.
As it has been described above, this business module includes the function for realizing corresponding service and the basic function for assisting.Likely publicly-owned for business module each in system service end for the part or all of function in basic function.In order to avoid when exploitation new traffic module every time, overlapping development to these utility functions, a functional module can be developed in this system business end, this functional module is for defining the basic function that in system service end, each business module is publicly-owned, namely defined these basic functions of this functional module are shared by each business module in system service end.
The different basic functions completed in this functional module can be defined as different public classes, and by making the mode of the public class of the Similar integral functional module of business module realize each business module to the multiplexing of respective code in functional module.And for the exclusive basic function of this business module, then need nonetheless remain for when this business module newly developed, individually develop.If this business module does not have exclusive basic function, then can carry out these basic functions of multiplexing all through the mode of the public class inheriting functional module.
The public class of this functional module also can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..
The defined function of the public class of functional module at least includes the basic function of system service end, such as record personal information and organization's information thereof of login user, the process that in system, cache class calls, the utility function such as load events in page binding and rewriting system.These basic functions are publicly-owned by each business module, therefore when each business module newly developed, developer only needs to be absorbed in business module and realizes the exploitation of basic function exclusive in the function of business itself and business module, and for the publicly-owned function of each business module, then can directly inherit this public class, to reach to avoid the purpose of functional module code overlapping development, thus saving the development time, promote development efficiency.
With business module for one based on the page of ASP, Net technological development for example.The public class of functional module can include binding for the page, load events in rewriting system, realize file and import and export and the public class of compression etc., for the ease of explanation, for instance can by this public class called after BasePage.BasePage class can inherit ASP, Page (page) class basic in Net technology, and by rewriting OnPreInit () function and the OnLoad () function of Page apoplexy due to endogenous wind, increase bound control further, import and export file and public method and the association attributes such as compressed file, loading JavaScript script.
The public class of functional module could be included for the personal information of record login user and the public class of organization's information thereof, similarly, for the ease of explanation, for instance can by this public class called after CacheMangage.The definition of CacheManage apoplexy due to endogenous wind, for the cache class in management system, comprises the functions such as static dictionary, login user information cache, authority module function buffer memory in cache class.
After defining above-mentioned public class, when newly developed one based on ASP, during the WebForm page of Net technology, define the class of a sing on web Form technology, this apoplexy due to endogenous wind developer is except developing basic function exclusive in the function and business module realizing business itself, for publicly-owned basic function, then can inherit such as public classes such as BasePage class and CacheManage classes, thus the corresponding function of the public apoplexy due to endogenous wind such as multiplexing BasePage class and CacheManage class.In new page, the function that developer individually develops combines with the function from public Similar integral, and the two uses flexibly in loose coupling mode, saves the development time, promotes development efficiency.
Business module newly developed is registered by register method 10 1 aspect of the system service end business module of present embodiment by the unified visual user's configuration interface provided, to store the authority of business module newly developed, it is to avoid prior art needs every time amendment system service end code to register the problem reducing system code reliability and privacy and repeated and redundant code development that new traffic module is brought;On the other hand for function publicly-owned in each business module, by inheriting the public class of functional module, it is to avoid every time when developing new traffic module, the overlapping development to this publicly-owned function, thus saving the development time, improve development efficiency.
It will be clearly understood that present disclosure describe how to be formed and use particular example, but principles of the invention is not limited to any details of these examples.On the contrary, based on the instruction of present disclosure, these principles can be applied to numerous other embodiments.
Fig. 2 is the flow chart of the register method of the another kind of system service end business module according to an illustrative embodiments.The register method 20 of system service end business module as shown in Figure 2 can be applicable to the registration of a page newly developed, for instance the registration of the page newly developed in the system service end of cruising inspection system, but the present invention is not limited.Register method 20 includes:
In step S202, by a visible user interface, receive the log-on message of the page newly developed.
The page newly developed not only includes the function realizing this new business itself, also include corresponding basic function, such as record the basic functions such as personal information and organization's information thereof of login user, the process that in system, cache class calls, the load events in page binding and rewriting system.
By the visible user interface developed, for instance a configuration interface, developer adds the log-on message of the page newly developed, to register this page in system service end or data base.
This log-on message is except including the title of this page newly developed, access path and authority information, if each control in this page needs through control of authority, such as the user of different rights, the shown control layout in the page is different (such as the user for having the power of examination and approval, there is provided examination & approval OptionButton etc.), then when registering this page, also include registering the authority of each control in this page, thus when the user with different rights asks this page, load the control mated with user right, thus embodying different control of authority functions.
In certain embodiments, user right may include that at least one in personal authority, role-security and post authority.Wherein personal authority refers to that for the authority that different individualities gives, this authority is individually allocated to a certain individual and is had.
Role-security refers to as the authority that different role gives.First define different roles, such as domestic consumer, manager etc., be assigned with different authorities for every kind of role.After defining different role, if after imparting a role for some user, this user then has whole authorities of this role.From the foregoing, role-security is to prepare for having a class user of identical authority, if the authority of certain role needs to change, it is only necessary to change the authority of this role, without the authority changing all users having this role one by one.
When a user has personal authority and role-security simultaneously, the authority of this user is the union of both authorities.The role-security of such as this user has tri-authorities of a, b, c, and its personal authority has tri-authorities of b, c, d, then this user has tetra-authorities of a, b, c, d.
Role-security and personal authority can be only seen the total data of oneself institutional affiliation or its affiliated institutions, but cannot see that sane level or the data across level.In order to solve this problem, the present invention is additionally provided with post authority.
Post authority refers to that for the authority that different posies give, when user is endowed a certain post authority, this user can check all data under its post.Such as, the employee A of subsidiary 1 wishes to the data of certain department of subsidiary 2, it is possible to give the post authority of this department of subsidiary 2 for this employee A, then employee A is it is seen that data under this department.
From the foregoing, the user right in the present embodiment can distribute corresponding authority for user neatly, it both can be the authority given for body one by one, it is also possible to be the authority given for a class (or one group) user.
The page newly developed is registered by this logon mode by the user interface of unitized overall development, developer only needs to configure in the user interface the log-on message of this page, registered by the mode of change system code without in such as prior art, avoid the possibility to system code maloperation on the one hand, improve reliability and the privacy of system code;It also avoid writing of the registration code of repetition every time on the other hand, improve development efficiency.
In step S204, the log-on message according to the page newly developed, this page is registered in system service end, to store the authority information of the page newly developed.
Developer passes through visual user's configuration interface, configures the log-on message of this new page.After receiving the log-on message of these configurations, the access path of new page according to configuration, the authority of new page and the authority information in space that comprises thereof are stored in the data base of system service end.When the authority information of control each in the page newly developed is configured in the feature list of system service end code, it is possible to configure for index with the ID of each control, but the present invention is not limited.
Work as logging in system by user, when asking this new page, the authority of login user is mated with the authority of storage in data base, and the authority according to user, load the control matched in the page with this user right.
The code of this page newly developed includes the class for defining this page.Such as in the service end based on ASP.Net technology, it is necessary to during a newly created WebForm page, define the class of a sing on web Form technology.The class of this sing on web Form technology can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..Afterwards, for instance can be used for creating the function of this WebForm page by the class declaration one of this sing on web Form technology, thus when performing this function, creating this WebForm page.
As it has been described above, this page includes the function for realizing corresponding service and for basic function.Part or all of function in basic function is likely shared by business module each in system service end.In order to avoid when exploitation new traffic module every time, overlapping development to these utility functions, a functional module can be developed in this system business end, this functional module is for realizing the basic function that in system service end, each business module is publicly-owned, namely defined these basic functions of this functional module are shared by each business module in system service end.
The different basic functions completed in this functional module can be defined as different public classes, and by making the mode of the public class of the Similar integral functional module of business module realize each business module to the multiplexing of respective code in functional module.And for the exclusive basic function of this business module, then need nonetheless remain for when this business module newly developed, individually develop.If this business module does not have exclusive basic function, then can carry out these basic functions of multiplexing all through the mode of the public class inheriting functional module.
The public class of this functional module can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..
The defined function of the public class of functional module at least includes the basic function of system service end, such as record personal information and organization's information thereof of login user, the process that in system, cache class calls, the utility function such as load events in page binding and rewriting system.These basic functions are required for each business module, therefore when each business module newly developed, developer only needs to be absorbed in business module and realizes the exploitation of basic function exclusive in the function of business own and business module, and for the publicly-owned function of each business module, then can directly inherit this public class, to reach to avoid the purpose of functional module code overlapping development, thus saving the development time, promote development efficiency.
The public class of functional module can include binding for the page, load events in rewriting system, realize file and import and export and the public class of compression etc., for the ease of explanation, for instance can by this public class called after BasePage.BasePage class can inherit ASP, Page (page) class basic in Net technology, and by rewriting OnPreInit () function and the OnLoad () function of Page apoplexy due to endogenous wind, thus increasing bound control further, importing and exporting file and public method and the association attributes such as compressed file, loading JavaScript script.
The public class of functional module could be included for the personal information of record login user and the public class of organization's information thereof, similarly, for the ease of explanation, for instance can by this public class called after CacheMangage.The definition of CacheManage apoplexy due to endogenous wind, for the cache class in management system, comprises the functions such as static dictionary, login user information cache, authority module function buffer memory in cache class.
After defining above-mentioned public class, when newly developed one based on ASP, during the page of Net technology, as mentioned above, defining the class of a sing on web Form technology, this apoplexy due to endogenous wind developer is except developing basic function exclusive in the function and business module realizing business itself, for publicly-owned basic function, then can inherit such as public classes such as BasePage class and CacheManage classes, thus the corresponding function of the public apoplexy due to endogenous wind such as multiplexing BasePage class and CacheManage class.In new page, the function that developer individually develops combines with the function from public Similar integral, and the two uses flexibly in loose coupling mode, saves the development time, promotes development efficiency.
In step S206, when user asks this page newly developed, the authority according to this user, return this page newly developed for this user, the page of return includes the control mated with user right loaded.
After the page that this is newly developed is registered in system service end, when user asks this page newly developed, for instance the function performed for creating this page can be passed through, create this page, and return this page for user.Wherein this function is declared by the class of this page of above-mentioned new definition.
When returning this page newly developed for user, the user right according to user, return this page newly developed for user.As it has been described above, when registering this page newly developed, including the registration to control authority each in this page, namely store in this page the authority of each control in the data base of system service end.When user asks this page newly developed, the user right according to request user, it is determined that go out the corresponding control in the page to be returned, namely only when the user right of the authority of control Yu this request user matches, just can load this control in the page to be returned.
The register method 20 of the system service end business module of present embodiment still further comprises the authority to control each in the page newly developed and registers, so that when the user with different user authority asks this page, it is possible to the page being loaded with the corresponding control mating authority is returned according to the authority of this user.Additionally, the user right in present embodiment can configure flexibly, both can by the independent authority of independent individual imparting, it is also possible to given corresponding authority by a class (or one group) user.
It will be appreciated by those skilled in the art that all or part of step realizing above-mentioned embodiment is implemented as the computer program performed by CPU.When this computer program is performed by CPU, perform the above-mentioned functions that said method provided by the invention limits.Described program can be stored in a kind of computer-readable recording medium, and this storage medium can be read only memory, disk or CD etc..
Further, it should be noted that above-mentioned accompanying drawing is only schematically illustrating of the process included by the method for exemplary embodiment of the invention, rather than restriction purpose.It can be readily appreciated that above-mentioned process shown in the drawings is not intended that or limits the time sequencing of these process.It addition, be also easy to understand, these process can such as either synchronously or asynchronously perform in multiple modules.
Following for apparatus of the present invention embodiment, it is possible to be used for performing the inventive method embodiment.For the details not disclosed in apparatus of the present invention embodiment, refer to the inventive method embodiment.
Fig. 3 is the block diagram of the register device of a kind of system service end business module according to an illustrative embodiments.The register device 30 of system service end business module as shown in Figure 3 such as can apply in the system service end of cruising inspection system, but the present invention is not limited.Register device 30 includes: log-on message receives unit 302 and business module registering unit 304.
Wherein, log-on message receives unit 302 for by visible user interface, receiving the log-on message of business module newly developed, and described log-on message includes access path and the authority information of described business module.
Business module registering unit 304 is for according to the access path in above-mentioned log-on message, registering business module newly developed in system service end, to store the authority information of described business module.
Wherein said business module includes the function for realizing corresponding service and basic function, realizing partially or completely through being used in the public class of the functional module of system service end described in the Similar integral defining described business module of described basic function;Described functional module is for defining the basic function that in described system service end, each business module is publicly-owned.
The code of business module newly developed includes the class for defining this business module.Namely when developing a new business module, the class of one new business module of definition, the class of this new business module can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..
Such as in the service end based on ASP.Net Technical Architecture, it is necessary to during a newly created WebForm page, define the class of a sing on web Form technology.Afterwards, for instance can be used for creating the function of this WebForm page by the class declaration one of this sing on web Form technology, thus when performing this function, creating this WebForm page.
As it has been described above, this business module includes the function for realizing corresponding service and the basic function for assisting.Likely publicly-owned for business module each in system service end for the part or all of function in basic function.In order to avoid when exploitation new traffic module every time, overlapping development to these utility functions, a functional module can be developed in this system business end, this functional module is for defining the basic function that in system service end, each business module is publicly-owned, namely defined these basic functions of this functional module are shared by each business module in system service end.
The different basic functions completed in this functional module can be defined as different public classes, and by making the mode of the public class of the Similar integral functional module of business module realize each business module to the multiplexing of respective code in functional module.And for the exclusive basic function of this business module, then need nonetheless remain for when this business module newly developed, individually develop.If this business module does not have exclusive basic function, then can carry out these basic functions of multiplexing all through the mode of the public class inheriting functional module.
The public class of this functional module also can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..
The defined function of the public class of functional module at least includes the basic function of system service end, such as record personal information and organization's information thereof of login user, the process that in system, cache class calls, the utility function such as load events in page binding and rewriting system.These basic functions are publicly-owned by each business module, therefore when each business module newly developed, developer only needs to be absorbed in business module and realizes the exploitation of basic function exclusive in the function of business itself and business module, and for the publicly-owned function of each business module, then can directly inherit this public class, to reach to avoid the purpose of functional module code overlapping development, thus saving the development time, promote development efficiency.
With business module for one based on the page of ASP, Net technological development for example.The public class of functional module can include binding for the page, load events in rewriting system, realize file and import and export and the public class of compression etc., for the ease of explanation, for instance can by this public class called after BasePage.BasePage class can inherit ASP, Page (page) class basic in Net technology, and by rewriting OnPreInit () function and the OnLoad () function of Page apoplexy due to endogenous wind, increase bound control further, import and export file and public method and the association attributes such as compressed file, loading JavaScript script.
The public class of functional module could be included for the personal information of record login user and the public class of organization's information thereof, similarly, for the ease of explanation, for instance can by this public class called after CacheMangage.The definition of CacheManage apoplexy due to endogenous wind, for the cache class in management system, comprises the functions such as static dictionary, login user information cache, authority module function buffer memory in cache class.
After defining above-mentioned public class, when newly developed one based on ASP, during the WebForm page of Net technology, define the class of a sing on web Form technology, this apoplexy due to endogenous wind developer is except developing basic function exclusive in the function and business module realizing business itself, for publicly-owned basic function, then can inherit such as public classes such as BasePage class and CacheManage classes, thus the corresponding function of the public apoplexy due to endogenous wind such as multiplexing BasePage class and CacheManage class.In new page, the function that developer individually develops combines with the function from public Similar integral, and the two uses flexibly in loose coupling mode, saves the development time, promotes development efficiency.
Business module newly developed is registered by register device 30 1 aspect of the system service end business module of present embodiment by the unified visual user's configuration interface provided, to store the authority of business module newly developed, it is to avoid prior art needs every time amendment system service end code to register the problem reducing system code reliability and privacy and repeated and redundant code development that new traffic module is brought;On the other hand for function publicly-owned in each business module, by inheriting the public class of functional module, it is to avoid every time when developing new traffic module, the overlapping development to this publicly-owned function, thus saving the development time, improve development efficiency.
Fig. 4 is the block diagram of the register device of the another kind of system service end business module according to an illustrative embodiments.The register device 40 of system service end business module as shown in Figure 4 can be applicable to the registration of a page newly developed, for instance the registration of the page newly developed in the system service end of cruising inspection system, but the present invention is not limited.Register device 40 includes: log-on message receives unit 402, business module registering unit 404, page request reception unit 406 and page creation unit 408.
Log-on message receives unit 402 for by visible user interface, receiving the log-on message of business module newly developed, and described log-on message includes access path and the authority information of described business module.
Business module registering unit 404 is for according to the access path in above-mentioned log-on message, registering business module newly developed in system service end, to store the authority information of described business module.
Wherein said business module includes the function for realizing corresponding service and basic function, realizing partially or completely through being used in the public class of the functional module of system service end described in the Similar integral defining described business module of described basic function;Described functional module is for defining the basic function that in described system service end, each business module is publicly-owned.
Such as in the service end based on ASP.Net technology, it is necessary to during a newly created WebForm page, define the class of a sing on web Form technology.The class of this sing on web Form technology can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..Afterwards, for instance can be used for creating the function of this WebForm page by the class declaration one of this sing on web Form technology, thus when performing this function, creating this WebForm page.
As it has been described above, this page includes the function for realizing corresponding service and for basic function.Part or all of function in basic function is likely shared by business module each in system service end.In order to avoid when exploitation new traffic module every time, overlapping development to these utility functions, a functional module can be developed in this system business end, this functional module is for realizing the basic function that in system service end, each business module is publicly-owned, namely defined these basic functions of this functional module are shared by each business module in system service end.
The different basic functions completed in this functional module can be defined as different public classes, and by making the mode of the public class of the Similar integral functional module of business module realize each business module to the multiplexing of respective code in functional module.And for the exclusive basic function of this business module, then need nonetheless remain for when this business module newly developed, individually develop.If this business module does not have exclusive basic function, then can carry out these basic functions of multiplexing all through the mode of the public class inheriting functional module.
The public class of this functional module can be made up of at least one function, and each function includes: function name, function call information and function realize in part or all of;When there being multiple function, a function realizes can also including calling defined other functions etc..
The defined function of the public class of functional module at least includes the basic function of system service end, such as record personal information and organization's information thereof of login user, the process that in system, cache class calls, the utility function such as load events in page binding and rewriting system.These basic functions are required for each business module, therefore when each business module newly developed, developer only needs to be absorbed in business module and realizes the exploitation of basic function exclusive in the function of business own and business module, and for the publicly-owned function of each business module, then can directly inherit this public class, to reach to avoid the purpose of functional module code overlapping development, thus saving the development time, promote development efficiency.
The public class of functional module can include binding for the page, load events in rewriting system, realize file and import and export and the public class of compression etc., for the ease of explanation, for instance can by this public class called after BasePage.BasePage class can inherit ASP, Page (page) class basic in Net technology, and by rewriting OnPreInit () function and the OnLoad () function of Page apoplexy due to endogenous wind, thus increasing bound control further, importing and exporting file and public method and the association attributes such as compressed file, loading JavaScript script.
The public class of functional module could be included for the personal information of record login user and the public class of organization's information thereof, similarly, for the ease of explanation, for instance can by this public class called after CacheMangage.The definition of CacheManage apoplexy due to endogenous wind, for the cache class in management system, comprises the functions such as static dictionary, login user information cache, authority module function buffer memory in cache class.
After defining above-mentioned public class, when newly developed one based on ASP, during the page of Net technology, as mentioned above, defining the class of a sing on web Form technology, this apoplexy due to endogenous wind developer is except developing basic function exclusive in the function and business module realizing business itself, for publicly-owned basic function, then can inherit such as public classes such as BasePage class and CacheManage classes, thus the corresponding function of the public apoplexy due to endogenous wind such as multiplexing BasePage class and CacheManage class.In new page, the function that developer individually develops combines with the function from public Similar integral, and the two uses flexibly in loose coupling mode, saves the development time, promotes development efficiency.
Page request receives unit 406 for receiving user's request to the above-mentioned page.
Page creation unit 408 for when first page request reception unit 406 receives user to the request of the above-mentioned page, creating and return the above-mentioned page newly developed for user.
In certain embodiments, log-on message also includes: the user right information of each control in the above-mentioned page.User right may include that at least one in personal authority, role-security and post authority.Page creation unit 408 is additionally operable to when first page request reception unit 406 receives user to the request of the above-mentioned page, and the user right according to user creates and return the page of the control including relative users authority for user.
The register device 40 of the system service end business module of present embodiment further comprises the authority to control each in the page newly developed and registers, so that when the user with different user authority asks this page, it is possible to return according to the authority of this user and be loaded with the corresponding page mating authority control.Additionally, the user right in present embodiment can configure flexibly, both can by the independent authority of independent individual imparting, it is also possible to given corresponding authority by a class (or one group) user.
It should be noted that the block diagram shown in above-mentioned accompanying drawing is functional entity, it is not necessary to must be corresponding with physically or logically independent entity.Software form can be adopted to realize these functional entitys, or in one or more hardware modules or integrated circuit, realize these functional entitys, or in heterogeneous networks and/or processor device and/or microcontroller device, realize these functional entitys.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example embodiment described herein can be realized by software, it is also possible to the mode being combined necessary hardware by software is realized.Therefore, technical scheme according to embodiment of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in or network on, including some instructions so that computing equipment (can be personal computer, server, mobile terminal or the network equipment etc.) performs the method according to embodiment of the present invention.
More than it is particularly shown and described the illustrative embodiments of the present invention.It should be appreciated that the invention is not restricted to detailed construction described herein, set-up mode or realize method;On the contrary, it is intended to various amendments and equivalence in containing the spirit and scope being included in claims are arranged.

Claims (10)

1. the register method of a system service end business module, it is characterised in that including:
By visible user interface, receiving the log-on message of business module newly developed, described log-on message includes access path and the authority information of described business module;And
Access path according to described business module, registers described business module in described system service end, to store the authority information of described business module;
Wherein said business module includes the function for realizing corresponding service and basic function, realizing partially or completely through being used in the public class of the functional module of system service end described in the Similar integral defining described business module of described basic function;Described functional module is for defining the basic function that in described system service end, each business module is publicly-owned.
2. method according to claim 1, it is characterized in that, the public class of described functional module includes: for defining page binding, the load events in rewriting system, file import and export and compress in the class of part or all of function, and/or for defining the class of system cache management;Wherein said cache management includes: the management of the part or all of buffer memory in static dictionary, login user information cache and/or authority module function buffer memory.
3. method according to claim 2, it is characterised in that described business module is a page, and described log-on message also includes: the user right information of each control in the described page.
4. method according to claim 3, it is characterised in that described user right includes: at least one in personal authority, role-security and post authority;Wherein said personal authority is the authority given for different individualities, and described role-security is the authority given for different role, and described post authority is the authority given for different posies.
5. the method according to claim 3 or 4, it is characterised in that also include:
When receiving user to the request of the described page, the user right according to described user, create and return the described page of control including mating with described user right for described user.
6. the register device of a system service end business module, it is characterised in that including:
Log-on message receives unit, and for by visible user interface, receiving the log-on message of business module newly developed, described log-on message includes access path and the authority information of described business module;And
Business module registering unit, for the access path according to described business module, registers described business module in described system service end, to store the authority information of described business module;
Wherein said business module includes the function for realizing corresponding service and basic function, realizing partially or completely through being used in the public class of the functional module of system service end described in the Similar integral defining described business module of described basic function;Described functional module is for defining the basic function that in described system service end, each business module is publicly-owned.
7. device according to claim 6, it is characterized in that, the public class of described functional module includes: for defining page binding, the load events in rewriting system, file import and export and compress in the class of part or all of function, and/or for defining the class of system cache management;Wherein said cache management includes: the management of the part or all of buffer memory in static dictionary, login user information cache and/or authority module function buffer memory.
8. device according to claim 7, it is characterised in that described business module is a page, and described log-on message also includes: the user right information of each control in the described page.
9. device according to claim 8, it is characterised in that described user right includes: at least one in personal authority, role-security and post authority;Wherein said personal authority is the authority given for different individualities, and described role-security is the authority given for different role, and described post authority is the authority given for different posies.
10. device according to claim 8 or claim 9, it is characterised in that also include:
Page request receives unit, for receiving user's request to the described page;And
Page creation unit, for when described page request receive unit receive described user to the request of the described page time, the user right according to described user, create and return the described page of control including mating with described user right for described user.
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 true CN105760192A (en) 2016-07-13
CN105760192B 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)

Cited By (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
CN108416199A (en) * 2018-03-07 2018-08-17 北京恒华伟业科技股份有限公司 A kind of user authority control method of application, device 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
CN111552956A (en) * 2020-04-30 2020-08-18 成都新潮传媒集团有限公司 Role authority control method and device for background management
CN112506579A (en) * 2020-12-15 2021-03-16 深圳晶泰科技有限公司 Multi-service multi-environment management method and system
CN112836187A (en) * 2019-11-25 2021-05-25 杭州海康威视系统技术有限公司 Authority management method and device and electronic equipment
WO2021249118A1 (en) * 2020-06-12 2021-12-16 华为技术有限公司 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

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

Cited By (14)

* 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
CN108416199A (en) * 2018-03-07 2018-08-17 北京恒华伟业科技股份有限公司 A kind of user authority control method of application, device 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
CN112836187A (en) * 2019-11-25 2021-05-25 杭州海康威视系统技术有限公司 Authority management method and device and electronic equipment
CN111552956A (en) * 2020-04-30 2020-08-18 成都新潮传媒集团有限公司 Role authority control method and device for background management
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
WO2021249118A1 (en) * 2020-06-12 2021-12-16 华为技术有限公司 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
CN112506579A (en) * 2020-12-15 2021-03-16 深圳晶泰科技有限公司 Multi-service multi-environment management method and system
CN112506579B (en) * 2020-12-15 2024-05-10 深圳晶泰科技有限公司 Multi-service multi-environment management method and system

Also Published As

Publication number Publication date
CN105760192B (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN105760192A (en) Registration method and device for service module of system server
Ravden et al. Evaluating usability of human-computer interfaces: a practical method
Jacobson et al. Software reuse: architecture, process and organization for business success
CN109783581A (en) Right management method, device, electronic equipment and storage medium
CN101833467A (en) Method and equipment for adding menu items into Android menu
CN102135895B (en) System upgrading method and system
CN105488125A (en) Page access method and apparatus
WO2008067309A2 (en) Methods and apparatus for tokenizing workflow process objects
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
US20200142669A1 (en) Controlling storage accesses for merge operations
CN112084446A (en) Webpage editing method, editor, electronic equipment and readable storage medium
CN107678741A (en) Implementation method, device, readable storage medium storing program for executing and the equipment of List View
CN111159040A (en) Test data generation method, device, equipment and storage medium
WO2020094601A1 (en) Saving and restoring machine state between multiple executions of an instruction
CN110502506A (en) A kind of data processing method, device, equipment and storage medium
CN112270003B (en) Multi-service dynamic data source configuration method, platform and electronic equipment
Ahmed-Nacer et al. Model-Driven Simulation of Elastic OCCI Cloud Resources
CN105049210A (en) Method and device for registration of universal account number
CN113360215A (en) Program running method and device and computer readable storage medium
WO2020094603A1 (en) Migration of partially completed instructions
CN105426183A (en) Form verification method
CN114996577A (en) Service management method, device, apparatus, storage medium, and program product
CN111464429B (en) WeChat applet multi-item compatible sharing method, system, storage medium and equipment
CN111857670B (en) Application architecture determining method and device
CN113076086B (en) Metadata management system and method for modeling model object using the same

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