CN105045716B - Right management method and device - Google Patents

Right management method and device Download PDF

Info

Publication number
CN105045716B
CN105045716B CN201510463331.3A CN201510463331A CN105045716B CN 105045716 B CN105045716 B CN 105045716B CN 201510463331 A CN201510463331 A CN 201510463331A CN 105045716 B CN105045716 B CN 105045716B
Authority
CN
China
Prior art keywords
code segment
code
library
validation
duration
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
CN201510463331.3A
Other languages
Chinese (zh)
Other versions
CN105045716A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510463331.3A priority Critical patent/CN105045716B/en
Publication of CN105045716A publication Critical patent/CN105045716A/en
Application granted granted Critical
Publication of CN105045716B publication Critical patent/CN105045716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)
  • Computer And Data Communications (AREA)

Abstract

The disclosure is directed to a kind of right management method and devices, belong to field of computer technology.The method includes:When receiving the code segment that exploitation terminal is submitted to the first Validation Code library, the specified operating right of the code segment is closed, and count existence duration of the code segment in first Validation Code library;Judge whether the existence duration reaches the first preset duration;When the existence duration reaches first preset duration, the specified operating right of the code segment is opened.The disclosure is counted by the existence duration to code segment, only when the existence duration reaches the first preset duration, the specified operating right of the code segment can just be opened, the code segment could be committed to the second Validation Code library, it ensure that verification duration of the code segment in the first Validation Code library is more than first preset duration, avoid leads to omit the problems of its since the verification duration of code segment is too short, improves the accuracy of the code segment.

Description

