CN108008966A - A kind of resource regeneration method and system - Google Patents

A kind of resource regeneration method and system Download PDF

Info

Publication number
CN108008966A
CN108008966A CN201711257028.3A CN201711257028A CN108008966A CN 108008966 A CN108008966 A CN 108008966A CN 201711257028 A CN201711257028 A CN 201711257028A CN 108008966 A CN108008966 A CN 108008966A
Authority
CN
China
Prior art keywords
resource
current
coordinate
issue
client
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.)
Granted
Application number
CN201711257028.3A
Other languages
Chinese (zh)
Other versions
CN108008966B (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.)
Inspur General Software Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN201711257028.3A priority Critical patent/CN108008966B/en
Publication of CN108008966A publication Critical patent/CN108008966A/en
Application granted granted Critical
Publication of CN108008966B publication Critical patent/CN108008966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of resource regeneration method and system, which includes:Release module, at least one client and at least one business module;Release module receives at least one resource coordinate of any one business module transmission, issue registration is carried out at least one resource coordinate, according to the resource coordinate of Current resource and at least one resource coordinate, judge whether Current resource needs to update, if, determine target resource coordinate, target resource coordinate is sent to current business module;Each client when receive user for Current resource renewal triggering when, to current business module send renewal request, renewal request include:The resource coordinate of Current resource;Current resource is updated using target resource;Each business module determines target resource, target resource is sent to destination client according to target resource coordinate.Scheme provided by the invention in time can be updated resource.

Description

