CN101399695B - Method and device for operating shared resource - Google Patents

Method and device for operating shared resource Download PDF

Info

Publication number
CN101399695B
CN101399695B CN2007101515490A CN200710151549A CN101399695B CN 101399695 B CN101399695 B CN 101399695B CN 2007101515490 A CN2007101515490 A CN 2007101515490A CN 200710151549 A CN200710151549 A CN 200710151549A CN 101399695 B CN101399695 B CN 101399695B
Authority
CN
China
Prior art keywords
information
user
locking
resource state
release
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
CN2007101515490A
Other languages
Chinese (zh)
Other versions
CN101399695A (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.)
Advanced New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN2007101515490A priority Critical patent/CN101399695B/en
Publication of CN101399695A publication Critical patent/CN101399695A/en
Application granted granted Critical
Publication of CN101399695B publication Critical patent/CN101399695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method used for operating share resources, which comprises the steps as follows: after an operation of locking share resource state is monitored, a pre-arranged first relationship between the locking information and the user identification is queried according to the user identification of the user which executes the operation; if the locking information corresponding to the user identification can be determined, the share resource state is locked; after an operation of releasing the locked share resource state, a pre-arranged second relationship between the unlocking information and the user identification is queried according to the user identification of the user which executes the operation; if the unlocking information corresponding to the user identification can be determined, the locking information corresponding to the unlocking information is determined according to a pre-arranged third relationship between the locking information and the unlocking information; if the determined locking information and the locking information which locks the share resource state are identical, the share resource state is unlocked, thus solving the problem that the system burden is severe in the prior art. The embodiment of the invention also discloses equipment used for operating the share resource.

Description

