[go: up one dir, main page]

CN101488099A - Method and apparatus for centralized user information management - Google Patents

Method and apparatus for centralized user information management Download PDF

Info

Publication number
CN101488099A
CN101488099A CNA2008100562234A CN200810056223A CN101488099A CN 101488099 A CN101488099 A CN 101488099A CN A2008100562234 A CNA2008100562234 A CN A2008100562234A CN 200810056223 A CN200810056223 A CN 200810056223A CN 101488099 A CN101488099 A CN 101488099A
Authority
CN
China
Prior art keywords
user information
com
application system
information management
user profile
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.)
Pending
Application number
CNA2008100562234A
Other languages
Chinese (zh)
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CNA2008100562234A priority Critical patent/CN101488099A/en
Publication of CN101488099A publication Critical patent/CN101488099A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明涉及用户信息管理领域,尤其涉及多系统用户信息的统一管理技术。一种统一管理用户信息的方法,包括步骤:用于管理用户信息的应用程序获得更改的用户信息并启动用于管理用户信息的事务;事务根据所述更改的用户信息,从操作系统中调用每一个应用系统的COM+组件;每一个应用系统的COM+组件被调用后,分别根据所述更改的用户信息更改对应应用系统的用户信息。本发明还提供了一种统一管理用户信息装置。本发明由于通过COM+组件来实现对各系统用户信息的改变,并通过在同一事务中调用这些COM+组件,利用事务的原子性、一致性的属性,保证了通过COM+组件改变各系统用户信息的一致性,实现了低成本、方便的用户信息统一管理。

The invention relates to the field of user information management, in particular to the unified management technology of multi-system user information. A method for unified management of user information, comprising steps: an application program for managing user information obtains changed user information and starts a transaction for managing user information; the transaction calls each A COM+ component of an application system; after the COM+ component of each application system is invoked, the user information of the corresponding application system is changed according to the changed user information. The invention also provides a device for unified management of user information. The present invention realizes the change of the user information of each system through the COM+ components, and by calling these COM+ components in the same transaction, using the atomicity and consistency attributes of the transaction, it ensures the consistency of changing the user information of each system through the COM+ components It realizes low-cost and convenient unified management of user information.

Description

一种统一管理用户信息的方法及其装置 A method and device for unified management of user information

技术领域 technical field

本发明涉及用户信息管理领域,尤其涉及多应用系统用户信息的统一管理技术。The invention relates to the field of user information management, in particular to a unified management technology of user information in a multi-application system.

背景技术 Background technique

随着信息技术和网络技术的迅猛发展,企业内部的应用系统越来越多。比如在媒体行业,常见的应用系统就有采编应用系统、排版应用系统、印刷应用系统、广告管理应用系统、财务应用系统、办公自动化应用系统、决策支持应用系统、客户关系管理应用系统和网站发布应用系统等。由于这些应用系统互相独立,用户在使用每个应用系统之前都必须按照相应的应用系统身份进行登录,因此用户必须记住每一个应用系统的用户名和密码,这给用户带来了不少麻烦。特别是随着应用系统的增多,出错的可能性就会增加。With the rapid development of information technology and network technology, there are more and more application systems in enterprises. For example, in the media industry, common application systems include editing application systems, typesetting application systems, printing application systems, advertising management application systems, financial application systems, office automation application systems, decision support application systems, customer relationship management application systems and website publishing. application system, etc. Since these application systems are independent of each other, the user must log in according to the corresponding application system identity before using each application system, so the user must remember the user name and password of each application system, which brings a lot of trouble to the user. Especially with the increase of the application system, the possibility of error will increase.

一般来说,每个应用系统都拥有独立的用户信息管理功能,用户信息的格式、命名与存储方式也多种多样。当用户需要使用多个应用系统时就会带来用户信息同步问题。用户信息同步会增加应用系统的复杂性,增加管理的成本。Generally speaking, each application system has an independent user information management function, and the format, naming and storage methods of user information are also various. When a user needs to use multiple application systems, it will bring user information synchronization problems. User information synchronization will increase the complexity of the application system and increase the cost of management.

例如,用户X需要同时使用A应用系统与B应用系统,就必须在A应用系统与B应用系统中都创建用户X,这样在A、B任一应用系统中用户X的信息更改后就必须同步至另一应用系统。如果用户X需要同时使用10个应用应用系统,用户信息在任何一个应用系统中做出更改后就必须同步至其他9个应用系统。在对用户信息进行同步时如果应用系统出现意外,还要保证数据的完整性,因而同步用户信息的程序可能会非常复杂。For example, if user X needs to use application system A and application system B at the same time, user X must be created in application system A and application system B, so that user X’s information must be synchronized after being changed in either application system A or B to another application system. If user X needs to use 10 application systems at the same time, user information must be synchronized to the other 9 application systems after making changes in any application system. If an accident occurs in the application system when synchronizing user information, data integrity must be guaranteed, so the procedure for synchronizing user information may be very complicated.

在现有技术中通过建立统一用户管理系统(UUMS)来同步用户信息。UUMS统一存储所有应用系统的用户信息,应用系统对用户的相关操作全部通过UUMS完成,而授权等操作则由各应用系统完成,即统一存储、分布授权。UUMS应具备以下基本功能:In the prior art, user information is synchronized by establishing a unified user management system (UUMS). UUMS stores user information of all application systems in a unified manner, and all relevant operations of application systems on users are completed through UUMS, while authorization and other operations are completed by each application system, that is, unified storage and distributed authorization. UUMS should have the following basic functions:

