Detailed
Design Document Department of Computer
Science Page maintainer: Terrence
Asgar-Deen |
Modifying a user is described in the above diagram. The administrator passes the user information to the system. The user corresponding to this information is retrieved from the User datastore and modified to reflect the administrator's inputted information. The instance of User is then written back into the datastore.
The returned status corresponds to the success of the operation. If the user is successfully modified and updated in the datastore, the status returns Successful. If the user can't be updated, the corresponding error message is returned.
Process ID | 1.D.3 |
---|---|
Process Name | Modify User |
Inputs | user info |
Outputs | user info |
Permissible User | Administrator |
Assumptions | All information entered is syntactically correct. |
Error Conditions | The user ID entered does not exist. Successful |
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 info |
---|---|
Kind | Data movement in DFD |
Type | Multiple Field User Input |
Description | These fields are input values from the User. They correspond to the fields in the Entity User. Not all fields in the User data table are necessarily present in an instance of the user information. |
The Modify Users area can be accessed by selecting Modify from the Items menu, or clicking on the Modify toolbar button when in the Users, or View Users areas. When this area is opened, the user is presented with a screen containing the a selected user's information. From here, the user can modify the information.
There are several buttons at the lower left edge of the area. While the Modify Users area only displays one user at a time, these buttons allow the user to move to other users. The left and right buttons move to the previous and next users. The outer two buttons move to the first and last users.
Since Modify Users is in the work area, all menus, toolbars, and buttons are accessible. The Add menu item on the Items menu opens the Add a New User dialog. The Delete, and View Details menu items delete and view the current user.
Any changes an administrator makes to a user will be saved when the administrator moves to a different user, or leaves the Modify Users area. The system will verify the information, and if valid, update the user. If the information is not valid, a dialog explaining the error will be displayed asking the administrator to either change the incorrect information, or discard the changes. If two or more administrators attempt to modify the same user, the system will display a dialog explaining the situation and give the choice of overwriting the other administrator's changes, or discarding the administrator's own changes.
Salespeople are not allowed in the User Area, therefore they do not have access to this area.