A kind of method and apparatus of operating shared resource
Technical field
The present invention relates to field of network management, particularly a kind of method and apparatus of operating shared resource.
Background technology
Shared resource is meant the resource that can be operated by a plurality of users, and along with developing rapidly of network, the shared resource on the network is also more and more.
What the general user operated all is the state of shared resource, can be frozen and thaw such as: member's state of e-commerce website, member's state is exactly a shared resource, if being carried out by this website risk group that checks, freezes member's state, just do not wish to be thawed, can only carry out by the risk group that checks and thaw by this backstage, website customer service execution.
The method that share resource state is switched generally all is that all State Control results are represented by a mode bit, and decides next time the whether change of enable state according to the state history record:
Method commonly used at present mainly contains two kinds:
If the A operator to shared resource setting the X state, the B operator too to shared resource setting the X state, in fact this X state has carried amendment record twice, if rule agreement, when the C operator will revise the X state is the Y state, can only be to revise the X state that the B operator is provided with, can not revise the X state that the A operator is provided with, at this moment the C operator need judge whether oneself can carry out the change of state by investigating historical record, since the A operator also to shared resource setting the X state, so after having inquired about historical record, not carrying out state, the C operator do not change.If do not put down in writing the X state in the historical record by whose setting, then the C operator may operate in execution error, and the X state of promptly revising A operator setting is the Y state.
Along with the increase of historical record, need regularly block historical record, so just might cause the historical record of checking less than relevant, even if historical record does not regularly block, search very trouble of relevant historical record.
If the A operator to shared resource setting the X state, the B operator too to shared resource setting the X state, and rule predetermining C operator can become the Y state with the X state that the B operator is provided with, but can not change the same setting of A operator, so, because current state has carried the amendment record of A and B simultaneously, so the change request of C just is not allowed to, next time, if there is a D operator opposite with the C operator again, it can change the setting of A, but the setting of B is not allowed, so, state changes and will not be allowed in the same old way, like this, just requires to increase in the rule list a new operator again, allow its authority that has C operator and D operator simultaneously, so just the state that can change shared resource has become Y from X.
Though the 2nd kind of method do not need to check historical record, must constantly increase operator according to rule with new authority, this can cause the operator's of various new authorities quantity to increase fast, thereby has increased the burden of system.
In sum, under the method that at present share resource state is switched because the operator's of new authority quantity increases fast, cause the burden of system to increase thereupon.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of operating shared resource, and in order to solve needing the recording operation daily record for fear of the shared resource operating collision or increasing operator role of existing in the prior art, institute causes the problem of the burden increase of system.
The method of a kind of operating shared resource that the embodiment of the invention provides comprises:
After monitoring the operation of locked share resource state, user ID according to the user who carries out this operation is inquired about first corresponding relation of predefined locking information and user ID, if can determine the locking information of this user ID correspondence, then share resource state is locked, write down described locking information or write down described user ID;
After monitoring the operation of the share resource state that unlocks, user ID according to the user who carries out this operation is inquired about second corresponding relation of predefined release information and user ID, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to the 3rd corresponding relation of predefined locking information and release information;
If write down described locking information, when the release information of determining is identical with the described locking information of record, described share resource state is carried out release; If write down described user ID, according to described first corresponding relation, determine the locking information of the described user ID correspondence of record, when the release information of determining is identical with this locking information of determining, described share resource state is carried out release.
The method of another operating shared resource that the embodiment of the invention provides comprises:
The release information or the record user identifications of record user identifications correspondence, after monitoring the operation of the described share resource state that unlocks, user ID according to the user who carries out this operation is inquired about second corresponding relation of predefined release information and user ID, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to the 3rd corresponding relation of predefined locking information and release information;
If the release information of record user identifications correspondence when the release information of determining is identical with the described locking information of record, is carried out release to described share resource state; If record user identifications, first corresponding relation according to predefined locking information and user ID, determine the locking information of the described user ID correspondence of record, when the release information of determining is identical with this locking information of determining, described share resource state is carried out release.
The equipment of a kind of operating shared resource that the embodiment of the invention provides comprises:
Memory module is used to preserve second corresponding relation of first corresponding relation, release information and user ID of locking information and user ID and the 3rd corresponding relation of locking information and release information;
Locking module after being used to monitor the operation of locked share resource state, is inquired about described first corresponding relation according to the user's who carries out this operation user ID, if can determine the locking information of this user ID correspondence, then share resource state is locked;
Determination module, be used to monitor and unlock after the operation of share resource state, user ID according to the user who carries out this operation is inquired about described second corresponding relation, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to described the 3rd corresponding relation;
First logging modle is used for writing down described locking information after described locking module locks share resource state;
Second logging modle is used for writing down described user ID after described locking module locks share resource state;
The locking information determination module if be used for according to described first corresponding relation, is determined the locking information of the described user ID correspondence of described second logging modle record;
Separate lock module,, when the described locking information that writes down in release information of determining and described logging modle is identical, described share resource state is carried out release if be used for writing down described locking information; If write down described user ID, when the definite locking information of release information of determining and described locking information determination module is identical, described share resource state is carried out release.
The equipment of another operating shared resource that the embodiment of the invention provides comprises:
Memory module is used to preserve second corresponding relation of release information and user ID and the 3rd corresponding relation of locking information and release information;
Determination module, be used to monitor and unlock after the operation of share resource state, user ID according to the user who carries out this operation is inquired about described second corresponding relation, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to described the 3rd corresponding relation;
First logging modle is used for writing down described locking information after described locking module locks share resource state;
Second logging modle is used to preserve first corresponding relation of locking information and user ID, after described locking module locks share resource state, writes down described user ID;
The locking information determination module is used for according to described first corresponding relation, determines the locking information of the described user ID correspondence of described second logging modle record;
Separate lock module,, when the described locking information that writes down in release information of determining and described first logging modle is identical, described share resource state is carried out release if be used for record locking information; If record user identifications when the definite locking information of release information of determining and described locking information determination module is identical, is carried out release to described share resource state.
The embodiment of the invention is provided with second corresponding relation of first corresponding relation, release information and user ID of locking information and user ID and the 3rd corresponding relation of locking information and release information, after the operation that monitors locked share resource state, according to described first corresponding relation, determine the locking information of the user ID correspondence obtained, and described share resource state is locked; After the operation that monitors the described share resource state that unlocks,, determine the release information of the user ID correspondence obtained according to described second corresponding relation; If according to described the 3rd corresponding relation, determine that described release information is corresponding with described locking information, then according to the described release information of determining, described share resource state is carried out release, do not need the recording operation daily record like this or increase operator role, only a plurality of corresponding relations need be set and get final product, and the quantity of corresponding relation is less than Operation Log and the new quantity that increased of limiting operation person far away, thereby alleviated the burden of system.
Description of drawings
Figure 1A 1 is first kind of device structure schematic diagram one of embodiment of the invention operating shared resource;
Figure 1A 2 is first kind of device structure schematic diagram two of embodiment of the invention operating shared resource;
Figure 1B is the first method schematic flow sheet of embodiment of the invention operating shared resource;
Fig. 2 A1 is second kind of device structure schematic diagram one of embodiment of the invention operating shared resource;
Fig. 2 A2 is second kind of device structure schematic diagram two of embodiment of the invention operating shared resource;
Fig. 2 B is the second method schematic flow sheet of embodiment of the invention operating shared resource;
Fig. 3 is the method flow schematic diagram of a plurality of locking information locked share resource state of the embodiment of the invention.
Embodiment
In embodiments of the present invention: when the user with a certain user ID will lock the state transition path of certain shared resource, check whether this user ID has corresponding locking information, determine that whether the user has the authority of the locking carried out, if having, just locks described share resource state; When the user with a certain user ID wants the release share resource state, check whether this user ID has corresponding release information, determine whether the user has the authority of carrying out release, if have, whether the locking information of checking release information correspondence again is identical with the locking information of locked share resource state, determine whether this release information can be used to cancel this locking information, share resource state can be locked by a plurality of locking informations simultaneously, after having only these locking informations all to be unlocked, just can operate this share resource state, otherwise, just can not operate.
Below in conjunction with Figure of description the embodiment of the invention is described in further detail.
Shown in Figure 1A 1, comprise in first kind of equipment schematic diagram one of embodiment of the invention operating shared resource: memory module 10, locking module 11, determination module 12 are conciliate lock module 13.
Memory module 10 is connected with determination module 12 with locking module 11, is used to preserve second corresponding relation of first corresponding relation, release information and user ID of locking information and user ID and the 3rd corresponding relation of locking information and release information.
Wherein, comprise at least one locking information and at least one user ID in first corresponding relation; Comprise at least one release information and at least one user ID in second corresponding relation; Comprise at least one locking information and at least one release information in the 3rd corresponding relation.
Locking module 11, be connected with memory module 10, after being used to monitor the operation of locked share resource state, inquire about first corresponding relation that memory module 10 is preserved according to the user's who carries out this operation user ID, if can determine the locking information of this user ID correspondence, then share resource state be locked.
Wherein, if comprise at least one locking information in first corresponding relation, then the locking informations determined of locking module 11 are at random or according to the locking information of user's selection Information Selection.
Further, can set priority,, then not select at random, select according to user's selection information if promptly receive user's selection information; Otherwise select at random.
Determination module 12, conciliating lock module 13 with memory module 10 is connected, be used to monitor and unlock after the operation of share resource state, inquire about second corresponding relation that memory module 10 is preserved according to the user's who carries out this operation user ID, if can determine the release information of this user ID correspondence, then, determine the locking information of this release information correspondence according to the 3rd corresponding relation of memory module 10 preservations.
Wherein, if comprise at least one locking information in second corresponding relation, then the locking informations determined of determination module 12 are at random or according to the locking information of user's selection Information Selection.
Further, can set priority,, then not select at random, select according to user's selection information if promptly receive user's selection information; Otherwise select at random.
Separate lock module 13, be connected, be used for then this share resource state being carried out release if this locking information that determination module 12 is determined is identical with the locking information of this share resource state of locking with determination module 12.
Wherein, the equipment of operating shared resource can further include: first logging modle 14.
First logging modle 14 is conciliate lock module 13 with locking module 11 and is connected, and is used for after 11 pairs of share resource state of locking module lock record locking information.
Then separate locking information that release information that lock module 13 determines at determination module 12 and first logging modle 14 write down when identical, described share resource state is carried out release.Or
Wherein, the equipment of operating shared resource can further include: handover module 17.
Handover module 17 and is separated lock module 13 and is connected, and is used for separating after 13 pairs of share resource state of lock module carry out release share resource state being switched.
Share resource state is switched the state that exactly current state of shared resource is switched to user's needs, such as: the current state of shared resource is a lock-out state, and then the user can switch to released state with the current state of shared resource.
Further, if a plurality of locking information locks share resource state, then handover module 17 separate lock module with all locking information releases after, share resource state is switched.
Wherein, the equipment of operating shared resource can further include: refusal operational module 18.
Refusal operational module 18, be connected with locking information determination module 16 with memory module 10, be used for if the locking information that locking information determination module 16 is determined is inequality with the locking information of the described share resource state of locking the then refusal operation of share resource state that unlocks.
Wherein, the equipment of operating shared resource can also replace with second logging modle 15 and locking information determination module 16 with first logging modle 14, shown in Figure 1A 2, and in first kind of device structure schematic diagram two of embodiment of the invention operating shared resource,
Second logging modle 15 with locking module 11, separate lock module 13 and be connected with locking information determination module 16, is used to preserve first corresponding relation of locking information and user ID, after 11 pairs of share resource state of locking module lock, and record user identifications.
Locking information determination module 16 is connected with second logging modle 15 with locking module 11, is used for first corresponding relation according to 15 preservations of second logging modle, determines the locking information of the user ID correspondence of second logging modle, 15 records.
Then separate the definite locking information of release information that lock module 13 determines at determination module 12 and locking information determination module 16 when identical, share resource state is carried out release.
Shown in Figure 1B, the first method of embodiment of the invention operating shared resource comprises the following steps:
Second corresponding relation of step 100, first corresponding relation that preestablishes locking information and user ID, release information and user ID and the 3rd corresponding relation of locking information and release information.
As required can be respectively to first corresponding relation, second corresponding relation and the 3rd corresponding relation add, deletion and retouching operation.
Step 101, monitor the operation of locked share resource state after, inquire about predefined first corresponding relation according to the user's who carries out this operation user ID.
The method that user ID is obtained has a lot: such as obtain corresponding user ID according to the user name of user's input when the user logins, extract user ID or the like from the operation of the locking or the share resource state that unlocks.
Step 102, if can determine the locking information of this user ID correspondence, then share resource state is locked.
The mode of locking includes but not limited to a kind of in the following manner:
Share resource state is provided with password;
Concrete numerical value is set represents the lock-out state of share resource state, such as: 0 is non-locking, and 1 is locking.
Step 103, monitor the operation of the share resource state that unlocks after, inquire about predefined second corresponding relation according to the user's who carries out this operation user ID.
Step 104, if can determine the release information of this user ID correspondence, then according to predefined the 3rd corresponding relation, determine the locking information of release information correspondence,, then share resource state is carried out release if this locking information of determining is identical with the locking information of locked share resource state.
Wherein, can also comprise after the step 104: share resource state is switched.
Further, if a plurality of locking information locks share resource state, then, share resource state is switched after all locking information releases.
Because might same share resource state be locked by different user, because release information can only be opened the share resource state that the locking information corresponding with it locks, so want to change the share resource state that is locked by different user, just all locking informations must be opened, and last user who opens locking information just can change share resource state.
Wherein, in the step 104, if this locking information of determining is inequality with the locking information of locked share resource state, the operation of the share resource state of then refusing to unlock.
Wherein, comprise at least one locking information and at least one user ID in first corresponding relation, then the locking information of determining in the step 101 is at random or according to the locking information of user's selection Information Selection.
Can set priority, if promptly the user sends selection information, then the locking information of selecting according to the user locks;
If the user does not send selection information, then select a locking information to lock at random.
Wherein, comprise at least one release information and at least one user ID in second corresponding relation, then the information of determining in the step 103 of separating is at random or according to the release information of user's selection Information Selection.
Can set priority, if promptly the user sends selection information, then the release information of selecting according to the user is carried out release;
If the user does not send selection information, then select a release information to carry out release at random.
Because each release information can be opened the share resource state of corresponding with it any one locking information locking, so no matter be to select at random or the user specifies the locking information of selection, the locking information in can opening steps 101.
Wherein, can further include between step 102 and the step 103:
The locking information of record locking share resource state then in the step 104, when the locking information of the release information of determining and record is identical, carries out release to share resource state; Or
The user ID of the locking information correspondence of record locking share resource state then comprises between step 103 and the step 104:
According to predefined first corresponding relation, determine the locking information of the user ID correspondence of record;
Then in the step 104, when the release information of determining is identical with this locking information of determining, share resource state is carried out release.
Shown in Fig. 2 A1, comprise in second kind of device structure schematic diagram one of embodiment of the invention operating shared resource: memory module 20, determination module 21 are conciliate lock module 22.
Memory module 20 is connected with determination module 21, is used to preserve second corresponding relation of release information and user ID and the 3rd corresponding relation of locking information and release information.
Wherein, comprise at least one release information and at least one user ID in second corresponding relation, comprise at least one locking information and at least one release information in the 3rd corresponding relation.
Determination module 21, conciliating lock module 22 with memory module 20 is connected, be used to monitor and unlock after the operation of share resource state, inquire about second corresponding relation that memory module 20 is preserved according to the user's who carries out this operation user ID, if can determine the release information of this user ID correspondence, then, determine the locking information of release information correspondence according to the 3rd corresponding relation of memory module 20 preservations.
Wherein, if comprise at least one locking information in second corresponding relation, then the locking informations determined of determination module 21 are at random or according to the locking information of user's selection Information Selection.
Further, can set priority,, then not select at random, select according to user's selection information if promptly receive user's selection information; Otherwise select at random.
Separate lock module 22, be connected, be used for then described share resource state being carried out release if this locking information that determination module 21 is determined is identical with the locking information of locked share resource state with determination module 21.
Wherein, the equipment of operating shared resource can further include: first logging modle 23.
First logging modle 23 and is separated lock module 22 and is connected, and is used for the locking information of record locking share resource state.
Then separate locking information that release information that lock module 22 determines at determination module 21 and first logging modle 23 write down when identical, described share resource state is carried out release.Or
Wherein, the equipment of operating shared resource can further include: handover module 26.
Handover module 26 and is separated lock module 22 and is connected, and is used for separating after 22 pairs of share resource state of lock module carry out release share resource state being switched.
Further, if a plurality of locking information locks share resource state, then handover module separate lock module with all locking information releases after, share resource state is switched.
Wherein, the equipment of operating shared resource can further include: refusal operational module 27.
Refusal operational module 27 is connected with determination module 21, is used for if the locking information of locking information that determination module 21 is determined and locked share resource state is inequality, the operation of the share resource state of then refusing to unlock.
Wherein, the equipment of operating shared resource can also replace with second logging modle 24 and locking information determination module 25 with first logging modle 23, shown in Fig. 2 A2, and in second kind of device structure schematic diagram two of embodiment of the invention operating shared resource,
Second logging modle 24 and is separated lock module 22 and is connected with locking information determination module 25, is used to preserve first corresponding relation of locking information and user ID, the user ID of the locking information correspondence of record locking share resource state.
Locking information determination module 25 and is separated lock module 22 and is connected with second logging modle 24, is used for first corresponding relation preserved according to second logging modle 24, determines the locking information of the user ID correspondence of second logging modle, 24 records.
Then separate the definite locking information of release information that lock module 22 determines at determination module 21 and locking information determination module 25 when identical, share resource state is carried out release.
Shown in Fig. 2 B, the second method of embodiment of the invention operating shared resource comprises the following steps:
The 3rd corresponding relation of step 200, second corresponding relation that preestablishes release information and user ID and locking information and release information.
As required can be respectively to second corresponding relation and the 3rd corresponding relation add, deletion and retouching operation.
Step 201, monitor the operation of the share resource state that unlocks after, inquire about predefined second corresponding relation according to the user's who carries out this operation user ID.
Step 202, if can determine the release information of this user ID correspondence, then according to predefined the 3rd corresponding relation, determine the locking information of release information correspondence,, then share resource state is carried out release if this locking information of determining is identical with the locking information of locked share resource state.
Wherein, can also comprise after the step 202: share resource state is switched.
Further, if a plurality of locking information locks share resource state, then, share resource state is switched after all locking information releases.
Because might same share resource state be locked by different user, because release information can only be opened the share resource state that the locking information corresponding with it locks, so want to change the share resource state that is locked by different user, just all locking informations must be opened, and last user who opens locking information just can change share resource state.
Wherein, in the step 202 if this locking information of determining is inequality with the locking information of locked share resource state, the operation of the share resource state of then refusing to unlock.
Wherein, comprise at least one release information and at least one user ID in second corresponding relation, then the information of determining in the step 201 of separating is at random or according to the release information of user's selection Information Selection.
Can set priority, if promptly the user sends selection information, then the release information of selecting according to the user is carried out release;
If the user does not send selection information, then select a release information to carry out release at random.
Wherein, can further include before the step 200:
The locking information of record locking share resource state then in the step 202, when the locking information of the release information of determining and record is identical, carries out release to share resource state; Or
Preestablish the user ID of the locking information correspondence of first corresponding relation of locking information and user ID and record locking share resource state, then comprise between step 201 and the step 202:
According to this first corresponding relation, determine the locking information of the user ID correspondence of record, then in the step 202, when the release information of determining is identical with this locking information of determining, share resource state is carried out release.
As shown in Figure 3, the method flow schematic diagram of a plurality of locking information locked share resource state of the embodiment of the invention comprises the following steps:
Second corresponding relation of step 300, first corresponding relation that locking information and user ID are set, release information and user ID and the 3rd corresponding relation of locking information and release information.
Step 301, monitor the operation of locked share resource state after, obtain first user ID,, can determine the locking information of the first user ID correspondence obtained if according to first corresponding relation that is provided with, then, share resource state is locked according to the locking information of determining.
If according to first corresponding relation that is provided with, can not determine the locking information of the first user ID correspondence obtained, then refuse the operation of this locked share resource state.
Step 302, monitor the operation of locked share resource state after, obtain second user ID,, can determine the locking information of the second user ID correspondence obtained if according to first corresponding relation that is provided with, then, share resource state is locked according to the locking information of determining.
If according to first corresponding relation that is provided with, can not determine the locking information of the second user ID correspondence obtained, then refuse the operation of this locked share resource state.
Wherein, if first user ID is identical with the pairing locking information of second user ID, then the definite locking information of step 302 can replace the locking information of determining in the step 301; Perhaps share resource state is locked in the execution in step 302 not, the prompting user has had identical locking information that share resource state is locked.
Step 303, monitor the operation of the share resource state that unlocks after, obtain the 3rd user ID, if according to second corresponding relation that is provided with, can determine the release information of the 3rd user ID correspondence obtained, then, determine the locking information of this release information correspondence, check that this locking information is whether identical with the corresponding locking information of first user ID according to the 3rd corresponding relation that is provided with, if then execution in step 305; Otherwise, execution in step 304.
If according to second corresponding relation that is provided with, can not determine the locking information of the 3rd user ID correspondence obtained, then refuse the operation of this share resource state that unlocks.
Step 304, check that this locking information is whether identical with the corresponding locking information of second user ID, if then execution in step 308; Otherwise, execution in step 311.
The release information that step 305, basis are determined is carried out release to share resource state, the locking information in the opening steps 301.
Step 306, monitor the operation of the share resource state that unlocks after, obtain four-function family sign, if according to second corresponding relation that is provided with, can determine that the four-function family that obtains identifies corresponding release information, then, determine the locking information of this release information correspondence, check that this locking information is whether identical with the corresponding locking information of second user ID according to the 3rd corresponding relation that is provided with, if then execution in step 307; Otherwise, execution in step 311.
If according to second corresponding relation that is provided with, can not determine that the four-function family that obtains identifies corresponding locking information, then refuses the operation of this share resource state that unlocks.
Step 307, according to the release information of determining, share resource state is carried out release, the locking information in the opening steps 302, and share resource state switched process ends.
The release information that step 308, basis are determined is carried out release to share resource state, the locking information in the opening steps 302.
Step 309, monitor the operation of the share resource state that unlocks after, obtain four-function family sign, if according to second corresponding relation that is provided with, can determine that the four-function family that obtains identifies corresponding release information, then, determine the locking information of this release information correspondence, check that this locking information is whether identical with the corresponding locking information of first user ID according to the 3rd corresponding relation that is provided with, if then execution in step 310; Otherwise, execution in step 311.
If according to second corresponding relation that is provided with, can not determine that the four-function family that obtains identifies corresponding locking information, then refuses the operation of this share resource state that unlocks.
Step 310, according to the corresponding relation that is provided with, determine the corresponding release information of four-function family sign obtained, according to the release information of determining, share resource state is carried out release, locking information in the opening steps 301, and share resource state switched process ends.
The unlock operation of share resource state of step 311, refusal.
Wherein, present embodiment is that two locking informations lock share resource state, can have a plurality of locking informations that share resource state is locked as the case may be, and concrete steps and present embodiment are similar, repeat no more.
From the foregoing description as can be seen: the embodiment of the invention is after the operation that monitors locked share resource state, user ID according to the user who carries out this operation is inquired about first corresponding relation of predefined locking information and user ID, if can determine the locking information of this user ID correspondence, then share resource state be locked; After monitoring the operation of the share resource state that unlocks, user ID according to the user who carries out this operation is inquired about second corresponding relation of predefined release information and user ID, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to the 3rd corresponding relation of predefined locking information and release information; If this locking information of determining is identical with the locking information of the described share resource state of locking, then described share resource state is carried out release, do not need the recording operation daily record or increase operator role, only a plurality of corresponding relations need be set gets final product, and the quantity of corresponding relation is less than the quantity that Operation Log and new limiting operation person are increased far away, thereby alleviated the burden of system, and do not need to rely on historical record, owing to can there be a plurality of locking informations that share resource state is locked, avoided the management conflict of shared resource, reduced complexity, improved the efficiency of management the shared resource management.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (22)