1、用户信息规范命名、统一存储,用户ID全局惟一。用户ID犹如身份证,区分和标识了不同的个体。1. User information is named and stored uniformly, and the user ID is globally unique. User ID is like an ID card, distinguishing and identifying different individuals.

2、UUMS向各应用系统提供用户属性列表,如姓名、电话、地址、邮件等属性,各应用系统可以选择本应用系统所需要的部分或全部属性。2. UUMS provides user attribute lists to each application system, such as name, phone number, address, email and other attributes, and each application system can select some or all of the attributes required by the application system.

3、应用系统对用户基本信息的增加、修改、删除和查询等请求由UUMS处理。3. The application system's request for adding, modifying, deleting and querying the user's basic information is processed by UUMS.

4、应用系统保留用户管理功能,如用户分组、用户授权等功能。4. The application system retains user management functions, such as user grouping and user authorization.

UUMS采用SSO(Single Sign-on,单点登录)技术方便用户访问多个应用系统,用户只需在登录时进行一次注册,就可以在多个应用系统间自由穿梭,不必重复输入用户名和密码来确定身份。UUMS adopts SSO (Single Sign-on, single sign-on) technology to facilitate users to access multiple application systems. Users only need to register once when logging in, and they can freely shuttle between multiple application systems without having to repeatedly enter user names and passwords. Identify.

目前业界已有很多产品支持SSO的UUMS,如IBM的WebSphere和BEA的WebLogic。但是这些商业软件的价格比较昂贵,而且对应用系统也有要求,一般都要对要集成的应用系统做些改造,如在要集成的应用系统上安装AGENT软件。At present, many products in the industry support UUMS for SSO, such as IBM's WebSphere and BEA's WebLogic. However, the price of these commercial software is relatively expensive, and there are also requirements for the application system. Generally, some modifications must be made to the application system to be integrated, such as installing AGENT software on the application system to be integrated.

发明内容 Contents of the invention

本发明实施例提供了一种统一管理用户信息的方法,用以实现低成本、方便的统一管理用户信息。The embodiment of the present invention provides a method for unified management of user information, so as to realize low-cost and convenient unified management of user information.

本发明实施例提供了一种统一管理用户信息的装置,用以实现低成本、方便的统一管理用户信息。The embodiment of the present invention provides a device for unified management of user information, which is used to realize low-cost and convenient unified management of user information.

一种统一管理用户信息的方法,包括如下步骤:A method for unified management of user information, comprising the steps of:

用于管理用户信息的应用程序获得更改的用户信息并启动用于管理用户信息的事务;An application for managing user information obtains changed user information and starts a transaction for managing user information;

所述事务根据所述更改的用户信息,从操作系统中调用每一个应用系统用于管理用户信息的COM+组件;According to the changed user information, the transaction calls the COM+ component of each application system for managing user information from the operating system;

每一个应用系统的用户信息管理COM+组件被调用后,分别根据所述更改的用户信息更改对应应用系统的用户信息。After the user information management COM+ component of each application system is invoked, the user information of the corresponding application system is changed according to the changed user information.

一种统一管理用户信息的装置,包括:A device for unified management of user information, including:

更改信息获得模块,用于获得更改的用户信息;Change information acquisition module, used to obtain changed user information;

事务调用组件模块用于启动管理用户信息的事务,所述事务根据所述更改的用户信息,从操作系统中调用每一个应用系统的用户信息管理COM+组件;所述每一个应用系统的用户信息管理COM+组件被调用后,分别根据所述更改的用户信息更改对应应用系统的用户信息。The transaction calling component module is used to start the transaction of managing user information, and the transaction calls the user information management COM+ component of each application system from the operating system according to the changed user information; the user information management of each application system After the COM+ component is invoked, the user information of the corresponding application system is changed respectively according to the changed user information.

本发明实施例由于通过COM+组件来实现对各应用系统用户信息的改变,并通过在同一事务中调用这些COM+组件,利用事务的原子性以及一致性的属性,从而保证了通过调用COM+组件改变各应用系统用户信息的一致性,实现了各应用系统用户信息的统一管理。由于避免了使用昂贵的UUMS,所以降低了用户信息统一管理的成本;而且不用对各应用系统进行改造,从而可以更方便地实现用户信息统一管理。The embodiment of the present invention implements the change of the user information of each application system through the COM+ components, and by calling these COM+ components in the same transaction, using the atomicity and consistency attributes of the transaction, thereby ensuring the change of each application system by calling the COM+ components. The consistency of application system user information realizes the unified management of user information of each application system. Since the use of expensive UUMS is avoided, the cost of unified management of user information is reduced; and there is no need to modify each application system, so that unified management of user information can be realized more conveniently.

附图说明 Description of drawings

图1a至图1c为本发明实施例的多应用系统用户信息数据库示意图;1a to 1c are schematic diagrams of a user information database of a multi-application system according to an embodiment of the present invention;

图2为本发明实施例的一种生成统一管理用户信息应用程序的方法流程图;FIG. 2 is a flow chart of a method for generating an application program for unified management of user information according to an embodiment of the present invention;

图3为本发明实施例的统一管理用户信息的方法流程图;3 is a flowchart of a method for unified management of user information according to an embodiment of the present invention;

