TWI402693B - An interface device and method for controlling documents edition - Google Patents

An interface device and method for controlling documents edition Download PDF

Info

Publication number
TWI402693B
TWI402693B TW95148474A TW95148474A TWI402693B TW I402693 B TWI402693 B TW I402693B TW 95148474 A TW95148474 A TW 95148474A TW 95148474 A TW95148474 A TW 95148474A TW I402693 B TWI402693 B TW I402693B
Authority
TW
Taiwan
Prior art keywords
file
version
user
control
information
Prior art date
Application number
TW95148474A
Other languages
Chinese (zh)
Other versions
TW200828035A (en
Inventor
Chung I Lee
Chien Fa Yeh
Da-Peng Li
Zhi-Hong Li
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW95148474A priority Critical patent/TWI402693B/en
Publication of TW200828035A publication Critical patent/TW200828035A/en
Application granted granted Critical
Publication of TWI402693B publication Critical patent/TWI402693B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Description

檔案版本管控介面裝置及方法 File version management interface device and method

本發明涉及一種檔案版本管控的介面裝置及方法。 The invention relates to an interface device and method for controlling file version control.

在系統開發中大多數人都會用到版本控制系統,或是錯誤追蹤系統。這樣的版本控制系統包括開放原始碼的程式開發版本管控程式Concurrent Versions System(CVS)和微軟的Visual SourceSafe(VSS)。其中該CVS是以檔案為主,每個檔案的修改版次各自獨立控管。 Most people use version control systems or error tracking systems in system development. Such version control systems include the open source code development version of the Concurrent Versions System (CVS) and Microsoft's Visual SourceSafe (VSS). The CVS is mainly file, and the modified versions of each file are independently controlled.

在團隊開發或設計中,不同的人員會對同一個檔案進行多次修改,版本管控最大的功能是保證每次修改的獨立性,不至於新的修改把舊的修改完全覆蓋而無可挽回,可以在一個版本修改結束後再開始另一次修改,如果修改錯誤,也可以恢復取到舊的修改,有修改的延續性。 In the team development or design, different personnel will modify the same file multiple times. The biggest function of version control is to ensure the independence of each modification, so that the new modification will completely cover the old modification and is irreparable. You can start another modification after the revision of one version is finished. If the modification is wrong, you can also recover the old modification and have the continuity of the modification.

對於目前許多專案,尤其是開放源碼的專案,開發人員經常都可以透過各種版本控制系統來取得他們最新的源碼。這些專案也大多對於他們所開發的源碼用相關的工具做好管控與保護。 For many current projects, especially open source projects, developers can often get their latest source code through various version control systems. Most of these projects are also controlled and protected by the relevant tools for the source code they develop.

但目前的版本管控系統,都需要借助用戶端程式軟體來管理,且只能獨立運行不能集成於其他系統;即使有網頁(Web)形式的實現也僅僅是只能瀏覽,沒有版本管控功能。 However, the current version control system needs to be managed by the client software, and can only be run independently and cannot be integrated into other systems; even if there is a web page (Web) implementation, it can only be browsed, and there is no version control function.

鑒於以上內容,本發明提供一種檔案版本管控的介面裝置,該裝置安裝在網路伺服器上,並連接版本管控伺服器及網頁,該裝置包括服務層、檔案控制層及模擬客戶層。 In view of the above, the present invention provides an interface device for controlling file version control. The device is installed on a network server and is connected to a version control server and a webpage. The device includes a service layer, an archive control layer and an analog client layer.

其中,該服務層用於回應網頁所接收的用戶上傳、下載檔案的請求,並將該請求轉換成命令傳送到模擬客戶層;該服務層還用於接收用戶填寫的對所上傳檔案的簡短修改資訊,編碼該檔案的檔案名、該檔案的簡短修改資訊及用戶名為版本管控伺服器能夠識別的資訊,再將該編碼後的資訊傳送到模擬客戶層。 The service layer is configured to respond to a request for a user to upload and download an archive received by the webpage, and convert the request into a command to transmit to the simulated client layer; the service layer is further configured to receive a short modification of the uploaded file filled in by the user. Information, the name of the file encoding the file, the short modification information of the file, and the information that the user name is recognized by the version control server, and then the encoded information is transmitted to the analog client layer.

該檔案控制層用於在網路伺服器上建立一個客戶端目錄,該客戶端目錄是一個臨時存儲目錄,用於暫時存放用戶所上傳的檔案。 The file control layer is used to establish a client directory on the network server, and the client directory is a temporary storage directory for temporarily storing files uploaded by the user.

該模擬客戶層與版本管控伺服器相連,用於模擬版本管控伺服器的客戶端所進行的操作,其接收服務層傳送過來的命令後,到客戶端目錄取得所上傳的檔案,再將該檔案存儲到版本管控伺服器中;該模擬客戶層還用於接收傳送過來的編碼資訊,將該編碼資訊存儲在版本管控伺服器作為該檔案的修改版本歷史資訊。 The simulated client layer is connected to the version control server for simulating the operation performed by the client of the version control server. After receiving the command transmitted by the service layer, the module obtains the uploaded file from the client directory, and then the file is uploaded. Stored in the version control server; the analog client layer is further configured to receive the transmitted encoded information, and store the encoded information in the version control server as the modified version history information of the file.

本發明還提供一種檔案版本管控介面方法,該方法透過安裝在網路伺服器上的檔案版本管控介面裝置執行檔案版本管控,該檔案版本管控介面裝置連接網頁及版本管控伺服器。 The invention also provides a file version management interface method, which performs file version control through a file version management interface device installed on a network server, and the file version control interface device connects the webpage and the version control server.

該方法包括步驟:該檔案版本介面裝置回應用戶透過網頁提交的上傳檔案的請求,接收用戶填寫的對所上傳檔案的簡短修改資訊及用戶名;保存該上傳的檔案到網路伺服器的客戶端目錄;如果用戶上傳的不是新檔案,則判斷該檔案是否正在被其他用戶所修改,如果該檔案正在被其他用戶修改,則不允許上傳該檔案;如果該檔案沒有正在被其他用戶修改或如果用戶上傳的是新檔案,則:編碼該簡短修改資訊及用戶名為版本管控伺服器能夠識別的資訊,並將上述上傳檔案的請求轉換成命令;根據上述命令從客戶端目錄獲取所上傳的檔案,再將該檔案存儲到版本管控伺服器中;將所述編碼資訊存儲在版本管控伺服器中作為該檔案的修改版本歷史資訊;及用戶經由該版本管控伺服器進行版本管控,包括下載檔案的最新版本、下載檔案的歷史版本、查看檔案的修改版本歷史資訊。 The method includes the following steps: the file version interface device responds to a request for uploading a file submitted by a user through a webpage, receives a short modification information and a user name filled in by the user, and saves the uploaded file to a client of the network server. Directory; if the user uploads a new file, it is determined whether the file is being modified by other users. If the file is being modified by another user, the file is not allowed to be uploaded; if the file is not being modified by another user or if the user Uploading a new file, encoding: the short modification information and the user name is the information that the version control server can recognize, and converting the request for uploading the file into a command; obtaining the uploaded file from the client directory according to the above command, And storing the file in the version control server; storing the coded information in the version control server as the modified version history information of the file; and the user controls the version of the server through the version control server, including downloading the latest file Version, history version of downloaded file, view file A modified version history information.

本發明無需借助用戶端安裝程式軟體來管理檔案修改的歷史版本,而是集成於網路伺服器上實現了檔案版本管控功能,包括檔案新加入版本管控、檔案修改後上傳生成新的版本、檔案當前版本內容的下載及檔案歷史版本內容的下載、檔案修改歷史資訊的查詢等,可應用網路系統開發的工作流程管理中。 The invention does not need to use the client-side installer software to manage the historical version of the file modification, but integrates on the network server to implement the file version control function, including the file newly added version control, the file modification, and the uploading to generate a new version and file. The download of the current version of the content and the download of the historical version of the file, the query of the historical information of the file modification, etc., can be applied to the workflow management of the network system development.

10‧‧‧網頁 10‧‧‧Webpage

11‧‧‧網路伺服器 11‧‧‧Web server

110‧‧‧服務層 110‧‧‧Service layer

111‧‧‧檔案控制層 111‧‧‧File Control Layer

112‧‧‧模擬客戶層 112‧‧‧simulated client layer

113‧‧‧客戶端目錄 113‧‧‧Client Directory

114‧‧‧控制紀錄 114‧‧‧Control record

12‧‧‧版本管控伺服器 12‧‧‧ version control server

13‧‧‧介面裝置 13‧‧‧Interface device

圖1為本發明檔案版本管控介面裝置較佳實施例的架構圖。 1 is a block diagram of a preferred embodiment of a file version management interface device of the present invention.

圖2為本發明檔案版本管控介面方法的較佳實施例的流程圖。 2 is a flow chart of a preferred embodiment of a file version management interface method of the present invention.

圖3為本發明檔案版本管控介面方法的檔案上傳較佳實施例的流程圖。 3 is a flow chart of a preferred embodiment of file uploading of the file version management interface method of the present invention.

圖4為本發明檔案版本管控介面方法的檔案下載較佳實施例的流程圖。 4 is a flow chart of a preferred embodiment of file downloading of the file version management interface method of the present invention.

圖5為本發明檔案版本管控介面方法檔案歷史版本資訊返回流程圖。 FIG. 5 is a flow chart of returning information of a file history version of the file version control interface method of the present invention.

參閱圖1所示,為本發明檔案版本管控介面裝置較佳實施例的架構圖。該介面裝置13安裝在網路伺服器11中,其包括服務層110,檔案控制層111及模擬客戶層112。網頁10和版本管控伺服器12透過該介面裝置13連接到網路伺服器11上,以實現對用戶透過網頁10上傳的檔案進行版本管控。 Referring to FIG. 1 , it is an architectural diagram of a preferred embodiment of a file version management interface device of the present invention. The interface device 13 is installed in the network server 11, and includes a service layer 110, an archive control layer 111 and an analog client layer 112. The webpage 10 and the version control server 12 are connected to the web server 11 through the interface device 13 to implement version control of the files uploaded by the user through the webpage 10.

其中,該服務層110用於回應網頁10所接收的用戶請求,該用戶請求包括請求上傳檔案、請求下載檔案、請求查看檔案歷史版本資訊等。該請求下載檔案又包括請求下載新版本檔案、請求下載歷史版本檔案等。該服務層110將回應的請求轉換成命令傳送到模擬客戶層112。 The service layer 110 is configured to respond to a user request received by the webpage 10, and the user request includes requesting to upload an archive, requesting to download a file, requesting to view an archive history version information, and the like. The request to download the file further includes requesting to download a new version file, requesting to download a historical version file, and the like. The service layer 110 translates the requested request into a command delivery to the analog client layer 112.

該服務層110還用於接收用戶對上傳檔案的簡短修改資訊, 並將該用戶名、簡短修改資訊、檔案名稱編碼成版本管控伺服器12能夠識別的資訊;且將該編碼後的資訊也發送給模擬客戶層112。由於不同用戶可能使用不同的編碼系統,如A用戶使用繁體中文、B用戶使用簡體中文、C用戶使用中歐語系,所以需要將該不同編碼的資訊統一成一種編碼存儲在版本管控伺服器12中。在本較佳實施例中,是將用戶名、簡短修改資訊、檔案名稱等編碼成Unicode碼存儲在版本管控伺服器12中。 The service layer 110 is further configured to receive short modification information of the uploaded file by the user. The user name, the short modification information, and the file name are encoded into information that the version control server 12 can recognize; and the encoded information is also sent to the analog client layer 112. Since different users may use different encoding systems, such as A user uses Traditional Chinese, B user uses Simplified Chinese, and C user uses Central European language, the different encoded information needs to be unified into one code and stored in the version control server 12. In the preferred embodiment, the user name, the short modification information, the file name, and the like are encoded into a Unicode code and stored in the version control server 12.

該檔案控制層111用於在網路伺服器11建立一個客戶端目錄113,該客戶端目錄113是一個臨時存儲目錄,用於暫時存放用戶上傳的檔案。比如網頁10的用戶端上傳的檔案先存放到該客戶端目錄113。 The file control layer 111 is configured to establish a client directory 113 on the network server 11, and the client directory 113 is a temporary storage directory for temporarily storing user uploaded files. For example, the file uploaded by the client of the webpage 10 is first stored in the client directory 113.

該檔案控制層111還用於在網路伺服器11為每一個上傳的新檔案創建一個控制紀錄114,該控制紀錄114記載了該檔案上傳時所使用的檔案名稱與編碼後存儲在版本管控伺服器12中的檔案名稱的對應關係,還記載了該檔案的當前最新狀況,該當前最新狀況包括:當前修改該檔案的用戶名、修改日期時間、版本批次及正在修改標誌位元。其中正在修改標誌位元用於表明該檔案目前是否有用戶正在修改。 The file control layer 111 is further configured to create a control record 114 for each uploaded new file on the network server 11. The control record 114 records the file name and code used in the file uploading and is stored in the version control server. The corresponding relationship between the file names in the device 12 also records the current latest status of the file, and the current latest status includes: the user name currently modifying the file, the modified date and time, the version batch, and the flag bit being modified. The flag bit is being modified to indicate whether the file is currently being modified by the user.

該檔案控制層111還用於對網頁10的用戶端上傳或訪問的檔案設置許可權。所設置的檔案許可權包括某個時間段禁止用戶進行修改某個檔案而只能瀏覽等。 The file control layer 111 is also used to set permissions on files uploaded or accessed by the client of the web page 10. The file permission set includes a certain period of time prohibiting the user from modifying a file and only browsing.

模擬客戶層112用於模擬版本管控伺服器12端的用戶端,其接收到服務層110傳送過來的命令後,到客戶端目錄113取得上傳的檔案,再將該檔案存儲到版本管控伺服器12中。該模擬客戶層112還用於模擬版本管控伺服器12的用戶端所進行的其他一些操作,如下載檔案等。該模擬客戶層112直接與版本管控伺服器12相連。 The simulated client layer 112 is used to simulate the client end of the version control server 12. After receiving the command transmitted by the service layer 110, the client client 112 obtains the uploaded file from the client directory 113, and stores the file in the version control server 12. . The simulated client layer 112 is also used to simulate other operations performed by the client of the version control server 12, such as downloading files. The analog client layer 112 is directly coupled to the version management server 12.

參閱圖2所示,是本發明檔案版本管控介面方法的較佳實施例的流程圖。首先,步驟S200,用戶透過網頁10提交上傳檔案的請求,並選擇需上傳的檔案及填寫簡短修改資訊,該簡短修改資訊包括上傳該檔案的用戶名、修改該檔案的原因及修改內容的簡單描述等。 Referring to FIG. 2, it is a flow chart of a preferred embodiment of the file version management interface method of the present invention. First, in step S200, the user submits a request for uploading an archive through the webpage 10, and selects a file to be uploaded and fills in a short modification information, the short modification information includes a user name for uploading the file, a reason for modifying the file, and a brief description of the modified content. Wait.

步驟S202,網路伺服器11中的介面裝置接收到該上傳檔案的請求後,根據該請求把需上傳的檔案存儲到版本管控伺服器12中。 Step S202: After receiving the request for uploading the file, the interface device in the network server 11 stores the file to be uploaded in the version control server 12 according to the request.

步驟S204,用戶可經由該版本管控伺服器12進行版本管控,如下載新版本檔案、下載歷史版本檔案、查看檔案修改版本歷史資訊等。 In step S204, the user can perform version control by using the version control server 12, such as downloading a new version file, downloading a history version file, viewing an archive modification version history information, and the like.

參閱圖3所示,為本發明檔案版本管控介面方法的檔案上傳較佳實施例的流程圖。步驟S300,服務層110接收網頁10提交的上傳檔案的請求。 Referring to FIG. 3, it is a flowchart of a preferred embodiment of file uploading of the file version management interface method of the present invention. In step S300, the service layer 110 receives the request for uploading the file submitted by the webpage 10.

步驟S302,該服務層110將該上傳的檔案存儲到檔案控制層111在網路伺服器11中建立的客戶端目錄113中。 In step S302, the service layer 110 stores the uploaded file in the client directory 113 established by the file control layer 111 in the network server 11.

步驟S304,該服務層110接收用戶透過網頁10提交的登錄用戶名和對該上傳檔案的簡短修改資訊。 Step S304, the service layer 110 receives the login user name submitted by the user through the webpage 10 and the short modification information of the uploaded file.

步驟S306,該服務層110編碼該所接收到用戶名和簡短修改資訊成Unicode碼。 Step S306, the service layer 110 encodes the received user name and the short modification information into a Unicode code.

步驟S308,該服務層110根據用戶在網頁10上所點擊的請求判斷該需上傳的檔案是否是新檔案。一般而言,用戶要上傳檔案時會根據檔案是否是新檔案在網頁10上選擇上傳新檔案或上傳修改過的檔案。 In step S308, the service layer 110 determines, according to the request that the user clicks on the webpage 10, whether the file to be uploaded is a new file. In general, when a user uploads a file, he or she chooses to upload a new file or upload a modified file based on whether the file is a new file or not.

步驟S310,如果該需上傳的檔案不是新檔案,則該服務層110讀取該檔案的控制紀錄114。所述的控制紀錄114是用來紀錄檔案的當前最新狀態,每個檔案都有一個控制紀錄114,該控制紀錄114由檔案控制層111創建及管理。所述檔案的當前最新狀態包括最近一次上傳該檔案的用戶名、該最近一次上傳的該檔案的最新版本批次、修改日期時間、正在修改標誌位元等。該正在修改標誌位元可以用來表明該檔案是否正在被某一用戶修改。 In step S310, if the file to be uploaded is not a new file, the service layer 110 reads the control record 114 of the file. The control record 114 is used to record the current state of the file. Each file has a control record 114 that is created and managed by the file control layer 111. The current latest status of the file includes the user name of the file that was last uploaded, the latest version batch of the file that was last uploaded, the date and time of modification, the flag bit being modified, and the like. The modifying flag bit can be used to indicate whether the file is being modified by a user.

步驟S312,根據該控制紀錄114中正在修改標誌位元判斷該上傳的檔案是否正被其他用戶修改。如果該上傳的檔案正在被其他用戶修改,則該檔案不能上傳,上傳流程結束。 Step S312, determining whether the uploaded file is being modified by another user according to the flag bit being modified in the control record 114. If the uploaded file is being modified by another user, the file cannot be uploaded and the upload process ends.

步驟S314,如果該上傳的檔案沒有正在被其他用戶修改,則該服務層110將編碼後的用戶名和簡短修改資訊發送給模擬客戶層112,且將從網頁10所接收的上傳檔案的請求轉換成 命令發送給模擬客戶層112。該模擬客戶層112從客戶端目錄113獲取該上傳的檔案,將該檔案存儲到版本管控伺服器12。 Step S314, if the uploaded file is not being modified by other users, the service layer 110 sends the encoded user name and short modification information to the simulated client layer 112, and converts the request for uploading the file received from the webpage 10 into The command is sent to the analog client layer 112. The simulated client layer 112 retrieves the uploaded file from the client directory 113 and stores the file in the version control server 12.

步驟S316,該模擬客戶層112通知檔案控制層111更新該檔案的控制紀錄114,也即將本次上傳該檔案的用戶名、版本批次、修改日期時間等替換原來的控制紀錄114內容。另外,該模擬客戶層112還將該更新後的控制紀錄114添加到版本控制伺服器12中的該檔案對應的檔案修改版本歷史資訊中。 In step S316, the simulated client layer 112 notifies the file control layer 111 to update the control record 114 of the file, and replaces the original control record 114 with the user name, version batch, modification date and time, etc. of the file uploaded this time. In addition, the simulated client layer 112 also adds the updated control record 114 to the file modification version history information corresponding to the file in the version control server 12.

在步驟S308中,如果該上傳的檔案是新檔案,則步驟S318,該服務層110將編碼後的用戶名和簡短修改資訊發送給模擬客戶層112,且將從網頁10所接收的上傳檔案的請求轉換成命令發送給模擬客戶層112。該模擬客戶層112從客戶端目錄113獲取該上傳的新檔案,將該新檔案存儲到版本管控伺服器12中。 In step S308, if the uploaded file is a new file, in step S318, the service layer 110 sends the encoded user name and short modification information to the simulated client layer 112, and the request for uploading the file received from the web page 10 is received. The conversion to command is sent to the analog client layer 112. The simulated client layer 112 retrieves the uploaded new archive from the client directory 113 and stores the new archive in the version control server 12.

步驟S320,該檔案控制層111給該新檔案創建一個控制紀錄114,記錄下該新檔案的上傳用戶名、版本、上傳日期時間。並且由模擬客戶層112於版本管控伺服器12中創建該新檔案的檔案修改版本歷史資訊,將該所新創建的控制紀錄114添加進去。 In step S320, the file control layer 111 creates a control record 114 for the new file, and records the uploading user name, version, and upload date and time of the new file. And the file modification version history information of the new file is created by the simulation client layer 112 in the version control server 12, and the newly created control record 114 is added.

參閱圖4所示,為本發明檔案版本管控介面方法的檔案下載較佳實施例的流程圖。步驟S400,用戶透過網頁10提交下載檔案的請求,並選擇下載的檔案的版本,該所選擇的版本包 括最新版本及歷史版本。 Referring to FIG. 4, it is a flowchart of a preferred embodiment of file downloading of the file version management interface method of the present invention. Step S400, the user submits a request for downloading the file through the webpage 10, and selects a version of the downloaded file, the selected version package Includes the latest version and historical version.

步驟S402,服務層110判斷用戶所選擇下載的版本是最新版本還是歷史版本。 In step S402, the service layer 110 determines whether the version selected by the user is the latest version or the historical version.

步驟S404,如果用戶選擇的是下載檔案的歷史版本,則讀取該檔案的控制紀錄114以獲取該檔案上傳時的檔案名與編碼後存儲在版本管控伺服器12中檔案名的對應關係及該檔案的最新版本狀況。 Step S404, if the user selects the historical version of the downloaded file, the control record 114 of the file is read to obtain the correspondence between the file name when the file is uploaded and the file name stored in the version control server 12 after encoding and The status of the latest version of the file.

步驟S406,服務層110將上述獲取的檔案名的對應關係、該檔案的最新版本批次及用戶需要下載的版本批次作為參數傳送給模擬客戶層112,同時將下載請求轉換成命令發送給模擬客戶層112。 Step S406, the service layer 110 transmits the correspondence relationship of the obtained file name, the latest version batch of the file, and the version batch that the user needs to download as a parameter to the simulation client layer 112, and simultaneously converts the download request into a command and sends the simulation to the simulation. Customer layer 112.

步驟S408,該模擬客戶層112根據上述參數到版本管控伺服器12下載用戶所需要的歷史版本,將該歷史版本存儲到客戶端目錄113中。服務層110將該檔案讀取到Http協定中的HttpResponse物件中。 In step S408, the simulated client layer 112 downloads the historical version required by the user to the version control server 12 according to the above parameters, and stores the historical version in the client directory 113. The service layer 110 reads the file into the HttpResponse object in the Http protocol.

步驟S410,所述模擬客戶層112在服務層110讀取完該檔案後,將該檔案從客戶端目錄113中刪除。 Step S410, the simulated client layer 112 deletes the file from the client directory 113 after the service layer 110 reads the file.

步驟S412,用戶在其網頁10讀取的該檔案歷史版本並保存下來。 In step S412, the historical version of the file read by the user on his webpage 10 is saved.

在步驟S402中,如果用戶所需要下載的是該檔案的最新版本,則步驟S414,則服務層110將該下載請求轉換成命令發送 給模擬客戶層112。 In step S402, if the user needs to download the latest version of the file, then in step S414, the service layer 110 converts the download request into a command transmission. The simulation client layer 112 is given.

步驟S416,該模擬客戶層112從版本管控伺服器12下載該檔案的最新版本到客戶端目錄113。服務層110將該檔案讀取到Http協定中的HttpResponse物件中。之後轉入步驟S412。 In step S416, the simulated client layer 112 downloads the latest version of the file from the version control server 12 to the client directory 113. The service layer 110 reads the file into the HttpResponse object in the Http protocol. Then, the process proceeds to step S412.

參閱圖5所示,為本發明檔案版本管控介面方法中檔案歷史版本資訊返回流程圖。 Referring to FIG. 5, it is a flow chart of returning archive history version information in the file version management interface method of the present invention.

步驟S500,服務層110從網頁10接收到用戶需要瀏覽檔案歷史版本資訊的請求。 In step S500, the service layer 110 receives a request from the webpage 10 that the user needs to browse the archive history version information.

步驟S502,該服務層110讀取該檔案的控制紀錄114以獲取該檔案上傳時的檔案名與編碼後存儲在版本管控伺服器12中的名稱的對應關係。 In step S502, the service layer 110 reads the control record 114 of the file to obtain the correspondence between the file name when the file is uploaded and the name stored in the version control server 12 after encoding.

步驟S504,該服務層110再將該請求轉換成命令傳送給模擬客戶層112,及將上述檔案名的對應關係傳送給該模擬客戶層112,該模擬客戶層112根據上述資訊從版本管控伺服器12中獲取該檔案的歷史版本資訊。所述歷史版本資訊包括該檔案每次修改的簡短資訊、對應每次進行修改的用戶名、及每次修改的日期時間等。 Step S504, the service layer 110 converts the request into a command to transmit to the simulated client layer 112, and transmits the corresponding relationship of the file name to the simulated client layer 112. The simulated client layer 112 controls the server according to the information from the version. Get the historical version information of the file in 12. The historical version information includes short information of each modification of the file, a user name corresponding to each modification, and a date and time of each modification.

步驟S506,該模擬客戶層112解析上述歷史版本資訊中的用戶名為實際用戶名、解析上述每次修改的簡短資訊為用戶能夠識別的資訊且在用戶端顯示。因為在該檔案上傳時,用戶名及所提交的簡短修改資訊都被編碼成Unicode碼,所以需要將歷史版本資訊重新編碼成用戶端能夠識別的編碼。 In step S506, the simulated client layer 112 parses the user name in the historical version information as the actual user name, and parses the short information of each modification to be the information that the user can recognize and displays on the user end. Because the user name and the submitted short modification information are encoded into Unicode code when the file is uploaded, the historical version information needs to be re-encoded into a code that the user can recognize.

本發明雖以較佳實施例揭露如上,然其並非用以限定本發明。任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 The present invention has been described above in terms of preferred embodiments, and is not intended to limit the invention. The scope of the present invention is defined by the scope of the appended claims, unless otherwise claimed.

10‧‧‧網頁 10‧‧‧Webpage

11‧‧‧網路伺服器 11‧‧‧Web server

110‧‧‧服務層 110‧‧‧Service layer

111‧‧‧檔案控制層 111‧‧‧File Control Layer

112‧‧‧模擬客戶層 112‧‧‧simulated client layer

113‧‧‧客戶端目錄 113‧‧‧Client Directory

114‧‧‧控制紀錄 114‧‧‧Control record

12‧‧‧版本管控伺服器 12‧‧‧ version control server

13‧‧‧介面裝置 13‧‧‧Interface device

Claims (11)

一種檔案版本管控介面裝置,該裝置安裝在網路伺服器上,並連接版本管控伺服器及網頁,該裝置包括服務層、檔案控制層及模擬客戶層,其中:該服務層用於回應網頁所接收的用戶上傳、下載檔案的請求,並將該請求轉換成命令傳送到模擬客戶層;該服務層還用於接收用戶填寫的對所上傳檔案的簡短修改資訊,編碼該檔案的檔案名、該檔案的簡短修改資訊及用戶名為版本管控伺服器能夠識別的資訊,再將該編碼後的資訊傳送到模擬客戶層;該檔案控制層用於在網路伺服器上建立一個客戶端目錄,該客戶端目錄是一個臨時存儲目錄,用於暫時存放用戶所上傳的檔案;該模擬客戶層與版本管控伺服器相連,用於模擬版本管控伺服器的用戶端所進行的操作,其接收服務層傳送過來的命令後,到客戶端目錄獲取所上傳的檔案,再將該檔案存儲到版本管控伺服器中;該模擬客戶層還用於接收傳送過來的編碼資訊,將該編碼資訊存儲在版本管控伺服器作為該檔案的修改版本歷史資訊。 A file version management interface device installed on a network server and connected to a version control server and a webpage, the device comprising a service layer, an archive control layer and an analog client layer, wherein: the service layer is used to respond to a webpage Receiving a request for uploading and downloading a file by the user, and converting the request into a command to transmit to the simulated client layer; the service layer is further configured to receive short modification information of the uploaded file filled in by the user, and encode the file name of the file, The short modification information of the file and the information that the user name is recognized by the version control server, and then the encoded information is transmitted to the simulated client layer; the file control layer is used to establish a client directory on the network server, The client directory is a temporary storage directory for temporarily storing files uploaded by the user; the simulated client layer is connected to the version control server for simulating the operation performed by the client of the version control server, and receiving the service layer transmission After the command comes in, go to the client directory to get the uploaded file, and then store the file in version control. Server reactor; the analog customer receiving layer further for encoding information transmitted from, the encoded version of the information stored in the control server as a modified version of the file history information. 如申請專利範圍第1項所述的檔案版本管控介面裝置,該檔案控制層還用於為上傳的檔案創建一個控制紀錄並進行及時更新,該控制紀錄用於記載該檔案上傳時的檔案名與編碼後 在版本管控伺服器的名稱的對應關係及該檔案的上傳檔案的當前最新狀態,該當前最新狀態包括:當前修改該檔案的用戶名、修改日期時間、版本批次及正在修改標誌位元。 For example, in the file version management interface device described in claim 1, the file control layer is further configured to create a control record for the uploaded file and update it in time, and the control record is used to record the file name and the file name when the file is uploaded. After encoding In the correspondence between the name of the version control server and the current latest status of the uploaded file of the file, the current latest status includes: the user name currently modifying the file, the modified date and time, the version batch, and the flag bit being modified. 如申請專利範圍第2項所述的檔案版本管控介面裝置,該模擬客戶層還用於將該控制紀錄中的該檔案的當前最新狀態添加到該檔案的修改版本歷史資訊中。 For example, in the file version management interface device described in claim 2, the simulated client layer is further configured to add the current latest status of the file in the control record to the modified version history information of the file. 如申請專利範圍第1項所述的檔案版本管控介面裝置,該檔案控制層還用於對網頁用戶端所上傳或訪問的檔案設置存取許可權。 For example, in the file version management interface device described in claim 1, the file control layer is further configured to set an access permission for the file uploaded or accessed by the web page user. 如申請專利範圍第1項所述的檔案版本管控介面裝置,該檔案的修改版本歷史資訊包括該檔案編碼後的檔案名、每個版次修改用戶名、用戶填寫的簡短修改說明、修改日期時間、修改的版本。 For example, in the file version control interface device described in the first item of the patent scope, the modified version history information of the file includes the file name after the file is encoded, the user name of each version modification, the short modification description filled in by the user, and the modification date and time. Modified version. 一種檔案版本管控介面方法,該方法透過安裝在網路伺服器上的檔案版本管控介面裝置執行檔案版本管控,該檔案版本管控介面裝置連接網頁及版本管控伺服器,該方法包括步驟:該檔案版本管控介面裝置回應用戶透過網頁提交的上傳檔案的請求,接收用戶填寫的對所上傳檔案的簡短修改資訊及用戶名;保存該上傳的檔案到網路伺服器的客戶端目錄,該客戶端目錄臨時存儲用戶所上傳的檔案;如果用戶上傳的不是新檔案,則判斷該檔案是否正在被其他用戶所修改,如果該檔案正在被其他用戶修改,則不允許上 傳該檔案;如果該檔案沒有正在被其他用戶修改或如果用戶上傳的是新檔案,則:編碼該簡短修改資訊及用戶名為版本管控伺服器能夠識別的資訊,並將上述上傳檔案的請求轉換成命令;根據上述命令從客戶端目錄獲取所上傳的檔案,將該檔案存儲到版本管控伺服器中;將所述編碼資訊存儲在版本管控伺服器中作為該檔案的修改版本歷史資訊;及用戶經由該版本管控伺服器進行版本管控,包括下載檔案的最新版本、下載檔案的歷史版本及查看檔案的修改版本歷史資訊。 A file version control interface method for performing file version control by a file version control interface device installed on a network server, the file version control interface device connecting a webpage and a version control server, the method comprising the steps of: the file version The management interface device responds to the request for uploading the file submitted by the user through the webpage, receives the short modification information and the user name filled in by the user for the uploaded file; saves the uploaded file to the client directory of the network server, and the client directory is temporarily The file uploaded by the user is stored; if the user uploads a new file, it is determined whether the file is being modified by other users, and if the file is being modified by other users, the file is not allowed to be uploaded. Pass the file; if the file is not being modified by another user or if the user uploads a new file, then: encode the short modification information and the user name is the information that the version control server can recognize, and convert the request for uploading the file. The command is obtained according to the above command, and the uploaded file is obtained from the client directory, and the file is stored in the version control server; the coded information is stored in the version control server as the modified version history information of the file; and the user The version control is controlled by the version control server, including downloading the latest version of the file, downloading the historical version of the file, and viewing the modified version history information of the file. 如申請專利範圍第6項所述的檔案版本管控介面方法,該方法還包括步驟:如果用戶上傳的是新檔案,則為該新檔案創建一個控制紀錄,該控制紀錄記載了該檔案上傳的檔案名與編碼後在版本管控伺服器中的名稱的對應關係及該檔案的當前最新狀態,該當前最新狀態包括:當前修改該檔案的用戶名、修改日期時間、版本批次及正在修改標誌位元。 For example, the file version control interface method described in claim 6 of the patent scope further includes the step of: if the user uploads a new file, creating a control record for the new file, the control record records the file uploaded by the file. The correspondence between the name and the name in the version control server and the current latest status of the file, the current latest status includes: the current user name of the file, the modification date and time, the version batch, and the flag bit being modified. . 如申請專利範圍第7項所述的檔案版本管控介面方法,該方法還包括步驟:將該控制紀錄中的該檔案的當前最新狀態添加到該檔案的修改版本歷史資訊中。 For example, in the file version management interface method described in claim 7, the method further includes the step of: adding the current latest status of the file in the control record to the modified version history information of the file. 如申請專利範圍第7項所述的檔案版本管控介面方法,該方 法還包括步驟:如果用戶上傳的不是新檔案,則更新該檔案的控制紀錄,也即將進行本次修改的用戶名、版本、修改日期時間替換原來的控制紀錄內容。 For example, the file version control interface method described in claim 7 of the patent scope, the party The method further includes the steps of: if the user uploads a new file, the control record of the file is updated, and the user name, version, and modification date of the modification are replaced with the original control record content. 如申請專利範圍第7項所述的檔案版本管控介面方法,其中下載檔案的歷史版本的步驟包括:接收用戶透過網頁提交的下載檔案的歷史版本的請求;根據該檔案的控制紀錄獲取該檔案在編碼前與編碼後的檔案名稱的對應關係及該檔案的最新版本,同時將下載請求轉換成命令;根據該檔案名的對應關係、該檔案的最新版本和用戶需要下載的版本到版本管控伺服器下載用戶所需要的歷史版本,將該歷史版本存儲到客戶端目錄中;將該檔案從客戶端目錄讀取到Http協定中的HttpResponse物件中;在用戶讀取完所需要的檔案後,將該檔案從客戶端目錄中刪除;及用戶在其網頁上讀取該檔案的歷史版本並保存。 For example, the file version management interface method described in claim 7 is characterized in that the step of downloading the historical version of the file includes: receiving a request for a historical version of the downloaded file submitted by the user through the webpage; and obtaining the file according to the control record of the file Correspondence between the pre-encoding and the encoded file name and the latest version of the file, and convert the download request into a command; according to the correspondence of the file name, the latest version of the file, and the version that the user needs to download to the version control server Download the historical version required by the user, store the historical version in the client directory; read the file from the client directory into the HttpResponse object in the Http protocol; after the user reads the required file, The file is deleted from the client directory; and the user reads the historical version of the file on their web page and saves it. 如申請專利範圍第7項所述的檔案版本管控介面方法,其中查看檔案的修改版本歷史資訊的步驟包括:接收用戶透過網頁提交的需要瀏覽檔案歷史版本資訊的請求;讀取該檔案的控制紀錄以獲取該檔案在編碼前與編碼後的檔案名稱的對應關係; 將該請求轉換成命令,根據所述命令及檔案名稱的對應關係從版本管控伺服器中獲取該檔案的歷史版本資訊;解析上述歷史版本資訊成為用戶能夠識別的資訊且在網頁用戶端顯示。 For example, the file version control interface method described in claim 7 is characterized in that the step of viewing the modified version history information of the file includes: receiving a request submitted by the user through the webpage to browse the historical version information of the file; and reading the control record of the file Obtaining the correspondence between the file and the encoded file name before encoding; The request is converted into a command, and the historical version information of the file is obtained from the version control server according to the correspondence between the command and the file name; the historical version information is analyzed to be information that the user can recognize and displayed on the web user end.
TW95148474A 2006-12-22 2006-12-22 An interface device and method for controlling documents edition TWI402693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95148474A TWI402693B (en) 2006-12-22 2006-12-22 An interface device and method for controlling documents edition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95148474A TWI402693B (en) 2006-12-22 2006-12-22 An interface device and method for controlling documents edition

Publications (2)

Publication Number Publication Date
TW200828035A TW200828035A (en) 2008-07-01
TWI402693B true TWI402693B (en) 2013-07-21

Family

ID=44817511

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95148474A TWI402693B (en) 2006-12-22 2006-12-22 An interface device and method for controlling documents edition

Country Status (1)

Country Link
TW (1) TWI402693B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI562066B (en) * 2016-01-28 2016-12-11 Wistron Corp Event management systems and event triggering methods and systems thereof in a version control server

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6301592B1 (en) * 1997-11-05 2001-10-09 Hitachi, Ltd. Method of and an apparatus for displaying version information and configuration information and a computer-readable recording medium on which a version and configuration information display program is recorded
TW515955B (en) * 2001-08-30 2003-01-01 Inventec Corp Authorized data reading method and system thereof
TW523685B (en) * 1999-09-24 2003-03-11 Phoenix Tech Ltd A software development system that presents a logical view of project components, facilitates their selection, and signals missing links prior to compilation
TWI224264B (en) * 2001-05-31 2004-11-21 Systex Corp Program version control management system and its method
US20050015762A1 (en) * 2003-06-09 2005-01-20 Steckler Steven James Methods and systems for deploying computer source code
US20050044531A1 (en) * 2003-06-09 2005-02-24 Erc-Ip, Llc Methods and systems for deploying computer source code
TW200535630A (en) * 2004-04-27 2005-11-01 Town & Talent Technology China Co Ltd Network type Software Configuration Management method and platform
TWI259380B (en) * 2004-03-09 2006-08-01 Inventec Corp Manage method and system for data editing
TW200638230A (en) * 2005-04-29 2006-11-01 Hon Hai Prec Ind Co Ltd Method and system for exchanging data quickly between client and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6301592B1 (en) * 1997-11-05 2001-10-09 Hitachi, Ltd. Method of and an apparatus for displaying version information and configuration information and a computer-readable recording medium on which a version and configuration information display program is recorded
TW523685B (en) * 1999-09-24 2003-03-11 Phoenix Tech Ltd A software development system that presents a logical view of project components, facilitates their selection, and signals missing links prior to compilation
TWI224264B (en) * 2001-05-31 2004-11-21 Systex Corp Program version control management system and its method
TW515955B (en) * 2001-08-30 2003-01-01 Inventec Corp Authorized data reading method and system thereof
US20050015762A1 (en) * 2003-06-09 2005-01-20 Steckler Steven James Methods and systems for deploying computer source code
US20050044531A1 (en) * 2003-06-09 2005-02-24 Erc-Ip, Llc Methods and systems for deploying computer source code
TWI259380B (en) * 2004-03-09 2006-08-01 Inventec Corp Manage method and system for data editing
TW200535630A (en) * 2004-04-27 2005-11-01 Town & Talent Technology China Co Ltd Network type Software Configuration Management method and platform
TW200638230A (en) * 2005-04-29 2006-11-01 Hon Hai Prec Ind Co Ltd Method and system for exchanging data quickly between client and server

Also Published As

Publication number Publication date
TW200828035A (en) 2008-07-01

Similar Documents

Publication Publication Date Title
CN101206564B (en) Document version pipe control interface arrangement and method
US6606653B1 (en) Updating of embedded links in World Wide Web source pages to have the new URLs of their linked target Web pages after such target Web pages have been moved
JP5350712B2 (en) On-demand access to virtual representations of physical computer systems
US9953098B2 (en) Methods and systems for website editing
US5995099A (en) Method for creating and maintaining page links
JP3751664B2 (en) Software registration system and method
JP2004532481A (en) Web-based file manipulation system
CN101335767A (en) Server system, method of controlling operation thereof and control program therefor
CN103548321A (en) Information processing system, access rights management method, information processing device, and control method and control program therefor
US20090125983A1 (en) Security key with instructions
US20030158893A1 (en) Information management system and information management method
JP2005267614A (en) Information processing system, server device, control method of server device, program and storage medium
WO2010122678A1 (en) Online storage service system and its data control method
JPH11345164A (en) Information processor
JP4900194B2 (en) Form input support method, form input support apparatus, and form input support program
JP4965420B2 (en) Content server system
TWI402693B (en) An interface device and method for controlling documents edition
KR101666064B1 (en) Apparatus for managing data by using url information in a distributed file system and method thereof
KR101075023B1 (en) Method for Managing history of document using Link Document and System thereof
US20050114481A1 (en) Program
JP3828137B2 (en) Host computer applied to remote installation system
JP3587512B2 (en) Website creation support system
JP4502015B2 (en) Information processing apparatus and program
JP2011013994A (en) Information output device, information output system, information output method, and program
JP5004878B2 (en) Information distribution system for construction-related drawings, etc.

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees