CN102999329A - Active directory interface developing method based on extensive markup language mapping configuration - Google Patents

Active directory interface developing method based on extensive markup language mapping configuration Download PDF

Info

Publication number
CN102999329A
CN102999329A CN2012104358115A CN201210435811A CN102999329A CN 102999329 A CN102999329 A CN 102999329A CN 2012104358115 A CN2012104358115 A CN 2012104358115A CN 201210435811 A CN201210435811 A CN 201210435811A CN 102999329 A CN102999329 A CN 102999329A
Authority
CN
China
Prior art keywords
interface
markup language
parameter
active directory
extend markup
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
CN2012104358115A
Other languages
Chinese (zh)
Other versions
CN102999329B (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.)
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd Hangzhou Branch
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd Hangzhou Branch
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 Zhejiang Geely Holding Group Co Ltd, Zhejiang Geely Automobile Research Institute Co Ltd, Zhejiang Geely Automobile Research Institute Co Ltd Hangzhou Branch filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN201210435811.5A priority Critical patent/CN102999329B/en
Publication of CN102999329A publication Critical patent/CN102999329A/en
Application granted granted Critical
Publication of CN102999329B publication Critical patent/CN102999329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to an interface developing method which is applied to reading data from an active directory of a second system (Microsoft system) by a first system (non-Microsoft system). The interface developing method comprises the following steps of: defining a calling function and a plurality of mapping parameters, which are used for defining the active directory, in an extensive markup language (XML) mapping setting file; reading the extensive markup language mapping setting file by the first system and dynamically generating extensive markup language data; carrying out data analysis according to the extensive markup language mapping setting file and the extensive markup language data to dynamically generate interface parameters of system directory services of the active directory; executing interface calling on a system directory service class library according to the interface parameters and returning back result set data of the active directory; and reading the result set data by the first system and analyzing the returned result set data according to the extensive markup language mapping setting file. The interface developing method disclosed by the invention can realize uniform interface manner and standard between systems.

Description

Active Directory interface exploitation method based on extend markup language mapping configuration
Technical field
The present invention relates to Active Directory (Active Directory) interface exploitation method, the Active Directory interface exploitation method that particularly mapping is disposed based on extend markup language (Extensible Makeup Language, XML).
Background technology
Along with informatization is just being stepped into comprehensive infiltration, accelerated new stage of transition, good application, particularly along with big-and-middle-sized IT application in enterprises constantly advances, be faced with the infosystem of more and more isomeries.Therefore, for the integrated of cross-system (cross-system) and cross-platform (cross-platform) and integration, be important and application core.Because at present enterprise or its operating system of personal user (Operation System) overwhelming majority are based on window (Windows) platform of Microsoft (Microsoft) and manage via the net territory of Microsoft's server (Windows Server), and in Active Directory, safeguard and inquiring user, group, computing machine, net territory control station, mail, enactment document, organization unit, tree system waits operation.
For centered by Active Directory, setting up enterprise's unified directory service, realization is concentrated and unified storage, access and control resource information, being that EIP is realized centralization, integrated and standardized important leverage, is key foundation for setting up complete unified user authentication center and unified rights management and control particularly.
Integrated between the Active Directory of non-microsoft system and microsoft system, because platform and technological disparity between each system, all need to carry out specific interface (Interface) exploitation, along with the continuous increase of integrated demand between system, adopt this mode Integrated Development, not only can greatly increase complexity and error rate between system, efficient is lower, and maintainability, extensibility, dirigibility are relatively poor, and coupling is stronger, thereby causes higher Integrated Development and maintenance cost.
Summary of the invention
The invention provides a kind of interface exploitation method, be applied to the interior data of Active Directory that the first system (non-microsoft system) reads second system (microsoft system).
The present invention proposes a kind of interface exploitation method, includes the following step: call function and a plurality of mapping parameters of definition of activities catalogue in extend markup language mapping enactment document; The first system reads extend markup language mapping enactment document and dynamically generates extensible markup; Carry out Data Analysis according to extend markup language mapping enactment document and extensible markup, with the interface parameters of system directory service (System.DirectoryServices) class library of the corresponding Active Directory of dynamic generation; Carry out interface interchange at system directory service (System.DirectoryServices) class library according to interface parameters, and return the result set data of Active Directory; And the first system reading result collection data, and resolve result set data after returning according to extend markup language mapping enactment document.
In sum, the present invention proposes a kind of Active Directory Integration Technology scheme, by extend markup language mapping configuration and system directory service (System.DirectoryServices) class libraries other non-microsoft system of Dynamic Establishing of the .Net of Microsoft platform and the interface of Active Directory, in case demand or Active Directory interface parameters change, interface need not to change any program code, namely without the program code dependence, only need the corresponding extend markup language mapping of change enactment document parameter to get final product, the interface interchange of other non-microsoft system and Active Directory only depends on extend markup language mapping enactment document, realized relying on the inversion function, so just can realize becoming with need, and be conducive to realize interface mode unified between each system and standard, by loosely-coupled mode, can seamlessly be integrated into ESB (Enterprise Service Bus, ESB) in or in network (Web) service or in the Windows service, can effectively reduce system integration complicacy and error rate, greatly improved the maintainability of the system integration, extensibility, robustness, stability, testability, reusing, dirigibility and versatility are the data queries of other non-microsoft system of a kind of efficient solution and Active Directory and write mutual and Integrated Development scheme.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above and other purpose of the present invention, feature and advantage can be become apparent, below especially exemplified by preferred embodiment, and the cooperation accompanying drawing, be described in detail as follows.
Description of drawings
Fig. 1 is the flow chart of steps according to a kind of Active Directory interface exploitation method that mapping is disposed based on extend markup language of one embodiment of the invention.
Embodiment
Reach technological means and the effect that predetermined goal of the invention is taked for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, its embodiment of Active Directory interface exploitation method, structure, feature and effect based on extend markup language mapping configuration to foundation the present invention proposes are described in detail as follows.
Relevant aforementioned and other technology contents of the present invention, Characteristic can clearly present in describing in detail with reference to graphic preferred embodiment in following the cooperation.By the explanation of embodiment, when can being to reach technological means and the effect that predetermined purpose takes to be able to more deeply and concrete understanding to the present invention, yet appended graphic only provide with reference to the usefulness of explanation, the present invention is limited.
Fig. 1 is a kind of based on extend markup language (ExtensibleMakeup Language according to one embodiment of the invention, XML) flow chart of steps of Active Directory (Active Directory) the interface exploitation method of mapping configuration, wherein this interface exploitation method (for example is applied to the first system, non-microsoft system) reads data in the Active Directory of second system (for example, microsoft system).Please refer to Fig. 1, this interface exploitation method comprises the following steps: at first, shown in step 102, shines upon call function and a plurality of mapping parameters of definition of activities catalogue in the enactment document at extend markup language (XML).For instance, set up the corresponding input and output parameter identical with the entity object structure of Active Directory via parameter name; Wherein, parameter name value must be consistent with Active Directory entity object attribute, otherwise can't successfully call in interface.Via importing the give a definition input mapping parameters of interface of (Import) node.Via the give a definition output mapping parameters of interface of table (Table) node.Output parameter type via the parametric t ype value defining interface in table (Table) node; Wherein, if parametric t ype value is input, represent that then non-microsoft system imports corresponding data in Active Directory, if parametric t ype value is output, then represent from Active Directory, to return corresponding data to non-microsoft system.Moreover, via the calling station of parameter p osition definition list (Table) parameter sets in table (Table) node at interface.Type via parametric t ype value definition list (Table) parameter sets in parameter (parameters) node under table (Table) node; Wherein, if parametric t ype value is user, then expression table (Table) parameter sets is the user subject object structure type of Active Directory, if parametric t ype value is organizationalUnit, then expression table (Table) parameter sets is organization unit's entity object structure type of Active Directory, if parametric t ype value is group, then expression table (Table) parameter sets is the group object object structure type of Active Directory.By aforementioned definition to extend markup language mapping enactment document, can realize that extend markup language mapping configuration parameter is fully corresponding to the entity object actual attribute parameter of Active Directory.
Moreover, can be according to the practical business demand, the applicating category of the call function of Active Directory is set via the value of the parametric t ype of interface first trip; Wherein, if parametric t ype value is query, represent that then interface is the inquiry application class, if parametric t ype value is insert, represents that then interface is for writing application class.Set up and parameter name one-one relationship via parameter m apname.Because parameter m apname and parameter name set up one to one relation, parameter m apname value can define arbitrarily according to actual needs, but not microsoft system only needs to set up corresponding and do not need to set up with parameter name and concern one to one one by one with parameter m apname, non-microsoft system and interface mutual or to call be to carry out indirect association by parameter m apname namely, so just greatly reduce the degree of coupling, improved dirigibility.
Moreover, via the value of parameter isenabled current parameter line is set and whether enables; Wherein, if the value of parameter isenabled is false, then parameter line will not called by interface and non-microsoft system.So, will be conducive to improve original interface compatibility and reusability.
Moreover, the type of the entity object attribute of current active catalogue is set via the value of parameter d atatype.Wherein, if the value of parameter d atatype is string, then the entity object attribute of current active catalogue is character types; If the value of parameter d atatype is object[], then the object properties of current active bibliographical entity are the object array type; If the value of parameter d atatype is byte[], then the entity object attribute of current active catalogue is byte arrays; If the value of parameter d atatype is guid, then the entity object attribute of current active catalogue is global only identification number; If the value of parameter d atatype is time, then the entity object attribute of current active catalogue is the time type; If the value of parameter d atatype is string, the regular arithmetic expression of the data filtering of entity object that can be by supporting the use parameter regexpattern value definition current active catalogue, the regular arithmetic expression that the data of the entity object of parameter removeregexpattern value definition current active catalogue remove, and the separator symbol after the entity object data-switching of parameter s pacestring value definition current active catalogue.Moreover, the old character of replacing via the need of the entity object of parameter replaceold value definition current active catalogue.The fresh character of replacing via the need of the entity object of parameter replacenew value definition current active catalogue.Whether via the value of parameter isparent current active bibliographical entity object is set is father's Active Directory entity object; Wherein, if the value of parameter isparent is false, then represent the current active bibliographical entity to as if it oneself, otherwise be expressed as the last layer Active Directory entity object of current active bibliographical entity object.Therefore,, respective rule arithmetic expression parameter can carry out filtration and the conversion of Active Directory entity object data by being set, can be convenient satisfy different system or professional to the different requirements of data form, import and derive such as the batch of the entity object that can realize the Active Directory between the different network domains and use etc.
Then, shown in step 104, non-microsoft system reads extend markup language mapping enactment document and dynamically generates extensible markup by network (Web) service or ESB.Wherein, this dynamically generates the extensible markup importing (Import) corresponding with interface and shows (Table) node data related, and this dynamically generates the mapname of the call function of the corresponding respective activity catalogue with extend markup language mapping enactment document of the first data line name in extensible markup, and is transferred to interface by extend markup language stream (XML Stream) form.
Then, shown in step 106, interface carries out Data Analysis according to extend markup language mapping enactment document with by the extensible markup of non-microsoft system data transmission, dynamically generates interface parameters and the data of correspondence system directory service (System.DirectoryServices) class libraries call format.
Then, shown in step 108, interface is carried out interface interchange at system directory service (System.DirectoryServices) class library according to interface parameters and data, and returns the result set data of Active Directory.
Then, shown in step 110, non-microsoft system reads extend markup language mapping enactment document by network (Web) service or ESB, and then resolve result set data after returning according to extend markup language mapping enactment document, and carry out the service-oriented application integration according to the different demands of reality.
In sum, the present invention proposes a kind of Active Directory Integration Technology scheme, by extend markup language mapping configuration and system directory service (System.DirectoryServices) class libraries other non-microsoft system of Dynamic Establishing of the .Net of Microsoft platform and the interface of Active Directory, in case demand or Active Directory interface parameters change, interface need not to change any program code, namely without the program code dependence, only need the corresponding extend markup language mapping of change enactment document parameter to get final product, the interface interchange of other non-microsoft system and Active Directory only depends on extend markup language mapping enactment document, realized relying on the inversion function, so just can realize becoming with need, and be conducive to realize interface mode unified between each system and standard, by loosely-coupled mode, can seamlessly be integrated into ESB (Enterprise Service Bus, ESB) in or in network (Web) service or in the Windows service, can effectively reduce system integration complicacy and error rate, greatly improved the maintainability of the system integration, extensibility, robustness, stability, testability, reusing, dirigibility and versatility are the data queries of other non-microsoft system of a kind of efficient solution and Active Directory and write mutual and Integrated Development scheme.
The above, it only is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet be not to limit the present invention, any those skilled in the art, within not breaking away from the technical solution of the present invention scope, when the technology contents that can utilize above-mentioned announcement is made a little change or is modified to the equivalent embodiment of equivalent variations, in every case be not break away from the technical solution of the present invention content, any simple modification that foundation technical spirit of the present invention is done above embodiment, equivalent variations and modification all still belong in the scope of technical solution of the present invention.