图4为本发明实施例的统一管理用户信息的装置结构图。FIG. 4 is a structural diagram of a device for unified management of user information according to an embodiment of the present invention.

具体实施方式 Detailed ways

本发明实施例通过在各个应用系统的COM(Component Object Model,组件对象模型)+组件中实现对各应用系统的用户信息的改变,通过在一事务中调用这些COM+组件,利用事务的原子性以及一致性的属性,从而保证了通过调用COM+组件改变各应用系统用户信息的一致性,实现了各应用系统用户信息的统一管理。The embodiment of the present invention realizes the change to the user information of each application system in the COM (Component Object Model, Component Object Model)+component of each application system, by calling these COM+ components in a transaction, utilizing the atomicity of the transaction and Consistency attributes, thus ensuring the consistency of changing the user information of each application system by calling COM+ components, and realizing the unified management of user information of each application system.

这里先介绍有关COM+组件及事务的概念。微软提出了COM(ComponentObject Model,组件对象模型)概念,作为构建应用程序的另一种方法。一般的讲,一个应用程序是由单个的二进制文件组成。如果需要对应用程序做一些改进,就要修改该应用程序的源代码,然后编译,生成新的文件,取代原来的文件。现在,我们用一种全新的角度来看问题:把原先一整个可执行二进制文件(EXE)文件,分割成功能不同,但相对独立的几个组件,把他们拼装起来,组成程序,组成软件。在该应用程序发布以后,如果需要对应用程序的某个部分进行修改,只要替换有问题的或是需要升级的组件就可以了。甚至还可以做到在不影响程序正常运行的情况下替换其中的组件。Here we first introduce the concepts of COM+ components and affairs. Microsoft proposed the COM (Component Object Model, Component Object Model) concept as another way to build applications. Generally speaking, an application is composed of a single binary file. If you need to make some improvements to the application, you need to modify the source code of the application, and then compile it to generate a new file to replace the original file. Now, we use a new perspective to look at the problem: divide the original entire executable binary file (EXE) file into several relatively independent components with different functions, and assemble them to form a program and software. After the application program is released, if a certain part of the application program needs to be modified, it is only necessary to replace the problematic components or the components that need to be upgraded. It is even possible to replace components in it without affecting the normal operation of the program.

COM是一种说明如何建立可动态互变组件的规范,此规范提供了为保证能够互操作,客户和组件应遵循的一些二进制和网络标准。通过这种标准可以在任意两个组件之间进行通信而不用考虑其所处的操作环境是否相同、使用的开发语言是否一致以及是否运行于同一台计算机。COM is a specification that describes how to build dynamically interchangable components. This specification provides some binary and network standards that clients and components should follow to ensure interoperability. Through this standard, communication can be carried out between any two components regardless of whether their operating environments are the same, whether the development languages used are consistent, and whether they run on the same computer.

COM+并不是COM的简单升级,COM+的底层结构仍然以COM为基础,它几乎包容了COM的所有内容,它把COM组件软件提升到应用层而不再是底层的软件结构,它通过操作系统的各种支持,使组件对象模型建立在应用层上,把所有组件的底层细节留给操作系统,因此,COM+与操作系统的结合更加紧密。COM+ is not a simple upgrade of COM. The underlying structure of COM+ is still based on COM. It contains almost all the content of COM. It promotes the COM component software to the application layer instead of the underlying software structure. All kinds of support enable the component object model to be established on the application layer, leaving the underlying details of all components to the operating system. Therefore, the combination of COM+ and the operating system is closer.

为了完成对数据的操作,经常要求并发访问在多个组件之间共享的数据。在这种情况,可能要求在(分布式)资源上的一组操作被当作一个工作单元(unit)。在一个工作单元中,操作的所有部分一起成功或失败并恢复。通过一组分布式的、访问多个资源的数据的组件实现一个工作单元,该工作单元对(分布式)资源的数据操作要么全部成功,要么全部失败。在工作单元失败的情况下,工作单元要把所有资源的数据状态返回到以前的状态。In order to complete operations on data, concurrent access to data shared among multiple components is often required. In this case, it may be required that a set of operations on a (distributed) resource be treated as a unit of work. In a unit of work, all parts of the operation succeed or fail together and recover. A unit of work is implemented by a set of distributed components that access data from multiple resources, and the data operations of the unit of work on (distributed) resources either all succeed or all fail. In the event of a unit of work failure, the unit of work returns the data state of all resources to the previous state.

一个事务在一个工作单元中维护数据完整性,具有下列属性:A transaction maintains data integrity within a unit of work and has the following properties:

1、原子性(ATOMICITY):一个事务要被完全的无二义性的做完或撤消。在任何操作出现一个错误的情况下,构成事务的所有操作的效果必须被撤消,数据应被恢复到以前的状态。1. ATOMICITY: A transaction must be completed or undone completely without ambiguity. In the event of an error in any operation, the effects of all operations constituting the transaction must be undone, and the data should be restored to its previous state.

2、一致性(CONSISTENCY):一个事务应该保护所有定义在数据上的不变的属性(例如完整性约束)。在完成了一个成功的事务时,数据应处于一致的状态。换句话说,一个事务应该把系统从一个一致状态转换到另一个一致状态。举个例子,在关系数据库的情况下,一个一致的事务将保护定义在数据上的所有完整性约束。2. Consistency (CONSISTENCY): A transaction should protect all invariant attributes defined on the data (such as integrity constraints). After completing a successful transaction, the data should be in a consistent state. In other words, a transaction should transition the system from one consistent state to another. For example, in the case of relational databases, a consistent transaction will protect all integrity constraints defined on the data.

