CN107154891A - The method and system of template distribution - Google Patents

The method and system of template distribution Download PDF

Info

Publication number
CN107154891A
CN107154891A CN201610119535.XA CN201610119535A CN107154891A CN 107154891 A CN107154891 A CN 107154891A CN 201610119535 A CN201610119535 A CN 201610119535A CN 107154891 A CN107154891 A CN 107154891A
Authority
CN
China
Prior art keywords
template
registration center
user
tree
name
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.)
Pending
Application number
CN201610119535.XA
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610119535.XA priority Critical patent/CN107154891A/en
Publication of CN107154891A publication Critical patent/CN107154891A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and system of template distribution, wherein, methods described includes:Provider uploads to template in cloud storage module, and obtains the store path of the template;The Template Information is registered to template registration center by the provider, and the Template Information at least includes template name, version number and store path;User subscribes to the template to be used in the template registration center, and subscription information at least includes template name and version number;Template name and version number that template registration center registers according to user, obtain the store path of the template;With the store path according to the template, the template is obtained in the cloud storage module.The system includes cloud storage module, and template provides module, template registration center and template and uses module.The present invention realizes template centralized management, provider and user is had the bridge linked up, simplifies the distribution flow of template, and realizes the automatic forced renewal of template.

Description

The method and system of template distribution
Technical field
The present invention relates to technical field of data processing, specifically, it is related to one kind in template provider The method and system of template distribution is carried out between user.
Background technology
Most of company, with the development of business, making some texts using template more and more Part, not only makes the file format that our company sends unified, and it also avoid due to being manually entered The mistake caused.For example, mailing is all singly filled in using the face of oneself for client by present express company Address, Item Title etc..And with the introducing of new business, the single content in face can be also varied from, The single template in the face is thus made to be also required to the need for upgrading to meet business.
Current industry distributes template by delivery means such as Emails.Template provider is in template system After finishing, side used in connection with is sent to by Email.The distribution method of this template is usual Have following problem:
1. template provider needs artificial transmission template, waste time and energy.
Due to more new template manually, template provider needs and each user confirm be No upgrading template, when user is large number of, exchange and administrative template cost are very big, will be into line Property increase.
2. because the template file that template provider and user use all is local replica, in template , it is necessary to contrast mould's content during debugging, thus when template file is debugged, add debugging difficulty.
3. on the renewal of template, by then passing through email distribution, thus user relies on hand Dynamic more new template, it is impossible to realize that automatic, the pressure of template update.
The content of the invention
The technical problem to be solved in the present invention is that there is provided a kind of mould in view of the shortcomings of the prior art The method and system of plate distribution, bridge is linked up by being set between provider and user, is simplified The distribution flow of template so that the distribution of template is time saving and energy saving.
In order to solve the above-mentioned technical problem, according to an aspect of the present invention, the invention provides one The method for planting template distribution, wherein, including:
Provider uploads to template in cloud storage module, and obtains the store path of the template;
The Template Information is registered to template registration center by the provider, and the Template Information is extremely Include template name, version number and store path less;
User subscribes to the template to be used in the template registration center, and subscription information at least includes Template name and version number;
Template name and version number that template registration center registers according to user, obtain the template Store path;
According to the store path of the template, the template is obtained in the cloud storage module.
Preferably, user the template registration center subscribe to the template to be used when, including with Lower step:
Selection template name and version number in the template list that the template registration center provides.
Preferably, user the template registration center subscribe to the template to be used when, in addition to Following steps:
Check the template thumbnail for having selected template name.
Preferably, when the Template Information is registered to template registration center by the provider, including Following steps:
Set up and the template name identical template tree in the template registration center;
Set up node in the template tree, using the version number of the template as the node sequence number; With
In the attribute that the store path of the template is added to the node;
The template name that the template registration center registers according to user, obtains depositing for the template Storage path comprises the following steps:
The template name that the template registration center registers according to user finds corresponding template Tree;
Corresponding node is found according to the version number;
The store path of the template is obtained from the attribute of the node.
Preferably, the template registration center set up with the template name identical template tree it Before, inquire about whether the template registration center has set up and the template name identical template tree;
Set up in the template registration center with the template name identical template tree and be:If institute State template registration center not with the template name identical template tree, then the template register Center is set up and the template name identical template tree;
If the template registration center set up with the template name identical template tree, The template tree sets up node, using the version number of the template as the node sequence number.
Preferably, user the template registration center register the template to be used when, in addition to Following steps:
Select the service of template monitor.
Preferably, if the template registration center has set up and the template name identical template Tree, then also include after the template tree sets up node:To have selected template monitor service User sends template renewal notification message.
Preferably, the user that have selected the service of template monitor is monitored from template registration The message that center is sent, if the user receives the template renewal notification message, root According to the storage address in the message, corresponding template is obtained from the cloud storage module, and more New local template.
In order to solve the above-mentioned technical problem, according to another aspect of the present invention, the invention provides A kind of system of template distribution, wherein, including:
Cloud storage module, the template that module is uploaded is provided for storing template;
Template provides module, for the template made to be uploaded into the cloud storage module, obtains The store path of the template, and register the template to template registration center;
Template registration center, stores the Template Information that the template provides Module registers, to registered Template using module provide template store path,
Template uses module, the template store path provided according to the template registration center, from institute State cloud storage module and obtain corresponding template.
Preferably, the template registration center includes:
User's registering unit, for providing template list to user, and stores the user Subscription information, the subscription information includes the template name that is selected from the template list and version This number;
Provider's registering unit, the Template Information for storing provider's registration, the template Information at least includes template name, version number and store path.
Preferably, provider's registering unit includes:
Template tree sets up subelement, for setting up the template name identical registered with template provider Template tree, the version number of the sequence number correspondence template of the node of the template tree, the template tree The nodal community correspondence template store path.
Preferably, the template registration center also includes:
Template renewal monitoring unit, during for node increase in the template tree, to the template Template renewal notification message is sent using module, the template renewal notification message includes having updated mould The storage address of plate.
Preferably, described template registration center is Zookeeper registration centers.
The present invention realizes the physical store of template file using cloud storage, solves the single-point of storage Problem, and template centralized management is realized, by template registration center, in provider with making With side set up link up bridge, simplify the distribution flow of template, and realize template from Dynamic, pressure updates.
Brief description of the drawings
Description by referring to the following drawings to the embodiment of the present invention, of the invention is above-mentioned and other Objects, features and advantages will be apparent from, in the accompanying drawings:
Fig. 1 is the theory diagram of template dispensing device of the present invention;
Fig. 2 is the flow chart of template distribution method of the present invention;
Fig. 3 is the theory diagram of template registration center of the present invention;
Fig. 4 is the flow chart of template provider enrollment of the present invention;With
Fig. 5 is the flow chart of more new template when template of the present invention is distributed.
Embodiment
Below based on embodiment, present invention is described, but the present invention is not restricted to these Embodiment.It is detailed to describe some specific detail portions below in the detailed description of the present invention Point.The description of part can also understand this completely without these details for a person skilled in the art Invention.In order to avoid obscuring the essence of the present invention, known method, process, flow be not detailed Narration.What other accompanying drawing was not necessarily drawn to scale.
Flow chart, block diagram in accompanying drawing illustrate the system, method, device of the embodiment of the present invention Square frame on possible System Framework, function and operation, flow chart and block diagram can represent a mould Block, program segment or only one section of code, the module, program segment and code are all for realizing Provide the executable instruction of logic function.It should also be noted that it is described realize regulation logic function can Execute instruction can be reconfigured, so as to generate new module and program segment.Therefore the square frame of accompanying drawing And square frame order is used only to the process and step of preferably diagram embodiment, without that should be made with this For the limitation to invention itself.
As shown in figure 1, being the theory diagram of template dispensing device of the present invention.It is of the present invention Template dispensing device includes cloud storage module 1, and template provides module 2, template registration center 3 and mould Plate uses module 4.Wherein, the cloud storage module 1 is uploaded for storing template offer module 2 Template, can be a cloud storage service device when implementing.According to the definition of cloud computing, cloud Storage server can realize the hard disk infinitely stored as one piece, can deposit any data, And various CDN (Content Delivery Network, i.e. content distributing network) nodes add Speed, allows user to have a kind of winged general sensation when accessing the data of oneself.And can easily with respectively Plant API seamless migration.
Template provides module 2 and is located at template provider, described for the template made to be uploaded to Cloud storage module 1, so as to obtain the store path of the template, and to the note of template registration center 3 The volume template.
Template registration center 3 receives the registration that template provides module 2, stores the template and provides mould The Template Information that block 2 is registered, the store path of template is provided to registered template using module 4.
Template uses the template store path that module 4 is provided according to the template registration center 3, from The cloud storage module 1 obtains corresponding template.
As shown in Fig. 2 being template distribution method of the present invention, in the method, it is divided into two Part a, part is to provide template by provider, and another part is that user obtains template.Specifically Ground provides module 2 by step SA1 to the upload template of cloud storage module 1 there is provided the template of side, And the template is registered to by template registration center 3 by step SA2.For user, use The template of side subscribes to template in step SB1 using module 4 to template registration center 3, from template note Volume center 3 obtains template store path, in step SB2, is provided according to template registration center 3 Template store path, corresponding template is read into cloud storage module 1.So as to complete point of template Hair.
The present invention realizes the physical store of template file using cloud storage, eliminates storage single-point and asks Topic, and template centralized management is realized, provider and user is had the bridge linked up, Simplify the distribution flow of template.
As shown in figure 3, the template registration center includes provider's registering unit 31 and user Registering unit 32..Provider's registering unit 31 is used for the Template Information for storing provider's registration, The Template Information at least includes template name, version number and store path.Mould is managed for convenience Plate file sets up subelement 310 there is provided square registering unit 31 including template tree, for foundation and mould The template name identical template tree of plate provider registration, the sequence number correspondence of the node of the template tree The version number of the template, the store path of the nodal community correspondence template of the template tree. As shown in figure 3, template A includes 3 versions, using each version as a node, so that A template tree is formd, and the attribute of the template store path of each version as node is stored Get up, be easy to search.
User's registering unit 32 provides template list to user, and stores the user's Subscription information, the subscription information includes the template name and version selected from the template list Number.Wherein, when user subscribes to template in template registration center 3, it can be used by browsing The template list that square registering unit 32 is provided, in the template list, includes different templates Title and version number, the subscription to template is realized by selecting corresponding template name and version number. In addition, user's registering unit 32 additionally provides the thumbnail of template, so that user may browse through The content of template, form, it is determined whether be the template that it needs, so that what the present invention was provided Distribution method more hommization.
Further, template registration center 3 also includes template renewal monitoring unit 33, for carrying Template tree in supplier's registering unit 31 has newly-increased node (template for namely having new version) When, template renewal notification message is sent using module 4 to the template, the template renewal is notified Message includes the storage address of more new template.Because user is numerous, in order to determine to make to which Send template renewal notification message with side, user's registering unit 32 of template registration center 3 also to User provides the subscription information for monitoring template renewal service.If user have selected the mould Plate updates the service of monitoring, then template registration center 3 stores the template that the user subscribes to, and monitors Provider's registering unit 31, provided that the template that user subscribes to described in square registering unit 31 There is template change, when the template tree of the template has newly-increased node, obtain the storage road of the more new template Footpath, will send template renewal notification message to the template of the user using module 4, and in institute State the store path that template renewal notification message includes more new template.
As shown in figure 4, being the flow chart of template provider enrollment of the present invention.
Step SA10, template provide module 2 to the template registration center 3 provide template name, Corresponding version number and store path.
Provider's registering unit 31 in step SA11, template registration center 3 is provided according to template The template tree that the template name query template registration center 3 that module 2 is provided stores.
Step SA12, judges whether have in the template registration center 3 and template offer module 2 The template name identical template tree of offer, if so, step SA14 is then gone to, if not provided, Then go to step SA13
Step SA13, sets up a template tree, and with the name nominating of the template.
Step SA14, sets up a new node, and provide mould with the template in the template tree Block 2 provide version number as the node sequence number.
Step SA15, the template store path is added in the attribute of the node.
By above-mentioned steps, template provides the template that module 2 will be stored in cloud storage module 1 It is registered to template registration center 3.
After template registration center 3 receives the Template Information that template is subscribed to using module 4, Xiang Mo Plate provides the store path of its template subscribed to using module 4.Template is deposited using module 4 according to this Corresponding template file is read to cloud storage module 1 in storage path.
The present invention not only provides the distribution method of template, still further provides the renewal side of template Method, as shown in figure 5, when distributing for template of the present invention more new template flow chart.
Step SB1, when template has new version, template provides module 2 and stores new template Into cloud storage module 1, and to the title of the offer template of template registration center 3, version number and deposit Store up path.
Provider's registering unit 31 in step SB2, template registration center 3 provides mould according to template The template tree that the template name query template registration center 3 that block 2 is provided stores.
Step SB3, sets up a new node, and provide mould with the template in the template tree Block 2 provide version number as the node sequence number.
Step SB4, the template store path is added in the attribute of the node.
Step SB5, sends template renewal notification message, the template is more to template using module 4 New notification message includes the storage address of more new template.
Step SB6, template receives the template renewal notification message using module 4.
Step SB7, template obtains new template using module 4 from the template renewal notification message Store path.
Step SB8, template is using module 4 according to the store path of the template in cloud storage module The template is read in 1.
Step SB9, template updates local template using module 4.
It is that new template-setup is new when provider's more new template of template by above method Version number, i.e., distinguish the different editions of same template by version number.When new template is issued, User can be automatic notified, and read, store automatically, thus easily realize template from Dynamic, pressure updates.
In the present invention, template registration center 3 can be ZooKeeper registration centers, that is, pass through ZooKeeper distributed service frameworks are come the template registration center of the invention that realizes.ZooKeeper It is distributed, open source code a distributed application program, is provided unanimously for Distributed Application Sex service there is provided function include:Configuring maintenance, name Service, distributed synchronization, group service Deng.
The present invention is using template registration center administrative template information, and user to registration center by ordering Template (can once subscribe to one or more templates) is read, the template of subscription just can be received automatically, It has changed and the ways of distribution of template is distributed to user using mail in the prior art, and solve Due to user it is numerous caused by distribute it is difficult.When template has renewal, it is not necessary to send out manually Send mail to notify and distribute the template of renewal one by one, user can automatically derive the template of renewal, Easily, automatic, the pressure that have effectively achieved template update.Also, when template is debugged, by The Template Information obtained in user is reported in template registration center, thus provider or to learn Which template user uses, and it is template rather than copy that user, which obtains, thus Original template need not be compared, so difficulty when solving template debugging in the prior art.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for this For art personnel, the present invention can have various changes and change.All spirit in the present invention With any modification, equivalent substitution and improvements made within principle etc., it should be included in the present invention's Within protection domain.