Claims (10)

1. an interface exploitation method is applied to the interior data of an Active Directory that a first system reads a second system, and it is characterized in that: described interface exploitation method comprises:
Call function and a plurality of mapping parameters of this Active Directory of definition in extend markup language mapping enactment document;
This first system reads this extend markup language mapping enactment document and dynamically generates an extensible markup;
Carry out Data Analysis according to this extend markup language mapping enactment document and this extensible markup, with an interface parameters and the data of dynamic generation to a system directory service type storehouse that should Active Directory;
Carry out interface interchange in this system directory service type storehouse according to this interface parameters and data, and return result set data of this Active Directory; And
This first system reads this result set data, and resolves this result set data after returning according to this extend markup language mapping enactment document.
2. interface exploitation method according to claim 1, it is characterized in that: in this extend markup language mapping enactment document, set up the corresponding input and output parameter identical with the entity object structure of this Active Directory via a parameter name, and this parameter name value is consistent with the entity object attribute of this Active Directory.
3. interface exploitation method according to claim 1 is characterized in that: in this extend markup language mapping enactment document, at give a definition an input mapping parameters of this interface of a delivery node.
4. interface exploitation method according to claim 1 is characterized in that: in this extend markup language mapping enactment document, at give a definition an output mapping parameters of this interface of a table node.
5. interface exploitation method according to claim 1 is characterized in that: in this extend markup language mapping enactment document, via the output parameter type of this interface of parametric t ype value definition in the table node.
6. interface exploitation method according to claim 1 is characterized in that: in this extend markup language mapping enactment document, via the calling station of the parameter p osition definition one table parameter sets in the table node at this interface; Type via this table parameter sets of parametric t ype value definition in the parameter node under this table node.
7. interface exploitation method according to claim 2, it is characterized in that: in this extend markup language mapping enactment document, set up and this parameter name one-one relationship via a parameter m apname, after this first system and this parameter m apname set up one-one relationship, this first system was by this parameter m apname and this interactive interfacing or call.
8. whether interface exploitation method according to claim 1 is characterized in that: in this extend markup language mapping enactment document, via the value of a parameter isenabled a current parameter line is set and enables.
9. interface exploitation method according to claim 1 is characterized in that: in this extend markup language mapping enactment document, the type of the entity object attribute of current this Active Directory is set via the value of a parameter d atatype.
10. interface exploitation method according to claim 1 is characterized in that: in this extend markup language mapping enactment document, whether the entity object that current this Active Directory is set via the value of a parameter isparent is the entity object of father's Active Directory.
CN201210435811.5A 2012-11-05 2012-11-05 The Active Directory interface exploitation method of configuration is mapped based on extend markup language Active CN102999329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210435811.5A CN102999329B (en) 2012-11-05 2012-11-05 The Active Directory interface exploitation method of configuration is mapped based on extend markup language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210435811.5A CN102999329B (en) 2012-11-05 2012-11-05 The Active Directory interface exploitation method of configuration is mapped based on extend markup language

Publications (2)

Publication Number Publication Date
CN102999329A true CN102999329A (en) 2013-03-27
CN102999329B CN102999329B (en) 2016-01-20

Family

ID=47927935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210435811.5A Active CN102999329B (en) 2012-11-05 2012-11-05 The Active Directory interface exploitation method of configuration is mapped based on extend markup language

Country Status (1)

Country Link
CN (1) CN102999329B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399735A (en) * 2013-07-12 2013-11-20 浙江吉利汽车研究院有限公司杭州分公司 Method for developing intermediate layer of remote function call interface
CN104468299A (en) * 2013-09-16 2015-03-25 清华大学 Enterprise service bus system based on user rule
CN110007912A (en) * 2019-03-05 2019-07-12 山东浪潮通软信息科技有限公司 A kind of visual configuration realization system and method for data sharing interface
CN110737636A (en) * 2019-09-24 2020-01-31 厦门信息集团大数据运营有限公司 data importing method, device and equipment
CN116719871A (en) * 2023-06-29 2023-09-08 上海中汇亿达金融信息技术有限公司 Data interaction method, device and system of transaction management system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姜平,戴闯: "《实现活动目录搜索的灵活响应与动态更新》", 《电脑开发与应用》, vol. 16, no. 10, 30 October 2003 (2003-10-30), pages 23 *
毛健: "《活动目录在电子政务中的应用》", 《活动目录在电子政务中的应用》, 15 February 2007 (2007-02-15) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399735A (en) * 2013-07-12 2013-11-20 浙江吉利汽车研究院有限公司杭州分公司 Method for developing intermediate layer of remote function call interface
CN104468299A (en) * 2013-09-16 2015-03-25 清华大学 Enterprise service bus system based on user rule
CN110007912A (en) * 2019-03-05 2019-07-12 山东浪潮通软信息科技有限公司 A kind of visual configuration realization system and method for data sharing interface
CN110737636A (en) * 2019-09-24 2020-01-31 厦门信息集团大数据运营有限公司 data importing method, device and equipment
CN110737636B (en) * 2019-09-24 2022-07-22 厦门信息集团大数据运营有限公司 Data import method, device and equipment
CN116719871A (en) * 2023-06-29 2023-09-08 上海中汇亿达金融信息技术有限公司 Data interaction method, device and system of transaction management system
CN116719871B (en) * 2023-06-29 2024-03-19 上海中汇亿达金融信息技术有限公司 Data interaction method, device and system of transaction management system