3、隔离性(ISOLATION):在同一个环境中可能有多个事务并发执行,而每个事务都应表现为独立执行。3. Isolation (ISOLATION): There may be multiple transactions executing concurrently in the same environment, and each transaction should appear to be executed independently.

4、持久性(DURABILITY):一个被完成的事务的效果应该是持久的。4. DURABILITY: The effect of a completed transaction should be persistent.

本发明实施例正是利用了事务的上述属性,使得在操作、管理多应用系统用户信息时,保持用户信息的一致性。The embodiment of the present invention utilizes the above-mentioned attributes of transactions to maintain the consistency of user information when operating and managing user information of a multi-application system.

假设用户使用三个应用系统:A、B、C应用系统。在这三个应用系统中,用户信息是一样的。那么,当改变其中一个应用系统中的用户信息的时候,还需要对另外两个应用系统中的用户信息同步改变,如图1a至图1c所示:Assume that the user uses three application systems: A, B, and C application systems. In these three application systems, user information is the same. Then, when changing the user information in one of the application systems, it is also necessary to change the user information in the other two application systems synchronously, as shown in Figure 1a to Figure 1c:

应用系统A中具有用户信息数据库A用以保存应用系统A的用户信息,其中可以包括多个用户的用户信息。比如,John、Tom等用户的用户信息。而这些用户信息还可以包括用户名、密码等。The application system A has a user information database A for storing user information of the application system A, which may include user information of multiple users. For example, user information of users such as John and Tom. The user information may also include user names, passwords, and the like.

同样,在应用系统B中具有用户信息数据库B用以保存应用系统B的用户信息;在应用系统C中具有用户信息数据库C用以保存应用系统C的用户信息。Similarly, there is a user information database B in the application system B to store the user information of the application system B; and a user information database C in the application system C is used to store the user information of the application system C.

下面以同步A、B、C应用系统中的用户信息为例,来描述本发明实施例的技术方案。The technical solutions of the embodiments of the present invention will be described below by taking synchronizing user information in application systems A, B, and C as an example.

本发明实施例提供了一种生成统一管理用户信息应用程序的方法,流程图如图2所示,具体包括如下步骤:The embodiment of the present invention provides a method for generating an application program for unified management of user information, the flow chart of which is shown in Figure 2, specifically including the following steps:

步骤S201:对应每个应用系统定义一个COM+组件,用于管理对应应用系统的用户信息。Step S201: Define a COM+ component corresponding to each application system for managing user information of the corresponding application system.

每个具有用户信息的应用系统,在应用系统的用户信息数据库中保存的用户信息是一致的。对应每个应用系统都定义一个COM+组件——用户信息管理COM+组件。每个定义的COM+组件用以实现对相应应用系统的用户信息进行操作。这些操作可以包括:增加、修改或者删除用户信息。比如,COM+组件可以在对应的应用系统的用户信息数据库中增加用户“Sam”以及“Sam”用户的密码“000”;或者,COM+组件可以将对应的应用系统的用户信息数据库中的用户“John”的密码修改为“333”。由于实现的方法为本领域技术人员所熟知,所以此处不赘述实现每个COM+组件对相应应用系统的用户信息数据库中的用户信息的操作的具体编程方法。For each application system with user information, the user information stored in the user information database of the application system is consistent. Corresponding to each application system, a COM+ component is defined—the user information management COM+ component. Each defined COM+ component is used to operate on the user information of the corresponding application system. These operations may include: adding, modifying or deleting user information. For example, the COM+ component can add the user "Sam" and the password "000" of the user "Sam" in the user information database of the corresponding application system; or, the COM+ component can add the user "John" in the user information database of the corresponding application system. "Password changed to "333". Since the implementation method is well known to those skilled in the art, the specific programming method for realizing the operation of each COM+ component on the user information in the user information database of the corresponding application system will not be repeated here.

在具体实施的时候,本领域技术人员可以有多种技术手段来实现用户信息管理COM+组件对相应应用系统的用户信息的操作。其中,作为较优的一种方法是,可以先定义一个对于所有应用系统的用户信息数据库通用的用户信息管理接口的类。该用户信息管理接口类用以为继承了该用户信息管理接口类的COM+组件提供接收更改的用户信息的接口。可以实现对用户信息数据库中的用户信息的一些基本操作,如增加、修改或者删除用户信息。由于每个定义的COM+组件在继承了该用户信息管理接口类,所以具有了相同的接收更改的用户信息的接口,事务通过这些COM+组件的接口可以统一向COM+组件传入更改的用户信息。COM+组件再根据传入的更改的用户信息对相应的应用系统的用户信息数据库中的用户信息进行更改操作。比如,向这些COM+组件传入字符串型参数的更改的用户信息“增加,用户AA,密码555”。则继承了用户信息管理接口类的COM+组件可以统一根据接口传入的参数进行相应的增加用户的操作。During specific implementation, those skilled in the art may have various technical means to realize the operation of the user information management COM+ component on the user information of the corresponding application system. Among them, as a better method, a class of user information management interface common to user information databases of all application systems can be defined first. The user information management interface class is used to provide an interface for receiving changed user information for COM+ components inheriting the user information management interface class. Some basic operations on user information in the user information database can be realized, such as adding, modifying or deleting user information. Since each defined COM+ component inherits the user information management interface class, it has the same interface for receiving changed user information, and transactions can uniformly transmit changed user information to COM+ components through the interfaces of these COM+ components. The COM+ component then changes the user information in the user information database of the corresponding application system according to the incoming changed user information. For example, the changed user information "increase, user AA, password 555" is passed to these COM+ components as a string parameter. Then the COM+ component that inherits the user information management interface class can uniformly perform the corresponding operation of adding users according to the parameters passed in by the interface.