1. the method for an operating shared resource is characterized in that, this method comprises:
After monitoring the operation of locked share resource state, user ID according to the user who carries out this operation is inquired about first corresponding relation of predefined locking information and user ID, if can determine the locking information of this user ID correspondence, then share resource state is locked, write down described locking information or write down described user ID;
After monitoring the operation of the share resource state that unlocks, user ID according to the user who carries out this operation is inquired about second corresponding relation of predefined release information and user ID, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to the 3rd corresponding relation of predefined locking information and release information;
If write down described locking information, when the release information of determining is identical with the described locking information of record, described share resource state is carried out release; If write down described user ID, according to described first corresponding relation, determine the locking information of the described user ID correspondence of record, when the release information of determining is identical with this locking information of determining, described share resource state is carried out release.
2. the method for claim 1 is characterized in that, according to the described release information of determining, described share resource state is carried out also comprising after the release:
Described share resource state is switched.
3. method as claimed in claim 2 is characterized in that, if a plurality of locking information locks described share resource state, then with after all locking information releases, described share resource state is switched.
4. the method for claim 1 is characterized in that, comprises at least one locking information in described first corresponding relation, and then the locking information of Que Dinging is at random or according to the locking information of user's selection Information Selection.
5. the method for claim 1 is characterized in that, comprises at least one release information in described second corresponding relation, and then the release information of Que Dinging is at random or according to the release information of user's selection Information Selection.
6. the method for claim 1 is characterized in that, if this locking information of determining is inequality with the locking information of the described share resource state of locking, and the then refusal operation of described share resource state that unlocks.
7. the method for an operating shared resource is characterized in that, this method comprises:
The release information or the record user identifications of record user identifications correspondence, after monitoring the operation of the described share resource state that unlocks, user ID according to the user who carries out this operation is inquired about second corresponding relation of predefined release information and user ID, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to the 3rd corresponding relation of predefined locking information and release information;
If the release information of record user identifications correspondence when the release information of determining is identical with the described locking information of record, is carried out release to described share resource state; If record user identifications, first corresponding relation according to predefined locking information and user ID, determine the locking information of the described user ID correspondence of record, when the release information of determining is identical with this locking information of determining, described share resource state is carried out release.
8. method as claimed in claim 7 is characterized in that, according to the described release information of determining, described share resource state is carried out also comprising after the release:
Described share resource state is switched.
9. method as claimed in claim 8 is characterized in that, if a plurality of locking information locks described share resource state, then with after all locking information releases, described share resource state is switched.
10. method as claimed in claim 7 is characterized in that, comprises at least one release information in described second corresponding relation, and then the release information of Que Dinging is at random or according to the release information of user's selection Information Selection.
11. method as claimed in claim 8 is characterized in that, if this locking information of determining is inequality with the locking information of the described share resource state of locking, and the then refusal operation of described share resource state that unlocks.
12. one kind is provided with the equipment that the user is switched the share resource state authority, it is characterized in that, this equipment comprises:
Memory module is used to preserve second corresponding relation of first corresponding relation, release information and user ID of locking information and user ID and the 3rd corresponding relation of locking information and release information;
Locking module after being used to monitor the operation of locked share resource state, is inquired about described first corresponding relation according to the user's who carries out this operation user ID, if can determine the locking information of this user ID correspondence, then share resource state is locked;
Determination module, be used to monitor and unlock after the operation of share resource state, user ID according to the user who carries out this operation is inquired about described second corresponding relation, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to described the 3rd corresponding relation;
First logging modle is used for writing down described locking information after described locking module locks share resource state;
Second logging modle is used for writing down described user ID after described locking module locks share resource state;
The locking information determination module if be used for according to described first corresponding relation, is determined the locking information of the described user ID correspondence of described second logging modle record;
Separate lock module,, when the described locking information that writes down in release information of determining and described logging modle is identical, described share resource state is carried out release if be used for writing down described locking information; If write down described user ID, when the definite locking information of release information of determining and described locking information determination module is identical, described share resource state is carried out release.
13. equipment as claimed in claim 12 is characterized in that, described equipment also comprises:
Handover module, be used for described separate lock module described share resource state carried out release after, described share resource state is switched.
14. equipment as claimed in claim 13 is characterized in that, if a plurality of locking information locks described share resource state, then described handover module described separate lock module with all locking information releases after, described share resource state is switched.
15. equipment as claimed in claim 12 is characterized in that, comprises at least one locking information in described first corresponding relation, the locking information that then described locking module is determined is at random or according to the locking information of user's selection Information Selection.
16. equipment as claimed in claim 12 is characterized in that, comprises at least one release information in described second corresponding relation, the release information that then described determination module is determined is at random or according to the release information of user's selection Information Selection.
17. equipment as claimed in claim 12 is characterized in that, described equipment also comprises:
The refusal operational module is used for if the locking information that described determination module is determined is inequality with the locking information of the described share resource state of locking, the then refusal operation of described share resource state that unlocks.
18. one kind is provided with the equipment that the user is switched the share resource state authority, it is characterized in that, this equipment comprises:
Memory module is used to preserve second corresponding relation of release information and user ID and the 3rd corresponding relation of locking information and release information;
Determination module, be used to monitor and unlock after the operation of share resource state, user ID according to the user who carries out this operation is inquired about described second corresponding relation, if can determine the release information of this user ID correspondence, then, determine the locking information of described release information correspondence according to described the 3rd corresponding relation;
First logging modle is used for writing down described locking information after described locking module locks share resource state;
Second logging modle is used to preserve first corresponding relation of locking information and user ID, after described locking module locks share resource state, writes down described user ID;
The locking information determination module is used for according to described first corresponding relation, determines the locking information of the described user ID correspondence of described second logging modle record;
Separate lock module,, when the described locking information that writes down in release information of determining and described first logging modle is identical, described share resource state is carried out release if be used for record locking information; If record user identifications when the definite locking information of release information of determining and described locking information determination module is identical, is carried out release to described share resource state.
19. equipment as claimed in claim 18 is characterized in that, described equipment also comprises:
Handover module, be used for described separate lock module described share resource state carried out release after, described share resource state is switched.
20. equipment as claimed in claim 19 is characterized in that, if a plurality of locking information locks described share resource state, then described handover module described separate lock module with all locking information releases after, described share resource state is switched.
21. equipment as claimed in claim 18 is characterized in that, comprises at least one release information in described second corresponding relation, the release information that then described determination module is determined is at random or according to the release information of user's selection Information Selection.
22. equipment as claimed in claim 18 is characterized in that, described equipment also comprises:
The refusal operational module if be used for according to described the 3rd corresponding relation, determines that described release information is not corresponding with the locking information of this share resource state of locking, the operation of the described share resource state of then refusing to unlock.
CN2007101515490A 2007-09-26 2007-09-26 Method and device for operating shared resource Active CN101399695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101515490A CN101399695B (en) 2007-09-26 2007-09-26 Method and device for operating shared resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101515490A CN101399695B (en) 2007-09-26 2007-09-26 Method and device for operating shared resource