Also Published As

Publication number Publication date
CN102999329B (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN105809356A (en) Information system resource management method based on application integrated cloud platform
CN102939579A (en) Method and apparatus for binding user interface elements and granular reflective processing
CN103399735A (en) Method for developing intermediate layer of remote function call interface
CN102314358B (en) Method for deploying conventional applications on cloud platform in SOA (service oriented architecture) way
US7735115B2 (en) System which enforces policy for virtual private organization and method thereof
CN102985922A (en) Method and apparatus for managing distributed computations within a computation space
CN102999329B (en) The Active Directory interface exploitation method of configuration is mapped based on extend markup language
CN103150154B (en) The implementation method and device of a kind of application plug
CN101446971A (en) Method for building content management system and device thereof
CN103914290A (en) Operating command processing method and device
CN103390018A (en) Web service data modeling and searching method based on SDD (service data description)
CN112287114A (en) Knowledge graph service processing method and device
CN104317964A (en) Object-relational mapping method and system based on iBatis
CN105468793A (en) Automated management method for simulation model data
CN103473247B (en) Geological data information cluster mechanism and interface aggregation system
Yu et al. Modeling and analysis of mobile cloud computing based on bigraph theory
CN103488697A (en) System and mobile terminal capable of automatically collecting and exchanging fragmented commercial information
CN101794223B (en) Design method of WADE service message architecture
CN111782820B (en) Knowledge graph creation method and device, readable storage medium and electronic equipment
CN100369443C (en) Method of following SNMP/CIM protocol intermediate piece projection
CN106657282B (en) Method and device for integrating running state information of converter station equipment
CN111062682B (en) Work order processing method and device
CN103561113A (en) Web Service interface generating method and device
Shen et al. Standardizing the Internet of Things in an evolutionary way
CN110716913A (en) Mutual migration method for Kafka and Elasticissearch database data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant