Detailed Design Document
CPSC 451 Supplier Group #1

Department of Computer Science
University of Calgary
27 February 1997

Page maintainer: Terrence Asgar-Deen
terrence@cpsc.ucalgary.ca

  • Terrence Asgar-Deen
  • Patrick Chan
  • Thomas Hui
  • Carsten Jaeger
  • Matthew Johnson
  • Brian Low
  • Hoang Nguyen
  • Kevin Pattison
  • Csaba Suveges
  • Jeremy Tang
  • Leena Thakkar
  • Al-Amin Vira
  • Lin Zhang

  • Add New User

     

    Adding a new user is described in the above diagram. The administrator passes in all of the user information to the system. This information is composed into an instance of User in the data table Users. For each new instance, a unique user ID is generated by the system.

    The returned status corresponds to the success of the operation. If a new user is successfully added to the datastore, the status returns Successful.


    P-Spec

    Process ID 1.D.1
    Process Name Add New User
    Inputs user info
    Outputs None
    Permissible User Administrator
    Assumptions All information entered is syntactically correct.
    Error Conditions The user ID already exists.
    Successful

    Data Elements (Data Dictionary)

    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.

    User Interface (Add New User Dialog)

    The Add a New User dialog can be opened by selecting Add from the Items menu, or clicking on the Add toolbar button when in the User, View User, or Modify User areas. When the Add New User dialog is opened, the administrator is presented with a screen containing fields to enter the new information about the user. The ID for the salesperson will be automatically generated.

    Clicking Ok, will make sure all fields are valid, and if so, add the user to the system. The administrator can click Cancel at any time to discard the new user. After clicking either button, the administrator will be returned to the previous area (the User, View Users, or Modify Users area). Since Add a New User is a dialog, none of the functionality of the main window is available. The administrator must click OK or Cancel to return to the main window.

    Salespeople are not allowed in the Users Area, therefore they do not have access to this dialog.