Publications (2)

Publication Number Publication Date
CN101399695A CN101399695A (en) 2009-04-01
CN101399695B true CN101399695B (en) 2011-06-01

Family

ID=40517975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101515490A Active CN101399695B (en) 2007-09-26 2007-09-26 Method and device for operating shared resource

Country Status (1)

Country Link
CN (1) CN101399695B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081557A (en) * 2011-01-27 2011-06-01 浪潮(北京)电子信息产业有限公司 Resource management method and system in cloud computing operating system
CN103870346B (en) * 2012-12-11 2015-12-23 腾讯科技(深圳)有限公司 Unlock user data method and communication system
CN109471901B (en) * 2017-08-18 2021-12-07 北京国双科技有限公司 Data synchronization method and device
CN109710579B (en) * 2018-12-14 2021-08-31 汉海信息技术(上海)有限公司 Log processing method, server and article system
CN115033394B (en) * 2022-05-23 2023-05-26 深圳市航顺芯片技术研发有限公司 Control system and related equipment for multi-core MCU to access shared peripheral

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1530792A (en) * 2003-03-14 2004-09-22 西门子公司 Method and system for preventing electronic data object from unauthorized access
CN1635439A (en) * 2003-12-26 2005-07-06 华为技术有限公司 A user right management method
CN1859153A (en) * 2005-07-22 2006-11-08 上海华为技术有限公司 Method for setting user's power in communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1530792A (en) * 2003-03-14 2004-09-22 西门子公司 Method and system for preventing electronic data object from unauthorized access
CN1635439A (en) * 2003-12-26 2005-07-06 华为技术有限公司 A user right management method
CN1859153A (en) * 2005-07-22 2006-11-08 上海华为技术有限公司 Method for setting user's power in communication system

Also Published As

Publication number Publication date
CN101399695A (en) 2009-04-01

Similar Documents

Publication Publication Date Title
US9864868B2 (en) Method and apparatus for process enforced configuration management
CN101399695B (en) Method and device for operating shared resource
US8332908B2 (en) Sharing management system, sharing management method and program
CN101009004B (en) Warming device and warming method
CN100381964C (en) A user right management method
US20090106844A1 (en) System and method for vulnerability assessment of network based on business model
JP2004192601A (en) Policy setting support tool
CN101816006A (en) Security policy validation for web services
CN104135378A (en) Method of management control of Internet of Things gateways and management control entity for Internet of Things gateways
CN101360121A (en) Authority control method, system and terminal in apparatus management
CN102930195A (en) Method for sharing electronic equipment through fingerprints and electronic equipment
US20100077451A1 (en) Mobile terminal, working device, data management system, and recording medium
CN101730099A (en) Terminal management method based on authority control and device
US20100011361A1 (en) Managing Task Requests
JPH11234277A (en) Management system
US20020161615A1 (en) Workflow system
CN101488955B (en) Method and devices for handling access privileges
CN113973275B (en) Data processing method, device and medium
CN103778379A (en) Managing application execution and data access on a device
CN114726639A (en) Automatic arrangement method and system for access control strategy
CN108733477B (en) Method, device and equipment for data clustering processing
CN116647505A (en) User traffic dynamic management method and system
KR100194771B1 (en) Subscription management device for personal communication service (PCS) and its method
CN108629566A (en) A kind of approaches to IM and device
CN105518663A (en) Automatic blocking of bad actors

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1129006

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1129006

Country of ref document: HK

TR01 Transfer of patent right

Effective date of registration: 20191209

Address after: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee after: Innovative advanced technology Co., Ltd

Address before: Greater Cayman Islands, British Cayman Islands

Patentee before: Alibaba Group Holding Co., Ltd.

TR01 Transfer of patent right