步骤S202:将所有定义的COM+组件注册到操作应用系统。Step S202: Register all defined COM+ components to the operating application system.

将这些用户信息管理COM+组件注册到操作应用系统后,才能调用这些定义的用户信息管理COM+组件。注册的方法为本领域技术人员所熟知,既可以是通过手动输入命令行注册用户信息管理COM+组件,也可以是通过程序调用脚本的方式来进行注册。After these user information management COM+ components are registered in the operating application system, these defined user information management COM+ components can be called. The method of registration is well known to those skilled in the art, either by manually inputting a command line to register the user information management COM+ component, or by calling a script from a program.

步骤S203:在一事务中调用所有的用户信息管理COM+组件。Step S203: Call all user information management COM+ components in a transaction.

在一个事务中,通过参数调用所有的用户信息管理COM+组件,使得所有的用户信息管理COM+组件对其相应的应用系统的用户信息数据库中的用户信息作同样操作。比如,当需要针对A、B、C应用系统修改其中用户“Tom”的密码信息为“999”,则在事务中统一调用COM+组件,使得A、B、C应用系统相对应的COM+组件都进行修改用户信息的操作。当然,使用户信息管理COM+组件进行修改用户信息的操作是通过向用户信息管理COM+组件传入参数来使得用户信息管理COM+组件可以根据传入的参数来具体决定执行什么操作,以及对哪个用户进行操作,以及具体更改的用户信息为什么。由于向用户信息管理COM+组件传入参数,并调用用户信息管理COM+组件使之完成对相应应用系统的用户信息数据库中的用户信息的操作为本领域技术人员所熟知,所以此处不再赘述。In one transaction, call all user information management COM+ components through parameters, so that all user information management COM+ components perform the same operations on the user information in the user information database of their corresponding application systems. For example, when it is necessary to modify the password information of the user "Tom" to "999" for the application systems A, B, and C, the COM+ components are uniformly called in the transaction, so that the corresponding COM+ components of the application systems A, B, and C are all executed. The operation of modifying user information. Of course, the user information management COM+ component is used to modify the user information by passing parameters to the user information management COM+ component so that the user information management COM+ component can specifically decide what operation to perform and which user to perform according to the incoming parameters. operation, and why the specific changed user information. Passing parameters to the user information management COM+ component and calling the user information management COM+ component to complete the operation of the user information in the user information database of the corresponding application system are well known to those skilled in the art, so details are not repeated here.

由于,前述介绍的事务所具有的原子性以及一致性的属性,如果在执行过程中,有一个用户信息管理COM+组件对其对应应用系统的用户信息数据库中的用户信息操作失败,那么,事务将把所有用户信息管理COM+组件对应应用系统的用户信息数据库中的用户信息恢复为修改前的用户信息。只有在事务对所有用户信息管理COM+组件的修改用户信息数据库中的用户信息的操作都成功的时候,所有应用系统的用户信息数据库中的用户信息才会被更改。这样就保证了在修改用户信息的过程中,所有应用系统的用户信息数据库中的用户信息都一致被修改,它们的修改都同步——要么都修改成功,要么都修改失败。Due to the atomicity and consistency attributes of the transaction described above, if a user information management COM+ component fails to operate on the user information in the user information database of the corresponding application system during execution, the transaction will Restore the user information in the user information database of the application system corresponding to all user information management COM+ components to the user information before modification. Only when the operations of modifying the user information in the user information database of all user information management COM+ components are successful, the user information in the user information database of all application systems will be changed. This ensures that during the process of modifying user information, the user information in the user information databases of all application systems are consistently modified, and their modifications are all synchronized—either the modification is successful or the modification fails.

步骤S204:将上述步骤S201中定义的各COM+组件以及执行上述步骤S202、步骤S203操作的程序封装起来,生成统一管理用户信息应用程序。Step S204: Encapsulate the COM+ components defined in the above step S201 and the programs for performing the operations of the above steps S202 and S203 to generate an application program for unified management of user information.

本发明实施例提供了一种统一管理用户信息的方法,如图3所示,包括如下步骤:The embodiment of the present invention provides a method for unified management of user information, as shown in Figure 3, including the following steps:

步骤S301:获得更改的用户信息。Step S301: Obtain changed user information.

当用户需要更改应用系统的用户信息时,比如,需要将A、B、C应用系统中的用户“Tom”的密码信息更改为“999”,统一管理用户信息应用程序需要获得的更改的用户信息包括:更改操作为修改用户密码,更改的用户为“Tom”,更改的密码为“999”。When the user needs to change the user information of the application system, for example, the password information of the user "Tom" in the application systems A, B, and C needs to be changed to "999", and the changed user information that the application program needs to obtain for unified management of user information Including: the change operation is to modify the user password, the changed user is "Tom", and the changed password is "999".

