|
|
|
|||||||
|
|
|
|
| |||||
|
Previous ~ Up ~
Next
Framework Services - File Delete via HTTP POSTThis service supports deleting a single file from both Mifar storage host and Mifar database using an HTTP GET and POST operation. The service program takes care of all database communications so a client of this service does not have to know how to talk to a Mifar database. A diagram of a delete operation is listed below.
1. Verification and Delete message The Client Program sends the following GET and POST data to the Delete Service.
2. Consult local mifar.conf file The local configuration file gives information like which database host to talk with, where to store file on the disk, who is allowed to store files on the local computer, what kind of service the computer provides, etc. The Delete Service first checks if it can locate this conifguration file. then according to the config file, the Delete Service checks
3. Check Permmissions. The Delete Service sends the user's login name and password to the Database Engine. The database checks if they are valid or not and sends back reponse messaage to the service program.4. Check file on local disk The Delete Service checks if the file that the Client Program requested
5. Delete file entry from DB The Download Service sends delete-file-entry message to the Database Engine. The database sends back a response message to the service.6. Delete file from local disk If the Database Engine responds with deleting file ok message, the Delete Servcie then deletes file from the local disk. If the service gets an error response message from the database, the Delete Service will not delete file from the local disk, and it sends message to the Database Engine to request rolling back the transaction.6. Send file (success) or message (error) The The Delete Service checks
Previous ~ Up |
|