CN103902308B - module group creation method and device - Google Patents

module group creation method and device Download PDF

Info

Publication number
CN103902308B
CN103902308B CN201210576577.8A CN201210576577A CN103902308B CN 103902308 B CN103902308 B CN 103902308B CN 201210576577 A CN201210576577 A CN 201210576577A CN 103902308 B CN103902308 B CN 103902308B
Authority
CN
China
Prior art keywords
under
submodule
module
transition
subobject
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
CN201210576577.8A
Other languages
Chinese (zh)
Other versions
CN103902308A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210576577.8A priority Critical patent/CN103902308B/en
Publication of CN103902308A publication Critical patent/CN103902308A/en
Application granted granted Critical
Publication of CN103902308B publication Critical patent/CN103902308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Circuits (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of module group creation method and device, module group includes primary module and multiple submodule, and module group creation method is carried out under closure environment.The module group creation method includes step:The transitional object of extraneous access is created under primary module;The transition subobject for the object accesses being created under each submodule in submodule, transition subobject is associated with transitional object, and the member of the confession outside access under submodule is arranged under transition subobject;And delete transitional object.The invention further relates to a kind of module group creating device, module group creation method of the invention and the submodule of the module group of device have higher compatibility, can be directly used for other module groups;Solve existing module group creation method and device conduct interviews that permission modification operational ton is larger and module group under the poor technical problem of submodule compatibility.

Description

Module group creation method and device
Technical field
The present invention relates to computer realm, more particularly to a kind of module group creation method and device.
Background technology
In order to realize business module inside and business module and extraneous access needs.Business module can be set to one Module group, it includes a primary module and the multiple submodule being arranged in primary module, passes through each submodule in module group The mutual access between each submodule inside business module is realized in setting, and the external world is realized in the setting for passing through the primary module of module group Access to business module.
Specifically setting to be:Setting primary module is X, and it includes submodule A, submodule B and submodule C;Such as main mould Block X needs the member F1 under primary module X, member F2 and member F3 being supplied to extraneous access, is supplied while having under submodule A Have under the member A.N of the submodule block access and member A.M for submodule A inter access, submodule B for submodule block access The member B.N and member B.M for submodule B inter access, have under submodule B for submodule block access member C.N and For the member C.M of submodule B inter access.
So this module group need set two-stage closure, by first order closure S1 by member F1, member F2 and into Member F3 is supplied to the external world, while externally hiding submodule A, submodule B and submodule C;Then set in first order closure S1 Second level closure S2 is put, to object member A.N, member B.N and member C.N being supplied under primary module(Including each submodule Block), while to Objects hide member A.M, member B.M and member C.M under primary module, so realizing each of module group The access rights of level member are set.
During the present invention is realized, inventor has found that prior art at least has problems with:Such as under submodule The access rights of member are changed, it is necessary to be configured under primary module, operational ton is than larger;Submodule A can not be straight simultaneously Connect for other module groups(Other module groups do not set access rights corresponding with submodule A), increase submodule A The direct difficulty used in other module groups.
Therefore, it is necessary to a kind of module group creation method and device are provided, to solve the problems of prior art.
The content of the invention
It is an object of the invention to provide a kind of the module group creation method and device of the submodule with compared with highly compatible, The submodule of the module group can be directly used for other module groups;Visited with solving existing module group creation method and device Ask that permission modification operational ton is larger and module group under the poor technical problem of submodule compatibility.
To solve the above problems, the technical scheme that the present invention is provided is as follows:
The present invention relates to a kind of module group creation method, module group includes primary module and multiple submodule, the module Group creation method is carried out under closure environment, wherein the module group creation method includes step:
The transitional object of extraneous access is created under the primary module;
The transition subobject for the object accesses being created under each submodule in the submodule, by the transition Subobject is associated with the transitional object, and it is right that the member of the confession outside access under the submodule is arranged on into transition As under;And
The transitional object is deleted.
The invention further relates to a kind of module group creating device, module group includes primary module and multiple submodule, the mould Block group creating device is run under closure environment, it is characterised in that the module group creating device includes:
Transitional object creation module, the transitional object for being created for extraneous access under the primary module;
Sub- transitional object setup module, for the object accesses being created under each submodule in the submodule Transition subobject, the transition subobject is associated with the transitional object, and by the confession outside access under the submodule Member be arranged under the transition subobject;And
Removing module, for the transitional object to be deleted.
Compared to prior art, module group creation method of the invention and the submodule of the module group of device are with higher Compatibility, can be directly used for other module groups;Solve existing module group creation method and device conducts interviews authority change More operational ton is larger and module group under the poor technical problem of submodule compatibility.
Brief description of the drawings
Fig. 1 is the flow chart of the first preferred embodiment of the module group creation method of the present invention;
Fig. 2 is the flow chart of the second preferred embodiment of the module group creation method of the present invention;
Fig. 3 is the structural representation of the first preferred embodiment of the module group creating device of the present invention;
Fig. 4 is the structural representation of the second preferred embodiment of the module group creating device of the present invention.
Embodiment
The explanation of following embodiment is the particular implementation implemented to illustrate the present invention can be used to reference to additional schema Example.
Fig. 1 is refer to, Fig. 1 is the flow chart of the first preferred embodiment of the module group creation method of the present invention.This is preferably Module group in the module group creation method of embodiment includes primary module and the multiple submodule under primary module, and this is preferred real The module group creation method for applying example is carried out under closure environment.Here the member that closure environment is specifically referred in module can pass through Extraction is applied domain(As in primary module or in submodule)Outer member is accessed, and the member not being brought out is only applied in domain Member access.In the preferred embodiment, closure environment has two action scopes, i.e., inside primary module(I.e. directly ownership is led Member under module(Such as submodule)Can mutually it access)Inside submodule(Member i.e. directly under ownership submodule can be mutual Access).The module group creation method of this preferred embodiment includes:
Step 101, the transitional object of extraneous access is created under primary module;
Step 102, the transition subobject for the object accesses being created under each submodule in submodule, transition is right It is arranged on as being associated with transitional object, and by the member of the confession outside access under submodule under transition subobject;
Step 103, transitional object is deleted;
The module group creation method of this preferred embodiment ends at step 103.
The following detailed description of the idiographic flow of each step of the module group creation method of this preferred embodiment.
In a step 101, the transitional object of extraneous access is created under primary module, because the object under primary module is in In closure environment by action scope of primary module, it is necessary to by under primary module create transitional object in primary module it is all into Member is set.
Then come step 102.
In a step 102, under the submodule of primary module create transition subobject, due to the object under submodule be in Corresponding submodule in the closure environment of action scope, it is necessary to by creating corresponding transition subobject under each submodule, And associate transition subobject with transitional object.The member of the confession outside access under submodule is arranged at mistake accordingly simultaneously Cross under subobject, the member under transition subobject can so be set by transition subobject, corresponding member is drawn To transitional object, outside access is supplied to draw(The external world is accessed or for being accessed between each submodule).
Then come step 103.
In step 103, each submodule under primary module is set by step 101-102, passed through simultaneously Transition subobject sets the access rights of the member of the confession outside access under submodule, in this step deletes transitional object Remove so that the member that the external world can not be had access under primary module by transitional object;According to the characteristic of closure environment, in closure environment Hold the reference of transition subobject, while the transition subobject of each submodule is associated with same transitional object again so that each Individual submodule, which has, can mutually access the authority for directly belonging to the member under same transitional object.And supplying under submodule is outside The member of access is arranged under corresponding transition subobject, therefore can be by drawing member from transition subobject to transition pair Member for each submodule block access is set as getting off, the second of the module group creation method for referring to the present invention specifically how is drawn Preferred embodiment.
The module group creation method of this preferred embodiment ends at step 103.
The module group creation method of this preferred embodiment defines the visit of outer bound pair module group by the setting of transitional object Authority is asked, the mutual access rights between submodule are defined by the setting of transition subobject, while submodule can pass through The corresponding relation of modification transition subobject and transitional object directly applies to other module groups, and the compatibility of submodule is high.
Fig. 2 is refer to, Fig. 2 is the flow chart of the second preferred embodiment of the module group creation method of the present invention.This is preferably The module group creation method of embodiment includes:
Step 201, the transitional object of extraneous access is created under primary module;
Step 202, the transition subobject for the object accesses being created under each submodule in submodule, transition is right It is arranged on as being associated with transitional object, and by the member of the confession outside access under submodule under transition subobject;
Step 203, it will be led to by transition subobject under transition subobject for the extraneous member accessed under primary module;
Step 204, setting completed for all submodules for treating under primary module, and transitional object is deleted;
The module group creation method of this preferred embodiment ends at step 204.
The step of flow of the step 201 of this preferred embodiment and the first preferred embodiment of above-mentioned module group creation method Description in 101 is same or similar, in the step 101 for the first preferred embodiment for specifically referring to above-mentioned module group creation method Associated description.
The step of flow of the step 202 of this preferred embodiment and the first preferred embodiment of above-mentioned module group creation method Description in 102 is same or similar, in the step 102 for the first preferred embodiment for specifically referring to above-mentioned module group creation method Associated description.
Then come step 203.
In step 203, main mould will be led to for the extraneous member accessed under transition subobject by transition subobject Under block.By step 202, the member under transition subobject is had been able to by all submodule block access;Due in step 204 It will can be deleted for the transitional object being configured in each submodule, such external world can not directly access the interior of primary module Portion, therefore also need to need to lead under primary module for the extraneous member accessed by transition subobject in this step, make The member is directly attributed to and primary module, for external world's access;The member being not disposed under transition subobject only supplies corresponding submodule Under member access.
Then come step 204.
In this step, setting completed for all submodules for treating under primary module, transitional object is deleted, to ensure each height Module can normally be read.The flow of the step 204 of this preferred embodiment and the first preferred reality of above-mentioned module group creation method The description applied in the step 103 of example is same or similar, specifically refers to the first preferred embodiment of above-mentioned module group creation method Step 103 in associated description.Drawn simultaneously by step 202-203 member so that extraneous and each submodule can be visited Ask the member accessed for them.
The module group creation method of this preferred embodiment ends at step 204.
The module group creation method of this preferred embodiment defines module group on the basis of first preferred embodiment, not only With the access rights of submodule, and corresponding sharing member is drawn by transition subobject, perfectly realize module group The access rights of members at different levels are set;Submodule can be straight by changing the corresponding relation of transition subobject and transitional object simultaneously Scoop out for other module groups, the compatibility of submodule is high.
The invention further relates to a kind of module group creating device, Fig. 3 is refer to, Fig. 3 is module group creating device of the invention First preferred embodiment structural representation.The module group creating device includes transitional object creation module 31, sub- transition pair As setup module 32 and removing module 33.Transitional object creation module 31 is used for the mistake that extraneous access is created under primary module Cross object;Sub- transitional object setup module 32 is used for transition for the object accesses being created under each submodule in submodule Object, transition subobject is associated with transitional object, and it is right that the member of the confession outside access under submodule is arranged on into transition As under;Removing module 33 is used to delete transitional object.
The module group creating device of this preferred embodiment is in use, transitional object creation module 31 is created under primary module first Build for the extraneous transitional object accessed;Subsequent sub- transitional object creation module 32 is created in submodule under each submodule The transition subobject of object accesses, transition subobject is associated with transitional object, and by the confession outside access under submodule into Member is arranged under transition subobject;Last removing module 33 deletes transitional object so that the external world can not be visited by transitional object Ask the member under primary module.
The of the concrete operating principle of the module group creating device of this preferred embodiment and above-mentioned module group creation method Description in one preferred embodiment is same or similar, in the first preferred embodiment for specifically referring to above-mentioned module group creation method Associated description.
The module group creating device of this preferred embodiment defines the visit of outer bound pair module group by the setting of transitional object Authority is asked, the mutual access rights between submodule are defined by the setting of transition subobject, while submodule can pass through The corresponding relation of modification transition subobject and transitional object directly applies to other module groups, and the compatibility of submodule is high.
Fig. 4 is refer to, Fig. 4 is the structural representation of the second preferred embodiment of the module group creating device of the present invention.Its On the basis of first preferred embodiment, sub- transitional object setup module 32 includes agent unit 41.It is arranged on transition subobject Under member supply every other submodule block access;Agent unit 41 is used for outside the confession under transition subobject by transition subobject The member that boundary is accessed is led under primary module;The member under transition subobject is not disposed on only to visit for the member under corresponding submodule Ask.
The module group creating device of this preferred embodiment is in use, transitional object creation module 31 is created under primary module first Build for the extraneous transitional object accessed;Subsequent sub- transitional object creation module 32 is created in submodule under each submodule The transition subobject of object accesses, transition subobject is associated with transitional object, and by the confession outside access under submodule into Member is arranged under transition subobject.
The member being arranged under transition subobject is available for every other submodule block access;Agent unit 41 is right by transition As will be led under transition subobject for the extraneous member accessed under primary module;It is not disposed on member under transition subobject only Accessed for the member under corresponding submodule.Setting completed for the submodule that last removing module 33 is treated under primary module, by transitional object Delete so that the member that the external world can not be had access under primary module by transitional object.
The of the concrete operating principle of the module group creating device of this preferred embodiment and above-mentioned module group creation method Description in two preferred embodiments is same or similar, in the second preferred embodiment for specifically referring to above-mentioned module group creation method Associated description.
The module group creating device of this preferred embodiment defines module group on the basis of first preferred embodiment, not only With the access rights of submodule, and corresponding sharing member is drawn by transition subobject, perfectly realize module group The access rights of members at different levels are set;Submodule can be straight by changing the corresponding relation of transition subobject and transitional object simultaneously Scoop out for other module groups, the compatibility of submodule is high.
Below by a specific module group create the code description present invention module group creation method and device it is specific Operation principle.
Put and finish, transitional object P is deleted, prevent the external world from accessing transition subobject _ P;
It is above the establishment code of the submodule A under primary module X, realizes the M0 under submodule A common only under submodule A Enjoy, the M2 that the M1 under submodule A is available under extraneous and each submodule block access, submodule A is available for each submodule block access, perfectly The access rights for realizing the members at different levels of module group are set.Other submodules(Such as submodule B)Establishment code it is similar, Each submodule arbitrarily can be arranged in primary module, because each submodule can be individually configured, therefore the submodule is simultaneous Capacitive is higher.As submodule is sequentially arranged in primary module, the operation that delete transitional object P can be positioned only at last son In module.
The module group creation method and device of the present invention defines module group and the access rights of submodule, and passes through transition Subobject draws corresponding sharing member, and the access rights for perfectly realizing the members at different levels of module group are set;While mould The submodule of block group has higher compatibility, can be directly used for other module groups;Solve existing module group establishment side Method and device conduct interviews that permission modification operational ton is larger and module group under the poor technical problem of submodule compatibility.
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.

Claims (10)

1. a kind of module group creation method, module group includes primary module and multiple submodule, the module group creation method exists Carried out under closure environment, it is characterised in that the module group creation method includes step:
The transitional object of extraneous access is created under the primary module;
The transition subobject for the object accesses being created under each submodule in the submodule, transition is right The transition subobject is arranged on as being associated with the transitional object, and by the member of the confession outside access under the submodule Under;
The member of the confession outside access under the transition subobject is set by the transition subobject, will be described Led to for the member of outside access under transitional object;And
Each submodule under the primary module is set, while by the transition subobject by under the submodule The access rights of member of the confession outside access set, the transitional object is deleted.
2. module group creation method according to claim 1, it is characterised in that be arranged under the transition subobject into Member supplies every other submodule block access.
3. module group creation method according to claim 1, it is characterised in that the module group creation method also includes step Suddenly:
It will be led to by the transition subobject under the transition subobject for the extraneous member accessed under the primary module.
4. the module group creation method according to Claims 2 or 3, it is characterised in that be not disposed on the transition subobject Under member only accessed for the member under corresponding submodule.
5. module group creation method according to claim 1, it is characterised in that the step for deleting the transitional object It is rapid to be specially:
Setting completed for all submodules for treating under the primary module, and the transitional object is deleted.
6. a kind of module group creating device, module group includes primary module and multiple submodule, the module group creating device exists Run under closure environment, it is characterised in that the module group creating device includes:
Transitional object creation module, the transitional object for being created for extraneous access under the primary module;
Sub- transitional object setup module, for the mistake for the object accesses being created under each submodule in the submodule Cross subobject, the transition subobject associated with the transitional object, and by the confession outside access under the submodule into Member is arranged under the transition subobject;And
Removing module, for being set by each submodule under the primary module, while right by transition After the access rights of the member of the confession outside access under the submodule are set, the transitional object is deleted Remove;
Wherein described sub- transitional object setup module is additionally operable to by the transition subobject to the institute under the transition subobject The member stated for outside access is set, and the member of the confession outside access is led under the transitional object.
7. module group creating device according to claim 6, it is characterised in that be arranged under the transition subobject into Member supplies every other submodule block access.
8. module group creating device according to claim 6, it is characterised in that the sub- transitional object setup module bag Include:
Agent unit:For will be led to by the transition subobject under the transition subobject for the extraneous member accessed Under the primary module.
9. the module group creating device according to claim 7 or 8, it is characterised in that be not disposed on the transition subobject Under member only accessed for the member under corresponding submodule.
10. module group creating device according to claim 6, it is characterised in that the removing module is specifically for treating institute Setting completed for all submodules for stating under primary module, and the transitional object is deleted.
CN201210576577.8A 2012-12-27 2012-12-27 module group creation method and device Active CN103902308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210576577.8A CN103902308B (en) 2012-12-27 2012-12-27 module group creation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210576577.8A CN103902308B (en) 2012-12-27 2012-12-27 module group creation method and device

Publications (2)

Publication Number Publication Date
CN103902308A CN103902308A (en) 2014-07-02
CN103902308B true CN103902308B (en) 2017-09-19

Family

ID=50993649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210576577.8A Active CN103902308B (en) 2012-12-27 2012-12-27 module group creation method and device

Country Status (1)

Country Link
CN (1) CN103902308B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089812A (en) * 2006-06-13 2007-12-19 上海新纳广告传媒有限公司 Flash multiple module implementing method
CN101710279A (en) * 2009-12-01 2010-05-19 中国建设银行股份有限公司 Method and device for managing software module in IT system
CN101963964A (en) * 2009-07-23 2011-02-02 北京数码大方科技有限公司 Method and device for controlling access to management system
CN101980154A (en) * 2010-11-02 2011-02-23 深圳市融创天下科技发展有限公司 Method and system for creating and drawing interface control tree and mobile terminal
CN102455905A (en) * 2010-10-19 2012-05-16 腾讯科技(深圳)有限公司 Method and system for establishing main panel interface, main panel and main panel interface system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089812A (en) * 2006-06-13 2007-12-19 上海新纳广告传媒有限公司 Flash multiple module implementing method
CN101963964A (en) * 2009-07-23 2011-02-02 北京数码大方科技有限公司 Method and device for controlling access to management system
CN101710279A (en) * 2009-12-01 2010-05-19 中国建设银行股份有限公司 Method and device for managing software module in IT system
CN102455905A (en) * 2010-10-19 2012-05-16 腾讯科技(深圳)有限公司 Method and system for establishing main panel interface, main panel and main panel interface system
CN101980154A (en) * 2010-11-02 2011-02-23 深圳市融创天下科技发展有限公司 Method and system for creating and drawing interface control tree and mobile terminal

Also Published As

Publication number Publication date
CN103902308A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103379089B (en) Access control method and system thereof based on security domain separation
EP1389752A3 (en) System and method for privilege delegation and control
BR112019008286A2 (en) bonded abrasive articles including oriented abrasive particles and methods for producing them
DE102018101307A1 (en) SGX enclave remote authentication techniques
EP3296913A8 (en) Method and system for secure communication of a token and aggregation of the same
ATE427532T1 (en) METHOD AND APPARATUS FOR HIERARCHICAL LAYOUT SPECIALIZATION
CN105630617A (en) Business processing method and system based on rule engine
DE102018115670A1 (en) Technologies for running untrusted code with processor sandbox support
WO2007061926A3 (en) Designer and player for web services applications
CN106878325B (en) A kind of method and device of determining access privilege
CN104021219B (en) The generation method and device of a kind of data template
CN103916374B (en) Service gray scale dissemination method and device
CN104156640B (en) Data access right control method
CN107102890A (en) The moving method and moving apparatus of a kind of virtual machine
GB2556435A (en) Authorization in a distributed system using access control lists and groups
CN106845175A (en) The establishing method and device of a kind of data permission
CN103902308B (en) module group creation method and device
CN107256233A (en) A kind of date storage method and device
CN102804150B (en) Data processing equipment, data processing method and data-sharing systems
CN106559428A (en) The method that a kind of anti-virtual machine IP and MAC is forged
Rambaldi et al. Defining invasive fungal infection risk in hematological malignancies: a new tool for clinical practice
CN106775690A (en) A kind of method for recording and device being capped based on gdi/gdi+ windows
CN105468936B (en) The reinforcement means and device of application
CN106919347A (en) The creation method and device of the catalogue of distributed block storage system
CN104573439A (en) Permission assignment method and system based on product configuration

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