步骤S302:启动用于管理用户信息的事务,该事务根据更改的用户信息统一调用对应每个应用系统定义的用户信息管理COM+组件。Step S302: Start a transaction for managing user information, and the transaction uniformly calls the user information management COM+ component defined corresponding to each application system according to the changed user information.

统一管理用户信息应用程序启动用于管理用户信息的事务,该事务根据所述更改的用户信息统一调用对应每个具有用户信息的应用系统定义的用户信息管理COM+组件。如前述步骤S201所述,对应每个具有用户信息的应用系统都定义了一个COM+组件——用户信息管理COM+组件,每个COM+组件用以根据所述更改的用户信息对相应应用系统的用户信息进行更改。由于用户信息管理COM+组件实现了对相应应用系统的用户信息的操作,这些操作包括:增加、删除或者修改用户信息,所以用户信息管理COM+组件可以根据获得的更改的用户信息作出相应的操作。比如,获得的更改的用户信息包括:更改操作为修改用户密码,更改的用户为“Tom”,更改的密码为“999”,则每个用户信息管理COM+组件执行对相应应用系统的用户信息的修改操作,并具体的将“Tom”用户的密码修改为“999”。The unified management user information application program starts a transaction for managing user information, and the transaction uniformly calls the user information management COM+ component defined corresponding to each application system with user information according to the changed user information. As described in the aforementioned step S201, a COM+ component—the user information management COM+ component is defined corresponding to each application system with user information, and each COM+ component is used to update the user information of the corresponding application system according to the changed user information Make changes. Because the user information management COM+ component realizes the operation on the user information of the corresponding application system, these operations include: adding, deleting or modifying user information, so the user information management COM+ component can make corresponding operations according to the obtained changed user information. For example, the changed user information obtained includes: the change operation is to modify the user password, the changed user is "Tom", and the changed password is "999", then each user information management COM+ component executes the user information of the corresponding application system Modify the operation, and specifically change the password of the "Tom" user to "999".

或者获得的更改的用户信息为:增加新用户“Sam”,“Sam”的密码为“000”,则每个用户信息管理COM+组件执行对相应应用系统的用户信息的增加用户操作,并具体的增加用户“Sam”及其密码“000”。Or the changed user information obtained is: add a new user "Sam", and the password of "Sam" is "000", then each user information management COM+ component performs the user operation of adding user information to the corresponding application system, and specifically Add user "Sam" and its password "000".

具体的,实现用户信息管理COM+组件根据获得的更改的用户信息对相应应用系统的用户信息作出相应的更改操作,可以采用一个较优的方法。先定义一个对于所有应用系统的用户信息数据库通用的用户信息管理接口的类。该用户信息管理接口类用以为继承了该用户信息管理接口类的COM+组件提供接收更改的用户信息的接口。可以实现对用户信息数据库中的用户信息的一些基本操作,如增加、修改或者删除用户信息。由于每个定义的COM+组件继承了该用户信息管理接口类,所以具有了相同的接收更改的用户信息的接口,事务通过这些COM+组件的接口可以统一向COM+组件传入更改的用户信息。COM+组件再根据传入的更改的用户信息对相应的应用系统的用户信息数据库中的用户信息进行更改操作。Specifically, a better method may be used to implement the user information management COM+ component to perform corresponding modification operations on the user information of the corresponding application system according to the obtained modified user information. First define a class of user information management interface common to user information databases of all application systems. The user information management interface class is used to provide an interface for receiving changed user information for COM+ components inheriting the user information management interface class. Some basic operations on user information in the user information database can be realized, such as adding, modifying or deleting user information. Since each defined COM+ component inherits the user information management interface class, it has the same interface for receiving changed user information, and transactions can uniformly transmit changed user information to COM+ components through the interfaces of these COM+ components. The COM+ component then changes the user information in the user information database of the corresponding application system according to the incoming changed user information.

由于在统一调用过程中,事务具有的原子性以及一致性的属性,所以所有用户信息管理COM+组件的操作要么全部成功,要么全部失败,保证了用户信息的更改的一致性。Due to the atomicity and consistency properties of transactions in the unified calling process, all operations of user information management COM+ components either all succeed or all fail, which ensures the consistency of user information changes.

在调用用户信息管理COM+组件前,这些COM+组件需要预先被注册到操作系统中。注册的方法既可以是通过手动输入命令行注册用户信息管理COM+组件,也可以是通过程序调用脚本的方式来进行注册。Before calling the user information management COM+ components, these COM+ components need to be pre-registered in the operating system. The method of registration can be either by manually entering the command line to register the user information management COM+ component, or by calling the script through the program.

如图4所示,本发明实施例还提供一种统一管理用户信息的装置,包括:更改信息获得模块401、事务调用组件模块403。As shown in FIG. 4 , the embodiment of the present invention also provides a device for unified management of user information, including: a modification information obtaining module 401 and a transaction calling component module 403 .

更改信息获得模块401,用于获得更改的用户信息。The modification information obtaining module 401 is configured to obtain modified user information.

事务调用组件模块403,用于启动事务,在一个事务中根据所述更改的用户信息统一调用对应每个具有用户信息的应用系统定义的用户信息管理COM+组件。The transaction calling component module 403 is used to start a transaction, and uniformly call the user information management COM+ component corresponding to each application system with user information according to the changed user information in a transaction.