A kind of resource regeneration method and system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of resource regeneration method and system.
Background technology
With the development of information technology, the quantity of resource increases sharply in client, how in time to the money of client Source is updated, and becomes urgent problem to be solved.
In the prior art, technical staff issues resource by publishing center, and client downloads money by accessing publishing center Source.
But the network of client and publishing center is often unstable, causes resource updates not in time.
The content of the invention
An embodiment of the present invention provides a kind of resource regeneration method and system, and resource can be updated in time.
In a first aspect, an embodiment of the present invention provides a kind of resource updates system, including:Release module, at least one visitor Family end and at least one business module;
The release module, at least one resource coordinate sent for receiving any one of business module, to institute State at least one resource coordinate and carry out issue registration;Receive the Current resource that destination client is sent by current business module Resource coordinate;According to the resource coordinate of the Current resource and at least one resource coordinate, judge that the Current resource is It is no to need to update, if so, determining target resource coordinate, the target resource coordinate is sent to the current business module;
Each described client, for when receive user for the Current resource renewal triggering when, pass through institute State current business module and send renewal request to the release module, wherein, the renewal request includes:The money of Current resource Source coordinate;When receiving target resource, the Current resource is updated using the target resource;
Each described business module, for when receiving the target resource coordinate, being sat according to the target resource Mark, determines the target resource, the target resource is sent to the destination client.
Preferably,
The renewal request further comprises:Current identity token;
The release module, is further used for storing at least one registered client's client information;Receive the destination client The current identity token sent by the current business module, parses the current identity token, determines institute State target customer's client information;Judge to whether there is target customer's client information at least one registered client's client information, If so, execution is described according to the Current resource coordinate and at least one resource coordinate, judge whether Current resource needs Update.
Preferably,
The release module, is further used for receiving sitting with each resource for any one of business module transmission Mark corresponding issuing time;
The resource coordinate, including:Business scope, NameSpace and version information;
The release module, at least one resource coordinate, determining to lead with the business of the Current resource Domain, NameSpace is identical and issuing time is not later than at least one of current time and has issued resource coordinate;According to issuing time At least one resource coordinate of having issued is ranked up to early order by evening;Judge the issue resource to make number one Whether the version information of coordinate is identical with the version information of the Current resource, if not, determining the issue to make number one Resource coordinate is target resource coordinate.
Preferably,
The release module, is further used for receiving sitting with each resource for any one of business module transmission Corresponding scope of release is marked, wherein, the scope of release, including:Issue rank, with it is described issue rank it is corresponding at least one Object identity;Receive the destination client sent by the current business module it is corresponding with the user at least one Destination object identifies;Determine each other priority of the issue stage;Using the issue rank of highest priority as current issue Rank, performs S1;
S1:Judge that each described issued currently is issued in the corresponding each object mark of resource coordinate with the presence or absence of described The corresponding destination object mark of rank, if so, performing S2, otherwise, performs S3;
S2:The issue rank for determining the user is the current issue rank, according to the current issue rank to institute At least one resource coordinate of having issued is stated to be screened;
S3:According to current issue rank described in the sequential update of priority from high to low;
S4:Judge whether the other priority of the current issue stage after renewal is minimum, if so, performing S5, otherwise, holds Row S1;
S5:At least one resource coordinate of having issued is screened according to the current issue rank after renewal;
The release module, at least one having been sent out to described after screening by the order in evening to morning according to issuing time Cloth resource coordinate is ranked up;Judge the version information for having issued resource coordinate after the screening that makes number one whether with it is described The version information of Current resource is identical, if not, the resource coordinate of issue after the screening for determining to make number one provides for target Source coordinate;
The renewal request further comprises:At least one destination object mark corresponding with the user, wherein, respectively A corresponding different issue rank of destination object mark.
Preferably,
The release module, is further used for receiving the rollback resource coordinate that any one of business module is sent;Sentence Whether the resource coordinate of the disconnected Current resource is identical with the rollback resource coordinate, if so, passing through the current business mould Block sends back-off instruction to the destination client, otherwise, performs the resource coordinate according to the Current resource and described At least one resource coordinate, judges whether the Current resource needs to update;
Each described client, is further used for, when receiving the back-off instruction, the Current resource being retracted A supreme version.
Second aspect, an embodiment of the present invention provides a kind of money based on resource updates system described in any of the above-described embodiment Source update method, including:
Release module receives at least one resource coordinate of any one business module transmission, at least one resource Coordinate carries out issue registration;
Each described client when receive user for Current resource renewal triggering when, pass through the current business Module sends renewal request to the release module, wherein, the renewal request includes:The resource coordinate of Current resource;
The release module receives the money for the Current resource that destination client is sent by the current business module Source coordinate;
Resource coordinate and at least one resource coordinate of the release module according to the Current resource, described in judgement Whether Current resource, which needs, updates, if so, determining target resource coordinate, the target resource coordinate is sent to current business Module;
Each described business module is when receiving the target resource coordinate, according to the target resource coordinate, really Set the goal resource, and the target resource is sent to the destination client;
Each described client is when receiving the target resource, using the target resource to the Current resource It is updated.
Preferably,
The renewal request further comprises:Current identity token;
In resource coordinate of the release module according to the Current resource and at least one resource coordinate, sentence Before whether the Current resource that breaks needs renewal, further comprise:
The release module prestores at least one registered client's client information;
The release module receives the current identity that the destination client is sent by the current business module Token, parses the current identity token, determines target customer's client information;
The release module judges with the presence or absence of the destination client to believe at least one registered client's client information Whether breath, if so, execution is described according to the Current resource coordinate and at least one resource coordinate, judge Current resource Need to update.
Preferably,
Further comprise:
The hair corresponding with each resource coordinate that the release module receives that any one of business module sends The cloth time;
The resource coordinate, including:Business scope, NameSpace and version information;
Resource coordinate and at least one resource coordinate of the release module according to the Current resource, judge Whether the Current resource, which needs, updates, if so, determine target resource coordinate, including:
The release module determines and the business scope of the Current resource, life at least one resource coordinate The name space is identical and issuing time is not later than at least one of current time and has issued resource coordinate;
The release module according to issuing time by evening to morning order to it is described it is at least one issued resource coordinate into Row sequence;
Whether the version information for having issued resource coordinate that the release module judges to make number one currently provides with described The version information in source is identical, if not, the resource coordinate of issue for determining to make number one is target resource coordinate.
Preferably,
Further comprise:
The hair corresponding with each resource coordinate that the release module receives that any one of business module sends Cloth scope, wherein, the scope of release, including:Issue rank, at least one object identity corresponding with the issue rank;
The renewal request further comprises:At least one destination object mark corresponding with the user, wherein, respectively A corresponding different issue rank of destination object mark;
It is being sent by the current business module with the user couple that the release module receives the destination client At least one destination object mark answered;
The release module determines each other priority of the issue stage;Using the issue rank of highest priority as work as Preceding issue rank, performs S1;
S1:Judge that each described issued currently is issued in the corresponding each object mark of resource coordinate with the presence or absence of described The corresponding destination object mark of rank, if so, performing S2, otherwise, performs S3;
S2:The issue rank for determining the user is the current issue rank, according to the current issue rank to institute At least one resource coordinate of having issued is stated to be screened;
S3:According to current issue rank described in the sequential update of priority from high to low;
S4:Judge whether the other priority of the current issue stage after renewal is minimum, if so, performing S5, otherwise, holds Row S1;
S5:At least one resource coordinate of having issued is screened according to the current issue rank after renewal;
The release module sits at least one resource of having issued by evening to early order according to issuing time Mark be ranked up including:
The release module at least one has issued money by the order in evening to morning according to issuing time to described after screening Source coordinate is ranked up;
Whether the version information for having issued resource coordinate that the release module judges to make number one works as with described The version information of preceding resource is identical, if not, the resource coordinate of issue for determining to make number one is target resource coordinate, bag Include:
The release module judge the version information for having issued resource coordinate after the screening that makes number one whether with institute State that the version information of Current resource is identical, if not, the resource coordinate of issue after the screening for determining to make number one is target Resource coordinate.
Preferably,
Further comprise:
The release module receives the rollback resource coordinate that any one of business module is sent;
The release module judges whether the resource coordinate of the Current resource is identical with the rollback resource coordinate, if It is that back-off instruction is sent to the destination client by the current business module, otherwise, performs described according to described current The resource coordinate of resource and at least one resource coordinate, judge whether the Current resource needs to update;
Each described client is when receiving the back-off instruction, by the supreme version of Current resource rollback This.
An embodiment of the present invention provides a kind of resource regeneration method and system, wherein, within the system, according to business scope Each resource is divided into different business modules, each business module can issue resource by release module, and user can be with Renewal request is sent for the current business module belonging to Current resource to Current resource by client, current business module will Renewal request is sent to release module, and release module judges whether Current resource needs more according to the resource coordinate for having issued registration Newly, when definite Current resource needs renewal, release module gives definite target resource coordinates feedback to current business module, with Current business module is determined target resource according to target resource coordinate, and target resource is fed back into client and is updated. In practical application scene, the business demand that can be directed to a certain enterprise establishes the resource updates system, which can realize Resource is issued and renewal, for the employee of the enterprise, without being updated by exterior publishing center, can avoid net Network instability problem, is in time updated resource.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of structure diagram of resource updates system provided by one embodiment of the present invention;
Fig. 2 is a kind of flow chart of resource regeneration method provided by one embodiment of the present invention;
Fig. 3 is a kind of flow chart for resource regeneration method that another embodiment of the present invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art The all other embodiments obtained on the premise of creative work is not made, belong to the scope of protection of the invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of resource updates system, which includes:
Release module 101, at least one client 102 and at least one business module 103;
Release module 101, for receiving at least one resource coordinate of any one business module 103 transmission, at least One resource coordinate carries out issue registration;Receive the Current resource that destination client 102 is sent by current business module 103 Resource coordinate;According to the resource coordinate of Current resource and at least one resource coordinate, judge whether Current resource needs to update, such as Fruit is to determine target resource coordinate, and target resource coordinate is sent to current business module 103;
Each client 102, for when receive user for Current resource renewal triggering when, pass through current business Module 103 sends renewal request to release module 101, wherein, renewal request includes:The resource coordinate of Current resource;When connecing When receiving target resource, Current resource is updated using target resource;
Each business module 103, for when receiving target resource coordinate, according to target resource coordinate, determining mesh Resource is marked, target resource is sent to destination client 102.
Within the system, each resource is divided into according to business scope by different business modules, each business module can To issue resource by release module, user can be by client for the current business belonging to Current resource to Current resource Module sends renewal request, and current business module will update request and be sent to release module, and release module is registered according to having issued Resource coordinate judge whether Current resource needs to update, when definite Current resource need renewal when, release module by determine Target resource coordinates feedback gives current business module, so that current business module determines target resource according to target resource coordinate, And target resource is fed back into client and is updated.In practical application scene, the business demand of a certain enterprise can be directed to The resource updates system is established, which can realize resource issue and renewal, for the employee of the enterprise, without passing through Exterior publishing center is updated, and can avoid unstable networks problem, resource is updated in time.
In practical application scene, release module encapsulates the update mechanism of inside, and provides and the unified of resource is updated And query interface, the more issue of business module and new demand servicing depend on release module, the resource that can be issued can be picture, also may be used To be file, the program bag of React Native applications or any other services can also be.Relative to client End, business module and release module have collectively constituted server-side.
In one embodiment of the invention, in order to verify the identity of client, renewal request further comprises:Currently Identity token;
Release module 101, is further used for storing at least one registered client's client information;Destination client is received by working as The current identity token that preceding business module is sent, parses current identity token, determines target customer's client information;Judge extremely It whether there is target customer's client information in few registered client's client information, if so, execution is according to Current resource coordinate and extremely A few resource coordinate, judges whether Current resource needs to update.
Before being updated using the release module, client needs to be noted in release module by business module Volume, to obtain identity token.Client needs the details of incoming client, such as equipment I d, implementor name, operation platform information Deng.Release module can register the client, and distribute a client identity token, this token is that client carries out just The important documents often updated, are controlled by release module completely whether coming into force, you can at any time by release module as needed into Row is revoked, then client cannot be further continued for using, to reach equipment management effect;Client asks to update every time, it is also desirable to takes With this token, release module is accordingly identified client, and returns to fresh information.
In one embodiment of the invention, in order to realize that the timing of resource is issued, release module 101, is further used for Receive the issuing time corresponding with each resource coordinate of any one business module 103 transmission;
Resource coordinate, including:Business scope, NameSpace and version information;
Release module 101, it is empty with the business scope of Current resource, name at least one resource coordinate, determining Between identical and issuing time be not later than at least one of current time and issued resource coordinate;According to issuing time by evening to early Order at least one resource coordinate of having issued is ranked up;Judge the version for the having issued resource coordinate letter to make number one Whether breath is identical with the version information of Current resource, if not, the resource coordinate of issue for determining to make number one provides for target Source coordinate.
In embodiments of the present invention, each resource is marked by resource coordinate.In practical application scene, release module pair The positioning of resource is divided into three ranks:Business scope (domain), NameSpace (namespace), version information (version).Wherein, domain defines the business module residing for resource, realizes operational isolation between each resource, The specific resource in business scope is described in detail in namespace, and version is then that some resource version information is retouched State, the final specific version information for using { domiain, namespace, version } can determine some resource completely.
Issuing time is then responsible for control fresh information and comes into force from certain day some time, is suitable for time more sensitivity Issue, as New Year greets information updating, the patch issue of the new first quarter etc..
In one embodiment of the invention, in order to neatly adjust scope of release, release module 101, is further used for The scope of release corresponding with each resource coordinate of any one business module 103 transmission is received, wherein, scope of release, including: Issue rank, at least one object identity corresponding with issue rank;Receive destination client 102 and pass through current business module The 103 at least one destination object marks corresponding with user sent;Determine the other priority of each issue stage;By priority most High issue rank performs S1 as current issue rank;
S1:Judge that each issued corresponds in the corresponding each object mark of resource coordinate with the presence or absence of current issue rank Destination object mark, if so, perform S2, otherwise, perform S3;
S2:The issue rank for determining user is current issue rank, has been issued according to current issue rank at least one Resource coordinate is screened;
S3:Rank is currently issued according to the sequential update of priority from high to low;
S4:Judge whether the other priority of current issue stage after renewal is minimum, if so, performing S5, otherwise, perform S1;
S5:At least one resource coordinate of having issued is screened according to the current issue rank after renewal;
Release module 101, for having issued money at least one after screening by the order in evening to morning according to issuing time Source coordinate is ranked up;Judge the version information for having issued resource coordinate after the screening that makes number one whether with Current resource Version information it is identical, if not, the resource coordinate of issue after the screening for determining to make number one is target resource coordinate;
Renewal request further comprises:At least one destination object mark corresponding with user, wherein, each target pair As the corresponding different issue rank of mark.
Scope of release can determine that issues renewal to which user, for example, in practical application scene, issue rank includes: Enterprise-level (Enterprise), tissue class (Group) and personal level (User);
In one embodiment of the invention, for the fault-tolerance of strengthening system, release module 101, is further used for connecing Receive the rollback resource coordinate of any one business module 103 transmission;Judge Current resource resource coordinate whether with rollback resource Coordinate is identical, if so, sending back-off instruction to destination client 102 by current business module 103, otherwise, performs basis The resource coordinate of Current resource and at least one resource coordinate, judge whether Current resource needs to update;
Each client 102, is further used for when receiving back-off instruction, and Current resource is retracted a supreme version This.
As shown in Fig. 2, an embodiment of the present invention provides a kind of resource based on any of the above-described embodiment resource updates system Update method, including:
Step 201:Release module receives at least one resource coordinate of any one business module transmission, at least one Resource coordinate carries out issue registration;
Step 202:Each client when receive user for Current resource renewal triggering when, pass through current business Module sends renewal request to release module, wherein, renewal request includes:The resource coordinate of Current resource;
Step 203:The resource that release module receives the Current resource that destination client is sent by current business module is sat Mark;
Step 204:Resource coordinate and at least one resource coordinate of the release module according to Current resource, judge Current resource Whether need to update, if so, performing step 205;
Step 205:Release module determines target resource coordinate, and target resource coordinate is sent to current business module;
Step 206:Each business module, according to target resource coordinate, determines mesh when receiving target resource coordinate Resource is marked, target resource is sent to destination client;
Step 207:Each client carries out more Current resource when receiving target resource, using target resource Newly.
In one embodiment of the invention, renewal request further comprises:Current identity token;
In resource coordinate of the release module according to Current resource and at least one resource coordinate, judge whether Current resource needs Before updating, further comprise:
Release module prestores at least one registered client's client information;
Release module receives release module and receives the current identity token that destination client is sent by current business module, Current identity token is parsed, determines target customer's client information;
Release module judges to whether there is target customer's client information at least one registered client's client information, if so, holding Row judges whether Current resource needs to update according to Current resource coordinate and at least one resource coordinate.
In one embodiment of the invention, further comprise:
Release module receives the issuing time corresponding with each resource coordinate of any one business module transmission;
Resource coordinate, including:Business scope, NameSpace and version information;
Resource coordinate and at least one resource coordinate of the release module according to Current resource, judge whether Current resource needs Renewal, if so, determine target resource coordinate, including:
Release module at least one resource coordinate, determine with the business scope of Current resource, NameSpace is identical and Issuing time is not later than at least one of current time and has issued resource coordinate;
Release module is ranked up at least one resource coordinate of having issued to early order by evening according to issuing time;
Release module judge the version information for having issued resource coordinate that makes number one whether the version with Current resource Information is identical, if not, the resource coordinate of issue for determining to make number one is target resource coordinate.
In one embodiment of the invention, further comprise:
Release module receives the scope of release corresponding with each resource coordinate of any one business module transmission, wherein, Scope of release, including:Issue rank, at least one object identity corresponding with issue rank;
Renewal request further comprises:At least one destination object mark corresponding with user, wherein, each target pair As the corresponding different issue rank of mark;
Release module receives at least one target corresponding with user that destination client is sent by current business module Object identity;
Release module determines the other priority of each issue stage;Using the issue rank of highest priority as current issue stage Not, S1 is performed;
S1:Judge that each issued corresponds in the corresponding each object mark of resource coordinate with the presence or absence of current issue rank Destination object mark, if so, perform S2, otherwise, perform S3;
S2:The issue rank for determining user is current issue rank, has been issued according to current issue rank at least one Resource coordinate is screened;
S3:Rank is currently issued according to the sequential update of priority from high to low;
S4:Judge whether the other priority of current issue stage after renewal is minimum, if so, performing S5, otherwise, perform S1;
S5:At least one resource coordinate of having issued is screened according to the current issue rank after renewal;
Release module is ranked up bag to early order by evening according to issuing time at least one resource coordinate of having issued Include:
Release module according to issuing time by the order in evening to morning at least one after screening has been issued resource coordinate into Row sequence;
Release module judge the version information for having issued resource coordinate that makes number one whether the version with Current resource Information is identical, if not, the resource coordinate of issue for determining to make number one is target resource coordinate, including:
Whether the version information for having issued resource coordinate after the screening that release module judges to make number one provides with current The version information in source is identical, if not, the resource coordinate of issue after the screening for determining to make number one is target resource coordinate.
In one embodiment of the invention, further comprise:
Release module receives the rollback resource coordinate of any one business module transmission;
Release module judges whether the resource coordinate of Current resource is identical with rollback resource coordinate, if so, by current Business module sends back-off instruction to destination client, otherwise, performs the resource coordinate according to Current resource and at least one money Source coordinate, judges whether Current resource needs to update;
Each client retracts Current resource a supreme version when receiving back-off instruction.
As shown in figure 3, the resource that the embodiment of the present invention is formed with release module, a client and two business modules is more Exemplified by new system, resource regeneration method is described in detail, this method includes:
Step 301:Release module receives at least one resource coordinate of any one business module transmission and each resource The corresponding issuing time of coordinate and scope of release, issue registration is carried out at least one resource coordinate, wherein, resource coordinate, bag Include:Business scope, NameSpace and version information;Scope of release, including:Issue rank, with issuing rank corresponding at least one A object identity.
Multiple resource coordinates are stored in each business module, technical staff can determine money to be released by business module The resource coordinate in source, and the resource coordinate is sent to release module, so that release module carries out issue registration.
Resource coordinate is used to distinguish each resource, in the present embodiment, passes through business scope, NameSpace and version information Resource is determined, for example, the resource coordinate of resource 001 is (video, Tencent's video, 2.0 versions).Parameter in resource coordinate can be with Including one or more, for the purpose of distinguishing different resources.For example, in practical application scene, resource coordinate includes business Field and version information, the resource coordinate of resource 002 is (red-letter day picture, 1.0).It can be seen from the above that can be according to business demand pair Resource coordinate is expanded.
Scope of release is used to determine issue object, and issue rank is used to be classified issue object according to business demand, The quantity of rank can be determined according to business demand.For example, in practical application scene, issue rank includes three-level:Enterprise Industry level, department level and personal level.
By taking the financial statement template of company as an example:
Enterprise level template, it can be seen that the overall traffic situation of company year and the state of affairs of each department of subordinate;
Department's rank template, includes universal template content, it can be seen that this department, tier-2 department and other detailed industry Business situation, but cannot see that the detailed data of other departments;
Personal rank template, includes universal template content and department's template content, it can be seen that each department of company and The confidential information of all individuals etc..
The template of personal rank can only see by several senior executives in company, when issue, if the renewal of template is only pair Dry user's issue;The other template of department level can only can be updated by the employee for belonging to particular department, and the renewal of template can only Employee under particular department is issued, and is not belonging to the employee of the department, it is impossible to obtains the financial template of the department;Enterprise level Template can only by being under the jurisdiction of the employee of this company just it can be seen that, the employee of other enterprises should be in request cannot Ask renewal.
Object identity is used to identify the issue object under current issue rank, for example, issue rank is enterprise-level, object mark Knowledge includes:A, b, then the resource allow enterprise a and enterprise b user be updated.
Step 302:Client when receive user for Current resource renewal triggering when, by current business module to Release module sends renewal request, wherein, renewal request includes:The resource coordinate of Current resource, it is corresponding with user at least One destination object mark, each corresponding different issue rank of destination object mark.
For example, the corresponding destination object of user is identified as, owned enterprise is identified as W1, affiliated function is identified as W2, personal mark Know for W3.
According to different business demands, the different types of resource issue of different business modules processing and renewal.
Issuing time is used for the time for determining that issue comes into force, for example, the resource coordinate of resource 001 is (video, Tencent regard Frequently, 2.0 version), issuing time is September 1, then September 1 rises, and user can be by Tencent's video more by release module New is 2.0 version of Tencent's video.
Step 303:Release module receives resource coordinate, at least one destination object mark corresponding with user of Current resource Know, at least one resource coordinate, determine and the business scope of Current resource, NameSpace is identical and issuing time is not late At least one in current time has issued resource coordinate.
For example, Current resource coordinate is (video, Tencent's video, 1.0 versions), current is September 5, then release module is true It is fixed qualified to have issued resource coordinate and have (video, Tencent's video, 2.0 versions).
Step 304:Release module determines the other priority of each issue stage, using the issue rank of highest priority as work as Preceding issue rank.
According to the needs of business, different issue ranks has different priority, for example, enterprise-level, department level and a The priority orders of people's level are personal level > department level > enterprise-levels.
By taking above-mentioned financial statement template as an example, step 304- steps 308 may be summarized to be:
Release module, according to the priority of personal level > department levels > enterprise-levels, can judge to be directed to according to the information of user In the user, which scope of release financial template renewal is suitable for, if issue issued personal level to this user in history Other renewal, it is believed that the user is the responsible consumer of customization of individual character, and the rank of template renewal is arranged to personal;If without individual Rank, then the renewal of issue history whether in a organized way rank is searched, have and then use tissue rank, otherwise using the general purpose grade of enterprise Not.
Step 305:Release module judges each issued in resource coordinate corresponding each object mark with the presence or absence of working as It is preceding to issue the corresponding destination object mark of rank, if so, performing step 306, otherwise, perform step 307;
Step 306:Release module determines that the issue rank of user is current issue rank, according to current issue rank to extremely Few one has been issued resource coordinate and has been screened, and performs step 310;
Step 307:Release module currently issues rank according to the sequential update of priority from high to low;
Step 308:Release module judges whether the other priority of current issue stage after renewal is minimum, if so, performing Step 309, otherwise, step 305 is performed;
Step 309:Release module carries out at least one resource coordinate of having issued according to the current issue rank after renewal Screening, performs step 310;
For example, resource coordinate 002 is (video, Tencent's video, 1.0 versions), issuing time is September 1, scope of release is Enterprise-level, enterprise mark P1;
Resource coordinate 003 is (video, Tencent's video, 1.0 versions), issuing time is September 1, scope of release is department Level, department mark P2, P3;
Resource coordinate 004 is (video, Tencent's video, 2.0 versions), issuing time is September 2, scope of release is department Level, department mark P2;
If Current resource is identified as (video, Tencent's video, 1.0 versions), active user's destination object is identified as:It is affiliated Enterprise is identified as P1, affiliated function is identified as P2, person identifier P3, and current time is September 5.
Determined according to issuing time, issued resource coordinate 002-004, without the issue for personal P3, still There is the issue for department mark P2, then screening obtains resource coordinate 003,004.
Step 310:Release module has issued money by the order in evening to morning according to issuing time at least one after screening Source coordinate is ranked up, the version of the version information for having issued resource coordinate and Current resource after the screening to make number one When information is different, the resource coordinate of issue after the screening that release module determines to make number one is target resource coordinate, by mesh Mark resource coordinate is sent to current business module.
Current Tencent video is 1.0 versions, and the resource coordinate of issue 004 after the screening to make number one is Tencent's video 2.0 versions, therefore, target resource coordinate are (video, Tencent's video, 2.0 versions).
Step 311:Current business module, according to target resource coordinate, determines target when receiving target resource coordinate Resource, client is sent to by target resource.
Business module can direct storage resource, can also storage resource mark and the correspondence of resource address.Generally Ground, in the case of resource volume is larger, the general storage resource mark of business module and the correspondence of resource address, pass through mesh Mark resource identification determines target resource.For example, business module storage resource is in the address of Dropbox.
Step 312:Client is updated Current resource when receiving target resource, using target resource.
An embodiment of the present invention provides a kind of computer-readable recording medium, including execute instruction, when the processor of storage control performs During execute instruction, the method for any of the above-described embodiment of storage control execution.
An embodiment of the present invention provides a kind of storage control, including:Processor, memory and bus;
Memory is used to store execute instruction, and processor is connected with memory by bus, when storage control is run, Processor performs the execute instruction of memory storage, so that the method that storage control performs any of the above-described embodiment.
The contents such as the information exchange between each step, implementation procedure in the above method, due to implementing with present system Example is based on same design, and particular content can be found in the narration in present system embodiment, and details are not described herein again.
To sum up, each embodiment of the present invention at least has the effect that:
1st, in embodiments of the present invention, within the system, each resource is divided into according to business scope by different business Module, each business module can by release module issue resource, user can by client for Current resource to work as Current business module belonging to preceding resource sends renewal request, and current business module is sent to release module by request is updated, and sends out Cloth module judges whether Current resource needs to update according to the resource coordinate for having issued registration, when definite Current resource needs to update When, release module gives definite target resource coordinates feedback to current business module, so that current business module is provided according to target Source coordinate determines target resource, and target resource is fed back to client and is updated.In practical application scene, it can be directed to The business demand of a certain enterprise establishes the resource updates system, which can realize resource issue and renewal, for the enterprise Employee for, without being updated by exterior publishing center, be not take up outer net resource while avoid unstable networks from asking Topic, in time can be updated resource.
2nd, in embodiments of the present invention, any client must provide equipment details and be registered in release module, And identity token is obtained, and follow-up step can be just carried out, the details of equipment are recorded, and when being managed for equipment Time provides the foundation.
3rd, in embodiments of the present invention, this method has carried out sufficient abstract to issue resource, can be with extended resources class Type, is not limited to picture, service packs, waits any resource that can be managed can manage and issue.
4th, in embodiments of the present invention, scope of release is also flexible and changeable, both can be that specific user issues renewal, also may be used Think some tissue, the issue renewal of some enterprise;The issuing time of renewal can also be preset, and be realized to the automatic issue of point, Alleviate the development cost of operation personnel
5th, in embodiments of the present invention, issue content can realize rollback, enhance the fault-tolerance of system, good to user Experience.Collection to user's fresh information is also convenient for developer and operation personnel and the service condition of user is preferably divided Analysis, data basis is provided for the user behavior analysis under big data.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements, But also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, by sentence " including the key element that a 〃 〃 " is limited, it is not excluded that Also there is other identical factor in the process including key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through The relevant hardware of programmed instruction is completed, and foregoing program can be stored in computer-readable storage medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:The foregoing is merely a prefered embodiment of the invention, is merely to illustrate the technical side of the present invention Case, is not intended to limit the scope of the present invention.It is any modification for being made within the spirit and principles of the invention, equivalent Replace, improve etc., it is all contained in protection scope of the present invention.

Claims (10)

  1. A kind of 1. resource updates system, it is characterised in that including:Release module, at least one client and at least one business Module;
    The release module, at least one resource coordinate sent for receiving any one of business module, to it is described extremely A few resource coordinate carries out issue registration;Receive the resource for the Current resource that destination client is sent by current business module Coordinate;According to the resource coordinate of the Current resource and at least one resource coordinate, judge whether the Current resource needs Update, if so, determining target resource coordinate, the target resource coordinate is sent to the current business module;
    Each described client, for when receive user for the Current resource renewal triggering when, by it is described work as Preceding business module sends renewal request to the release module, wherein, the renewal request includes:The resource of Current resource is sat Mark;When receiving target resource, the Current resource is updated using the target resource;
    Each described business module, for when receiving the target resource coordinate, according to the target resource coordinate, really The fixed target resource, the destination client is sent to by the target resource.
  2. 2. resource updates system according to claim 1, it is characterised in that
    The renewal request further comprises:Current identity token;
    The release module, is further used for storing at least one registered client's client information;The destination client is received to pass through The current identity token that the current business module is sent, parses the current identity token, determines the mesh Mark client-side information;Judge to whether there is target customer's client information at least one registered client's client information, if It is that execution is described according to the Current resource coordinate and at least one resource coordinate, judges whether Current resource needs more Newly.
  3. 3. resource updates system according to claim 1, it is characterised in that
    The release module, it is sending with each resource coordinate pair to be further used for receiving any one of business module The issuing time answered;
    The resource coordinate, including:Business scope, NameSpace and version information;
    The release module, at least one resource coordinate, determining and the business scope of the Current resource, life The name space is identical and issuing time is not later than at least one of current time and has issued resource coordinate;According to issuing time by evening At least one resource coordinate of having issued is ranked up to early order;Judge the issue resource coordinate to make number one Version information it is whether identical with the version information of the Current resource, if not, determining the issue resource to make number one Coordinate is target resource coordinate.
  4. 4. resource updates system according to claim 3, it is characterised in that
    The release module, it is sending with each resource coordinate pair to be further used for receiving any one of business module The scope of release answered, wherein, the scope of release, including:Issue rank, at least one object corresponding with the issue rank Mark;Receive at least one target corresponding with the user that the destination client is sent by the current business module Object identity;Determine each other priority of the issue stage;Rank is issued using the issue rank of highest priority as current, Perform S1;
    S1:Judge that each described issued in the corresponding each object mark of resource coordinate currently issues rank with the presence or absence of described Corresponding destination object mark, if so, performing S2, otherwise, performs S3;
    S2:The issue rank of the user is determined as the current issue rank, according to the current issue rank to it is described extremely Few one has been issued resource coordinate and has been screened;
    S3:According to current issue rank described in the sequential update of priority from high to low;
    S4:Judge whether the other priority of the current issue stage after renewal is minimum, if so, performing
    S5, otherwise, performs S1;
    S5:At least one resource coordinate of having issued is screened according to the current issue rank after renewal;
    The release module, at least one having issued money to described after screening by the order in evening to morning according to issuing time Source coordinate is ranked up;Judge the version information for having issued resource coordinate after the screening that makes number one whether with it is described current The version information of resource is identical, if not, the resource coordinate of issue after the screening for determining to make number one is sat for target resource Mark;
    The renewal request further comprises:At least one destination object mark corresponding with the user, wherein, Ge Gesuo State the corresponding different issue rank of destination object mark.
  5. 5. according to any resource updates system in claim 1-4, it is characterised in that
    The release module, is further used for receiving the rollback resource coordinate that any one of business module is sent;Judge institute Whether identical with the rollback resource coordinate state the resource coordinate of Current resource, if so, by the current business module to The destination client sends back-off instruction, otherwise, perform the resource coordinate according to the Current resource and it is described at least One resource coordinate, judges whether the Current resource needs to update;
    Each described client, is further used for when receiving the back-off instruction, the Current resource is retracted supreme One version.
  6. A kind of 6. resource regeneration method of any resource updates system in 1-5 based on claim, it is characterised in that bag Include:
    Release module receives at least one resource coordinate of any one business module transmission, at least one resource coordinate Carry out issue registration;
    Each described client when receive user for Current resource renewal triggering when, pass through the current business module Renewal request is sent to the release module, wherein, the renewal request includes:The resource coordinate of Current resource;
    The resource that the release module receives the Current resource that destination client is sent by the current business module is sat Mark;
    Resource coordinate and at least one resource coordinate of the release module according to the Current resource, judge described current Whether resource, which needs, updates, if so, determining target resource coordinate, the target resource coordinate is sent to current business mould Block;
    Each described business module, according to the target resource coordinate, determines mesh when receiving the target resource coordinate Resource is marked, the target resource is sent to the destination client;
    Each described client carries out the Current resource when receiving the target resource, using the target resource Renewal.
  7. 7. resource regeneration method according to claim 6, it is characterised in that
    The renewal request further comprises:Current identity token;
    In resource coordinate of the release module according to the Current resource and at least one resource coordinate, institute is judged Before stating Current resource and whether needing renewal, further comprise:
    The release module prestores at least one registered client's client information;
    The release module receives the current identity token that the destination client is sent by the current business module, The current identity token is parsed, determines target customer's client information;
    The release module judges to whether there is target customer's client information at least one registered client's client information, such as Fruit is that execution is described according to the Current resource coordinate and at least one resource coordinate, judges whether Current resource needs Renewal.
  8. 8. resource regeneration method according to claim 6, it is characterised in that further comprise:
    During the issue corresponding with each resource coordinate that the release module receives that any one of business module sends Between;
    The resource coordinate, including:Business scope, NameSpace and version information;
    Resource coordinate and at least one resource coordinate of the release module according to the Current resource, described in judgement Whether Current resource, which needs, updates, if so, determine target resource coordinate, including:
    The release module determines empty with the business scope of the Current resource, name at least one resource coordinate Between identical and issuing time be not later than at least one of current time and issued resource coordinate;
    The release module arranges at least one resource coordinate of having issued to early order by evening according to issuing time Sequence;
    The release module judge the version information for having issued resource coordinate that makes number one whether with the Current resource Version information is identical, if not, the resource coordinate of issue for determining to make number one is target resource coordinate.
  9. 9. resource regeneration method according to claim 8, it is characterised in that further comprise:
    The issue model corresponding with each resource coordinate that the release module receives that any one of business module sends Enclose, wherein, the scope of release, including:Issue rank, at least one object identity corresponding with the issue rank;
    The renewal request further comprises:At least one destination object mark corresponding with the user, wherein, Ge Gesuo State the corresponding different issue rank of destination object mark;
    The release module reception destination client is sent corresponding with the user by the current business module At least one destination object mark;
    The release module determines each other priority of the issue stage;Using the issue rank of highest priority as current hair Cloth rank, performs S1;
    S1:Judge that each described issued in the corresponding each object mark of resource coordinate currently issues rank with the presence or absence of described Corresponding destination object mark, if so, performing S2, otherwise, performs S3;
    S2:The issue rank of the user is determined as the current issue rank, according to the current issue rank to it is described extremely Few one has been issued resource coordinate and has been screened;
    S3:According to current issue rank described in the sequential update of priority from high to low;
    S4:Judge whether the other priority of the current issue stage after renewal is minimum, if so, performing S5, otherwise, perform S1;
    S5:At least one resource coordinate of having issued is screened according to the current issue rank after renewal;
    The release module according to issuing time by evening to morning order to it is described it is at least one issued resource coordinate into Row sequence includes:
    The release module sits at least one resource of having issued after screening by evening to early order according to issuing time Mark is ranked up;
    Whether the version information for having issued resource coordinate that the release module judges to make number one currently provides with described The version information in source is identical, if not, the resource coordinate of issue for determining to make number one is target resource coordinate, including:
    Whether the version information for having issued resource coordinate after the screening that the release module judges to make number one works as with described The version information of preceding resource is identical, if not, the resource coordinate of issue after the screening for determining to make number one is target resource Coordinate.
  10. 10. according to any resource regeneration method in claim 6-9, it is characterised in that further comprise:
    The release module receives the rollback resource coordinate that any one of business module is sent;
    The release module judges whether the resource coordinate of the Current resource is identical with the rollback resource coordinate, if so, Back-off instruction is sent to the destination client by the current business module, otherwise, is performed described according to the current money The resource coordinate in source and at least one resource coordinate, judge whether the Current resource needs to update;
    Each described client is when receiving the back-off instruction, by the supreme version of Current resource rollback.
CN201711257028.3A 2017-12-04 2017-12-04 Resource updating method and system Active CN108008966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711257028.3A CN108008966B (en) 2017-12-04 2017-12-04 Resource updating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711257028.3A CN108008966B (en) 2017-12-04 2017-12-04 Resource updating method and system

Publications (2)

Publication Number Publication Date
CN108008966A true CN108008966A (en) 2018-05-08
CN108008966B CN108008966B (en) 2020-11-03

Family

ID=62056161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711257028.3A Active CN108008966B (en) 2017-12-04 2017-12-04 Resource updating method and system

Country Status (1)

Country Link
CN (1) CN108008966B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475744A (en) * 2013-09-30 2013-12-25 中国农业银行股份有限公司 Resource downloading method, device and system on basis of Web application
WO2014176048A1 (en) * 2013-04-22 2014-10-30 Alibaba Group Holding Limited Method and device for updating client
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource
CN105138376A (en) * 2015-09-01 2015-12-09 北京皮尔布莱尼软件有限公司 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN107026884A (en) * 2016-02-02 2017-08-08 阿里巴巴集团控股有限公司 Acquisition methods, client, server and the system of resource file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014176048A1 (en) * 2013-04-22 2014-10-30 Alibaba Group Holding Limited Method and device for updating client
CN103475744A (en) * 2013-09-30 2013-12-25 中国农业银行股份有限公司 Resource downloading method, device and system on basis of Web application
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource
CN105138376A (en) * 2015-09-01 2015-12-09 北京皮尔布莱尼软件有限公司 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN107026884A (en) * 2016-02-02 2017-08-08 阿里巴巴集团控股有限公司 Acquisition methods, client, server and the system of resource file

Also Published As

Publication number Publication date
CN108008966B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US6067548A (en) Dynamic organization model and management computing system and method therefor
US9122685B2 (en) Operating cloud computing and cloud computing information system
CN104216912B (en) The implementation method and device of a kind of business form work fluidisation without intrusive mood
US7617210B2 (en) Global inventory warehouse
US11893066B2 (en) Binding traits to case nodes
US8346856B2 (en) Client environment creation system, client environment creation method, client environment creation program and storage medium
US20120166485A1 (en) Information Processor, Privilege Management Method, Program, and Recording Medium
CN109816321A (en) A kind of service management, device, equipment and computer readable storage medium
CN111176867B (en) Data sharing exchange and open application platform
CN104780221B (en) Medium-sized and small enterprises intellectual property synthetic service platform system
CN110032886A (en) The method and apparatus of access authorization for resource management
CN106126540A (en) Data base access system and access method thereof
CN103678446B (en) Improved mode map based on Data View and database table
CN107329991A (en) A kind of list access to web page and methods of exhibiting and its system
CN108494582A (en) A kind of lower coupling automation operational system and method
CN106528169A (en) Web system development reusable method based on AnGo dynamic evolution model
EP4024761A1 (en) Communication method and apparatus for multiple management domains
CN101488903A (en) Data center automatic resource management system and method based on unified classification interface
EP2395468A1 (en) Semantic user interface data assembling
US8726235B2 (en) Telecom business-oriented taxonomy for reusable services
US20090112704A1 (en) Management tool for efficient allocation of skills and resources
CN113626128B (en) Audio-visual media micro-service third-party module access method, system and electronic equipment
CN108008966A (en) A kind of resource regeneration method and system
CN104881760A (en) Data communication method, device and system among ERP systems
CN103634326B (en) A kind of method and device for processing application system request message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201013

Address after: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road

Applicant after: INSPUR GENERAL SOFTWARE Co.,Ltd.

Address before: 250100, No. 2877, fairway, Sun Town, Ji'nan hi tech Zone, Shandong

Applicant before: SHANDONG INSPUR GENESOFT INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant