CN110321380A - A kind of method for interchanging data, apparatus and system - Google Patents
A kind of method for interchanging data, apparatus and system Download PDFInfo
- Publication number
- CN110321380A CN110321380A CN201910613888.9A CN201910613888A CN110321380A CN 110321380 A CN110321380 A CN 110321380A CN 201910613888 A CN201910613888 A CN 201910613888A CN 110321380 A CN110321380 A CN 110321380A
- Authority
- CN
- China
- Prior art keywords
- target
- data
- data object
- service data
- service
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/254—Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
This application provides a kind of method for interchanging data, apparatus and system, method includes: to receive the data acquisition request of the target user of the first system side;According to the mark of target service data object in data acquisition request, target original service data object is obtained from multiple original service data objects;According to the service parameter in target original service data object, the business data processing that obtains business datum from the business datum of second system side, and will acquire at the matched business datum of data structure information in target original service data object as target service data;Target service data are filled in target original service data, target service data object is obtained, the response message including target service data object is fed back into target user.Method for interchanging data provided by the present application, apparatus and system can realize the data exchange between two information systems based on data object, and realize that process is simple, better user experience.
Description
Technical field
The application technical field of data processing more particularly to a kind of method for interchanging data, apparatus and system.
Background technique
With the continuous development of information technology, miscellaneous information system is applied in different field.When certain
It waits, due to certain demand, needs to carry out data exchange between each information system, however, opening due to these information systems
It sends out language and development platform is usually different, therefore, cannot achieve data exchange between information system, how to build dispersion
If each information system integrated, make to be able to carry out the problem of data exchange is urgent need to resolve between them.
Summary of the invention
In view of this, this application provides a kind of method for interchanging data, apparatus and system, to realize different information systems
Between data exchange, its technical solution is as follows:
A kind of method for interchanging data, is applied to data exchange system, and the method for interchanging data includes:
Receive the data acquisition request of the target user of the first system side, wherein include institute in the data acquisition request
The mark of the target service data object of request;
According to the mark of the target service data object, the beginning of the school year at the beginning of obtaining target from multiple original service data objects
Business data object, wherein include the industry needed to the user feedback for requesting the data object in any original service data object
The service parameter and data structure information for data of being engaged in;
According to the service parameter in the target original service data object, obtained from the business datum of second system side
Business datum, and the business data processing that will acquire at the data structure information in the target original service data object
The business datum matched is as target service data;
The target service data are filled in the target original service data object, the target service number is obtained
According to object, the response message including the target service data object is fed back into the target user.
Wherein, the process for obtaining the multiple original service data object includes:
In data exchange system starting, the demand to data object provider based on data object user is preparatory
Multiple service data objects of creation are initialized, and the multiple original service data object is obtained after initialization;
Wherein, any service data object in the multiple service data object is according to data object base predetermined
The creation of plinth class, each service data object inherit the data object foundation class.
Preferably, in the data acquisition request further include: the authentication information of the target user and the target user
User identifier;
The method also includes:
Whether the authentication information for verifying the target user is correct;
If the authentication information of the target user is correct, according to the user identifier of the target user and the target industry
The mark of business data object, verifies whether the target user has the permission for obtaining the target service data object;
If the target user has the permission for obtaining the target service data object, execute described according to the mesh
The mark for marking service data object, obtains the target original service data pair from the multiple original service data object
As;
If the authentication information of the target user is incorrect, alternatively, the target user, which does not have, obtains the target industry
The permission of business data object then includes at least the response for getting the instruction information of data not successfully to target user feedback
Information.
Preferably, the response message for the data acquisition request includes: the first information, the second information and third letter
Breath;
Wherein, the first information is used to indicate whether successfully to get data, if first information instruction is failed
Data are got, then second information is the reason of getting data not successfully, if the first information indicates successfully to obtain
To data, then the third information is the target service data object got.
Preferably, described according to the user identifier of the target user and the mark of the target service data object, it tests
Demonstrate,prove whether the target user has the permission for obtaining the target service data object, comprising:
Based on the incidence relation of the service data object mark and user identifier that prestore, the target service data pair are determined
Whether the mark of elephant and the user identifier of the target user have incidence relation, wherein identify with any service data object
User corresponding to associated user identifier has the power for obtaining and identifying corresponding service data object with the service data object
Limit;
If so, determining that the target user has the permission for obtaining the target service data object, if not, it is determined that
The target user does not have the permission for obtaining the target service data object.
Preferably, in the data acquisition request further include: the industry of the business datum in the target service data object
Business parameter;
The method also includes:
After obtaining the target original service data object, according to the business in the target original service data object
Whether parameter, the service parameter verified in the data acquisition request are correct;
If the service parameter in the data acquisition request is correct, execute described according to the target original service data
Service parameter in object obtains business datum from the business datum of second system side;
It will include the response letter of incorrect service parameter if the service parameter in the data acquisition request is incorrect
Breath feeds back to the target user.
Wherein, the service parameter according in the target original service data object, from the second system side
Business datum is obtained in business datum, comprising:
Join from being obtained in the business datum of the second system side with the business in the target original service data object
The corresponding business datum of number
Wherein, the data structure information includes: the respond style of data structure and data structure, the data structure packet
At least one texture field is included, the respond style of the data structure determines the mode to the target users did respond data;
The business data processing that will acquire at the data structure information in the target original service data object
Matched business datum, comprising:
To be removed in the business datum of the acquisition with each texture field unmatched business datum, obtain with it is described
The business datum that data structure matches;
The business datum that the described and data structure matches is mapped to the respond style pair with the data structure
In the data structure answered.
It is wherein, described that the target service data are filled in the target original service data object, comprising:
The data that the target service data format is turned to specified data format, obtain formatted business datum,
The formatted business datum is filled in the target original service data object.
A kind of DEU data exchange unit is applied to data exchange system, and the DEU data exchange unit includes: receiving module, number
According to object acquisition module, data acquisition module, data processing module, database population module and information feedback module;
The receiving module, the data acquisition request of the target user for receiving the first system side, wherein the data
It include the mark of requested target service data object in acquisition request;
The data object obtains module, for the mark according to the target service data object, from multiple just beginnings of the school year
It is engaged in obtaining target original service data object in data object, wherein include needing to asking in any original service data object
Ask the service parameter and data structure information of the business datum of the user feedback of the data object;
The data acquisition module, for according to the service parameter in the target original service data object, from second
Business datum is obtained in the business datum of system side;
The data processing module, business data processing for will acquire at the target original service data object
In the matched business datum of data structure information as target service data;
The data load module, for the target service data to be filled to the target original service data object
In, obtain the target service data object;
The information feedback module, for will include that the response message of the target service data object feeds back to the mesh
Mark user.
Wherein, the DEU data exchange unit further include: initialization module;
The initialization module, for being based on data to data object provider in data exchange system starting
Multiple service data objects that the demand of object user is pre-created initialize, and obtain after initialization the multiple initial
Service data object;
Wherein, any service data object in the multiple service data object is according to data object base predetermined
The creation of plinth class, each service data object inherit the data object foundation class.
Preferably, in the data acquisition request further include: the authentication information of the target user and the target user
User identifier;
Described device further include: the first authentication module and the second authentication module;
Whether first authentication module, the authentication information for verifying the target user are correct;
Second authentication module, for when the authentication information of the target user is correct, according to the target user
User identifier and the target service data object mark, verify the target user and whether have and obtain the target industry
The permission of business data object;If permission of the target user with the acquisition target service data object, described in triggering
Data object obtains module according to the mark of the target service data object, obtains from the multiple original service data object
Take the target original service data object;
The information feedback module is also used to when the authentication information of the target user is incorrect, alternatively, the target is used
When family does not have the permission for obtaining the target service data object, Xiang Suoshu target user feedback includes at least failed obtain
To the response message of the instruction information of data.
Preferably, the response message for the data acquisition request includes: the first information, the second information and third letter
Breath;
Wherein, the first information is used to indicate whether successfully to get data, if first information instruction is failed
Data are got, then second information is the reason of getting data not successfully, if the first information indicates successfully to obtain
To data, then the third information is the target service data object got.
Wherein, second authentication module, specifically for based on the service data object mark and user identifier prestored
Incidence relation determines that the mark of the target service data object is associated with whether the user identifier of the target user has
System, wherein identify user corresponding to associated user identifier with any service data object, have and obtain and the business datum
The permission of the corresponding service data object of object identity;If so, determining that the target user has obtains the target service
The permission of data object, if not, it is determined that the target user does not have the permission for obtaining the target service data object.
Preferably, in the data acquisition request further include: the industry of the business datum in the target service data object
Business parameter;
Described device further include: third authentication module;
The third authentication module obtains the mesh for determining that the target user has in second authentication module
After the permission for marking service data object, according to the service parameter in the target original service data object, the data are verified
Whether the service parameter in acquisition request is correct;If the service parameter in the data acquisition request is correct, the number is triggered
Business datum according to acquisition module according to the service parameter in the target original service data object, from the second system side
Middle acquisition business datum;
The information feedback module, be also used to will include when the service parameter in the data acquisition request is incorrect
The response message of incorrect service parameter feeds back to the target user.
Wherein, the data acquisition module, specifically for from the business datum of the second system side obtain with it is described
The corresponding business datum of service parameter in target original service data object.
Wherein, the data structure information includes: the respond style of data structure and data structure, the data structure packet
At least one texture field is included, the respond style of the data structure determines the mode to the target users did respond data;
The data processing module, specifically for will be mismatched in the business datum of the acquisition with each texture field
Business datum removal, obtain the business datum to match with the data structure;Match described with the data structure
Business datum be mapped in data structure corresponding with the respond style of the data structure.
Wherein, the database population module, specifically for the target service data format is turned to specified data format
Data, obtain formatted business datum, formatted business datum be filled to the target original service data
In object.
A kind of data exchange system, comprising: data object loader, data gateway and data object scheduling device;
The data object loader, in data exchange system starting, provider to be based on to data object
Multiple service data objects that the demand of data object user is pre-created initialize, and will obtain after initialization multiple
Original service data object is loaded onto data object cache pond;Wherein, in any original service data object include need to
Request the service parameter and data structure information of the business datum of the user feedback of the data object;
The data gateway, the data acquisition request of the target user for receiving the first system side, wherein the data
It include the mark for obtaining requested target service data object in acquisition request;
The data object scheduler, for the mark according to the target service data object, from multiple initial services
Target original service data object is obtained in data object, according to the service parameter in the target original service data object,
The business data processing that obtains business datum from the business datum of second system side, and will acquire is at the beginning of the school year at the beginning of with the target
The matched business datum of data structure information being engaged in data object fills the target service data as target service data
It is filled in the target original service data object, obtains the target service data object;
The data gateway is also used to the response message including the target service data object feeding back to the target
User.
Preferably, in the data acquisition request further include: the authentication information of the target user and the target user
User identifier;
The data gateway is also used to verify whether the target user has according to the authentication information of the target user
The permission of the data gateway is accessed, if so, by the user identifier of the target user and the target service data object
Mark be supplied to the data object scheduler, not successfully got if it is not, then being included at least to target user feedback
The response message of the instruction information of data;
The data object scheduler, specifically for as the user for obtaining the target user that the data gateway provides
When mark and the mark of the target service data object, according to the user identifier of the target user and the target service number
According to the mark of object, verify whether the target user has the permission for obtaining the target service data object, if so, root
According to the mark of the target service data object, the target initial service is obtained from the multiple original service data object
Data object gets data if it is not, then including at least by the data gateway to target user feedback not successfully
Indicate the response message of information.
Preferably, in the data acquisition request further include: the industry of the business datum in the target service data object
Business parameter;
The data object scheduler is also used to obtain the target service data object when the target user has
When permission, according to the service parameter in the target original service data object, the business in the data acquisition request is verified
Whether parameter is correct;If so, according to the service parameter in the target original service data object, from the second system side
Business datum in obtain business datum, if it is not, then by the data gateway by the response including incorrect service parameter
Information feeds back to the target user.
Via above scheme it is found that method for interchanging data provided by the present application, apparatus and system, are receiving the first system
When the data acquisition request of the target user of side, the mark of the target service data object carried first according to request, from multiple
Target original service data object is obtained in original service data object, then, according in target original service data object
The business data processing that service parameter obtains business datum from the business datum of second system side, and will acquire at target
The matched business datum of data structure information in original service data object is as target service data, then by target service
Data are filled in target original service data object, finally will include target service to obtain target service data object
The response message of data object feeds back to target user, and such target user just obtains the service data object of its request, leads to
Its required business datum can be obtained by crossing service data object.Via above scheme it is found that data provided by the present application are handed over
The method of changing can realize the data exchange between not homologous ray based on data object, and realize that the process of data exchange is simple, user
Experience is preferable.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a flow diagram of method for interchanging data provided by the embodiments of the present application;
Fig. 2 is in method for interchanging data provided by the embodiments of the present application, according to the industry in target original service data object
Business parameter and data structure information determine the flow diagram of target service data;
Fig. 3 is a structural schematic diagram of DEU data exchange unit provided by the embodiments of the present application;
Fig. 4 is a structural schematic diagram of data exchange system provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of server provided by the embodiments of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In order to realize the data exchange between information system, inventor is studied, and thinking originally is: being used
Method for interchanging data based on ETL, ETL are the abbreviations of Extract-Transform-Load, for describing data from source
End is by extracting (extract), the interactive process for converting (transform), load (load) to destination.That is, base
In cleaning conversion, the load of data that the method for interchanging data of ETL includes: the extractions of data, data, wherein the extraction of data
It is that data are extracted from each different data source, in the method for interchanging data based on ETL, spending the time longest is the clear of data
Conversion is washed, this part accounts for about the 2/3 of amount of work, and the load of data, directly will be clear generally after data cleansing converts
In data write-in data warehouse DW (Data Warehousing, DW) after washing conversion.
However, ETL is C/S framework, user needs in target machine installation ETL client, and client software configuration item
Compare more, threshold is relatively high for inexperienced user.In view of the method for interchanging data based on ETL there are the problem of, this
Invention inventor makes further research, and ultimately provides a kind of method for interchanging data based on data object, this method is answered
For the data exchange system of B/S (browser/server) framework, followed by following embodiments to number provided by the present application
It is introduced according to exchange method.
Referring to Fig. 1, show the flow diagram of method for interchanging data provided by the embodiments of the present application, this method can be with
Include:
Step S101: the data acquisition request of the target user of the first system side is received.
Wherein, data acquisition request is used for request target service data object, includes at least in data acquisition request
The mark of requested target service data object.
Step S102: according to the mark of target service data object, target is obtained from multiple original service data objects
Original service data object.
It wherein, include the business number needed to the user feedback for requesting the data object in any original service data object
According to service parameter and data structure information.It should be noted that original service data object is the prototype of service data object,
It does not include business datum.
Obtain the process of multiple original service data objects are as follows: when data exchange system starting, provide data object
Multiple service data objects that demand of the side based on data object user is pre-created are initialized and (are also referred to as instantiated),
Multiple original service data objects are obtained after initialization.
Multiple original service data objects can be cached in data object cache pond, when receiving data acquisition request,
Target initial service can be obtained from data object cache pond according to the mark of target service data object in data acquisition request
Data object.
Wherein, any service data object in multiple service data objects before initialization is according to data predetermined
The creation of object base class, the service data object inherit data object foundation class.It should be noted that service data object is matched
It sets and is realized by browser.
Data object foundation class (also referred to as parent) is abstract class, and in the concept of object-oriented, all objects are all logical
Class is crossed to describe, but in turn, not all class is all for description object, if not comprising enough in a class
Information one specific object described, then, such class is exactly abstract class.Abstract class is in addition to being unable to instance object
Outside, the function of class still remains, and member variable, the member method of class are identical with general category with the access mode of building method.By
It cannot instantiate in abstract class, therefore, must could be used by inheriting.
Data object foundation class may include the attribute of data object and the correlation technique of data object.Data object basis
The main function of class is that the method for providing preposition attribute and default for the subclass i.e. service data object of data object is realized.
In a specific example, the attribute of data object includes condition container attribute and structural container attribute.Optionally, item
Part container attribute and structural container attribute can be the example of List type.It should be noted that the respond style of data structure
It is divided into List type and map type, the respond style of data structure determines the mode to user response data, wherein List
The data structure of type refers to the data structure of paging, and the data meeting paging of this data structure is shown, for example, having
100 records can be divided into page 5, and every page of 20 records, point 5 secondary responses can promote response speed to user in this way, and can keep away
The data volume for exempting from a secondary response causes greatly very much system crash, and the data structure of map type refers to the data structure of forms data, i.e.,
The data of map type can once respond to user.
Wherein, condition container attribute is the attribute for the multiple conditions stored in condition container, and condition refers to request data pair
As required service parameter, each condition has type attribute, require attribute, key attribute and value attribute.Wherein,
The data type of type attribute representative condition field, the data type of condition field may include number, string, and key belongs to
Property represent the title of condition field, such as " classID ", the corresponding data of value attribute representative condition field, require belongs to
Property be boolean type, there was only ture and false.
Wherein, structural container attribute is the attribute for the multiple structures stored in structural container, and structure refers to responding to use
The data structure of the data at family, the structured set of institute in structural container represents a set of data structure, for example, " class's number
According to object " it include " className " and " classId " two structures, then, className " and " classId " composition " class
The data structure of data object ".Each structure includes type attribute, require attribute, key attribute and value attribute.type
The data type of attribute representative texture field, the data type of texture field may include number, string, key attribute generation
The title of table structure field, such as " classID ", the corresponding data of value attribute representative texture field, require attribute are
Boolean type, only has ture and false.
The correlation technique of data object may include: building method, the abstract method for obtaining data object tag
(getId), the abstract method (getdata) for obtaining data, obtains the method (getDefConditions) for obtaining condition container
The method (getDefFields) of structural container can also include optionally the method for verify data object permission.
Wherein, building method is called in the service data object instantiation for inheriting data object foundation class, main
Load initialization condition container attribute and structural container attribute.The type of the return value of getId in data object foundation class is
String type is not implemented since getId is abstract method, when according to data object foundation class creation industry
When business data object, then this method is rewritten, provide the specific implementation of this method, getId inherits data object basis for obtaining
The mark of the service data object of class, so as to distinguish each service data object.Likewise, in data object foundation class
Getdata is also abstract method, is not implemented, and when creating service data object according to data object foundation class, then is weighed
This method is write, the specific implementation of this method is provided, getdata is used to obtain the service data object for inheriting data object foundation class
Business datum.GetDefConditions is for obtaining condition container attribute, and getDefFields is for obtaining structural container
Attribute.The method of verify data object permission is used to verify whether user has the permission for obtaining data object, and this method has
Concrete implementation, the mark for the data object that this method is obtained according to user identifier and getId method, verifies whether user has
The permission of data object is obtained, if user has the permission for obtaining data object, returns to ture, otherwise, returns to false.
After defining data object foundation class, service developer can create specific industry according to data object foundation class
Business data object, for example, user information data object, division data object, class's data object etc., according to data object basis
The service data object of class creation does not include business datum.When creating service data object according to data object foundation class,
Need to define the identity property of service data object, it is also necessary to rewrite the method (getId) for obtaining data object tag and obtain
The method (getdata) for evidence of fetching.
Wherein, the mark of service data object must globally unique, i.e., each data service number in data exchange system
According to object with the mark of a uniqueness in data exchange system.The mark of service data object can be by Manual definition, i.e.,
It is defined by developer, the generation of UUID method can also be used, regardless of which kind of mode used, will guarantee the uniqueness of mark.
Since in data object foundation class, getId and getdata are abstract method, do not implement, because
This, needs to rewrite the two methods at this time, so that the mark of service data object can be obtained by obtaining getId, getdata can
Obtain business datum.It wherein, there are many modes of getdata acquisition data, for example can be HttpClient mode, the side File
Formula, JDBC mode etc..Illustratively, it needs to obtain user list data from database, then can connect by JDBC mode
To database, related data is inquired by SQL statement.
In the present embodiment, when obtaining target original service data object, each initial service is obtained using getId
The mark of data object, in turn, obtaining from multiple original service data objects has identical mark with target service data object
The original service data object of knowledge, as target original service data object.
Step S103: the business datum according to the service parameter in target original service data object, from second system side
Middle acquisition business datum, and the business data processing that will acquire at the data structure information in target original service data object
Matched business datum is as target service data.
The embodiment of the present application is based on data object and realizes data exchange, data object should comprising business parameters data,
Data structure information and business datum, the target original service data object obtained by abovementioned steps S102 is target user
The prototype of requested target service data object, and do not include specific business datum, and the purpose of this step is to obtain
Specific business datum is taken, to be filled in target original service data object.
Step S104: target service data are filled in target original service data object, obtain target service data
Response message including target service data object is fed back to target user by object.
Method for interchanging data provided by the embodiments of the present application, in the data acquisition for the target user for receiving the first system side
When request, the mark of the target service data object carried first according to request is obtained from multiple original service data objects
Target original service data object obtains the prototype of target service data object, then, according to target original service data pair
The business data processing that service parameter as in obtains business datum from the business datum of second system side, and will acquire at
With the matched business datum of data structure information in target original service data object as target service data, then by mesh
Mark business datum is filled in target original service data object, finally will include mesh to obtain target service data object
The response message of mark service data object feeds back to target user, and such target user just obtains the business datum pair of its request
As the business datum of structure required for it can be obtained by service data object.Data provided by the embodiments of the present application are handed over
The method of changing can realize the data exchange between not homologous ray based on data object, and realize that the process of data exchange is simple, user
Experience is preferable.
In order to guarantee the safety of business datum, it is preferred that in addition to including mesh in the data acquisition request in above-described embodiment
It can also include: the authentication information of target user and the user identifier of target user outside the mark for marking service data object.
Recognize it should be noted that target user before request data object, needs to carry out target user authorization
The authorization identifying mechanism based on Oauth (open authorization) can be used in card, optionally, the present embodiment, and Oauth is an open mark
Standard allows user that third party's mobile application is authorized to access the information that they are stored on other ISP, without
Username and password is supplied to third party's mobile application or shares all the elements of their data, Oauth can need not used
In the case that its certification certificate is revealed at family, pass through the protected money of some web services (being referred to as service provider) of API Access
Source, Oauth provide one for API certification and can freely realize and general method.
The process authenticated to target user may include: the certification request for receiving target user and initiating, wherein target
It include the user identifier (its suitable account) and password of target user in Client-initiated certification request;In authentication verification request
Whether user identifier and password correct, if user identifier and password are correct, for target user generate authentication information (such as
Token target user), and by the authentication information of generation is fed back to, if user identifier and password bad, anti-to target user
Present the instruction information of authentification failure.It should be noted that obtaining target user when target user is when data exchange system is registered
User identifier and password and store, when receiving the certification request of target user, according to the user of the target user of storage
Whether the user identifier and password in mark and password authentification certification request are correct.
In the embodiment of the present application, data exchange system can safeguard the pass of the user identifier and authentication information that have authenticated user
Connection relationship adds the incidence relation of the user identifier of target user and authentication information after generating authentication information for target user
It adds to and has authenticated in the user identifier of user and the incidence relation of authentication information.
After step S101 in the above-described embodiments, can also include: before step S102
Step a1, whether the authentication information for verifying target user is correct, if the authentication information of target user is correct, executes
Step a2 thens follow the steps a3 if the authentication information of target user is correctly incorrect.
Specifically, according to the user identifier for having authenticated user of maintenance and the incidence relation of authentication information, determining and target
The associated authentication information of the user identifier of user judges target user in the authentication information determined and data acquisition request
Whether authentication information is consistent, if unanimously, it is determined that and the authentication information of target user is correct in data acquisition request, otherwise, it determines
The authentication information of target user is incorrect in data acquisition request.
Step a2: according to the mark of the user identifier of target user and target service data object, verifying target user is
It is no that there is the permission for obtaining target service data object, if target user has the permission for obtaining target service data object,
It executes step S102: according to the mark of target service data object, it is initial that target is obtained from multiple original service data objects
Service data object thens follow the steps a3 if target user does not have the permission for obtaining target service data object.
It should be noted that needing to distribute to the service data object of creation needs after having created service data object
Service data object is distributed to the user of needs using browser in the present embodiment by the user wanted, if by a certain business
Data object is allocated to a certain user, then the user just has the permission for obtaining the service data object.In order to realize number
According to exchange, the incidence relation of maintenance service data object tag and user identifier is needed, for any service data object, with this
User corresponding to user identifier of the mark with incidence relation of service data object, which has, obtains the service data object
Permission.
Then according to the mark of the user identifier of target user and target service data object, verify whether target user has
The process for obtaining the permission of target service data object may include: service data object mark and user identifier based on maintenance
Incidence relation, whether the user identifier of the mark and target user that determine target service data object have incidence relation;If
The mark of target service data object and the user identifier of target user have incidence relation, it is determined that target user, which has, to be obtained
The permission of target service data object;It is associated with if the mark of target service data object does not have with the user identifier of target user
Relationship, it is determined that target user does not have the permission for obtaining target service data object.
Step a3: the response message for getting the instruction information of data not successfully is included at least to target user's feedback.
Preferably, in the present embodiment, unification can be used to the response message of user feedback for data acquisition request
Format.Specifically, response message may include the first information, the second information and third information.
Wherein, the first information is used to indicate whether successfully to get data, if first information instruction gets number not successfully
According to, then the second information is failed the reason of getting data, if the first information indicates successfully to get data, third information
For the target service data object got.
It should be noted that if first information instruction gets data not successfully, then third information can be the silent of setting
Recognize value, can also be sky, likewise, the second information can be the default of setting if the first information indicates successfully to get data
Value can also be sky.
Illustratively, the first information can be " 1 " or " 2 ", and " 1 ", which represents, successfully gets data, and " 2 " represent failed
Data are got, when the first information is " 1 ", user, which would know that, gets data not successfully, and can know by the second information
The reason of getting data not successfully, when the first information is " 2 ", user, which would know that, successfully gets data, and can be by the
The service data object of its request of three information acquisitions.
Preferably, in data acquisition request in addition to may include the authentication information of target user, target user user's mark
Know outside the mark with target service data object, can also include the service parameter of business datum in target service data object.
Based on this, after step S102 in the above-described embodiments, before step S103, can also include:
According to service parameter included in target original service data object, the business in verify data acquisition request is joined
Whether number is correct, if the service parameter in data acquisition request is correct, thens follow the steps S103: according to target original service data
The business data processing that service parameter in object obtains business datum from the business datum of second system side, and will acquire
At with the matched business datum of data structure information in target original service data object as target service data;If data
Service parameter in acquisition request is incorrect, then the response message including incorrect service parameter feeds back to target user.
Wherein, according to service parameter included in target original service data object, in verify data acquisition request
Whether the whether correct process of service parameter comprises determining that in the service parameter in data acquisition request comprising target initial service
All service parameters in data object, if so, determining that the service parameter in data acquisition request is correct, otherwise, it determines number
It is incorrect according to the service parameter in acquisition request.
Below to the " S103: according to the service parameter in target original service data object, from second in above-described embodiment
The business data processing that obtains business datum in the business datum of system side, and will acquire at target original service data object
In the matched business datum of data structure information as target service data " be introduced.
It should be noted that the data structure information in target original service data object may include: data structure and
The respond style of data structure, the respond style of data structure includes List type and map type, if the response class of data structure
Type is List type, then data structure information further includes page (page number) and pagesize (every page of size).
Referring to Fig. 2, showing the industry according to the service parameter in target original service data object, from second system side
In business data the business data processing that obtains business datum, and will acquire at the data knot in target original service data object
Flow diagram of the business datum of structure information matches as the process of target service data may include:
Step S201: join from being obtained in the business datum of second system side with the business in target original service data object
The corresponding business datum of number, as business datum to be processed.
Specifically, from being obtained in the business datum of second system side and the service parameter in target original service data object
The process of corresponding business datum may include: the method for the acquisition condition container for calling data object foundation class to provide first
(getDefConditions) all conditions field of target original service data object is obtained;Then, it calls and obtains data
Method (getdata) obtains the data of all conditions field of target original service data object, as business number to be processed
According to.It should be noted that get all conditions field of target original service data object, it is equivalent to that obtain target initial
All service parameters of service data object get the data of all conditions field of target original service data object, phase
When in the corresponding business datum of all service parameters for obtaining target original service data object.
It is not the data of structure required for user via the business datum that the above method obtains, therefore, it is also desirable into
One step carry out structure mapping, that is, by business data processing to be processed at the data structure in target original service data object
The business datum that information matches.
Step S202: by business datum to be processed with each texture field in target original service data object not
Matched business datum removal, obtains the business datum to match with data structure.
Specifically, removed in the business datum that will acquire with each texture field unmatched business datum, obtain with
The process for the business datum that data structure matches may include: the acquisition structural container for calling data object foundation class to provide
Method (getDefFields) obtains all texture fields of target original service data object, for business datum to be processed
Each field, if each texture field in all conditions field of the field and target original service data object is not
Match, then delete the data of the field, to obtain the industry to match with the data structure in target original service data object
Business data.
Step S203: by with the business datum that data structure matches be mapped to in target original service data object
In the corresponding data structure of the respond style of data structure.
The respond style of data structure includes List type and map type, wherein the data structure of List type is as follows:
In the data structure of above-mentioned List type and the data structure of map type, there are two the values of code field, for example, 0
Failure is represented with 1,0,1 represents successfully, and message field is message content, including operates successfully and operation failure, data field
For specific data, pageConfig field is paging parameter.
After obtaining the business datum to match with data structure, if data structure in target original service data object
Respond style is List type, then will be mapped in the data structure with paging with the business datum that data structure matches, if
The respond style of data structure is map type, the then business that will be matched with data structure in target original service data object
Data are mapped in the data structure without paging.
After obtaining target service data, target service data format can be turned to the data of specified data format, for example,
The data of Json format can be formatted as, the data of XML format can also be formatted as.
In order to be formatted business datum, need pre-defined formatting interface and format to realize class.Define lattice
The purpose of formula interface is the realization class formatted for authority data, realizes that class provides a unification for different formattings
Method of calling and returned data format.Optionally, can define and format the method for realizing class is format method, this method
The data of string format can be returned for incoming data.
Wherein, formatting interface is defined as follows:
public interface Iformatable{
public string format(object data)
}
Optionally, it formats and realizes that class can be JsonFormater, JsonFormater can be by the business of data object
Data format turns to the data of Json format, and Json formater's is accomplished by
After obtaining the business datum formatted, formatted business network data is filled to target original service data
In object, to obtain the requested target service object of target user, and then by the response comprising target service data object
Information feeds back to target user.
Method for interchanging data provided by the embodiments of the present application, on the one hand, the data exchange between information system can be achieved, and real
Existing process is fairly simple, on the other hand, since data exchange is realized based on data object, for developer, only needs
New service data object is developed, and it is simpler to develop new service data object, therefore greatly reduces exploitation
The development difficulty of personnel, in another aspect, data object provided by the embodiments of the present application exchange method is directed to the number of B/S framework
According to exchange system, for a user, the configuration of data object can be realized by browser, without installing client
End, simplifies the process for using of user.
Corresponding with above-mentioned method for interchanging data, the embodiment of the present application also provides a kind of DEU data exchange unit, the data
Switch can be applied to data exchange system, can be with referring to Fig. 3, show the structural schematic diagram of the DEU data exchange unit
It include: receiving module 301, data object acquisition module 302, data acquisition module 303, data processing module 304, data filling
Module 305 and information feedback module 306.
Receiving module 301, the data acquisition request of the target user for receiving the first system side.
It wherein, include the mark of requested target service data object in data acquisition request.
Data object obtains module 302, for the mark according to target service data object, from multiple original service datas
Target original service data object is obtained in object.
It wherein, include the business number needed to the user feedback for requesting the data object in any original service data object
According to service parameter and data structure information.
Data acquisition module 303, for according to the service parameter in target original service data object, from second system side
Business datum in obtain business datum.
Data processing module 304, business data processing for will acquire at in target original service data object
The matched business datum of data structure information is as target service data.
Database population module 305 obtains mesh for target service data to be filled in target original service data object
Mark service data object.
Information feedback module 306, for will include that the response message of target service data object feeds back to target user.
DEU data exchange unit provided by the embodiments of the present application can realize that the data between not homologous ray are handed over based on data object
It changes, and realizes that the process of data exchange is simple, better user experience.
DEU data exchange unit provided by the above embodiment can also include: initialization module.
The initialization module, for being based on data object to data object provider in data exchange system starting
Multiple service data objects that the demand of user is pre-created initialize, and multiple original service datas are obtained after initialization
Object.
Wherein, any service data object in multiple service data objects is according to data object foundation class predetermined
Creation, each service data object inherit data object foundation class.
It preferably, can also include: target user in the received data acquisition request of receiving module 301 in above-described embodiment
Authentication information and target user user identifier.
Then DEU data exchange unit provided by the above embodiment can also include: the first authentication module and the second authentication module.
Whether the first authentication module, the authentication information for verifying target user are correct.
Second authentication module, for when the authentication information of target user is correct, according to the user identifier of target user and
The mark of target service data object, verifies whether target user has the permission for obtaining target service data object;If target
User has the permission for obtaining target service data object, then trigger data object acquisition module is according to target service data object
Mark, from multiple original service data objects obtain target original service data object.
Information feedback module is also used to when the authentication information of target user is incorrect, alternatively, target user does not have acquisition
When the permission of target service data object, the sound for getting the instruction information of data not successfully is included at least to target user's feedback
Answer information.
Preferably, in DEU data exchange unit provided by the above embodiment, information feedback module 306 is directed to data acquisition request
Response message include: the first information, the second information and third information.
Wherein, the first information is used to indicate whether successfully to get data, if first information instruction gets number not successfully
According to, then the second information is failed the reason of getting data, if the first information indicates successfully to get data, third information
For the target service data object got.
Optionally, the second authentication module, specifically for the pass based on the service data object mark and user identifier that prestore
Whether the user identifier of connection relationship, the mark and target user that determine target service data object has incidence relation, wherein with
Any service data object identifies user corresponding to associated user identifier, has and obtains and service data object mark pair
The permission for the service data object answered;If so, determine that the target user has the permission for obtaining target service data object,
If not, it is determined that target user does not have the permission for obtaining target service data object.
It preferably, can also include: target service in the received data acquisition request of receiving module 301 in above-described embodiment
The service parameter of business datum in data object.
Then DEU data exchange unit provided by the above embodiment can also include: third authentication module.
Third authentication module obtains target service data object for determining that target user has in the second authentication module
After permission, according to the service parameter in target original service data object, whether the service parameter in verify data acquisition request
Correctly;If the service parameter in data acquisition request is correct, trigger data obtains module according to target original service data pair
Service parameter as in obtains business datum from the business datum of second system side.
Information feedback module 306 is also used to when the service parameter in data acquisition request is incorrect, will include incorrect
The response message of service parameter feed back to target user.
Optionally, in DEU data exchange unit provided by the above embodiment, data acquisition module 303 is specifically used for from second
Business datum corresponding with the service parameter in target original service data object is obtained in the business datum of system side.
Optionally, the data structure information in target original service data object includes: data structure and data structure
Respond style, the data structure include at least one texture field, and the respond style of data structure determines to use to the target
The mode of family response data.
Then in DEU data exchange unit provided by the above embodiment, data processing module 304, specifically for by the acquisition
Removed in business datum with the unmatched business datum of each texture field in target original service data object, obtain with
The business datum that data structure matches;It will be mapped to and target original service data with the business datum that data structure matches
In the corresponding data structure of the respond style of data structure in object.
Optionally, in DEU data exchange unit provided by the above embodiment, database population module 305 is specifically used for target
Business datum is formatted as the data of specified data format, obtains formatted business datum, by formatted business number
According to being filled in target original service data object.
The embodiment of the present application also provides a kind of data exchange system, which is B/S framework, please refers to figure
4, show the structural schematic diagram of the data exchange system, the data exchange system may include: data object loader 401,
Data gateway 402 and data object scheduling device 403.Wherein:
Data object loader 401, for being based on data pair to data object provider in data exchange system starting
The multiple service data objects being pre-created as the demand of user initialize, and multiple just beginnings of the school year will be obtained after initialization
Business data object is loaded onto data object cache pond.
It wherein, include the business number needed to the user feedback for requesting the data object in any original service data object
According to service parameter and data structure information.
Wherein, multiple service data objects before initialization are created according to data object foundation class predetermined, multiple
Each service data object in service data object inherits data object foundation class.It should be noted that service data object
Configuration pass through browser realize.
Data gateway 402, the data acquisition request of the target user for receiving the first system side.
Wherein, the mark for obtaining requested target service data object is included at least in data acquisition request.
Data object scheduler 403, for the mark according to target service data object, from multiple original service datas pair
As middle acquisition target original service data object, according to the service parameter in target original service data object, from second system
The business data processing that obtains business datum in the business datum of side, and will acquire at in target original service data object
The matched business datum of data structure information is as target service data, the beginning of the school year at the beginning of target service data are filled to the target
In data of being engaged in, target service data object is obtained.
Data gateway 402 is also used to the response message including target service data object feeding back to target user.
Preferably, data exchange system provided by the embodiments of the present application can also include: authorization identifying module.
Authorization identifying module, for receiving the certification request of target user's initiation, wherein the certification that target user initiates is asked
It include the user identifier (its suitable account) and password of target user in asking;User identifier and password in authentication verification request are
It is no correct, if user identifier and password are correct, authentication information (such as token) is generated for target user, and recognizing generation
Card information feeds back to target user.
Need to illustrate when, system maintenance has authenticated in the user identifier of user and the incidence relation of authentication information.
It can also include: the authentication information of target user and the user identifier of target user in data acquisition request.
Data gateway 402 is also used to verify whether target user has access data according to the authentication information of target user
The permission of gateway, if target user has the permission of access data gateway 402, by the user identifier of target user and target industry
The mark of business data object is supplied to data object scheduler 403, if target user does not have the power of access data gateway 402
Limit then includes at least the response message for getting the instruction information of data not successfully to target user's feedback.
Data object scheduler 403, specifically for when obtain data gateway 402 provide target user user identifier and
When the mark of target service data object, according to the mark of the user identifier of target user and target service data object, verifying
Whether target user has the permission for obtaining target service data object, if target user, which has, obtains target service data object
Permission target initial service is obtained from multiple original service data objects then according to the mark of target service data object
Data object passes through data gateway to target user if target user does not have the permission for obtaining target service data object
Feedback includes at least the response message for getting the instruction information of data not successfully.
Optionally, data object scheduler 403 is according to the user identifier of target user and target service data object
Mark, when whether verify target user has the permission for obtaining target service data object, specifically for based on system maintenance
The incidence relation of service data object mark and user identifier, determines the mark of target service data object and the use of target user
Family is identified whether with incidence relation;It is associated with if the mark of target service data object has with the user identifier of target user
System, it is determined that target user has the permission for obtaining target service data object, if the mark and mesh of target service data object
The user identifier for marking user does not have incidence relation, it is determined that target user does not have the power for obtaining target service data object
Limit.
It should be noted that user configures the acquisition permission of service data object based on browser, system maintenance industry
The incidence relation of business data object tag and user identifier, the mark for any service data object, with the service data object
Knowing user corresponding to the user identifier with incidence relation has the permission for obtaining the service data object.
Preferably, in data acquisition request further include: the service parameter of the business datum in target service data object.
Then data object scheduler 403 is also used to when target user has the permission for obtaining target service data object,
According to the service parameter in target original service data object, whether the service parameter in verify data acquisition request is correct;If
Service parameter in data acquisition request is correct, then according to the service parameter in target original service data object, from the second system
Business datum is obtained in the business datum of system side, if the service parameter in data acquisition request is incorrect, passes through data gateway
Response message including incorrect service parameter is fed back to target user by 402.
Optionally, the response message for the data acquisition request includes: the first information, the second information and third letter
Breath.
Wherein, the first information is used to indicate whether successfully to get data, obtains if first information instruction is failed
To data, then the second information is failed the reason of getting data, if the first information indicates successfully to get data, third
Information is the target service data object got.
Optionally, data object scheduler 403 is according to the service parameter in target original service data object, from second
When obtaining business datum in the business datum of system side, at the beginning of obtaining from the business datum of second system side with target
The corresponding business datum of service parameter in beginning service data object.
Optionally, the data structure information in target original service data object includes the sound of data structure and data structure
Type is answered, data structure includes at least one texture field, and the respond style of data structure is determined to target users did respond data
Mode.
Then data object scheduler 403 the business data processing that will acquire at in target original service data object
When the matched business datum of data structure information, specifically in the business datum that will acquire with target original service data object
In the unmatched business datum removal of each texture field, obtain the business datum to match with data structure, will be with number
It is mapped to according to the business datum that structure matches corresponding with the respond style of data structure in target original service data object
Data structure in.
Optionally, target service data are being filled in target original service data object by data object scheduler 403
When, specifically for target service data format to be turned to the data of specified data format, formatted business datum is obtained, is incited somebody to action
Formatted business datum is filled in target original service data object.
Data exchange system provided by the embodiments of the present application, on the one hand, the data exchange between information system can be achieved, and real
Existing process is fairly simple, on the other hand, since data exchange is realized based on data object, for developer, only needs
New service data object is developed, and it is simpler to develop new service data object, therefore greatly reduces exploitation
The development difficulty of personnel, in another aspect, data object exchange system provided by the embodiments of the present application is B/S framework, for user
For, the configuration of data object can be realized by browser, without installing client, simplify the use stream of user
Journey.
The embodiment of the present application also provides a kind of servers, referring to Fig. 5, the structural schematic diagram of the server is shown,
The server may include: at least one processor 501, at least one communication interface 502, at least one processor 503 and extremely
A few communication bus 504;
In the embodiment of the present application, processor 501, communication interface 502, memory 503, communication bus 504 quantity be
At least one, and processor 501, communication interface 502, memory 503 complete mutual communication by communication bus 504;
Processor 501 may be a central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road etc.;
Memory 503 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-
Volatile memory) etc., a for example, at least magnetic disk storage;
Wherein, memory is stored with program, the program that processor can call memory to store, and described program is used for:
Receive the data acquisition request of the target user of the first system side, wherein include being requested in data acquisition request
Target service data object mark;
According to the mark of target service data object, target initial service number is obtained from multiple original service data objects
According to object, wherein include the business number needed to the user feedback for requesting the data object in any original service data object
According to service parameter and data structure information;
According to the service parameter in target original service data object, business is obtained from the business datum of second system side
Data, and the business data processing that will acquire at the matched business of data structure information in target original service data object
Data are as target service data;
Target service data are filled in target original service data object, target service data object is obtained, will wrap
The response message for including target service data object feeds back to target user.
Optionally, the refinement function of described program and extension function can refer to above description.
The embodiment of the present application also provides a kind of readable storage medium storing program for executing, which can be stored with and hold suitable for processor
Capable program, described program are used for:
Receive the data acquisition request of the target user of the first system side, wherein include being requested in data acquisition request
Target service data object mark;
According to the mark of target service data object, target initial service number is obtained from multiple original service data objects
According to object, wherein include the business number needed to the user feedback for requesting the data object in any original service data object
According to service parameter and data structure information;
According to the service parameter in target original service data object, business is obtained from the business datum of second system side
Data, and the business data processing that will acquire at the matched business of data structure information in target original service data object
Data are as target service data;
Target service data are filled in target original service data object, target service data object is obtained, will wrap
The response message for including target service data object feeds back to target user.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (16)
1. a kind of method for interchanging data, which is characterized in that be applied to data exchange system, the method for interchanging data includes:
Receive the data acquisition request of the target user of the first system side, wherein include being requested in the data acquisition request
Target service data object mark;
According to the mark of the target service data object, target initial service number is obtained from multiple original service data objects
According to object, wherein include the business number needed to the user feedback for requesting the data object in any original service data object
According to service parameter and data structure information;
According to the service parameter in the target original service data object, business is obtained from the business datum of second system side
Data, and the business data processing that will acquire is at matched with the data structure information in the target original service data object
Business datum is as target service data;
The target service data are filled in the target original service data object, the target service data pair are obtained
As the response message including the target service data object is fed back to the target user.
2. method for interchanging data according to claim 1, which is characterized in that obtain the multiple original service data object
Process include:
In data exchange system starting, data object provider is pre-created based on the demand of data object user
Multiple service data objects initialized, the multiple original service data object is obtained after initialization;
Wherein, any service data object in the multiple service data object is according to data object foundation class predetermined
Creation, the service data object inherit the data object foundation class.
3. method for interchanging data according to claim 1, which is characterized in that in the data acquisition request further include: institute
State the authentication information of target user and the user identifier of the target user;
The method also includes:
Whether the authentication information for verifying the target user is correct;
If the authentication information of the target user is correct, according to the user identifier of the target user and the target service number
According to the mark of object, verify whether the target user has the permission for obtaining the target service data object;
If the target user has the permission for obtaining the target service data object, execute described according to the target industry
The mark of business data object, obtains the target original service data object from the multiple original service data object;
If the authentication information of the target user is incorrect, alternatively, the target user, which does not have, obtains the target service number
It then include getting the response message of the instruction information of data not successfully to target user feedback according to the permission of object.
4. method for interchanging data according to claim 3, which is characterized in that the response for the data acquisition request is believed
Breath includes: the first information, the second information and third information;
Wherein, the first information is used to indicate whether successfully to get data, obtains if first information instruction is failed
To data, then second information is the reason of getting data not successfully, if the first information indicates successfully to get number
According to then the third information is the target service data object got.
5. method for interchanging data according to claim 3, which is characterized in that described to be marked according to the user of the target user
Know the mark with the target service data object, verifies whether the target user has the acquisition target service data pair
The permission of elephant, comprising:
Based on the incidence relation of the service data object mark and user identifier that prestore, the target service data object is determined
Whether mark and the user identifier of the target user have incidence relation, wherein are associated with any service data object mark
User identifier corresponding to user, have to obtain and identify the permission of corresponding service data object with the service data object;
If so, determining that the target user has the permission for obtaining the target service data object, if not, it is determined that described
Target user does not have the permission for obtaining the target service data object.
6. method for interchanging data according to claim 3, which is characterized in that in the data acquisition request further include: institute
State the service parameter of the business datum in target service data object;
The method also includes:
After obtaining the target original service data object, joined according to the business in the target original service data object
Whether number, the service parameter verified in the data acquisition request are correct;
If the service parameter in the data acquisition request is correct, execute described according to the target original service data object
In service parameter, obtain business datum from the business datum of second system side;
It is if the service parameter in the data acquisition request is incorrect, the response message including incorrect service parameter is anti-
Feed the target user.
7. method for interchanging data according to claim 1, which is characterized in that described according to the target original service data
Service parameter in object obtains business datum from the business datum of the second system side, comprising:
From acquisition in the business datum of the second system side and the service parameter pair in the target original service data object
The business datum answered.
8. method for interchanging data according to claim 1, which is characterized in that the data structure information includes: data knot
The respond style of structure and data structure, the data structure include at least one texture field, the response class of the data structure
Type determines the mode to the target users did respond data;
The business data processing that will acquire is matched at the data structure information in the target original service data object
Business datum, comprising:
It will remove, obtain and the data with the unmatched business datum of each texture field in the business datum of the acquisition
The business datum that structure matches;
The business datum that the described and described data structure matches is mapped to corresponding with the respond style of the data structure
In data structure.
9. method for interchanging data according to claim 1, which is characterized in that described to be filled to the target service data
In the target original service data object, comprising:
The data that the target service data format is turned to specified data format, obtain formatted business datum, by institute
Formatted business datum is stated to be filled in the target original service data object.
10. a kind of DEU data exchange unit, which is characterized in that be applied to data exchange system, the DEU data exchange unit includes: to connect
Receive module, data object obtains module, data acquisition module, data processing module, database population module and information feedback module;
The receiving module, the data acquisition request of the target user for receiving the first system side, wherein the data acquisition
It include the mark of requested target service data object in request;
The data object obtains module, for the mark according to the target service data object, from multiple initial service numbers
According to acquisition target original service data object in object, wherein include needing to be somebody's turn to do to request in any original service data object
The service parameter and data structure information of the business datum of the user feedback of data object;
The data acquisition module, for according to the service parameter in the target original service data object, from second system
Business datum is obtained in the business datum of side;
The data processing module, business data processing for will acquire at in the target original service data object
The matched business datum of data structure information is as target service data;
The data load module, for the target service data to be filled in the target original service data object,
Obtain the target service data object;
The information feedback module, for will include that the response message of the target service data object feeds back to the target and uses
Family.
11. DEU data exchange unit according to claim 10, which is characterized in that further include: initialization module;
The initialization module, for being based on data object to data object provider in data exchange system starting
Multiple service data objects that the demand of user is pre-created initialize, and the multiple initial service is obtained after initialization
Data object;
Wherein, any service data object in the multiple service data object is according to data object foundation class predetermined
Creation, each service data object inherit the data object foundation class.
12. DEU data exchange unit according to claim 10, which is characterized in that in the data acquisition request further include:
The user identifier of the authentication information of the target user and the target user;
Described device further include: the first authentication module and the second authentication module;
Whether first authentication module, the authentication information for verifying the target user are correct;
Second authentication module, for when the authentication information of the target user is correct, according to the use of the target user
The mark of family mark and the target service data object, verifies whether the target user has the acquisition target service number
According to the permission of object;If the target user has the permission for obtaining the target service data object, the data are triggered
Object acquisition module obtains institute from the multiple original service data object according to the mark of the target service data object
State target original service data object;
The information feedback module is also used to when the authentication information of the target user is incorrect, alternatively, the target user is not
When with the permission for obtaining the target service data object, Xiang Suoshu target user feedback includes at least gets number not successfully
According to instruction information response message.
13. DEU data exchange unit according to claim 12, which is characterized in that in the data acquisition request further include:
The service parameter of business datum in the target service data object;
Described device further include: third authentication module;
The third authentication module obtains the target industry for determining that the target user has in second authentication module
It is engaged in after the permission of data object, according to the service parameter in the target original service data object, verifies the data acquisition
Whether the service parameter in request is correct;If the service parameter in the data acquisition request is correct, triggers the data and obtain
Modulus root tuber is obtained from the business datum of the second system side according to the service parameter in the target original service data object
Take business datum;
The information feedback module is also used to when the service parameter in the data acquisition request is incorrect, will include not just
The response message of true service parameter feeds back to the target user.
14. a kind of data exchange system characterized by comprising data object loader, data gateway and data object scheduling
Device;
The data object loader, for being based on data to data object provider in data exchange system starting
Multiple service data objects that the demand of object user is pre-created initialize, and will obtain after initialization multiple initial
Service data object is loaded onto data object cache pond;It wherein, include needing to request in any original service data object
The service parameter and data structure information of the business datum of the user feedback of the data object;
The data gateway, the data acquisition request of the target user for receiving the first system side, wherein the data acquisition
It include the mark of requested target service data object in request;
The data object scheduler, for the mark according to the target service data object, from multiple original service datas
Target original service data object is obtained in object, according to the service parameter in the target original service data object, from the
The business data processing that obtains business datum in the business datum of two system side, and will acquire at the target initial service number
According to the matched business datum of data structure information in object as target service data, the target service data are filled to
In the target original service data object, the target service data object is obtained;
The data gateway is also used to the response message including the target service data object feeding back to the target and use
Family.
15. data exchange system according to claim 14, which is characterized in that in the data acquisition request further include:
The user identifier of the authentication information of the target user and the target user;
The data gateway is also used to verify whether the target user has access according to the authentication information of the target user
The permission of the data gateway, if so, by the mark of the user identifier of the target user and the target service data object
Knowledge is supplied to the data object scheduler, gets data not successfully if it is not, then including at least to target user feedback
Instruction information response message;
The data object scheduler, specifically for when the user identifier for obtaining the target user that the data gateway provides
When with the mark of the target service data object, according to the user identifier of the target user and the target service data pair
The mark of elephant, verifies whether the target user has the permission for obtaining the target service data object, if so, according to institute
The mark for stating target service data object obtains the target original service data from the multiple original service data object
Object, if it is not, then including at least the instruction for getting data not successfully to target user feedback by the data gateway
The response message of information.
16. data exchange system according to claim 14 or 15, which is characterized in that also wrapped in the data acquisition request
It includes: the service parameter of the business datum in the target service data object;
The data object scheduler is also used to have the permission for obtaining the target service data object as the target user
When, according to the service parameter in the target original service data object, verify the service parameter in the data acquisition request
It is whether correct;If so, the industry according to the service parameter in the target original service data object, from the second system side
Business datum is obtained in business data, if it is not, then by the data gateway by the response message including incorrect service parameter
Feed back to the target user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910613888.9A CN110321380A (en) | 2019-07-09 | 2019-07-09 | A kind of method for interchanging data, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910613888.9A CN110321380A (en) | 2019-07-09 | 2019-07-09 | A kind of method for interchanging data, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110321380A true CN110321380A (en) | 2019-10-11 |
Family
ID=68121561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910613888.9A Pending CN110321380A (en) | 2019-07-09 | 2019-07-09 | A kind of method for interchanging data, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110321380A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001052502A2 (en) * | 2000-01-14 | 2001-07-19 | Saba Software, Inc. | A method and apparatus for managing data exchange among systems in a network |
CN103139208A (en) * | 2013-02-01 | 2013-06-05 | 宁波市胜源技术转移有限公司 | Data exchanging method |
CN106709016B (en) * | 2016-12-27 | 2018-03-27 | 山东麦港数据系统有限公司 | A kind of method for interchanging data based on service bus |
CN105471968B (en) * | 2015-11-17 | 2018-09-21 | 北京皮尔布莱尼软件有限公司 | A kind of method for interchanging data, system and data platform server |
CN109639636A (en) * | 2018-11-06 | 2019-04-16 | 阿里巴巴集团控股有限公司 | Business datum forwarding, business data processing method, device and electronic equipment |
CN109726235A (en) * | 2018-11-27 | 2019-05-07 | 东软集团股份有限公司 | Method for interchanging data, device, readable storage medium storing program for executing, electronic equipment and system |
-
2019
- 2019-07-09 CN CN201910613888.9A patent/CN110321380A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001052502A2 (en) * | 2000-01-14 | 2001-07-19 | Saba Software, Inc. | A method and apparatus for managing data exchange among systems in a network |
CN103139208A (en) * | 2013-02-01 | 2013-06-05 | 宁波市胜源技术转移有限公司 | Data exchanging method |
CN105471968B (en) * | 2015-11-17 | 2018-09-21 | 北京皮尔布莱尼软件有限公司 | A kind of method for interchanging data, system and data platform server |
CN106709016B (en) * | 2016-12-27 | 2018-03-27 | 山东麦港数据系统有限公司 | A kind of method for interchanging data based on service bus |
CN109639636A (en) * | 2018-11-06 | 2019-04-16 | 阿里巴巴集团控股有限公司 | Business datum forwarding, business data processing method, device and electronic equipment |
CN109726235A (en) * | 2018-11-27 | 2019-05-07 | 东软集团股份有限公司 | Method for interchanging data, device, readable storage medium storing program for executing, electronic equipment and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109981679B (en) | Method and apparatus for performing transactions in a blockchain network | |
AU2018374912B2 (en) | Model training system and method, and storage medium | |
CN110363026B (en) | File operation method, device, equipment, system and computer readable storage medium | |
US8874921B2 (en) | System and method for generating keyless digital multi-signatures | |
US20040168059A1 (en) | System and method for enterprise authentication | |
CN111090581B (en) | Intelligent contract testing method, intelligent contract testing device, computer equipment and storage medium | |
JP2001236014A (en) | Mechanism for merging a plurality of policies | |
CN103475484B (en) | USB key authentication methods and system | |
CN110535971A (en) | Interface configuration processing method, device, equipment and storage medium based on block chain | |
WO2009132529A1 (en) | Method and device for validating the web form data | |
CN110213276A (en) | Authority checking method, server, terminal and medium under a kind of micro services framework | |
RU2734027C2 (en) | Method and device for preventing an attack on a server | |
CN107464121A (en) | Electronic account is reported the loss, solves extension, business management method, device and equipment | |
CN110457629A (en) | Permission processing, authority control method and device | |
KR20180011257A (en) | Automatic recharging system, method and server | |
CN110597541A (en) | Interface updating processing method, device, equipment and storage medium based on block chain | |
CN107645474B (en) | Method and device for logging in open platform | |
CN112799970B (en) | Test data processing method, device, electronic equipment and medium | |
CN112181599B (en) | Model training method, device and storage medium | |
CN103559430B (en) | application account management method and device based on Android system | |
US7610618B2 (en) | System and method for authenticating a subject | |
CN111177171A (en) | Service data authentication and management method and system based on block chain | |
CN110321380A (en) | A kind of method for interchanging data, apparatus and system | |
CN116628696A (en) | Vulnerability detection method based on proxy client and related equipment | |
CN115203747A (en) | Data account creation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191011 |