Claims (13)

1. a kind of method of template distribution, wherein, including:
Provider uploads to template in cloud storage module, and obtains the store path of the template;
The Template Information is registered to template registration center by the provider, and the Template Information is extremely Include template name, version number and store path less;
User subscribes to the template to be used in the template registration center, and subscription information at least includes Template name and version number;
Template name and version number that template registration center registers according to user, obtain the template Store path;With
According to the store path of the template, user obtains the mould in the cloud storage module Plate.
2. the method for template distribution as claimed in claim 1, wherein, user is in the mould When the template to be used is subscribed to by plate registration center, comprise the following steps:
Selection template name and version number in the template list that the template registration center provides.
3. the method for template distribution as claimed in claim 2, wherein, user is in the mould It is further comprising the steps of when the template to be used is subscribed to by plate registration center:
Check the template thumbnail for having selected template name.
4. the method for the template distribution as described in claim 1-3 is any, wherein, the provider When the Template Information is registered into template registration center, comprise the following steps:
Set up and the template name identical template tree in the template registration center;
Set up node in the template tree, using the version number of the template as the node sequence number; With
In the attribute that the store path of the template is added to the node;
The template name that the template registration center registers according to user, obtains depositing for the template Storage path comprises the following steps:
The template name that the template registration center registers according to user finds corresponding template Tree;
Corresponding node is found according to the version number;
The store path of the template is obtained from the attribute of the node.
5. the method for template distribution as claimed in claim 4, wherein, in template registration Center is set up is with before the template name identical template tree, inquiring about the template registration center It is no to have set up and the template name identical template tree;
Set up in the template registration center with the template name identical template tree and be:If institute State template registration center not with the template name identical template tree, then the template register Center is set up and the template name identical template tree;
If the template registration center set up with the template name identical template tree, The template tree sets up node, using the version number of the template as the node sequence number.
6. the method for template distribution as claimed in claim 4, wherein, user is in the mould It is further comprising the steps of when plate registration center registers the template to be used:
Select the service of template monitor.
7. the method for template distribution as claimed in claim 5, wherein, if the template is registered Center set up with the template name identical template tree, then the template tree set up node it Also include afterwards:Template renewal notification message is sent to the user that have selected the service of template monitor.
8. the method for template distribution as claimed in claim 6, wherein, it is further comprising the steps of:
The user that have selected the service of template monitor is monitored from template registration center hair The message sent, if the user receives the template renewal notification message, according to described Storage address in message, obtains corresponding template, and update local from the cloud storage module Template.
9. a kind of system of template distribution, wherein, including:
Cloud storage module, for storing template;
Template provides module, for the template made to be uploaded into the cloud storage module, obtains The store path of the template, and register the template to template registration center;
Template registration center, stores the Template Information that the template provides Module registers, to registered Template using module provide template store path;With
Template uses module, the template store path provided according to the template registration center, from institute State cloud storage module and obtain corresponding template.
10. the system of template distribution as claimed in claim 9, wherein, in the template registration Pericardium is included:
User's registering unit, for providing template list to user, and stores the user Subscription information, the subscription information includes the template name that is selected from the template list and version This number;With
Provider's registering unit, the Template Information for storing provider's registration, the template Information at least includes template name, version number and store path.
11. the system of template distribution as claimed in claim 10, wherein, provider's note Volume unit includes:
Template tree sets up subelement, for setting up the template name identical registered with template provider Template tree, the version number of the sequence number correspondence template of the node of the template tree, the template tree The nodal community correspondence template store path.
12. the system of template distribution as claimed in claim 11, wherein, the template registration Center also includes:
Template renewal monitoring unit, during for node increase in the template tree, to the template Template renewal notification message is sent using module, the template renewal notification message includes having updated mould The storage address of plate.
13. the system of template distribution as claimed in claim 9, wherein, described template registration Center is Zookeeper registration centers.
CN201610119535.XA 2016-03-02 2016-03-02 The method and system of template distribution Pending CN107154891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610119535.XA CN107154891A (en) 2016-03-02 2016-03-02 The method and system of template distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610119535.XA CN107154891A (en) 2016-03-02 2016-03-02 The method and system of template distribution

Publications (1)

Publication Number Publication Date
CN107154891A true CN107154891A (en) 2017-09-12

Family

ID=59791938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610119535.XA Pending CN107154891A (en) 2016-03-02 2016-03-02 The method and system of template distribution

Country Status (1)

Country Link
CN (1) CN107154891A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113424510A (en) * 2019-02-01 2021-09-21 Arm IP有限公司 Template-based enrollment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316147A (en) * 2008-07-02 2008-12-03 深圳华为通信技术有限公司 Apparatus and method for presenting multimedia contents on terminal
CN102056150A (en) * 2010-12-01 2011-05-11 北京迅捷英翔网络科技有限公司 Mobile phone terminal strategy adapting device and method
CN104572239A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cloud platform-based template making system and method
CN104639361A (en) * 2013-11-15 2015-05-20 中兴通讯股份有限公司 Network service template management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316147A (en) * 2008-07-02 2008-12-03 深圳华为通信技术有限公司 Apparatus and method for presenting multimedia contents on terminal
CN102056150A (en) * 2010-12-01 2011-05-11 北京迅捷英翔网络科技有限公司 Mobile phone terminal strategy adapting device and method
CN104572239A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cloud platform-based template making system and method
CN104639361A (en) * 2013-11-15 2015-05-20 中兴通讯股份有限公司 Network service template management method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113424510A (en) * 2019-02-01 2021-09-21 Arm IP有限公司 Template-based enrollment

