CN104243565B - The method and apparatus for obtaining configuration data - Google Patents

The method and apparatus for obtaining configuration data Download PDF

Info

Publication number
CN104243565B
CN104243565B CN201410450243.5A CN201410450243A CN104243565B CN 104243565 B CN104243565 B CN 104243565B CN 201410450243 A CN201410450243 A CN 201410450243A CN 104243565 B CN104243565 B CN 104243565B
Authority
CN
China
Prior art keywords
tenant
data
configuration data
attribute information
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410450243.5A
Other languages
Chinese (zh)
Other versions
CN104243565A (en
Inventor
毛定宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410450243.5A priority Critical patent/CN104243565B/en
Publication of CN104243565A publication Critical patent/CN104243565A/en
Application granted granted Critical
Publication of CN104243565B publication Critical patent/CN104243565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and apparatus for obtaining configuration data, belong to Internet technical field.Methods described includes:Receive the configuration data inquiry request for carrying the first tenant identification and the first data item;According to the corresponding relation of tenant identification, data item and the data attribute information prestored, the first data attribute information corresponding to the first tenant identification and the first data item is determined, wherein, data attribute information is that system default attribute information or tenant set a property information;If the first data attribute information is system default attribute information, obtain the first data item prestored corresponding to system default configuration data, configuration data inquiry request is fed back.Using the present invention, the duration found needed for configuration data can be shortened.

Description

The method and apparatus for obtaining configuration data
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and apparatus for obtaining configuration data.
Background technology
In multi-tenant system, certain application software unified plan on the server of oneself, is passed through clothes by service provider Business device provides the service of the application software to the tenant of request offer software service.In multi-tenant system, multistage rent can be included Family, Ji subordinates tenant, Fei subordinates tenant etc., the configuration data of different tenants can be stored with server, such as interface mould Version, business rule, systematic parameter etc., service provider can be that each tenant sets system default configuration data, and Fei subordinates rent Family can be the configuration data that its subordinate tenant sets acquiescence, and most subordinate tenant can set customized configuration data.
The configuration data of each tenant can be stored according to actual conditions, for example, service provider A to tenant B, C and D provides certain software service, wherein, tenant B a certain configuration data is customized configuration data X, tenant C and D this Configuration data is the configuration data Y (configuration data that can be described as system default) that A is provided, and so, server can be each rents Family stores its corresponding configuration data, i.e., is stored in configuration data X is corresponding with user B mark in database, will configure number It is stored according to Y is corresponding with tenant C mark in database, is stored in database by configuration data Y is corresponding with tenant D mark In.When certain tenant accesses its configuration data, server can be by the mark of the tenant of this in access request, in database Obtain configuration data corresponding thereto.
During the present invention is realized, inventor has found that prior art at least has problems with:
The configuration data of usual most of tenant is all the configuration data of system default, if the tenant in multi-tenant system Quantity is a lot (such as 100,000), then the configuration data of each tenant is stored in database through the above way, in database The data volume of storage will be very big, when certain tenant is by its mark configuration data corresponding to lookup in database, can make The duration that must be found needed for configuration data is longer.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of method and dress for obtaining configuration data Put.The technical scheme is as follows:
First aspect, there is provided a kind of method for obtaining configuration data, methods described include:
Receive the configuration data inquiry request for carrying the first tenant identification and the first data item;
According to the corresponding relation of tenant identification, data item and the data attribute information prestored, determine that described first rents First data attribute information corresponding to family mark and first data item, wherein, the data attribute information is system default Attribute information or tenant set a property information;
If first data attribute information is the system default attribute information, described prestored is obtained System default configuration data corresponding to one data item, the configuration data inquiry request is fed back.
With reference in a first aspect, in the first possible implementation of first aspect, methods described also includes:
Set a property information if first data attribute information is the tenant, obtain described the prestored Configuration data corresponding to one tenant identification and first data item, feeds back to the configuration data inquiry request.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect, institute It is Fei subordinates tenant default property information or most subordinate tenant Custom Attributes information to state tenant's information that sets a property, described non- The tenant identification of the Fei subordinates tenant for the configuration data that most subordinate tenant default property information is given tacit consent to for setting, the most subordinate Tenant's Custom Attributes information is the tenant identification for the most subordinate tenant for setting customized configuration data;
Set a property information if first data attribute information is the tenant, obtain the institute prestored Configuration data corresponding to stating the first tenant identification and first data item, feeds back to the configuration data inquiry request, Including:
Set a property information, and first data attribute information if first data attribute information is the tenant For the second tenant identification, then according to the corresponding relation of tenant identification, data item and the configuration data prestored, described the is determined Configuration data corresponding to two tenant identifications and first data item, feeds back to the configuration data inquiry request.
With reference to second of possible implementation of first aspect, in the third possible implementation of first aspect, institute The corresponding relation according to tenant identification, data item and the data attribute information prestored is stated, determines first tenant identification With first data item corresponding to the first data attribute information, including:
If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is more than default Threshold value, then according to the corresponding relation of tenant identification, data item and the data attribute information prestored, determine first tenant First data attribute information corresponding to mark and first data item.
With reference to second of possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, institute It is what subordinate tenant was set to state the configuration data in the corresponding relation of tenant identification, data item and configuration data to include higher level tenant The configuration data of acquiescence, most subordinate tenant are the configuration data of itself self-defined setting, if the 3rd tenant is most subordinate tenant, And the acquiescence that the configuration data of the second data item of the 3rd tenant is system default configuration data or higher level tenant is set Configuration data, then in the corresponding relation of the tenant identification, data item and configuration data, do not include the rent of the 3rd tenant Configuration data corresponding to family mark and second data item;
Methods described also includes:
If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is less than described Predetermined threshold value, then first tenant identification is defined as inquiring about tenant identification;
In the corresponding relation of the tenant identification, data item and configuration data, first data item and described is inquired about Inquire about configuration data corresponding to tenant identification;
If configuration data corresponding to first data item and the inquiry tenant identification is inquired, using inquiring Configuration data, the configuration data inquiry request is fed back;
If configuration data corresponding to first data item and the inquiry tenant identification is not inquired, by described the The 4th tenant identification of the upper level tenant of first tenant corresponding to one tenant identification is defined as the inquiry tenant identification, goes to Perform described in the corresponding relation of the tenant identification, data item and configuration data, inquire about first data item and described Inquire about configuration data corresponding to tenant identification.
With reference to second of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, institute Stating method also includes:
The first attribute setting that reception carries the 5th tenant identification, the second data item and the second data attribute information please Ask, second data attribute information is Fei subordinates tenant default property information or system default attribute information;
By the corresponding storage of the 5th tenant identification, second data item and second data attribute information described in In the corresponding relation of tenant identification, data item and data attribute information.
With reference to second of possible implementation of first aspect, in the 6th kind of possible implementation of first aspect, institute Stating method also includes:
The second attribute setting that reception carries the 6th tenant identification, the 3rd data item and configuration data to be stored please Ask;
By the 6th tenant identification, the 3rd data item and the corresponding storage of the configuration data to be stored described in In the corresponding relation of tenant identification, data item and configuration data;
6th tenant identification is defined as the 3rd data attribute information, and by the 6th tenant identification, described Pair of the tenant identification, data item and data attribute information is arrived in three data item and the corresponding storage of the 3rd data attribute information In should being related to.
Second aspect, there is provided a kind of device for obtaining configuration data, described device include:
Receiving module, the configuration data inquiry request of the first tenant identification and the first data item is carried for receiving;
Determining module, the corresponding relation of the tenant identification, data item and the data attribute information that are prestored for basis, really First data attribute information corresponding to fixed first tenant identification and first data item, wherein, the data attribute letter Cease and set a property information for system default attribute information or tenant;
Feedback module, if being the system default attribute information for first data attribute information, obtain pre- System default configuration data corresponding to first data item first stored, feeds back to the configuration data inquiry request.
With reference to second aspect, in the first possible implementation of second aspect, the feedback module, it is additionally operable to:
Set a property information if first data attribute information is the tenant, obtain described the prestored Configuration data corresponding to one tenant identification and first data item, feeds back to the configuration data inquiry request.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect, institute It is Fei subordinates tenant default property information or most subordinate tenant Custom Attributes information to state tenant's information that sets a property, described non- The tenant identification of the Fei subordinates tenant for the configuration data that most subordinate tenant default property information is given tacit consent to for setting, the most subordinate Tenant's Custom Attributes information is the tenant identification for the most subordinate tenant for setting customized configuration data;
The feedback module, is used for:
Set a property information, and first data attribute information if first data attribute information is the tenant For the second tenant identification, then according to the corresponding relation of tenant identification, data item and the configuration data prestored, described the is determined Configuration data corresponding to two tenant identifications and first data item, feeds back to the configuration data inquiry request.
With reference to second of second aspect may implementation, in the third possible implementation of second aspect, really Cover half block, is used for:
If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is more than default Threshold value, then according to the corresponding relation of tenant identification, data item and the data attribute information prestored, determine first tenant First data attribute information corresponding to mark and first data item.
With reference to second of possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, institute It is what subordinate tenant was set to state the configuration data in the corresponding relation of tenant identification, data item and configuration data to include higher level tenant The configuration data of acquiescence, most subordinate tenant are the configuration data of itself self-defined setting, if the 3rd tenant is most subordinate tenant, And the acquiescence that the configuration data of the second data item of the 3rd tenant is system default configuration data or higher level tenant is set Configuration data, then in the corresponding relation of the tenant identification, data item and configuration data, do not include the rent of the 3rd tenant Configuration data corresponding to family mark and second data item;
Described device also includes enquiry module, is used for:
If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is less than described Predetermined threshold value, then first tenant identification is defined as inquiring about tenant identification;
In the corresponding relation of the tenant identification, data item and configuration data, first data item and described is inquired about Inquire about configuration data corresponding to tenant identification;
If configuration data corresponding to first data item and the inquiry tenant identification is inquired, using inquiring Configuration data, the configuration data inquiry request is fed back;
If configuration data corresponding to first data item and the inquiry tenant identification is not inquired, by described the The 4th tenant identification of the upper level tenant of first tenant corresponding to one tenant identification is defined as the inquiry tenant identification, goes to Perform described in the corresponding relation of the tenant identification, data item and configuration data, inquire about first data item and described Inquire about configuration data corresponding to tenant identification.
With reference to second of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, institute Stating device also includes memory module, is used for:
The first attribute setting that reception carries the 5th tenant identification, the second data item and the second data attribute information please Ask, second data attribute information is Fei subordinates tenant default property information or system default attribute information;
By the corresponding storage of the 5th tenant identification, second data item and second data attribute information described in In the corresponding relation of tenant identification, data item and data attribute information.
With reference to second of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, deposit Module is stored up, is used for:
The second attribute setting that reception carries the 6th tenant identification, the 3rd data item and configuration data to be stored please Ask;
By the 6th tenant identification, the 3rd data item and the corresponding storage of the configuration data to be stored described in In the corresponding relation of tenant identification, data item and configuration data;
6th tenant identification is defined as the 3rd data attribute information, and by the 6th tenant identification, described Pair of the tenant identification, data item and data attribute information is arrived in three data item and the corresponding storage of the 3rd data attribute information In should being related to.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, the configuration data inquiry request for carrying the first tenant identification and the first data item is received, According to the corresponding relation of tenant identification, data item and the data attribute information prestored, the first tenant identification and first are determined First data attribute information corresponding to data item, wherein, data attribute information is that system default attribute information or tenant set category Property information, if the first data attribute information is system default attribute information, it is corresponding to obtain the first data item for prestoring System default configuration data, configuration data inquiry request is fed back, so, can will be big by setting corresponding relation The tenant identification of part tenant is corresponding with system default configuration data, and set of system default configuration number can be only stored in server According to reducing the data volume stored in server, it is thus possible to shorten the duration found needed for configuration data.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow diagram for obtaining configuration data provided in an embodiment of the present invention;
Fig. 2 is a kind of composition schematic diagram of multi-tenant system provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram for obtaining configuration data provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of server provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of method for obtaining configuration data, as shown in figure 1, the handling process of this method can With including the steps:
Step 101, the configuration data inquiry request for carrying the first tenant identification and the first data item is received.
Step 102, according to the corresponding relation of tenant identification, data item and the data attribute information prestored, is determined First data attribute information corresponding to one tenant identification and the first data item, wherein, data attribute information is system default attribute Information or tenant set a property information.
Step 103, if the first data attribute information is system default attribute information, the first number prestored is obtained According to system default configuration data corresponding to item, configuration data inquiry request is fed back.
In the embodiment of the present invention, the configuration data inquiry request for carrying the first tenant identification and the first data item is received, According to the corresponding relation of tenant identification, data item and the data attribute information prestored, the first tenant identification and first are determined First data attribute information corresponding to data item, wherein, data attribute information is that system default attribute information or tenant set category Property information, if the first data attribute information is system default attribute information, it is corresponding to obtain the first data item for prestoring System default configuration data, configuration data inquiry request is fed back, so, can will be big by setting corresponding relation The tenant identification of part tenant is corresponding with system default configuration data, and set of system default configuration number can be only stored in server According to reducing the data volume stored in server, it is thus possible to shorten the duration found needed for configuration data.
Embodiment two
The embodiments of the invention provide a kind of method for obtaining configuration data, this method can be realized by server.Wherein, Server can be the server that application software service is provided to tenant.
Below in conjunction with embodiment, the handling process shown in Fig. 1 is described in detail, content can be as Under:
Step 101, the configuration data inquiry request for carrying the first tenant identification and the first data item is received.
Wherein, configuration data can be the data such as interface template, the systematic parameter of certain application software, and tenant can be to rent The user of the service of the application software, tenant identification can be title or tenant ID (IDentity, the identity number of tenant Code) etc., tenant identification can be according to being set distribution by service provider or voluntarily being set by tenant, and data item can be configuration data Type, such as address date, commodity classification.
In force, certain application software can be arranged on the server of oneself by service provider, and other users can be with The application software need not be bought, but the application software is rented to the service provider, thus constitutes multi-tenant system, The application software can support the application software of multi-tenant, can carry out different set according to different tenants to application software Put, so, the application software that different tenants use can be worked independently each other.One application software can provide Used to multiple tenants, and different tenants is different to the demand of the interface configuration of the application software etc., in order to adapt to The demand of different tenants, the demand can be realized by configuration data, configuration data can include interface template, tenant Business rule, systematic parameter, dictionary data etc..One-level tenant only can be included in multi-tenant system, multistage rent can also be included Family, for example, as shown in Fig. 2 multiple users can to one-level tenant apply rent its rent application software service, so this A little tenants are considered as two level tenant.By taking telecommunication service as an example, certain operator can provide telecommunications service for multiple countries, together When each country in multiple telecommunication service brands be present, i.e. MVNO (Mobile Virtual Network Operator, it is mobile VNO), if the operator only establishes a business platform, i.e. MVNE (Mobile Virtual Network Enabler, mobile virtual network provider) platform, then can be using each national subnet as one-level tenant, under each subnet Multiple MVNO can be used as two level tenant.
Service provider can be that each tenant sets system default configuration data, and Fei subordinates tenant can be that its subordinate rents Family sets the configuration data of acquiescence, and most subordinate tenant can set customized configuration data.Generally, the configuration of most of tenant Data can be the configuration data of system default or the configuration data of its higher level tenant, when certain tenant needs to carry out personalized customization When, just need to reset the configuration data of tenant.When service provider needs to inquire about or access the configuration of certain tenant Data, or certain tenant need to inquire about or access the configuration data of oneself, or to clothes when certain tenant logs in multi-tenant system When business device asks the configuration data of the tenant, the terminal of oneself can be used to write the query statement of configuration data, such as SQL (Structured Query Language, SQL) sentence, after the completion of query statement editor, click on inquiry During button, configuration data inquiry request is generated, and the data that the configuration data inquiry request is set by multi-tenant system are visited Ask that interface is sent to server, wherein, tenant identification (i.e. the first tenant of above-mentioned tenant is carried in configuration data inquiry request Mark) and data item (i.e. the first data item).
Step 102, according to the corresponding relation of tenant identification, data item and the data attribute information prestored, is determined First data attribute information corresponding to one tenant identification and the first data item, wherein, data attribute information is system default attribute Information or tenant set a property information.
Wherein, data attribute information can be the information of the user belonging to certain configuration data, if certain configuration data be by Service provider provides, then data attribute information is system default attribute information, and system default attribute information can be that service carries For the information of business, as the mark of service provider or other be used for the information of identity service provider, if certain configuration data is There is provided by some tenant, then data attribute information is that tenant sets a property information, and tenant's information that sets a property can be certain tenant Information, the tenant identification of such as tenant.
In force, technical staff can arrange to the data attribute information of the configuration data of different tenants, can be with By the configuration data of the tenant identification of each tenant, the type (i.e. data item) of the configuration data of each tenant and each tenant The corresponding storage of data attribute information is into server, and when receiving the first tenant identification and the first data item, server is upper State and searched in the corresponding relation of storage, find data attribute information corresponding to the first tenant identification and the first data item.Wherein, Above-mentioned corresponding relation can be stored in table form, be believed using tenant identification or the mark of service provider as data attribute Exemplified by breath, as shown in Fig. 2 the mapping table can be as shown in table 1.
Table 1
Tenant identification Data item Data attribute information
A1 M A1
A2 M A
A3 M K
A1 N A
A2 N K
A3 N A3
Wherein, data attribute information is that A1 represents that the tenant oneself that tenant identification is A1 is provided with configuration data, and A represents certain The tenant identification of the higher level tenant of tenant corresponding to tenant identification, K are the mark of service provider.If the first tenant identification is A2, the first data item are M, then the corresponding relation of inquiry such as table 1, it may be determined that data attribute information corresponding to A2 and M is A, together Reason, if the first tenant identification is A3, the first data item is M, then its corresponding data attribute information is K, wherein, K is system Default property information.
Data attribute information in above-mentioned table 1 can be multiple marks, for example, tenant identification is A1, data item is M corresponding Data attribute information can be A1, A and K, specific example can be:Data item M can be commodity classification, then tenant identification The commodity classification possessed by A1 tenant includes commodity classification and all higher level tenant institutes of the tenant of oneself self-defined setting The commodity classification possessed.
It is alternatively possible to set certain triggering to perform condition for above-mentioned steps 102, the processing mode can be with a variety of more Sample, a kind of optional processing mode presented below, herein below can be included:If tenant identification, data item and configuration data Corresponding relation in the quantity of configuration data be more than predetermined threshold value, then according to tenant identification, data item and the number prestored According to the corresponding relation of attribute information, the first data attribute information corresponding to the first tenant identification and the first data item is determined.
In force, technical staff can be that the quantity of configuration data sets a threshold value, to reduce according to actual conditions The data volume stored in server, so as to keep server to be operated with preferable performance, if the configuration number stored in server According to quantity be more than predetermined threshold value, it may be determined that the data volume of the configuration data stored in server is more, not influence to service The performance of device, it can be determined by the processing procedure of above-mentioned steps 102 first corresponding to first tenant identification and the first data item Data attribute information, and then obtain configuration data.
Step 103, if the first data attribute information is system default attribute information, the first number prestored is obtained According to system default configuration data corresponding to item, configuration data inquiry request is fed back.
In force, service provider can be configured to the configuration data of above-mentioned application software, can be in server Storage region in mark off a part of storage region, can be by different pieces of information item corresponding with its configuration data storage to service In the above-mentioned storage region of device, above-mentioned corresponding relation can store in table form, as shown in table 2.
Table 2
Data item Configuration data
M P1
N P2
Server finds data attribute information corresponding to the first tenant identification and the first data item by above-mentioned steps 102 When, it can judge whether the data attribute information is system default according to the service provider prestored in server mark Attribute information, as, if the first tenant identification is A3, the first data item is M in table 1, then its corresponding data attribute information is K, The mark of the service provider stored in K and server is contrasted, if the mark of service provider is also K, it is determined that the number It is system default attribute information according to attribute information, otherwise, it determines the data attribute information is not system default attribute information, if First data attribute information is system default attribute information, then server obtains the first data item, and uses the first data item, arrives Configuration data corresponding to the first data item (i.e. system default configuration data) is found in above-mentioned storage region, for example, the first number It is M according to item, then passes through the corresponding relation of table 2, it may be determined that configuration data corresponding to the first data item is P1, then, server System default configuration data can be sent to terminal, user can check the configuration data received by terminal.
Alternatively, set a property information if the first data attribute information is tenant, obtain first prestored and rent Configuration data corresponding to family mark and the first data item, feeds back to configuration data inquiry request.
In force, database can be provided with server, for storage configuration data, different tenants can be marked The corresponding storage of knowledge, data item and configuration data is into database, and above-mentioned corresponding relation can store in table form, such as the institute of table 3 Show.
Table 3
Tenant identification Data item Configuration data
A1 M P3
A M P4
A N P5
A3 N P6
Set a property information if the server determine that the first data attribute information is tenant, then the first tenant can be used to mark Knowledge and the first data item, search into database, find configuration data corresponding to the first tenant identification and the first data item, example Such as, the first tenant identification is A1, and the first data item is M, then passes through the corresponding relation of table 3, it may be determined that corresponding configuration data For P3, then, the configuration data found can be sent to terminal by server, and user can check what is received by terminal Configuration data.
Alternatively, one-level tenant can be only included in multi-tenant system, multistage tenant can also be included, for multistage tenant Situation, multi-tenant system includes most subordinate tenant and non-most subordinate tenant, then tenant's information that sets a property can be:It is non-most Subordinate tenant default property information or most subordinate tenant Custom Attributes information, Fei subordinates tenant default property information are setting The tenant identification of the Fei subordinates tenant of the configuration data of acquiescence, most subordinate tenant Custom Attributes information are customized to set The tenant identification of the most subordinate tenant of configuration data.
Correspondingly, above-mentioned first data attribute information be tenant set a property information processing procedure can with varied, A kind of optional processing mode presented below, herein below can be included:If the first data attribute information, which is tenant, sets category Property information, and the first data attribute information is the second tenant identification, then according to tenant identification, data item and the configuration prestored The corresponding relation of data, configuration data corresponding to the second tenant identification and the first data item is determined, to configuration data inquiry request Fed back.
Wherein, as shown in Fig. 2 the second tenant identification can be tenant identification (i.e. the first tenant mark of most subordinate tenant Know), such as the tenant identification A1 in table 3, the second tenant identification can also be the tenant identification of the most higher level tenant of subordinate tenant (i.e. The tenant identification of Fei subordinates tenant), such as the tenant identification A in table 3.
In force, if the second tenant identification is the tenant identification of most subordinate tenant, the first tenant can be used to mark Knowledge and the first data item, search into such as corresponding relation of table 3, find and match somebody with somebody corresponding to the first tenant identification and the first data item Data are put, can be using the if the second tenant identification is the tenant identification (i.e. the second tenant identification) of Fei subordinates tenant Two tenant identifications and the first data item, searched into such as corresponding relation of table 3, find the first tenant identification and the first data item Corresponding configuration data, for example, the second tenant identification is A, the first data item is M, then, can be true by the corresponding relation of table 3 Configuration data corresponding to fixed is P4.
The configuration data of said system acquiescence and the corresponding relation of data item, as shown in table 2, and tenant identification, data The corresponding relation of item and configuration data, can be located in same mapping table as shown in table 3, if representing service with K The mark of provider, then the mapping table of mark, data item and configuration data comprising tenant identification or service provider can With as shown in table 4.
Table 4
The above-mentioned corresponding relation such as table 4 can be stored into server, by above-mentioned corresponding relation, server can be more Add easily by tenant identification or the mark of service provider, data item, find corresponding configuration data.
In order to by the processing procedure of 101~step 103 of above-mentioned steps definitely, below using concrete application scene as Said process is described in detail example, can include herein below:
Exemplified by inquiring about the first tenant identification and be configuration data corresponding to address list for A1 tenant, the first data item, General multi-tenant system all stores the configuration data of each tenant using relevant database, can be directly real using SQL statement Now to the access of database, or using mapping tools such as Hibernate, object-oriented action statement is converted into relation schema SQL statement, database is then accessed by SQL statement.SQL statement can be edited, the SQL statement can be select* From address, wherein, address is the first data item, and then, terminal generation is carried above and below the SQL statement and system The configuration data inquiry request of literary information (including first tenant identification), and clothes are sent to by the data access interface of server Business device, server use the first tenant identification and the first data item, find corresponding data attribute information in table 1 above and are A1, then data attribute information can be that A1 is added in above-mentioned SQL statement by server, generate new SQL statement, the SQL languages Sentence can be select*from address where tenant_id=A1, then pair using the SQL statement to such as table 3 Configuration data corresponding to searching A1 and address (i.e. the first data item) in the database that should be related to is P3, and server can incite somebody to action P3 is sent to terminal.
It is alternatively possible to other corresponding relations are added into such as mapping table of table 1, can also be to the correspondence of such as table 1 Relation table is modified, and the processing mode a kind of optional processing mode presented below, be able to can be included following with varied Situation:
Situation one, receive the first attribute for carrying the 5th tenant identification, the second data item and the second data attribute information Request is set, and the second data attribute information is Fei subordinates tenant default property information or system default attribute information;By the 5th Tenant identification, data item and data attribute information are arrived in the corresponding storage of tenant identification, the second data item and the second data attribute information Corresponding relation in.
Wherein, the 5th tenant identification can be with the tenant identification of any tenant.
In force, if the configuration data of certain tenant is system default configuration data or the acquiescence of the tenant higher level tenant Configuration data, then server only the corresponding relation of such as table 1 can be configured, when receiving the first property setting request When, server obtains the 5th tenant identification, the second data item and the second data attribute information therein, and is corresponded to storage and arrived As table 1 corresponding relation in.
Situation two, receive the second attribute for carrying the 6th tenant identification, the 3rd data item and configuration data to be stored Request is set;By the corresponding storage of the 6th tenant identification, the 3rd data item and configuration data to be stored to tenant identification, data item In the corresponding relation of configuration data;6th tenant identification is defined as the 3rd data attribute information, and by the 6th tenant identification, The corresponding relation of tenant identification, data item and data attribute information is arrived in 3rd data item and the corresponding storage of the 3rd data attribute information In.
Wherein, the 6th tenant identification can be with the tenant identification of any tenant.
In force, if the configuration data of certain tenant is the configuration data of the self-defined setting of the tenant, server can To be configured respectively to such as corresponding relation of table 1 and table 3, when receiving the second property setting request, server obtains it In the 6th tenant identification, the 3rd data item and configuration data to be stored, and corresponded to storage arrive as table 3 corresponding relation In, it is then possible to the 6th tenant identification is defined as into the 3rd data attribute information, by the 6th tenant identification, the 3rd data item and The corresponding storage of 3rd data attribute information is into such as corresponding relation of table 1.
A kind of method for obtaining configuration data is additionally provided in the embodiment of the present invention, in this method, due to tenant identification, number Include the configuration number that higher level tenant is the acquiescence that subordinate tenant is set according to the configuration data in item and the corresponding relation of configuration data According to the configuration data that, most subordinate tenant is itself self-defined setting, if the 3rd tenant is most subordinate tenant, and the 3rd tenant The configuration data of second data item is the configuration data of system default configuration data or the acquiescence of higher level tenant's setting, then in tenant In the corresponding relation of mark, data item and configuration data, corresponding to the tenant identification and the second data item not including the 3rd tenant Configuration data, i.e., tenant identification, the second data item and the system default of the 3rd tenant are not included in the above-mentioned corresponding relation such as table 3 The corresponding relation of configuration data, also do not include the tenant identification of the 3rd tenant, the acquiescence that the second data item is set with higher level tenant Configuration data corresponding relation.
Correspondingly, if the quantity of the configuration data in the corresponding relation of tenant identification, data item and configuration data is less than Predetermined threshold value, it can in the following manner handle, may comprise steps of:
Step 1, if the quantity of the configuration data in the corresponding relation of tenant identification, data item and configuration data is less than Predetermined threshold value, then the first tenant identification is defined as inquiring about tenant identification.
Step 2, in the corresponding relation of tenant identification, data item and configuration data, the first data item of inquiry and inquiry are rented Configuration data corresponding to the mark of family.
Step 3, if configuration data corresponding to the first data item and inquiry tenant identification is inquired, using inquiring Configuration data, configuration data inquiry request is fed back.
Step 4, if configuration data corresponding to not inquiring the first data item and inquiry tenant identification, first is rented The 4th tenant identification of the upper level tenant of the first tenant is defined as inquiring about tenant identification corresponding to the mark of family, and it is above-mentioned to go to execution Step 2.
In force, server is looked into first by the first tenant identification and the first data item in such as corresponding relation of table 3 Look for, if configuration data corresponding to finding the first tenant identification and the first data item, obtains the configuration data, and sent out Terminal is given, if not finding configuration corresponding to the first tenant identification and the first data item in the corresponding relation such as table 3 The tenant identification of data, then the upper level tenant of the first tenant corresponding to the first tenant identification of server acquisition, passes through upper level The tenant identification of tenant and the first data item, are continued to search in such as corresponding relation of table 3, if matched somebody with somebody corresponding to not finding Data are put, then the tenant identification for obtaining the upper level tenant of upper level tenant continues to search for, until finding corresponding configuration Data, or the configuration data of the first tenant is system default configuration data corresponding to the first tenant identification of determination, for determining The configuration data of first tenant corresponding to first tenant identification is the situation of system default configuration data, can pass through pair of table 2 It should be related to, obtain system default configuration data.
In the embodiment of the present invention, the configuration data inquiry request for carrying the first tenant identification and the first data item is received, According to the corresponding relation of tenant identification, data item and the data attribute information prestored, the first tenant identification and first are determined First data attribute information corresponding to data item, wherein, data attribute information is that system default attribute information or tenant set category Property information, if the first data attribute information is system default attribute information, it is corresponding to obtain the first data item for prestoring System default configuration data, configuration data inquiry request is fed back, so, can will be big by setting corresponding relation The tenant identification of part tenant is corresponding with system default configuration data, and set of system default configuration number can be only stored in server According to reducing the data volume stored in server, it is thus possible to shorten the duration found needed for configuration data.
Embodiment three
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of device for obtaining configuration data, such as Fig. 3 institutes Show, the device includes:
Receiving module 310, the configuration data inquiry request of the first tenant identification and the first data item is carried for receiving;
Determining module 320, for being closed according to the tenant identification, the data item that prestore are corresponding with data attribute information System, determines the first data attribute information corresponding to the first tenant identification and the first data item, wherein, data attribute information is system Default property information or tenant set a property information;
Feedback module 330, if being system default attribute information for the first data attribute information, acquisition prestores The first data item corresponding to system default configuration data, configuration data inquiry request is fed back.
Alternatively, feedback module 330, it is additionally operable to:
Set a property information if the first data attribute information is tenant, obtain the first tenant identification for prestoring and Configuration data corresponding to first data item, configuration data inquiry request is fed back.
Alternatively, tenant's information that sets a property is Fei subordinates tenant default property information or the most self-defined category of subordinate tenant Property information, Fei subordinates tenant default property information for set acquiescence configuration data Fei subordinates tenant tenant identification, Most subordinate tenant Custom Attributes information is the tenant identification for the most subordinate tenant for setting customized configuration data;
Feedback module 330, is used for:
Set a property information if the first data attribute information is tenant, and the first data attribute information is the second tenant mark Know, then according to the corresponding relation of tenant identification, data item and the configuration data prestored, determine the second tenant identification and first Configuration data corresponding to data item, configuration data inquiry request is fed back.
Optionally it is determined that module 320, is used for:
If the quantity of the configuration data in the corresponding relation of tenant identification, data item and configuration data is more than default threshold Value, then according to the corresponding relation of tenant identification, data item and data attribute information prestored, determine the first tenant identification and First data attribute information corresponding to first data item.
Alternatively, the configuration data in the corresponding relation of tenant identification, data item and configuration data is including higher level tenant The configuration data for the acquiescence that subordinate tenant is set, the configuration data that most subordinate tenant is itself self-defined setting, if the 3rd rents Family is most subordinate tenant, and the configuration data of the second data item of the 3rd tenant is that system default configuration data or higher level tenant set The configuration data for the acquiescence put, then in the corresponding relation of tenant identification, data item and configuration data, not including the 3rd tenant's Configuration data corresponding to tenant identification and the second data item;
The device also includes enquiry module, is used for:
If the quantity of the configuration data in the corresponding relation of tenant identification, data item and configuration data is less than default threshold Value, then the first tenant identification is defined as inquiring about tenant identification;
In the corresponding relation of tenant identification, data item and configuration data, the first data item of inquiry and inquiry tenant identification Corresponding configuration data;
If configuration data corresponding to inquiring the first data item and inquiry tenant identification, uses the configuration number inquired According to being fed back to configuration data inquiry request;
If configuration data corresponding to the first data item and inquiry tenant identification is not inquired, by the first tenant identification pair The 4th tenant identification of the upper level tenant of the first tenant answered be defined as inquire about tenant identification, go to execution tenant identification, In the corresponding relation of data item and configuration data, configuration data corresponding to the first data item of inquiry and inquiry tenant identification.
Alternatively, the device also includes memory module, is used for:
The first attribute setting that reception carries the 5th tenant identification, the second data item and the second data attribute information please Ask, the second data attribute information is Fei subordinates tenant default property information or system default attribute information;
By the corresponding storage of the 5th tenant identification, the second data item and the second data attribute information to tenant identification, data item With in the corresponding relation of data attribute information.
Alternatively, memory module, it is used for:
The second attribute setting that reception carries the 6th tenant identification, the 3rd data item and configuration data to be stored please Ask;
By the corresponding storage of the 6th tenant identification, the 3rd data item and configuration data to be stored to tenant identification, data item In the corresponding relation of configuration data;
6th tenant identification is defined as the 3rd data attribute information, and by the 6th tenant identification, the 3rd data item and The corresponding storage of three data attribute informations is into the corresponding relation of tenant identification, data item and data attribute information.
In the embodiment of the present invention, the configuration data inquiry request for carrying the first tenant identification and the first data item is received, According to the corresponding relation of tenant identification, data item and the data attribute information prestored, the first tenant identification and first are determined First data attribute information corresponding to data item, wherein, data attribute information is that system default attribute information or tenant set category Property information, if the first data attribute information is system default attribute information, it is corresponding to obtain the first data item for prestoring System default configuration data, configuration data inquiry request is fed back, so, can will be big by setting corresponding relation The tenant identification of part tenant is corresponding with system default configuration data, and set of system default configuration number can be only stored in server According to reducing the data volume stored in server, it is thus possible to shorten the duration found needed for configuration data.
It should be noted that:Above-described embodiment provide acquisition configuration data device when obtaining configuration data, only with The division progress of above-mentioned each functional module, can be as needed and by above-mentioned function distribution by not for example, in practical application Same functional module is completed, i.e., the internal structure of server is divided into different functional modules, described above complete to complete Portion or partial function.In addition, the device for the acquisition configuration data that above-described embodiment provides and the method for obtaining configuration data are real Apply example and belong to same design, its specific implementation process refers to embodiment of the method, repeats no more here.
Example IV
Fig. 4 is the structural representation of server provided in an embodiment of the present invention.The server can be used for implementing above-mentioned reality The method that the acquisition configuration data provided in example is provided.Specifically:
Server 1100 can produce bigger difference because configuration or performance are different, can include one or more Central processing unit (Central Processing Units, CPU) 1122 (for example, one or more processors) and storage The storage medium 1130 (such as one or one of device 1132, one or more storage application programs 1142 or data 1144 Above mass memory unit).Wherein, memory 1132 and storage medium 1130 can be of short duration storage or persistently storage.Storage One or more modules (diagram is not shown) can be included in the program of storage medium 1130, each module can include pair Series of instructions operation in server.Further, central processing unit 1122 could be arranged to logical with storage medium 1130 Letter, the series of instructions operation in storage medium 1130 is performed on server 1100.Server 1100 can also include one Or more than one power supply 1126, one or more wired or wireless network interfaces 1150, one or more inputs are defeated Outgoing interface 1158, one or more keyboards 1156, and/or, one or more operating systems 1141, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Specifically in the present embodiment, clothes Business device includes memory, and one or more program, and one of them or more than one program storage is in storage In device, and one or more than one program can include one or more modules, and each module can be included to clothes The series of instructions operation being engaged in device, and be configured to by one either more than one computing device this or one with Upper program bag contains the instruction for being used for being operated below:
Receive the configuration data inquiry request for carrying the first tenant identification and the first data item;
According to the corresponding relation of tenant identification, data item and the data attribute information prestored, determine that the first tenant marks First data attribute information corresponding to knowledge and the first data item, wherein, data attribute information is system default attribute information or rent Family sets a property information;
If the first data attribute information is system default attribute information, it is corresponding to obtain the first data item prestored System default configuration data, configuration data inquiry request is fed back.
Alternatively, this method also includes:
Set a property information if the first data attribute information is tenant, obtain the first tenant identification for prestoring and Configuration data corresponding to first data item, configuration data inquiry request is fed back.
Alternatively, tenant's information that sets a property is Fei subordinates tenant default property information or the most self-defined category of subordinate tenant Property information, Fei subordinates tenant default property information for set acquiescence configuration data Fei subordinates tenant tenant identification, Most subordinate tenant Custom Attributes information is the tenant identification for the most subordinate tenant for setting customized configuration data;
Set a property information if the first data attribute information is tenant, obtain the first tenant identification for prestoring and Configuration data corresponding to first data item, configuration data inquiry request is fed back, including:
Set a property information if the first data attribute information is tenant, and the first data attribute information is the second tenant mark Know, then according to the corresponding relation of tenant identification, data item and the configuration data prestored, determine the second tenant identification and first Configuration data corresponding to data item, configuration data inquiry request is fed back.
Alternatively, according to the corresponding relation of tenant identification, data item and the data attribute information prestored, first is determined First data attribute information corresponding to tenant identification and the first data item, including:
If the quantity of the configuration data in the corresponding relation of tenant identification, data item and configuration data is more than default threshold Value, then according to the corresponding relation of tenant identification, data item and data attribute information prestored, determine the first tenant identification and First data attribute information corresponding to first data item.
Alternatively, the configuration data in the corresponding relation of tenant identification, data item and configuration data is including higher level tenant The configuration data for the acquiescence that subordinate tenant is set, the configuration data that most subordinate tenant is itself self-defined setting, if the 3rd rents Family is most subordinate tenant, and the configuration data of the second data item of the 3rd tenant is that system default configuration data or higher level tenant set The configuration data for the acquiescence put, then in the corresponding relation of tenant identification, data item and configuration data, not including the 3rd tenant's Configuration data corresponding to tenant identification and the second data item;
This method also includes:
If the quantity of the configuration data in the corresponding relation of tenant identification, data item and configuration data is less than default threshold Value, then the first tenant identification is defined as inquiring about tenant identification;
In the corresponding relation of tenant identification, data item and configuration data, the first data item of inquiry and inquiry tenant identification Corresponding configuration data;
If configuration data corresponding to inquiring the first data item and inquiry tenant identification, uses the configuration number inquired According to being fed back to configuration data inquiry request;
If configuration data corresponding to the first data item and inquiry tenant identification is not inquired, by the first tenant identification pair The 4th tenant identification of the upper level tenant of the first tenant answered be defined as inquire about tenant identification, go to execution tenant identification, In the corresponding relation of data item and configuration data, configuration data corresponding to the first data item of inquiry and inquiry tenant identification.
Alternatively, this method also includes:
The first attribute setting that reception carries the 5th tenant identification, the second data item and the second data attribute information please Ask, the second data attribute information is Fei subordinates tenant default property information or system default attribute information;
By the corresponding storage of the 5th tenant identification, the second data item and the second data attribute information to tenant identification, data item With in the corresponding relation of data attribute information.
Alternatively, this method also includes:
The second attribute setting that reception carries the 6th tenant identification, the 3rd data item and configuration data to be stored please Ask;
By the corresponding storage of the 6th tenant identification, the 3rd data item and configuration data to be stored to tenant identification, data item In the corresponding relation of configuration data;
6th tenant identification is defined as the 3rd data attribute information, and by the 6th tenant identification, the 3rd data item and The corresponding storage of three data attribute informations is into the corresponding relation of tenant identification, data item and data attribute information.
In the embodiment of the present invention, the configuration data inquiry request for carrying the first tenant identification and the first data item is received, According to the corresponding relation of tenant identification, data item and the data attribute information prestored, the first tenant identification and first are determined First data attribute information corresponding to data item, wherein, data attribute information is that system default attribute information or tenant set category Property information, if the first data attribute information is system default attribute information, it is corresponding to obtain the first data item for prestoring System default configuration data, configuration data inquiry request is fed back, so, can will be big by setting corresponding relation The tenant identification of part tenant is corresponding with system default configuration data, and set of system default configuration number can be only stored in server According to reducing the data volume stored in server, it is thus possible to shorten the duration found needed for configuration data.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. method for obtaining configuration data, it is characterised in that methods described includes:
    Receive the configuration data inquiry request for carrying the first tenant identification and the first data item;
    According to the corresponding relation of tenant identification, data item and the data attribute information prestored, the first tenant mark is determined First data attribute information corresponding to knowledge and first data item, wherein, the data attribute information is system default attribute Information or tenant set a property information;
    If first data attribute information is the system default attribute information, first number prestored is obtained According to system default configuration data corresponding to item, the configuration data inquiry request is fed back;
    Set a property information if first data attribute information is the tenant, and first data attribute information is the Two tenant identifications, then according to the corresponding relation of tenant identification, data item and the configuration data prestored, determine that described second rents Configuration data corresponding to family mark and first data item, feeds back to the configuration data inquiry request;
    Wherein, the tenant information that sets a property is Fei subordinates tenant default property information or most subordinate tenant Custom Attributes Information, the Fei subordinates tenant default property information are marked for the tenant of the Fei subordinates tenant of the configuration data of setting acquiescence Know, the most subordinate tenant Custom Attributes information is the tenant identification for the most subordinate tenant for setting customized configuration data.
  2. 2. according to the method for claim 1, it is characterised in that tenant identification that the basis prestores, data item with The corresponding relation of data attribute information, determine the first data attribute corresponding to first tenant identification and first data item Information, including:
    If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is more than default threshold Value, then according to the corresponding relation of tenant identification, data item and the data attribute information prestored, determine the first tenant mark First data attribute information corresponding to knowledge and first data item.
  3. 3. according to the method for claim 1, it is characterised in that the correspondence of the tenant identification, data item and configuration data Configuration data in relation include higher level tenant be the configuration data for the acquiescence that subordinate tenant is set, most subordinate tenant be itself from The configuration data set is defined, if the 3rd tenant is most subordinate tenant, and the configuration of the second data item of the 3rd tenant Data are the configuration data of system default configuration data or the acquiescence of higher level tenant's setting, then in the tenant identification, data item In the corresponding relation of configuration data, configuration corresponding to the tenant identification and second data item not including the 3rd tenant Data;
    Methods described also includes:
    If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is less than default threshold Value, then first tenant identification is defined as inquiring about tenant identification;
    In the corresponding relation of the tenant identification, data item and configuration data, first data item and the inquiry are inquired about Configuration data corresponding to tenant identification;
    If configuration data corresponding to inquiring first data item and the inquiry tenant identification, is matched somebody with somebody using what is inquired Data are put, the configuration data inquiry request is fed back;
    If configuration data corresponding to not inquiring first data item and the inquiry tenant identification, described first is rented The 4th tenant identification of the upper level tenant of the first tenant is defined as the inquiry tenant identification corresponding to the mark of family, goes to execution It is described in the corresponding relation of the tenant identification, data item and configuration data, inquire about first data item and the inquiry Configuration data corresponding to tenant identification.
  4. 4. according to the method for claim 1, it is characterised in that methods described also includes:
    Receive the first property setting request for carrying the 5th tenant identification, the second data item and the second data attribute information, institute It is Fei subordinates tenant default property information or system default attribute information to state the second data attribute information;
    The tenant is arrived into the corresponding storage of 5th tenant identification, second data item and second data attribute information In the corresponding relation of mark, data item and data attribute information.
  5. 5. according to the method for claim 1, it is characterised in that methods described also includes:
    Receive the second property setting request for carrying the 6th tenant identification, the 3rd data item and configuration data to be stored;
    The tenant is arrived into 6th tenant identification, the 3rd data item and the corresponding storage of the configuration data to be stored In the corresponding relation of mark, data item and configuration data;
    6th tenant identification is defined as the 3rd data attribute information, and the 6th tenant identification, the described 3rd are counted The tenant identification, data item pass corresponding with data attribute information are arrived according to item and the corresponding storage of the 3rd data attribute information In system.
  6. 6. a kind of device for obtaining configuration data, it is characterised in that described device includes:
    Receiving module, the configuration data inquiry request of the first tenant identification and the first data item is carried for receiving;
    Determining module, for the corresponding relation according to tenant identification, data item and the data attribute information prestored, determine institute The first data attribute information corresponding to the first tenant identification and first data item is stated, wherein, the data attribute information is System default attribute information or tenant set a property information;
    Feedback module, if being the system default attribute information for first data attribute information, acquisition is deposited in advance System default configuration data corresponding to first data item of storage, feeds back to the configuration data inquiry request;
    The feedback module, if it is that the tenant sets a property information for first data attribute information, and described the One data attribute information is the second tenant identification, then according to the correspondence of tenant identification, data item and the configuration data prestored Relation, configuration data corresponding to second tenant identification and first data item is determined, please to configuration data inquiry Ask and fed back;
    Wherein, the tenant information that sets a property is Fei subordinates tenant default property information or most subordinate tenant Custom Attributes Information, the Fei subordinates tenant default property information are marked for the tenant of the Fei subordinates tenant of the configuration data of setting acquiescence Know, the most subordinate tenant Custom Attributes information is the tenant identification for the most subordinate tenant for setting customized configuration data.
  7. 7. device according to claim 6, it is characterised in that determining module, be used for:
    If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is more than default threshold Value, then according to the corresponding relation of tenant identification, data item and the data attribute information prestored, determine the first tenant mark First data attribute information corresponding to knowledge and first data item.
  8. 8. device according to claim 6, it is characterised in that the correspondence of the tenant identification, data item and configuration data Configuration data in relation include higher level tenant be the configuration data for the acquiescence that subordinate tenant is set, most subordinate tenant be itself from The configuration data set is defined, if the 3rd tenant is most subordinate tenant, and the configuration of the second data item of the 3rd tenant Data are the configuration data of system default configuration data or the acquiescence of higher level tenant's setting, then in the tenant identification, data item In the corresponding relation of configuration data, configuration corresponding to the tenant identification and second data item not including the 3rd tenant Data;
    Described device also includes enquiry module, is used for:
    If the quantity of the configuration data in the corresponding relation of the tenant identification, data item and configuration data is less than default threshold Value, then first tenant identification is defined as inquiring about tenant identification;
    In the corresponding relation of the tenant identification, data item and configuration data, first data item and the inquiry are inquired about Configuration data corresponding to tenant identification;
    If configuration data corresponding to inquiring first data item and the inquiry tenant identification, is matched somebody with somebody using what is inquired Data are put, the configuration data inquiry request is fed back;
    If configuration data corresponding to not inquiring first data item and the inquiry tenant identification, described first is rented The 4th tenant identification of the upper level tenant of the first tenant is defined as the inquiry tenant identification corresponding to the mark of family, goes to execution It is described in the corresponding relation of the tenant identification, data item and configuration data, inquire about first data item and the inquiry Configuration data corresponding to tenant identification.
  9. 9. device according to claim 6, it is characterised in that described device also includes memory module, is used for:
    Receive the first property setting request for carrying the 5th tenant identification, the second data item and the second data attribute information, institute It is Fei subordinates tenant default property information or system default attribute information to state the second data attribute information;
    The tenant is arrived into the corresponding storage of 5th tenant identification, second data item and second data attribute information In the corresponding relation of mark, data item and data attribute information.
  10. 10. device according to claim 6, it is characterised in that memory module, be used for:
    Receive the second property setting request for carrying the 6th tenant identification, the 3rd data item and configuration data to be stored;
    The tenant is arrived into 6th tenant identification, the 3rd data item and the corresponding storage of the configuration data to be stored In the corresponding relation of mark, data item and configuration data;
    6th tenant identification is defined as the 3rd data attribute information, and the 6th tenant identification, the described 3rd are counted The tenant identification, data item pass corresponding with data attribute information are arrived according to item and the corresponding storage of the 3rd data attribute information In system.
CN201410450243.5A 2014-09-04 2014-09-04 The method and apparatus for obtaining configuration data Active CN104243565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410450243.5A CN104243565B (en) 2014-09-04 2014-09-04 The method and apparatus for obtaining configuration data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410450243.5A CN104243565B (en) 2014-09-04 2014-09-04 The method and apparatus for obtaining configuration data

Publications (2)

Publication Number Publication Date
CN104243565A CN104243565A (en) 2014-12-24
CN104243565B true CN104243565B (en) 2018-02-06

Family

ID=52230894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410450243.5A Active CN104243565B (en) 2014-09-04 2014-09-04 The method and apparatus for obtaining configuration data

Country Status (1)

Country Link
CN (1) CN104243565B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326296A (en) * 2015-07-01 2017-01-11 中兴通讯股份有限公司 Data query method and device
CN105872045A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Virtual user configuration method and server
CN106789315B (en) * 2016-12-30 2020-02-14 广州杰赛科技股份有限公司 System configuration method and device
CN108268798B (en) * 2017-06-30 2023-09-05 勤智数码科技股份有限公司 Data item authority allocation method and system
CN108197253B (en) * 2017-12-29 2021-01-15 方正璞华软件(武汉)股份有限公司 Equipment query method, device and equipment of cloud monitoring platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456028A (en) * 2010-10-27 2012-05-16 金蝶软件(中国)有限公司 Multi-tenant-oriented data acquisition method, device and system
CN102651775A (en) * 2012-03-05 2012-08-29 国家超级计算深圳中心(深圳云计算中心) Method, equipment and system for managing shared objects of a plurality of lessees based on cloud computation
CN103312721A (en) * 2013-07-04 2013-09-18 北京迈普华兴信息技术有限公司 Cloud platform access control framework and implementation method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7779039B2 (en) * 2004-04-02 2010-08-17 Salesforce.Com, Inc. Custom entities and fields in a multi-tenant database system
US9460169B2 (en) * 2011-01-12 2016-10-04 International Business Machines Corporation Multi-tenant audit awareness in support of cloud environments

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456028A (en) * 2010-10-27 2012-05-16 金蝶软件(中国)有限公司 Multi-tenant-oriented data acquisition method, device and system
CN102651775A (en) * 2012-03-05 2012-08-29 国家超级计算深圳中心(深圳云计算中心) Method, equipment and system for managing shared objects of a plurality of lessees based on cloud computation
CN103312721A (en) * 2013-07-04 2013-09-18 北京迈普华兴信息技术有限公司 Cloud platform access control framework and implementation method thereof

Also Published As

Publication number Publication date
CN104243565A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN104243565B (en) The method and apparatus for obtaining configuration data
WO2018024057A1 (en) Method and apparatus for accessing service
CN103353899B (en) The accurate searching method of a kind of integrated information
WO2019024496A1 (en) Enterprise recommendation method and application server
US20160171978A1 (en) Voice recognition system and construction method thereof
US11620444B2 (en) Providing action associated with event detected within communication
CN108279987A (en) The method for edition management and device of application program
CN107515915A (en) User based on user behavior data identifies correlating method
CN106326243B (en) Data processing method and device
CN104750760A (en) Application software recommending method and device
CN108228770A (en) A kind of method and device of application file source inquiry
CN111339171A (en) Data query method, device and equipment
CN107145493B (en) Information processing method and device
US20160156724A1 (en) Method, apparatus, and system for determining target user for service policy
CN113342921B (en) Resource cataloging method and device
US20090327258A1 (en) Method for searching a product, a system for searching a product, a related product semantics determining device and a related product searching device
CN102103606A (en) Technology for realizing advanced search of commodities on mobile phone client
CN105389340B (en) A kind of information test method and device
CN104391845A (en) Method and device for generating database scripts
CN116048987A (en) Processing method, device, electronic equipment, system and storage medium for flow business
CN115098738A (en) Service data extraction method and device, storage medium and electronic equipment
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN106254575A (en) A kind of method and apparatus determining ID
CN104053135B (en) A kind of method and device for realizing unstructured supplementary data traffic
CN111178025A (en) Editing method and device of nuclear power plant operation guide rules, computer equipment and storage medium

Legal Events

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

Effective date of registration: 20200201

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right