Right management method and device
Technical field
The disclosure is directed to field of computer technology, specifically about a kind of right management method and device.
Background technology
With the development of intelligent terminal and universal, diversified terminal starts to occur, and user is to the need of terminal function Ask also higher and higher.In order to meet the needs of user is growing, developer needs constantly to be updated terminal function, and The renewal process need based on it is newly developed go out code segment realize.
Developer can develop the code segment for realizing new function, still, it is newly developed go out code segment may deposit In some problems, it cannot directly be distributed to all users, it is also necessary to be verified.The verification process can testing by server It demonstrate,proves code library to carry out, by taking the first Validation Code library and the second Validation Code library as an example, which is committed to first by developer In Validation Code library, which opens to a small amount of user, these users can access first Validation Code Library runs the code segment after downloading the code segment, and find during running the code segment code segment there are the problem of, The problem of the problem of will be seen that is uploaded in the server, and developer can propose according to user modifies to the code segment. After a while, when developer thinks that the code segment has verified that abundant, which can be committed to second and tested Code library is demonstrate,proved, at this point, verification process of the code segment in the first Validation Code library is completed.
Invention content
In order to solve the problems, such as present in the relevant technologies, present disclose provides a kind of right management method and devices.It is described Technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of right management method is provided, the method includes:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code library, the specified behaviour of the code segment is closed Make permission, and count existence duration of the code segment in first Validation Code library, the specified operating right refers to The code segment is committed to the permission in the second Validation Code library, second Validation Code library is first Validation Code library Next code library;
Judge whether the existence duration reaches the first preset duration;
When the existence duration reaches first preset duration, the specified operating right of the code segment is opened.
It is described when the existence duration reaches first preset duration in another embodiment, open the code segment Specified operating right after, the method further includes:
When receiving the submission instruction of code segment described in the exploitation terminal-pair, the code segment is committed to described the Two Validation Code libraries.
In another embodiment, the method further includes:
Obtain at least one code segment received in current period;
Test assignment list is generated, the test assignment list includes at least one code received in current period Section;
The test assignment list is sent to test terminal so that test assignment list described in the test terminal display.
It is described when receiving the code segment that exploitation terminal is submitted to the first Validation Code library in another embodiment, it closes The specified operating right of the code segment, including:
When receiving the code segment, judge whether to have turned on verification duration monitoring function;
If having turned on the verification duration monitoring function, the specified operating right of the code segment is closed.
In another embodiment, the method further includes:
Obtain the different information between first Validation Code library and second Validation Code library, the different information Code segment including not being committed to second Validation Code library in first Validation Code library also;
The different information is sent to the exploitation terminal so that different information described in the exploitation terminal display.
In another embodiment, the difference obtained between first Validation Code library and the second Validation Code library is believed Breath, including:
Duration of surviving in first Validation Code library is obtained more than the code segment of the second preset duration;
The code segment got and the code segment in second Validation Code library are compared, the difference is obtained Different information.
According to the second aspect of the embodiment of the present disclosure, a kind of rights management device is provided, described device includes:
Receiving module, the code segment submitted to the first Validation Code library for receiving exploitation terminal;
Permission closedown module, for receiving the generation that exploitation terminal is submitted to the first Validation Code library when the receiving module When code section, the specified operating right of the code segment is closed, the specified operating right refers to that the code segment is committed to the The permission in two Validation Code libraries, second Validation Code library are next code library in first Validation Code library;
Statistical module, for receiving the code segment that exploitation terminal is submitted to the first Validation Code library when the receiving module When, count existence duration of the code segment in first Validation Code library;
Judgment module, for judge the statistical module counts to existence duration whether reach the first preset duration;
Permission opening module, for when the statistical module counts to existence duration reach first preset duration When, open the specified operating right of the code segment.
In another embodiment, described device further includes:
Submit module, for when receive it is described exploitation terminal-pair described in code segment submission instruction when, by the code Section is committed to second Validation Code library.
In another embodiment, described device further includes:
Acquisition module, for obtaining at least one code segment received in current period;
List Generating Module, for generating test assignment list, the test assignment list includes being received in current period At least one code segment arrived;
Sending module, for sending the test assignment list to test terminal so that described in the test terminal display Test assignment list.
In another embodiment, the permission closedown module is additionally operable to when receiving the code segment, judges whether to have opened Open verification duration monitoring function;If having turned on the verification duration monitoring function, the specified operating rights of the code segment is closed Limit.
In another embodiment, described device further includes:
Difference acquisition module, for obtaining the difference between first Validation Code library and second Validation Code library Information, the different information include the code for not being committed to second Validation Code library in first Validation Code library also Section;
Sending module, for sending the different information to the exploitation terminal so that described in the exploitation terminal display Different information.
In another embodiment, the difference acquisition module, which is additionally operable to obtain in first Validation Code library, has survived duration More than the code segment of the second preset duration;By the code segment in the code segment got and second Validation Code library into Row comparison, obtains the different information.
According to the third aspect of the embodiment of the present disclosure, a kind of rights management device is provided, described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code library, the specified behaviour of the code segment is closed Make permission, and count existence duration of the code segment in first Validation Code library, the specified operating right refers to The code segment is committed to the permission in the second Validation Code library, second Validation Code library is first Validation Code library Next code library;
Judge whether the existence duration reaches the first preset duration;
When the existence duration reaches first preset duration, the specified operating right of the code segment is opened.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Method and apparatus provided in this embodiment, by working as the generation for receiving exploitation terminal and being submitted to the first Validation Code library When code section, when closing the specified operating right of the code segment, and counting existence of the code segment in the first Validation Code library It is long, judge whether the existence duration reaches the first preset duration, when the existence duration reaches first preset duration, opening should The specified operating right of code segment.It is counted by the existence duration to code segment, it is pre- only to reach first in the existence duration If when duration, can just open the specified operating right of the code segment, which could be committed to the second Validation Code library, protected It has demonstrate,proved verification duration of the code segment in the first Validation Code library and has been more than first preset duration, avoided due to code segment Verification duration it is too short and lead to omit the problems of its, improve the accuracy of the code segment.
It should be understood that above general description and following detailed description is merely exemplary, this can not be limited It is open.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of right management method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of right management method shown according to an exemplary embodiment;
Fig. 3 A are a kind of block diagrams of rights management device shown according to an exemplary embodiment;
Fig. 3 B are a kind of block diagrams of rights management device shown according to an exemplary embodiment;
Fig. 3 C are a kind of block diagrams of rights management device shown according to an exemplary embodiment;
Fig. 3 D are a kind of block diagrams of rights management device shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of rights management device shown according to an exemplary embodiment.
Specific implementation mode
It is right with reference to embodiment and attached drawing to make the purpose, technical scheme and advantage of the disclosure be more clearly understood The disclosure is described in further details.Here, the exemplary embodiment and its explanation of the disclosure be for explaining the disclosure, but simultaneously Not as the restriction to the disclosure.
The embodiment of the present disclosure provides a kind of right management method, and the disclosure is described in detail below in conjunction with attached drawing.
Fig. 1 is a kind of flow chart of right management method shown according to an exemplary embodiment, as shown in Figure 1, the power Management method is limited in server, including the following steps:
In a step 101, when receiving the code segment that exploitation terminal is submitted to the first Validation Code library, the code is closed The specified operating right of section, and existence duration of the code segment in the first Validation Code library is counted, the specified operating right Refer to the permission that the code segment is committed to the second Validation Code library, which is the first Validation Code library Next code library.
In a step 102, judge whether the existence duration reaches the first preset duration.
In step 103, when the existence duration reaches first preset duration, the specified operating rights of the code segment is opened Limit.
In the present embodiment, which opens to a certain number of users, and the exploitation terminal is by the code segment After being committed in the first Validation Code library, these users can access the first Validation Code library, be transported after downloading the code segment The row code segment, and find during running the code segment code segment there are the problem of, it may be found that the problem of be uploaded to In the server, which can be to the problem of exploitation terminal display user proposition, and developer can be according to user's proposition Problem modifies to the code segment.This is pinpointed the problems and the process modified is the verification process of code segment.Verification one After the section time, when developer thinks that the code segment has verified that abundant, it can be triggered to the code segment in exploitation terminal Operation is submitted, when exploitation terminal detects submission operation, the submission to the code segment is sent to the server and instructs, the service The code segment can be committed to the second Validation Code library by device, continue to verify in the second Validation Code library.
Verification process of the code segment in the first Validation Code library is shorter, may more omit and be deposited in the code segment The problem of.For this purpose, the server counts existence duration of the code segment in the first Validation Code library, only at this When existence duration reaches the first preset duration, the specified operating right of the code segment can be just opened, then, the server is only at this After existence duration reaches first preset duration, which could be committed to the second Validation Code library, then the code segment Verification duration in the first Validation Code library can be more than first preset duration.
Method provided in this embodiment, by working as the code segment for receiving exploitation terminal and being submitted to the first Validation Code library When, the specified operating right of the code segment is closed, and count existence duration of the code segment in the first Validation Code library, sentenced Whether the disconnected existence duration reaches the first preset duration, when the existence duration reaches first preset duration, opens the code The specified operating right of section.Counted by the existence duration to code segment, only the existence duration reach first it is default when When long, the specified operating right of the code segment can be just opened, which could be committed to the second Validation Code library, ensure that Verification duration of the code segment in the first Validation Code library is more than first preset duration, avoids testing due to code segment Card duration is too short and leads to omit the problems of its, improves the accuracy of the code segment.
In another embodiment, when deserving the existence duration and reaching first preset duration, the specified of the code segment is opened After operating right, this method further includes:
When receiving the submission instruction of the exploitation terminal-pair code segment, which is committed to the second verification generation Code library.
In another embodiment, this method further includes:
Obtain at least one code segment received in current period;
Test assignment list is generated, which includes at least one code segment received in current period;
The test assignment list is sent to test terminal so that the test terminal display test assignment list.
In another embodiment, it when should receive the code segment that exploitation terminal is submitted to the first Validation Code library, closes The specified operating right of the code segment, including:
When receiving the code segment, judge whether to have turned on verification duration monitoring function;
If having turned on the verification duration monitoring function, the specified operating right of the code segment is closed.
In another embodiment, this method further includes:
The different information between the first Validation Code library and the second Validation Code library is obtained, which includes should It is not committed to the code segment in the second Validation Code library in first Validation Code library also;
The different information is sent to the exploitation terminal so that the exploitation terminal display different information.
In another embodiment, the different information between the acquisition the first Validation Code library and the second Validation Code library, Including:
Duration of surviving in the first Validation Code library is obtained more than the code segment of the second preset duration;
The code segment got and the code segment in the second Validation Code library are compared, difference letter is obtained Breath.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 2 is a kind of flow chart of right management method shown according to an exemplary embodiment, as shown in Fig. 2, the power The interaction agent for limiting management method is exploitation terminal and server, is included the following steps:
In step 201, exploitation terminal to server sends first and submits instruction, which carries the exploitation The code segment of terminal.
The code segment includes a line or lines of code, can be the code segment based on C language, the code based on Java language Section or the code segment etc. based on other language, the present embodiment does not limit this.The code segment is used to carry out more program Newly, to realize corresponding function, which can be the operating system program of terminal or the application program etc. of terminal installation, be somebody's turn to do The function that code segment is realized can be speech voice input function, Video chat function etc., and the present embodiment does not limit this.
The exploitation terminal refers to getting the terminal of the code segment, can be the equipment such as computer, mobile phone, which can To be generated by the exploitation terminal, or the exploitation terminal is sent to after being generated by other equipment, the present embodiment does not limit this. In addition, the user of the exploitation terminal can be referred to as the developer of the code segment.
When the exploitation terminal gets the code segment, first can be sent to server and submit instruction, which refers to It enables and carries the code segment, and the first submission instruction is used to indicate the first Validation Code library that the code segment is committed to server In.
In step 202, when server receives the first submission instruction, in the first Validation Code library, storage should Code segment, and close the specified operating right of the code segment.
When the server receives the first submission instruction, in the first Validation Code library, the code segment is stored.This When, the code segment can be downloaded from the first Validation Code library by accessing the terminal in the first Validation Code library, and run the code Section, find in the process of running the code segment there are the problem of, problem is committed to the server, the code segment is tested in realization Card process.
For example, after the terminal downloads code segment, the corresponding program of the code segment can be carried out more according to the code segment Newly, then updated program includes the code segment, which can run updated program, find the journey in the process of running The problems of sequence, which is believed that is caused by the code segment, then the problem is committed to the server.
And the server can also be that operating right is specified in code segment distribution, which refers to by code segment It is committed to the permission of next code library, in subsequent process, when the server receives another submission instruction of the exploitation terminal, The code segment can be committed to the second Validation Code library in the case where opening the specified operating right of the code segment, this Two Validation Code libraries are next code library in the first Validation Code library.
Since the server receives the code segment, until the code segment is committed to the second Validation Code library, Elapsed time interval is verification duration of the code segment in the first Validation Code library.When growing too short upon the authentication, The problem of may not be able to fully finding the code segment, throw into question omission.
In the present embodiment, in order to avoid the problem that above-mentioned verification duration is too short, when which receives the code segment, close Close the specified operating right of the code segment.After closing the specified operating right of the code segment, opened even if the server receives this When the submission instruction of the hair terminal-pair code segment, which will not be committed to the second Validation Code library.It that is to say, it should Server is by closing the specified operating right of the code segment, forcibly in the first Validation Code library, to the code segment It is verified.
It should be noted that the present embodiment is only when the server receives the code segment, directly to close the code segment Specified operating right for illustrate, in fact, the server can provide verification duration monitoring function, only verification when In the case that long monitoring function is opened, the specified operating right of the code segment can be just closed.
So, when the server receives the code segment, first judge whether to have turned on verification duration monitoring function, if not The verification duration monitoring function is opened, then does not close the specified operating right of the code segment.If having turned on verification duration monitoring Function then closes the specified operating right of the code segment, starts to execute step 203, counts the code segment in the first verification generation Existence duration in code library.And during statistics survives duration, if the server receives the pass of administrative staff's triggering The instruction for closing the verification duration monitoring function can close the verification duration monitoring function, at this point, the server will be counted no longer Existence duration of the code segment in the first Validation Code library, moreover, the server can also open the specified behaviour of the code segment Make permission, to be based on the specified operating right, which is committed in the second Validation Code library.It, should when practical application The administrative staff of server can in case of emergency or other in special circumstances, triggering close the verification duration monitor work( The instruction of energy, so that the code segment to be committed in the second Validation Code library.
In step 203, existence duration of the server statistics code segment in the first Validation Code library, judging should Whether existence duration reaches the first preset duration, if so, step 204 is executed, if not, continuing to execute step 203.
The existence duration of the code segment refers to the duration of the first Validation Code library storage code segment, with pushing away for time It moves, the existence duration of the code segment also can accordingly increase, and the server is when receiving the code segment, you can start timing, then The duration of statistics is the existence duration of the code segment.
First preset duration is used to indicate minimum existence duration of the code segment in the first Validation Code library, can be with It is preset by the server, and for different code segments, which can set the first different preset durations, this reality Example is applied not limit this.
The server can count the existence duration of the code segment, judge the existence duration whether reach first it is default when It is long, if the existence duration reaches the first preset duration, show verification duration of the code segment in the first Validation Code library First preset duration is had reached, it may be considered that it has been found that most of problem present in the code segment, the code segment is It is verified abundant, which can be committed to the second Validation Code library.If it is default that the existence duration is also not up to first Duration, it is believed that many problems in the code segment are not found also, if the code segment is committed to the second Validation Code at this time Library, it is easy to the problems of its can be omitted, it is also necessary to continue to verify, then the server, which continues to count the code segment, exists Existence duration in the first Validation Code library executes step 204 until when the existence duration reaches the first preset duration.
It should be noted that the present embodiment only receives the code segment with the server, that is, it, will be from this for starting timing Server receives the code segment and starts, until using the code segment be committed to the second Validation Code library between time interval as The code segment the first Validation Code library verification duration, and in fact, the server can also be in first Validation Code When storing the code segment in library, just starts timing, that is to say, it will be since the first Validation Code library storage code segment, directly Extremely using the code segment be committed to the second Validation Code library between time interval as the code segment in the first Validation Code library Verification duration.The present embodiment does not limit this.
In step 204, which opens the specified operating right of the code segment.
When the existence duration reaches the first preset duration, which can open the specified operating right of the code segment, Later, which can be specified operating right based on this and develop the submission instruction that terminal is sent, which is committed to In second Validation Code library.
In order to prompt developer that the code segment is committed to the second Validation Code library in time, which opens the code After the specified operating right of section, the code segment identification of the code segment can be sent to the exploitation terminal, when the exploitation terminal connects When receiving the code segment identification, the code segment identification is shown, to prompt developer that the code segment can be committed to the second verification Code library.Wherein, which, for uniquely determining the code segment, can be the number or file name of the code segment Deng the present embodiment does not limit this.
It should be noted that the present embodiment is only by taking a code segment as an example, and in practical applications, the first verification generation Code library and the second Validation Code library include multiple code segments, then in order to will be being stored in the first Validation Code library, also not The code segment being committed in the second Validation Code library shows developer, which can obtain the first Validation Code library With the different information between the second Validation Code library, the different information is sent to the exploitation terminal, when the exploitation terminal receives When to the different information, the different information is shown.For example, the server can be according to the email address of developer, to the mailbox Exploitation terminal where address sends mail, which includes the different information, which can show in mail The different information.
Wherein, which can be by the code segment in the first Validation Code library and the generation in the second Validation Code library Code section is compared, and obtains the different information so that the different information includes not being committed to this also in the first Validation Code library The code segment in the second Validation Code library.When the exploitation terminal display different information, developer can be prompted to believe the difference The code segment for including in breath is committed in the second Validation Code library.
In addition, in order to prompt developer to be committed to the code segment for having turned on specified operating right in the first Validation Code library In second Validation Code library, which can obtain duration of surviving in the first Validation Code library more than the second preset duration Code segment, the code segment got and the code segment in the second Validation Code library are compared, obtain the difference letter Breath, and the different information is sent to the exploitation terminal, when the exploitation terminal receives the different information, show that the difference is believed Breath.
Wherein, in the different information comprising existence duration in the first Validation Code library more than the second preset duration, but The code segment not being committed to also in the second Validation Code library.Second preset duration can be more than first preset duration, First preset duration can be equal to, then include to have turned on specified operating right in the first Validation Code library in the different information, But the code segment not being committed to also in the second Validation Code library.When the exploitation terminal display different information, can prompt The code segment that specified operating right is had turned in first Validation Code library is committed in the second Validation Code library by developer.
When the exploitation terminal display different information, developer can trigger in the exploitation terminal to the different information In any code segment submission operation, so that the code segment is committed in the second Validation Code library.
The server can in time prompt developer by sending different information to exploitation terminal, avoid Forget the code segment being committed to the second Validation Code library due to the carelessness of developer, causes code segment in the first verification generation The verification time in code library is long, and then delays verification progress of the code segment in subsequent authentication code library.
In step 205, when which detects the operation of the submission to the code segment, second is sent to the server Instruction is submitted, which is used to indicate is committed to next code library by the code segment.
Wherein, which can show multiple code segment identifications to be committed, can to the submission operation of the code segment The operation for clicking corresponding code segment identification is thought, alternatively, the exploitation terminal can provide the submission option of each code segment, to this The submission operation of code segment can be the operation etc. for the submission option for selecting the code segment, and the present embodiment does not limit this.
In step 206, when the server receives the second submission instruction, the specified operating rights based on the code segment Limit, the second Validation Code library is committed to by the code segment.
When the exploitation terminal detects the operation of the submission to the code segment, sends second to the server and submits instruction, The second submission instruction carries the code segment identification, is used to indicate the code segment being committed to next code library, then when the service When device receives the second submission instruction, the code segment can be submitted according to the code segment identification in the second submission instruction Into the second Validation Code library.
In the present embodiment, the server has turned on the specified operating right of the code segment in step 204, then in step In 206, when the server, which is received, submits instruction to the second of the code segment, the specified operating right based on the code segment, The code segment is committed to the second Validation Code library.
And in practical application, for any code segment, when the server receives the instruction of the submission to the code segment When, first judge whether the specified operating right for having turned on the code segment, if having turned on the specified operating right of the code segment, The code segment is committed to next code library, if do not open the specified operating right of the code segment, ignores the submission and refers to It enables, alternatively, prompting message is sent to the exploitation terminal that the submission instructs is sent, to prompt the verification duration of developer's code segment It not up to provides duration, next code library cannot be committed to.
In the present embodiment, when which stores the code segment in the first Validation Code library, test terminal can be following The code segment is carried, and runs the code segment, which is tested.Wherein, which can be computer, mobile phone Etc. equipment, the present embodiment this is not limited.
And in order to prompt tester to test code segment in time, which can be with third preset duration A cycle obtains at least one code segment received in current period every the third preset duration, generates test assignment List, the test assignment list include at least one code segment received in current period, and the test is sent to test terminal Task list shows that the test assignment list, tester can look into when the test terminal receives the test assignment list It sees the code segment in the test assignment list, triggers the test operation to any code segment, which detects the test When operation, the code segment is downloaded from the server, and run the code segment, which is tested.Wherein, the third is pre- Can be that 24 hours, one week or other numerical value, the present embodiment do not limit this if duration can be preset by the server It is fixed.
In addition, the server can receive multiple code segments, the function that multiple code segment is realized may be identical, also may be used Can be different, then the server can also determine the test terminal corresponding to each function, when the server is inscribed in current period When receiving at least one code segment, at least one code segment can be divided, obtained according to the difference of realization of functions Multiple groupings, the code segment in each grouping is for realizing identical function, and the code segment of different grouping is for realizing difference Function.Then for each grouping, which can generate corresponding test assignment according to the code segment in the grouping List determines the corresponding test terminal of function that the grouping is realized, the test assignment list is sent to the test terminal.Then bear The tester for blaming the function can check code segment in the test assignment list, to these code segments in the test terminal It is tested.
The server is actively inquired in the server by sending test assignment list to test terminal, without tester The code segment that developer newly submits, you can prompt tester to test the code segment newly submitted in time, improve survey The working efficiency of examination personnel, avoids tester from omitting the code segment that need to be tested due to carelessness.
It should be noted that the present embodiment is only said by taking the first Validation Code library and the second Validation Code library as an example It is bright, and may include in practical applications, in the server multiple Validation Code libraries, in multiple Validation Code library between have Sequencing, the number of users that previous Validation Code library is opened are less than the number of users that the latter Validation Code library is opened Amount.
Include three Validation Code libraries with the server:It experiences version code library, exploitation version code library and stablizes version code library For, the number of users which is opened is less, and the number of users which is opened is between this It experiences between version code library and the stabilization version code library, the number of users which is opened is more.Code segment exists Through verification after a period of time in the experience version code library, can just be committed in the exploitation version code library, correspondingly, the code Section, through verification after a period of time, can be just committed in the stabilization version code library in the exploitation version code library.
If verification duration of the code segment in the experience version code library is shorter, which is committed to exploitation version In code library, the user experience of the exploitation version code library can be influenced, correspondingly, if the code segment is in the exploitation version code library Verification duration it is shorter, then the code segment is committed in stable version code library, the user's body of the stabilization version code library can be influenced It tests.
For this purpose, existence duration of the server according to the code segment in the experience version code library, to specifying operating right It is managed, ensure that verification duration of the code segment in the experience version code library is more than the first preset duration, ensure that this Experience the quality of version code library institute Validation Code section.Correspondingly, the server according to the code segment in the exploitation version code library Existence duration, specified operating right is managed, ensures to grow up when verification of the code segment in the exploitation version code library In the first preset duration, the quality of the exploitation version code library institute Validation Code section ensure that.
Wherein, for different code libraries, the first preset duration of the server settings may be the same or different, The present embodiment does not limit this.
In practical applications, experience version code library can be used for the verification of new function, can open to multiple developers, Exploitation version code library can be opened to multiple sample of users, and stablizing edition code library can open to all users.So, the generation Code section developer by it is newly developed go out code segment be committed to experience version code library in when, multiple developer can be to the generation Code section is professionally verified.When the code segment is committed in exploitation version code library, the angle that can be applied from ordinary user, The code segment is verified.And pass through experience version code library and develop after the verification of version code library, it is believed that code segment It has verified that fully, then the code segment is committed in stable version code library, all users can apply the code segment.
It should be noted that the present embodiment is only said so that multiple Validation Code library is configured at a server as an example It is bright, in fact, multiple Validation Code library can be only fitted in multiple servers, then it is configured at first with the first Validation Code library Server, and the second Validation Code library is configured at for second server, it, can be to first when exploitation terminal will submit code segment Server sends the first submission instruction, which carries code segment, which receives first submission Code segment in the first submission instruction is committed to the first Validation Code library by instruction.After verification after a period of time, exploitation Terminal sends second to the first server again and submits instruction, to indicate that the code segment is committed to the second clothes by the first server The second Validation Code library being engaged in device.The first server receive this second submit instruction when, call the first server with The code segment is committed to the second Validation Code library in the second server by the interface between second server, this second Validation Code is verified in library.
Alternatively, in the first Validation Code library after verification after a period of time, exploitation terminal can be to second service Device sends the second submission instruction, which carries code segment, which receives the second submission instruction When, which is committed to the second Validation Code library, is verified in the second Validation Code library.
Method provided in this embodiment, by working as the code segment for receiving exploitation terminal and being submitted to the first Validation Code library When, the specified operating right of the code segment is closed, and count existence duration of the code segment in the first Validation Code library, sentenced Whether the disconnected existence duration reaches the first preset duration, when the existence duration reaches first preset duration, opens the code The specified operating right of section.Counted by the existence duration to code segment, only the existence duration reach first it is default when When long, the specified operating right of the code segment can be just opened, which could be committed to the second Validation Code library, ensure that Verification duration of the code segment in the first Validation Code library is more than first preset duration, avoids testing due to code segment Card duration is too short and leads to omit the problems of its, improves the accuracy of the code segment.By the first Validation Code library Different information between the second Validation Code library is sent to exploitation terminal, and developer can be prompted to verify generation by first in time The code segment that specified operating right is had turned in code library is committed in the second Validation Code library, avoids the carelessness due to developer And forget the code segment being committed to the second Validation Code library, cause code segment in the verification time mistake in the first Validation Code library It is long, and then delay verification progress of the code segment in subsequent authentication code library.And periodically test is sent to test terminal Task list can prompt tester to test code segment in time, improve the working efficiency of tester.
Fig. 3 A are a kind of block diagrams of rights management device shown according to an exemplary embodiment.Referring to Fig. 3 A, the device Including receiving module 301, permission closedown module 302, statistical module 303, judgment module 304 and permission opening module 305.
Receiving module 301 is configurable for receiving the code segment that exploitation terminal is submitted to the first Validation Code library.
Permission closedown module 302 is configurable for receiving exploitation terminal to the first verification generation when the receiving module 301 When the code segment that code library is submitted, the specified operating right of the code segment is closed, which refers to carrying the code segment It hands over to the permission in the second Validation Code library, which is next code library in the first Validation Code library.
Statistical module 303 is configurable for receiving exploitation terminal to the first Validation Code library when the receiving module 301 When the code segment of submission, existence duration of the code segment in the first Validation Code library is counted.
Judgment module 304 is configurable for judging whether the existence duration that the statistical module 303 counts on reaches first Preset duration.
The existence duration that permission opening module 305 is configurable for counting on when the statistical module 303 reach this first When preset duration, the specified operating right of the code segment is opened.
Device provided in this embodiment, by working as the code segment for receiving exploitation terminal and being submitted to the first Validation Code library When, the specified operating right of the code segment is closed, and count existence duration of the code segment in the first Validation Code library, sentenced Whether the disconnected existence duration reaches the first preset duration, when the existence duration reaches first preset duration, opens the code The specified operating right of section.Counted by the existence duration to code segment, only the existence duration reach first it is default when When long, the specified operating right of the code segment can be just opened, which could be committed to the second Validation Code library, ensure that Verification duration of the code segment in the first Validation Code library is more than first preset duration, avoids testing due to code segment Card duration is too short and leads to omit the problems of its, improves the accuracy of the code segment.
Referring to Fig. 3 B, in another embodiment, which further includes:
Module 306 is submitted to be configurable for when receiving the submission instruction of the exploitation terminal-pair code segment, by this Code segment is committed to the second Validation Code library.
Referring to Fig. 3 C, in another embodiment, which further includes:
Acquisition module 307 is configurable for obtaining at least one code segment received in current period;
List Generating Module 308 is configurable for generating test assignment list, which includes current week At least one code segment received in phase;
Sending module 309 is configurable for sending the test assignment list to test terminal so that the test terminal exhibition Show the test assignment list.
In another embodiment, which is additionally configured to for when receiving the code segment, and judgement is It is no to have turned on verification duration monitoring function;If having turned on the verification duration monitoring function, the specified operation of the code segment is closed Permission.
Referring to Fig. 3 D, in another embodiment, which further includes:
Difference acquisition module 310 is configurable for obtaining between the first Validation Code library and the second Validation Code library Different information, which includes the code for not being committed to the second Validation Code library in the first Validation Code library also Section;
Sending module 309 is configurable for sending the different information to the exploitation terminal so that the exploitation terminal display The different information.
In another embodiment, which is additionally configured to raw in the first Validation Code library for obtaining Duration is deposited more than the code segment of the second preset duration;By the code in the code segment got and the second Validation Code library Duan Jinhang is compared, and obtains the different information.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be noted that:The rights management device that above-described embodiment provides is in administration authority, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of equipment is divided into different function modules, to complete all or part of work(described above Energy.In addition, the rights management device that above-described embodiment provides belongs to same design with right management method embodiment, it is specific real Existing process refers to embodiment of the method, and which is not described herein again.
Fig. 4 is a kind of block diagram of rights management device 400 shown according to an exemplary embodiment.For example, device 400 can To be provided as a server.With reference to Fig. 4, device 400 includes processing component 401, further comprises one or more processing Device, and by the memory resource representated by memory 402, for store can by the instruction of the execution of processing component 401, such as Application program.The application program stored in memory 402 may include it is one or more each refer to corresponding to one group The module of order.In addition, processing component 401 is configured as executing instruction, to execute above-mentioned right management method.
Device 400 can also include the power management that a power supply module 403 is configured as executive device 400, and one has Line or radio network interface 404 are configured as device 400 being connected to network and input and output (I/O) interface 405.Dress Setting 400 can operate based on the operating system for being stored in memory 402, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr it is similar.
Device provided in this embodiment, by working as the code segment for receiving exploitation terminal and being submitted to the first Validation Code library When, the specified operating right of the code segment is closed, and count existence duration of the code segment in the first Validation Code library, sentenced Whether the disconnected existence duration reaches the first preset duration, when the existence duration reaches first preset duration, opens the code The specified operating right of section.Counted by the existence duration to code segment, only the existence duration reach first it is default when When long, the specified operating right of the code segment can be just opened, which could be committed to the second Validation Code library, ensure that Verification duration of the code segment in the first Validation Code library is more than first preset duration, avoids testing due to code segment Card duration is too short and leads to omit the problems of its, improves the accuracy of the code segment.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (13)

1. a kind of right management method, which is characterized in that the method includes:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code library, the specified operating rights of the code segment is closed Limit, and existence duration of the code segment in first Validation Code library is counted, the specified operating right refers to by institute The permission that code segment is committed to the second Validation Code library is stated, second Validation Code library is under first Validation Code library One code library, the duration of code segment described in when existence a length of first Validation Code library storage;
Judge whether the existence duration reaches the first preset duration;
When the existence duration reaches first preset duration, the specified operating right of the code segment is opened.
2. according to the method described in claim 1, it is characterized in that, it is described when the existence duration reach described first it is default when When long, after the specified operating right for opening the code segment, the method further includes:
When receiving the submission instruction of code segment described in the exploitation terminal-pair, the code segment is committed to described second and is tested Demonstrate,prove code library.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain at least one code segment received in current period;
Test assignment list is generated, the test assignment list includes at least one code segment received in current period;
The test assignment list is sent to test terminal so that test assignment list described in the test terminal display.
4. according to the method described in claim 1, it is characterized in that, the exploitation terminal that ought receive is to the first Validation Code library When the code segment of submission, the specified operating right of the code segment is closed, including:
When receiving the code segment, judge whether to have turned on verification duration monitoring function, when verification is a length of from the beginning of Timing is to the time interval being committed to the code segment between second Validation Code library;
If having turned on the verification duration monitoring function, the specified operating right of the code segment is closed.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
The different information between first Validation Code library and second Validation Code library is obtained, the different information includes It is not committed to the code segment in second Validation Code library in first Validation Code library also;
The different information is sent to the exploitation terminal so that different information described in the exploitation terminal display.
6. according to the method described in claim 5, it is characterized in that, acquisition first Validation Code library and the second verification Different information between code library, including:
Duration of surviving in first Validation Code library is obtained more than the code segment of the second preset duration;
The code segment got and the code segment in second Validation Code library are compared, the difference letter is obtained Breath.
7. a kind of rights management device, which is characterized in that described device includes:
Receiving module, the code segment submitted to the first Validation Code library for receiving exploitation terminal;
Permission closedown module, for receiving the code segment that exploitation terminal is submitted to the first Validation Code library when the receiving module When, the specified operating right of the code segment is closed, the specified operating right refers to that the code segment is committed to second to test The permission of code library is demonstrate,proved, second Validation Code library is next code library in first Validation Code library;
Statistical module, for when the receiving module receive exploitation terminal submitted to the first Validation Code library code segment when, Count existence duration of the code segment in first Validation Code library, when existence a length of first Validation Code The duration of code segment described in library storage;
Judgment module, for judge the statistical module counts to existence duration whether reach the first preset duration;
Permission opening module, for when the statistical module counts to existence duration reach first preset duration when, open Open the specified operating right of the code segment.
8. device according to claim 7, which is characterized in that described device further includes:
Module is submitted, for when receiving the submission instruction of code segment described in the exploitation terminal-pair, the code segment to be carried It hands over to second Validation Code library.
9. device according to claim 7, which is characterized in that described device further includes:
Acquisition module, for obtaining at least one code segment received in current period;
List Generating Module, for generating test assignment list, the test assignment list includes being received in current period At least one code segment;
Sending module, for sending the test assignment list to test terminal so that tested described in the test terminal display Task list.
10. device according to claim 7, which is characterized in that the permission closedown module is additionally operable to described when receiving When code segment, judge whether to have turned on verification duration monitoring function, when verification is a length of from timing is started to by the code Section is committed to the time interval between second Validation Code library;If having turned on the verification duration monitoring function, close The specified operating right of the code segment.
11. device according to claim 7, which is characterized in that described device further includes:
Difference acquisition module, for obtaining the letter of the difference between first Validation Code library and second Validation Code library Breath, the different information includes the code segment for not being committed to second Validation Code library in first Validation Code library also;
Sending module, for sending the different information to the exploitation terminal so that difference described in the exploitation terminal display Information.
12. according to the devices described in claim 11, which is characterized in that the difference acquisition module is additionally operable to obtain described first Duration is survived in Validation Code library more than the code segment of the second preset duration;By the code segment got and described second Code segment in Validation Code library is compared, and the different information is obtained.
13. a kind of rights management device, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When receiving the code segment that exploitation terminal is submitted to the first Validation Code library, the specified operating rights of the code segment is closed Limit, and existence duration of the code segment in first Validation Code library is counted, the specified operating right refers to by institute The permission that code segment is committed to the second Validation Code library is stated, second Validation Code library is under first Validation Code library One code library;
Judge whether the existence duration reaches the first preset duration, when existence a length of first Validation Code library storage The duration of the code segment;
When the existence duration reaches first preset duration, the specified operating right of the code segment is opened.
CN201510463331.3A 2015-07-31 2015-07-31 Right management method and device Active CN105045716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510463331.3A CN105045716B (en) 2015-07-31 2015-07-31 Right management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510463331.3A CN105045716B (en) 2015-07-31 2015-07-31 Right management method and device

Publications (2)

Publication Number Publication Date
CN105045716A CN105045716A (en) 2015-11-11
CN105045716B true CN105045716B (en) 2018-09-21

Family

ID=54452279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510463331.3A Active CN105045716B (en) 2015-07-31 2015-07-31 Right management method and device

Country Status (1)

Country Link
CN (1) CN105045716B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446056B (en) * 2018-09-11 2023-03-21 平安科技(深圳)有限公司 Code verification method and device, electronic equipment and medium
CN111382049B (en) * 2018-12-28 2023-05-02 阿里云计算有限公司 Code submitting method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624677A (en) * 2011-01-27 2012-08-01 阿里巴巴集团控股有限公司 Method and server for monitoring network user behavior
CN104796292A (en) * 2015-04-27 2015-07-22 上海青橙实业有限公司 Terminal management method and terminal system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7324922B2 (en) * 2005-10-26 2008-01-29 International Business Machines Corporation Run-time performance verification system
US20080244047A1 (en) * 2007-04-02 2008-10-02 Inventec Corporation Method for implementing management software, hardware with pre-configured software and implementing method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624677A (en) * 2011-01-27 2012-08-01 阿里巴巴集团控股有限公司 Method and server for monitoring network user behavior
CN104796292A (en) * 2015-04-27 2015-07-22 上海青橙实业有限公司 Terminal management method and terminal system

Also Published As

Publication number Publication date
CN105045716A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
US20160188307A1 (en) Persistent mobile device enrollment
CN106547578A (en) The loading method and device of terminal applies APP
CN105389263B (en) Application software authority monitoring method, system and equipment
CN111869178B (en) Near real-time IP user mapping method and system
US20160020962A1 (en) Management of Virtual CPES
US20160283356A1 (en) Event-driven automation testing for mobile devices
CN107241336A (en) Auth method and device
CN108270837A (en) A kind of distributed task dispatching method and system using slack resources
CN103984887A (en) Method and device for controlling user permission
CN102694910A (en) Mobile communication terminal and communication limiting and monitoring method based on mobile communication terminal
CN103634935B (en) WPS (Wi-Fi protected setup) or QSS (quick secure setup)-based network accessing method and device
CN105045716B (en) Right management method and device
CN110119350A (en) Software Development Kit test method, device and equipment and computer storage medium
CN106055360A (en) Starting method of application background service and mobile terminal
CN108924159A (en) The verification method and device in a kind of message characteristic identification library
CN109885473A (en) Automated testing method and device, terminal and computer readable storage medium
CN106506212A (en) Abnormal information acquisition methods and user terminal
CN112799970B (en) Test data processing method, device, electronic equipment and medium
CN108156053B (en) Service processing method, device, system and server
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN107360120B (en) The auditing method and device of virtual network function
CN105260233B (en) A kind of creation method and device of application container
CN105868622A (en) Method and device for controlling startup of application
CN108882207A (en) The implementation method and device of near field Trigger Function
CN109960658A (en) Application programming interface test method, device, electronic equipment and storage medium

Legal Events

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