Similar Documents

Publication Publication Date Title
CN105099761B (en) A kind of method and system of configuration information that managing client concentratedly
Choudhary et al. Role of cloud computing technology in agriculture fields
CN103997725B (en) System and method for the mobile data network in abstract and layout network environment
CN100454824C (en) Telecommunications network resource handling arrangmenet and method
CN107003906A (en) The type of cloud computing technology part is to type analysis
CN107819824A (en) A kind of Urban Data opens and information service system and method for servicing
CN103177329B (en) Rule-based determination and checking in business object processing
CN104885083A (en) Graph-based system and method of information storage and retrieval
CN108366109A (en) A kind of meteorological data numerical forecast cloud shared platform and data sharing method
CN109740372A (en) Based on the system and method for realizing that conceptual schematic drawing paper is divided in automatic audit room on WEB
CN109033113A (en) The management method and device of data warehouse and Data Mart
CN104915756A (en) Data consistency cloud auditing system and implementation method
CN109150964A (en) A kind of transportable data managing method and services migrating method
Zu et al. Data-centric publish-subscribe approach for Distributed Complex Event Processing deployment in smart grid Internet of Things
CN102316128A (en) A kind ofly be used to generate network service method and device
CN107154891A (en) The method and system of template distribution
CN104184824B (en) Mobile phone newspaper customizes and the device and method of push
CN109614241A (en) The method and system of more cluster multi-tenant resource isolations are realized based on Yarn queue
ES2900746T3 (en) Systems and methods to effectively distribute warning messages
US9323780B2 (en) Locale-based sorting on mobile devices
CN116664060A (en) Method, system and device for generating expense reimbursement basic data
CN111506818B (en) Flight data processing method and device
CN113849692A (en) Data exchange method and system, electronic equipment and storage medium
CN104509028B (en) The method and device of personal information is updated in a communications system
CN101441743A (en) Information sharing system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170912