对应每个具有用户信息的应用系统都定义了一个用户信息管理COM+组件,该COM+组件用以实现根据所述更改的用户信息对相应应用系统的用户信息进行更改。由于用户信息管理COM+组件实现了对相应应用系统的用户信息进行操作,包括:增加、删除或者修改用户信息的操作,所以用户信息管理COM+组件可以根据获得的更改的用户信息作出相应的操作。Corresponding to each application system having user information, a user information management COM+ component is defined, and the COM+ component is used to change the user information of the corresponding application system according to the changed user information. Since the user information management COM+ component realizes the operation on the user information of the corresponding application system, including: adding, deleting or modifying user information, the user information management COM+ component can make corresponding operations according to the obtained changed user information.

具体的,实现用户信息管理COM+组件根据获得的更改的用户信息对相应应用系统的用户信息作出相应的更改操作,可以采用一个较优的方法。先定义一个对于所有应用系统的用户信息数据库通用的用户信息管理接口的类。该用户信息管理接口类用以提供对所述应用系统的用户信息操作的接口。每个定义的COM+组件在继承了该用户信息管理接口类后,通过继承的用户信息管理接口类再对相应的应用系统的用户信息数据库中的用户信息进行操作。这样,通过这个用户信息管理接口类可以方便的统一调用每个用户信息管理COM+组件。Specifically, a better method may be used to implement the user information management COM+ component to perform corresponding modification operations on the user information of the corresponding application system according to the obtained modified user information. First define a class of user information management interface common to user information databases of all application systems. The user information management interface class is used to provide an interface for user information operations of the application system. After each defined COM+ component inherits the user information management interface class, it operates on the user information in the user information database of the corresponding application system through the inherited user information management interface class. In this way, each user information management COM+ component can be conveniently and uniformly called through this user information management interface class.

在事务调用组件模块403中,包括:In the transaction calling component module 403, including:

用于从操作系统中调用每一个应用系统用于管理用户信息的COM+组件的单元。A unit for calling COM+ components used by each application system to manage user information from the operating system.

进一步,还包括:Further, it also includes:

用于当至少一个用户信息管理COM+组件更改对应应用系统的用户信息的失败时,控制所有用户信息管理COM+组件将对应应用系统的用户信息恢复为更改前用户信息的单元。A unit for controlling all user information management COM+ components to restore the user information of the corresponding application system to the user information before modification when at least one user information management COM+ component fails to change the user information of the corresponding application system.

由于在统一调用过程中,事务具有原子性以及一致性的属性,所以所有用户信息管理COM+组件的操作要么全部成功,要么全部失败,保证了用户信息的更改的一致性。Due to the atomicity and consistency of transactions in the unified calling process, the operations of all user information management COM+ components either all succeed or all fail, which ensures the consistency of user information changes.

由于上述的COM+组件在被调用以前,需要被注册到操作应用系统中,注册的方法,既可以是通过手动输入命令行的方法来进行注册,也可以通过程序调用脚本的方法来进行注册。Since the above-mentioned COM+ components need to be registered in the operating application system before being called, the registration method can be registered by manually inputting a command line, or by calling a script from a program.

那么进一步,该统一管理用户信息的装置还可以包括:Then further, the device for unified management of user information may also include:

组件注册模块402,用于通过程序调用脚本将用户信息管理COM+组件注册到操作应用系统中。在事务调用组件模块403调用各用户信息管理COM+组件之前,这些COM+组件需要被注册到操作应用系统中。各用户信息管理COM+组件被注册到操作应用系统后,事务调用组件模块403在调用这些COM+组件之前就不用每次都进行注册了。The component registration module 402 is used for registering the user information management COM+ component in the operation application system by calling the script through the program. Before the transaction calling component module 403 calls various user information management COM+ components, these COM+ components need to be registered in the operating application system. After each user information management COM+ component is registered in the operating application system, the transaction calling component module 403 does not need to register each time before calling these COM+ components.

本发明实施例由于通过COM+组件来实现对各应用系统用户信息的改变,并通过在一事务中调用这些COM+组件,利用事务的原子性以及一致性的属性,从而保证了通过调用COM+组件改变各应用系统用户信息的一致性,实现了各应用系统用户信息的统一管理。由于相对于现有技术的用户信息统一管理的方法,本发明实施例避免了使用昂贵的UUMS,所以降低了用户信息统一管理的成本;并且本发明实施例的技术方案不用对各应用系统进行改造,从而可以更方便地实现用户信息统一管理。The embodiment of the present invention implements the change of the user information of each application system through the COM+ components, and by calling these COM+ components in a transaction, the atomicity and consistency properties of the transaction are used to ensure that the changes of each application system are made by calling the COM+ components. The consistency of application system user information realizes the unified management of user information of each application system. Compared with the method of unified management of user information in the prior art, the embodiment of the present invention avoids the use of expensive UUMS, thus reducing the cost of unified management of user information; and the technical solution of the embodiment of the present invention does not need to modify each application system , so that the unified management of user information can be realized more conveniently.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读取存储介质中,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as: ROM/RAM, Diskettes, CDs, etc.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be It is regarded as the protection scope of the present invention.

Claims (10)

1, a kind of method of unified management user profile is characterized in that, comprises the steps:
The application program that is used for managing user information obtains the user profile of change and starts the affairs that are used for managing user information;
Described affairs are called the COM+ assembly that each application system is used for managing user information according to the user profile of described change from operating system;
After the subscriber information management COM+ assembly of each application system is called, change the user profile of corresponding application system respectively according to the user profile of described change.
2, the method for claim 1, it is characterized in that, the subscriber information management interface class of the subscriber information management COM+ assembly of described each application system is identical, and described subscriber information management interface class is used to subscriber information management COM+ assembly that the interface of the user profile that receives described change is provided.
3, method as claimed in claim 1 or 2 is characterized in that, the subscriber information management COM+ assembly of described each application system is registered in the described operating system by input command is capable.
4, method as claimed in claim 1 or 2 is characterized in that, the subscriber information management COM+ assembly of described each application system is that the mode by the routine call script is registered in the described operating system.
5, as the arbitrary described method of claim 1-4, it is characterized in that, also comprise: if there is at least one subscriber information management COM+ assembly to change the user profile failure of corresponding application system, then described affairs are controlled all subscriber information management COM+ assemblies the user profile of corresponding application system are reverted to user profile before the change.
6, a kind of device of unified management user profile is characterized in that, comprising:
Changed information obtains module, is used to the user profile that obtains to change;
Affairs invocation component module is used to start the affairs of managing user information, and described affairs are called the subscriber information management COM+ assembly of each application system according to the user profile of described change from operating system; After the subscriber information management COM+ assembly of described each application system is called, change the user profile of corresponding application system respectively according to the user profile of described change.
7, device as claimed in claim 6, it is characterized in that, the subscriber information management interface class of described each subscriber information management COM+ assembly is identical, and described unified subscriber information management interface class is used to each subscriber information management COM+ assembly that the unified interface of the user profile that receives described change is provided.
8, as claim 6 or 7 described devices, it is characterized in that, also comprise:
The component register module is used for each subscriber information management COM+ assembly is registered to the operational applications system respectively.
As claim 6 or 7 described devices, it is characterized in that 9, described affairs invocation component module comprises:
Be used for calling the unit that each application system is used for the COM+ assembly of managing user information from operating system.
10, device as claimed in claim 9 is characterized in that, described affairs invocation component module also comprises:
Be used for when at least one subscriber information management COM+ assembly is changed the failure of user profile of corresponding application system, control the unit that all subscriber information management COM+ assemblies revert to the user profile of corresponding application system user profile before the change.
CNA2008100562234A 2008-01-15 2008-01-15 Method and apparatus for centralized user information management Pending CN101488099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100562234A CN101488099A (en) 2008-01-15 2008-01-15 Method and apparatus for centralized user information management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100562234A CN101488099A (en) 2008-01-15 2008-01-15 Method and apparatus for centralized user information management

Publications (1)

Publication Number Publication Date
CN101488099A true CN101488099A (en) 2009-07-22

Family

ID=40891001

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100562234A Pending CN101488099A (en) 2008-01-15 2008-01-15 Method and apparatus for centralized user information management

Country Status (1)

Country Link
CN (1) CN101488099A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880380A (en) * 2011-06-20 2013-01-16 株式会社理光 Information processing apparatus, information management method and computer readable information recording medium
CN103023875A (en) * 2012-11-21 2013-04-03 北京荣之联科技股份有限公司 Account management system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880380A (en) * 2011-06-20 2013-01-16 株式会社理光 Information processing apparatus, information management method and computer readable information recording medium
CN102880380B (en) * 2011-06-20 2016-05-04 株式会社理光 Information processor and approaches to IM
CN103023875A (en) * 2012-11-21 2013-04-03 北京荣之联科技股份有限公司 Account management system and method
CN103023875B (en) * 2012-11-21 2015-09-02 北京荣之联科技股份有限公司 A kind of account management system and method

Similar Documents

Publication Publication Date Title
US10324742B2 (en) Instantiation of JavaScript object
US10324690B2 (en) Automated enterprise software development
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US10142180B2 (en) Method and system for providing unified configuration information to disparate system software components
CN102576354B (en) Support that difference disposes the extensible framework of framework
RU2604431C2 (en) Automated transformation of user interface object and code generation
US20180295194A1 (en) Techniques for supporting remote micro-services as native functions in spreadsheet applications
US8302092B2 (en) Extensible data driven deployment system
US20150212812A1 (en) Declarative and pluggable business logic for systems management
US9459859B2 (en) Template derivation for configuration object management
CN104517181B (en) Enterprise content management system and method for nuclear power station
US11595299B2 (en) System and method of suppressing inbound payload to an integration flow of an orchestration based application integration
US20150220327A1 (en) Extensible data model and service for infrastructure management
US9141442B1 (en) Automated connector creation for provisioning systems
US20170351506A1 (en) Automating feature graduation
US20080163266A1 (en) Mechanism for transparently interfacing with a third party version control system
US9626251B2 (en) Undo configuration transactional compensation
CN101488099A (en) Method and apparatus for centralized user information management
US8381278B2 (en) Method and apparatus for establishing security inflow contracts
Srinivasmurthy et al. Web2exchange: A model-based service transformation and integration environment
CN114816579B (en) SaaS chemical industrial APP access method based on industrial Internet platform
CN118193499A (en) Device, method and system for heterogeneous database full migration
CN116450103A (en) Interface registration and execution method, device and management system
CN111966512A (en) Webservice universal method and device for accessing database, computer equipment and storage medium
Crane Alyssa Hargraves

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090722