Detailed
Design Document Department of Computer
Science Page maintainer: Terrence
Asgar-Deen |
Deleting a user is described in the above diagram. The administrator passes the user ID to the system.
The system checks to see if the corresponding user possesses any customers by checking the Customer datastore before flagging the user as inactive (deleted).
The returned status corresponds to the success of the operation. If the user is successfully flagged as deleted in the user datastore, the status returns Successful. If the user still possesses any customers, the administrator is notified of this condition and must transfer the customers to another salesperson.
Process ID | 1.D.4 |
---|---|
Process Name | Delete User |
Inputs | user ID |
Outputs | None |
Permissible User | Administrator |
Assumptions | All information entered is syntactically correct. |
Error Conditions | The user ID entered does not exist. There are customers still assigned to the user. Successful |
Name | customers |
---|---|
Kind | Data movement in DFD |
Type | Instance of an Entity |
Description | This data element corresponds to one or more complete instances of the Entity Customer. |
Name | status |
---|---|
Kind | Data movement in DFD |
Type | Return Message |
Description | This data element corresponds to an error message being returned from an operation. An error message may be both successful and unsuccessful. Unsuccessful error messages are further subcategorized into different errors based on the possible errors that can occur in an operation. |
Name | user |
---|---|
Kind | Data movement in DFD |
Type | Instance of an Entity |
Description | This data element corresponds to a complete instance of the Entity User. |
Name | user ID |
---|---|
Kind | Primary Key |
Type | Integer |
Description | A primary key attribute of entity User. The maximum length is 8 digits. The format is the type integer. The primary key specifies the unique user identification number in the company. |